{"question": "What is the earliest branch name from branches opened in 2013, or not on Cecilia Avenue with a membership amount of 91, or not named Zytogorski and not branch ID 6, excluding the earliest member name from members who are level 6 or higher, or from Simpsonville, South Carolina and not member ID 4?", "answer": {"columns": ["MIN(Name)"], "index": [0], "data": [["Alexandre"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_Epvuw_8.png", "TableImg_78q0h_10.png"], "original_data_index": 2, "original_sql": "SELECT MIN(Name) FROM branch WHERE Open_year = \"2013\" OR Address_road <> \"Cecilia Avenue\" AND membership_amount = \"91\" OR Name != \"Zytogorski\" AND \"Branch_ID\" <> 6 EXCEPT SELECT MIN(Name) FROM member WHERE \"Level\" >= 6 OR Hometown = \"Simpsonville, South Carolina\" AND \"Member_ID\" != 4"} {"question": "Can you give me a list of driver IDs, including driver ID 10 from the driver table and any driver IDs greater than or equal to 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V0x1k_12.png", "TableImg_Qt77j_5.png"], "original_data_index": 1, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you show me the payment amount and outstanding amount for each mobile phone number, but only for those where either the birth date isn't August 29, 1996 at 12:03 AM, the payment time isn't February 6, 2018 at 1:35 PM, or the mobile phone number isn't 1-387-258-1016x96963, or the outstanding amount is exactly $2255?", "answer": {"columns": ["amount_payment", "amount_outstanding"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4032.33", "3900"], ["7440.34", "2255"], ["6311.37", "3751"], ["4610.26", "5494"], ["9414.74", "2099"], ["9570.93", "9447"], ["8180.26", "7256"], ["4773.16", "8144"], ["9886.62", "255"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Hf3y3_15.png", "TableImg_Oruzv_15.png"], "original_data_index": 0, "original_sql": "SELECT T1.amount_payment, T2.amount_outstanding FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id == T2.customer_id GROUP BY cell_mobile_phone_number HAVING date_of_birth <> \"1996-08-29 00:03:08\" AND datetime_payment <> \"2018-02-06 13:35:58\" AND cell_mobile_phone_number <> \"1-387-258-1016x96963\" OR amount_outstanding = 2255.0"} {"question": "Can you list the aircraft IDs that appear more than once in the aircraft table, where the ID is greater than 1, and combine that with a list of aircraft IDs that appear more than once in the airport_aircraft table, where the ID is at least 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dqzck_5.png", "TableImg_E3fo2_4.png"], "original_data_index": 4, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which driver has an ID of 2 in the driver table, but not an ID of 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fq219_12.png", "TableImg_Ikzxb_5.png"], "original_data_index": 6, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs, excluding driver ID 6, are also driver IDs that are greater than or equal to 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Elo35_12.png", "TableImg_5owai_5.png"], "original_data_index": 5, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you provide a combined summary of property features from the Properties table, including minimum oth_feature_3, average hse_feature_3, date_on_market, average apt_feature_1, minimum property_address, maximum shp_feature_1, count of vendor_requested_price, maximum buyer_offered_price, sum of other_property_details, sum of fld_feature_3, apt_feature_3, count of apt_feature_2, agreed_selling_price, minimum shp_feature_2, average property_id, date_sold, maximum hse_feature_2, sum of oth_feature_2, fld_feature_1, property_name, fld_feature_2, and maximum shp_feature_3, first for properties where vendor_requested_price is 305 and property_name is not 'parc east' and shp_feature_1 is not 'None', or property_type_code is not 'House' and room_count is less than 5, or property_id is 13, or shp_feature_3 is not 'None', or date_on_market is '2016-05-24 09:57:45', or fld_feature_1 is 'None' and agreed_selling_price is greater than or equal to 3344706.5755 and other_property_details is 'None', or apt_feature_1 is not 'quo' and oth_feature_3 is not 'None', and then again for properties where fld_feature_3 is not 'None', or shp_feature_1 is not 'None', or vendor_requested_price is less than or equal to 661536468.4429, or apt_feature_1 is not 'fuga', or hse_feature_1 is not 'None', or fld_feature_2 is not 'None', or buyer_offered_price is greater than 13991131.434, or room_count is not 3, or agreed_selling_price is 2574.0, or date_on_market is '1991-06-21 23:52:10' and hse_feature_2 is not 'None' and property_address is not '107 Roob Courts Erdmanburgh, IA 42926-0873', or other_property_details is 'None', or hse_feature_3 is 'None' and property_type_code is not 'Apartment' and date_sold is not '1981-06-26 21:28:28'?", "answer": {"columns": ["MIN(oth_feature_3)", "AVG(hse_feature_3)", "date_on_market", "AVG(apt_feature_1)", "MIN(property_address)", "MAX(shp_feature_1)", "COUNT(vendor_requested_price)", "MAX(buyer_offered_price)", "SUM(other_property_details)", "SUM(fld_feature_3)", "apt_feature_3", "COUNT(apt_feature_2)", "agreed_selling_price", "MIN(shp_feature_2)", "AVG(property_id)", "date_sold", "MAX(hse_feature_2)", "SUM(oth_feature_2)", "fld_feature_1", "property_name", "fld_feature_2", "MAX(shp_feature_3)"], "index": [0, 1], "data": [["", "", "1993-08-04 10:49:04", "0", "2088 Bashirian Fork Suite 337\nFaustinoport, MT 16771-9320", "", "4", "27537286", "", "", "", "4", "2574", "", "12.75", "1984-02-01 19:54:54", "", "", "", "parc coliseum", "", ""], ["", "", "1993-08-04 10:49:04", "0", "062 Micaela Court Apt. 707\nMargretville, WV 51628-3617", "", "15", "27537286", "", "", "", "15", "2574", "", "8.0", "1984-02-01 19:54:54", "", "", "", "parc coliseum", "", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_0k9mp_15.png", "TableImg_Ygw5b_15.png"], "original_data_index": 3, "original_sql": "SELECT MIN(oth_feature_3), AVG(hse_feature_3), date_on_market, AVG(apt_feature_1), MIN(property_address), MAX(shp_feature_1), COUNT(vendor_requested_price), MAX(buyer_offered_price), SUM(other_property_details), SUM(fld_feature_3), apt_feature_3, COUNT(apt_feature_2), agreed_selling_price, MIN(shp_feature_2), AVG(property_id), date_sold, MAX(hse_feature_2), SUM(oth_feature_2), fld_feature_1, property_name, fld_feature_2, MAX(shp_feature_3) FROM Properties WHERE \"vendor_requested_price\" = 305.0 AND property_name != \"parc east\" AND shp_feature_1 != \"None\" OR property_type_code != \"House\" AND \"room_count\" < 5 OR \"property_id\" = 13 OR shp_feature_3 != \"None\" OR date_on_market = \"2016-05-24 09:57:45\" OR fld_feature_1 = \"None\" AND \"agreed_selling_price\" >= 3344706.5755 AND other_property_details = \"None\" OR apt_feature_1 <> \"quo\" AND oth_feature_3 <> \"None\" UNION ALL SELECT MIN(oth_feature_3), AVG(hse_feature_3), date_on_market, AVG(apt_feature_1), MIN(property_address), MAX(shp_feature_1), COUNT(vendor_requested_price), MAX(buyer_offered_price), SUM(other_property_details), SUM(fld_feature_3), apt_feature_3, COUNT(apt_feature_2), agreed_selling_price, MIN(shp_feature_2), AVG(property_id), date_sold, MAX(hse_feature_2), SUM(oth_feature_2), fld_feature_1, property_name, fld_feature_2, MAX(shp_feature_3) FROM Properties WHERE fld_feature_3 <> \"None\" OR shp_feature_1 != \"None\" OR \"vendor_requested_price\" <= 661536468.4429 OR apt_feature_1 != \"fuga\" OR hse_feature_1 != \"None\" OR fld_feature_2 <> \"None\" OR \"buyer_offered_price\" > 13991131.434 OR \"room_count\" <> 3 OR \"agreed_selling_price\" = 2574.0 OR date_on_market = \"1991-06-21 23:52:10\" AND hse_feature_2 != \"None\" AND property_address <> \"107 Roob Courts Erdmanburgh, IA 42926-0873\" OR other_property_details = \"None\" OR hse_feature_3 = \"None\" AND property_type_code != \"Apartment\" AND date_sold != \"1981-06-26 21:28:28\""} {"question": "Which driver IDs appear in both the driver list where the ID is 7, and the school bus list where the ID is 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fm3qn_12.png", "TableImg_Bkshs_5.png"], "original_data_index": 7, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are equal to 11 in the driver table, excluding those driver IDs that are equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hj5kq_12.png", "TableImg_Jq5n9_5.png"], "original_data_index": 8, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the city, building number, and country for all addresses where the building number is not \"00704 Zoe Alley\", and also list the city, building number, and country for all addresses in the USA?", "answer": {"columns": ["city", "line_1_number_building", "country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["Port Melyssa", "3904 Stroman Passage", "USA"], ["Hagenesfurt", "053 Quigley Island", "USA"], ["Buckridgehaven", "484 O'Hara Drive", "USA"], ["Powlowskichester", "354 Frederik Ridge", "USA"], ["Elviebury", "376 Kallie Tunnel Apt. 784", "USA"], ["Lockmanfurt", "56461 Baumbach Well Suite 634", "USA"], ["Lake Rafaela", "29085 Dejah Pine Suite 059", "USA"], ["Port Jackelinemouth", "535 Ariel Brook", "USA"], ["South Richieport", "2291 Larkin Ports", "USA"], ["South Eugene", "37698 Hahn Curve Apt. 572", "USA"], ["New Bernieceburgh", "7089 Mueller Forks", "USA"], ["Ericamouth", "43235 Jazmin Mountain Suite 251", "USA"], ["Damianfort", "4834 Schaefer Light Suite 947", "USA"], ["West Edmondview", "9260 Streich Mountain", "USA"], ["Port Melyssa", "3904 Stroman Passage", "USA"], ["Hagenesfurt", "053 Quigley Island", "USA"], ["Lake Elaina", "00704 Zoe Alley", "USA"], ["Buckridgehaven", "484 O'Hara Drive", "USA"], ["Powlowskichester", "354 Frederik Ridge", "USA"], ["Elviebury", "376 Kallie Tunnel Apt. 784", "USA"], ["Lockmanfurt", "56461 Baumbach Well Suite 634", "USA"], ["Lake Rafaela", "29085 Dejah Pine Suite 059", "USA"], ["Port Jackelinemouth", "535 Ariel Brook", "USA"], ["South Richieport", "2291 Larkin Ports", "USA"], ["South Eugene", "37698 Hahn Curve Apt. 572", "USA"], ["New Bernieceburgh", "7089 Mueller Forks", "USA"], ["Ericamouth", "43235 Jazmin Mountain Suite 251", "USA"], ["Damianfort", "4834 Schaefer Light Suite 947", "USA"], ["West Edmondview", "9260 Streich Mountain", "USA"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Doq4u_15.png", "TableImg_3p4m1_15.png"], "original_data_index": 9, "original_sql": "SELECT city, line_1_number_building, country FROM Addresses WHERE line_1_number_building != \"00704 Zoe Alley\" UNION ALL SELECT city, line_1_number_building, country FROM Addresses WHERE country = \"USA\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 4, and those from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dp84e_12.png", "TableImg_1lshc_5.png"], "original_data_index": 11, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the aircraft IDs that are both greater than or equal to 2 and not equal to 3, considering only unique aircraft IDs from the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7zhpt_5.png", "TableImg_73iek_4.png"], "original_data_index": 10, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Could you list the allergies that appear exactly once in the allergy type table?", "answer": {"columns": ["COUNT(AllergyType)", "Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1", "Anchovies"], ["1", "Bee Stings"], ["1", "Cat"], ["1", "Dog"], ["1", "Eggs"], ["1", "Grass Pollen"], ["1", "Milk"], ["1", "Nuts"], ["1", "Ragweed"], ["1", "Rodent"], ["1", "Shellfish"], ["1", "Soy"], ["1", "Tree Pollen"], ["1", "Wheat"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_0pnj4_14.png", "TableImg_V0q8v_14.png"], "original_data_index": 12, "original_sql": "SELECT COUNT(AllergyType), Allergy FROM Allergy_Type GROUP BY Allergy HAVING COUNT(AllergyType) = 1 EXCEPT SELECT COUNT(AllergyType), Allergy FROM Allergy_Type GROUP BY Allergy HAVING COUNT(AllergyType) <> 1"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 2, and also list the aircraft IDs from the airport_aircraft table that are less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mg6pv_5.png", "TableImg_C8juq_4.png"], "original_data_index": 14, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you give me a list of player IDs from players who don't live in Winnipeg or aren't ranked first, or whose player ID is 5, combined with a list of player IDs from the player-coach table where the starting year is 2010 or later, or the coach ID is less than 3 and the player ID is not 2?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["4"], ["5"], ["8"], ["10"], ["1"], ["2"], ["3"], ["4"], ["6"], ["10"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_2oebe_14.png", "TableImg_Zenew_7.png"], "original_data_index": 13, "original_sql": "SELECT Player_ID FROM player WHERE Residence != \"Winnipeg\" AND Rank <> \"1st\" OR \"Player_ID\" = 5 UNION ALL SELECT Player_ID FROM player_coach WHERE \"Starting_year\" >= 2010 OR \"Coach_ID\" < 3 AND \"Player_ID\" <> 2"} {"question": "Can you give me a list of student IDs, combining those who hold a position other than \"Teaching Coordinator\" in the club membership table with those students whose major is 600, or whose age is not 18, or whose advisor is 8772 or lower and whose student ID is greater than 1035?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1026"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1035"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_E9a76_4.png", "TableImg_4z689_34.png"], "original_data_index": 16, "original_sql": "SELECT StuID FROM Member_of_club WHERE Position != \"Teaching Coordinator\" UNION SELECT StuID FROM Student WHERE \"Major\" = 600 OR \"Age\" != 18 OR \"Advisor\" <= 8772 AND \"StuID\" > 1035"} {"question": "Can you give me the total source user ID for each trust value, considering first only the entries where the target user ID is 5 or the source user ID is less than 1 and the trust is not 2, and then adding to that the total source user ID for each trust value considering only the entries where the source user ID is greater than or equal to 2 or the trust is greater than or equal to 1 and the target user ID is less than 3?", "answer": {"columns": ["trust", "SUM(source_u_id)"], "index": [0, 1], "data": [["2", "8"], ["8", "33"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_4twb3_9.png", "TableImg_Jd8ds_9.png"], "original_data_index": 15, "original_sql": "SELECT trust, SUM(source_u_id) FROM trust WHERE \"target_u_id\" = 5 OR \"source_u_id\" < 1 AND \"trust\" != 2 UNION SELECT trust, SUM(source_u_id) FROM trust WHERE \"source_u_id\" >= 2 OR \"trust\" >= 1 AND \"target_u_id\" < 3"} {"question": "Which driver IDs, excluding driver ID 6, are in the driver table but not in the school bus table where the driver ID is greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1or2b_12.png", "TableImg_53zbg_5.png"], "original_data_index": 17, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list the aircraft IDs that are less than or equal to 2, excluding any aircraft IDs greater than 3 that are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X8maf_5.png", "TableImg_W16j6_4.png"], "original_data_index": 19, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs that are both in the driver table and the school bus table, but only including IDs that are 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F19r1_12.png", "TableImg_X3don_5.png"], "original_data_index": 18, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list all the nationalities from the people table, including those who are either from the United States, not named Tim Naegeli, or younger than 31, combined with the nationalities of people who are either not named Reggie Lewis or didn't graduate from California?", "answer": {"columns": ["Nationality"], "index": [0, 1], "data": [["United Kindom"], ["United States"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_9c2e3_7.png", "TableImg_P2a2e_7.png"], "original_data_index": 20, "original_sql": "SELECT Nationality FROM people WHERE Nationality = \"United States\" OR Name != \"Tim Naegeli\" OR \"Age\" < 31 UNION SELECT Nationality FROM people WHERE Name != \"Reggie Lewis\" OR Graduation_College != \"California\""} {"question": "Can you give me a list of aircraft IDs, including those with ID 2 from the aircraft table, and those with IDs less than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J3b5h_5.png", "TableImg_623hw_4.png"], "original_data_index": 21, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs less than or equal to 8, excluding any driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S3o3l_12.png", "TableImg_26fs9_5.png"], "original_data_index": 23, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the average maker value for car makers excluding Honda, except for the average maker value from the model list where the model ID is less than 9, the maker is not 19, or the model is Pontiac?", "answer": {"columns": ["AVG(Maker)"], "index": [0], "data": [["0"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Nd9lt_22.png", "TableImg_Kylyb_36.png"], "original_data_index": 25, "original_sql": "SELECT AVG(Maker) FROM car_makers WHERE Maker != \"honda\" EXCEPT SELECT AVG(Maker) FROM model_list WHERE \"ModelId\" < 9 OR \"Maker\" != 19 OR Model = \"pontiac\""} {"question": "Which driver has an ID of 7 and also drives a school bus, but not school bus number 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ledt0_12.png", "TableImg_9shp8_5.png"], "original_data_index": 24, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Could you give me the creation date, department ID, and ranking for departments that are not named \"Defense\", have a budget of at least 59.7 billion, and have no more than 36,000 employees, but only if they also have a ranking greater than 2, a creation date other than 1965, or a name other than \"State\"?", "answer": {"columns": ["Creation", "Department_ID", "Ranking"], "index": [0, 1], "data": [["1913", "8", "8"], ["1979", "13", "13"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Iz53l_15.png", "TableImg_7wmfh_15.png"], "original_data_index": 22, "original_sql": "SELECT Creation, Department_ID, Ranking FROM department WHERE Name != \"Defense\" AND \"Budget_in_Billions\" >= 59.7 AND \"Num_Employees\" <= 36000.0 INTERSECT SELECT Creation, Department_ID, Ranking FROM department WHERE \"Ranking\" > 2 OR Creation != \"1965\" OR Name != \"State\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 11, and those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9g44y_12.png", "TableImg_Sol8s_5.png"], "original_data_index": 26, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs less than or equal to 12, excluding those driver IDs that appear in the school bus list, except for driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ghy9k_12.png", "TableImg_91hr3_5.png"], "original_data_index": 28, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me the IDs of all albums that either don't have the title \"Vault: Def Leppard's Greatest Hits\" or have an ID of 84 or greater, but exclude the IDs of any genres named \"Alternative\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_2yzp2_347.png", "TableImg_02wq8_25.png"], "original_data_index": 27, "original_sql": "SELECT id FROM albums WHERE title <> \"Vault: Def Leppard's Greatest Hits\" OR \"id\" >= 84 EXCEPT SELECT id FROM genres WHERE name = \"Alternative\""} {"question": "What is the highest gender and rank of coaches, excluding those with Coach ID 4 or those named Smith Brown who don't have Club ID 1 and have a rank of 1, except for the highest gender and rank of players who are not self-employed, or have a rank of 4th with more than 5490 votes, or are not named Jim Maloway, or don't have Player ID 4, or are sponsored by Churchill, don't live in Oakbank, and are not female?", "answer": {"columns": ["MAX(Gender)", "Rank"], "index": [0], "data": [["M", "1"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_Mc2os_5.png", "TableImg_Doxf8_14.png"], "original_data_index": 29, "original_sql": "SELECT MAX(Gender), Rank FROM coach WHERE \"Coach_ID\" != 4 OR Coach_name = \"Smith Brown\" AND \"Club_ID\" != 1 AND \"Rank\" = 1 EXCEPT SELECT MAX(Gender), Rank FROM player WHERE Occupation <> \"Self Employed / Consultant\" OR Rank = \"4th\" AND \"Votes\" > 5490 OR Player_name <> \"Jim Maloway\" OR \"Player_ID\" <> 4 OR Sponsor_name = \"Churchill\" AND Residence != \"Oakbank\" AND Gender <> \"F\""} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 5 from the aircraft table, combined with a list of aircraft IDs, excluding aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2etyk_5.png", "TableImg_Xtr5b_4.png"], "original_data_index": 31, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs that are less than 8, but not if they are also driver IDs less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ee8w_12.png", "TableImg_Nfjuk_5.png"], "original_data_index": 30, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which coach IDs are associated with a starting year of 2011 and also associated with either a player ID greater than 2 or a coach ID not equal to 3 when the starting year is 2011?", "answer": {"columns": ["Coach_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_H9tm4_7.png", "TableImg_6o3bn_7.png"], "original_data_index": 33, "original_sql": "SELECT Coach_ID FROM player_coach WHERE \"Starting_year\" = 2011 INTERSECT SELECT Coach_ID FROM player_coach WHERE \"Player_ID\" > 2 OR \"Coach_ID\" <> 3 AND \"Starting_year\" = 2011"} {"question": "What is the average school ID for schools that are not St. Francis Assisi and not college level, or are not located in Los Angeles, California, or have a school ID other than 6 and are not private, combined with the average school ID from the school bus table where the school ID is 3?", "answer": {"columns": ["AVG(School_ID)"], "index": [0, 1], "data": [["4"], ["3"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_Iwumm_7.png", "TableImg_1yc6h_5.png"], "original_data_index": 32, "original_sql": "SELECT AVG(School_ID) FROM school WHERE School != \"St. Francis Assisi\" AND Grade != \"College\" OR Location <> \"Los Angeles, California\" OR \"School_ID\" != 6 AND Type != \"Private\" UNION ALL SELECT AVG(School_ID) FROM school_bus WHERE \"School_ID\" = 3"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 2, and also list the aircraft IDs from the airport_aircraft table that are greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tqbqb_5.png", "TableImg_5u04s_4.png"], "original_data_index": 35, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which store IDs and their total district ID values only include district ID 4, but exclude any store IDs and their total district ID values that either don't have store ID 4 or include district ID 11?", "answer": {"columns": ["Store_ID", "SUM(District_ID)"], "index": [0], "data": [["4", "4"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_Ssio8_5.png", "TableImg_Nfwsh_5.png"], "original_data_index": 36, "original_sql": "SELECT Store_ID, SUM(District_ID) FROM store_district WHERE \"District_ID\" = 4 EXCEPT SELECT Store_ID, SUM(District_ID) FROM store_district WHERE \"Store_ID\" <> 4 OR \"District_ID\" = 11"} {"question": "Can you list all payment amounts from customer payments where either the payment method is not Direct Debit or the payment datetime is not February 19, 2018 at 9:06:29 AM, and also list all payment amounts where either the payment amount is not 6970.98 or the customer ID is not 11 and the payment datetime is not February 15, 2018 at 4:38:49 PM?", "answer": {"columns": ["amount_payment"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["9570.93"], ["8180.26"], ["4610.26"], ["4032.33"], ["787.12"], ["6970.98"], ["6311.37"], ["4773.16"], ["7440.34"], ["1708.18"], ["6782.84"], ["9886.62"], ["3073.98"], ["9414.74"], ["9570.93"], ["8180.26"], ["4610.26"], ["4032.33"], ["787.12"], ["6970.98"], ["6311.37"], ["4773.16"], ["7440.34"], ["5475.26"], ["1708.18"], ["6782.84"], ["9886.62"], ["3073.98"], ["9414.74"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Fqybd_15.png", "TableImg_Ovzru_15.png"], "original_data_index": 34, "original_sql": "SELECT amount_payment FROM Customer_Payments WHERE payment_method_code <> \"Direct Debit\" OR datetime_payment <> \"2018-02-19 09:06:29\" UNION ALL SELECT amount_payment FROM Customer_Payments WHERE \"amount_payment\" <> 6970.98 OR \"customer_id\" <> 11 AND datetime_payment != \"2018-02-15 16:38:49\""} {"question": "What airports are associated with each aircraft?", "answer": {"columns": ["Aircraft", "Airport_ID"], "index": [0, 1, 2, 3], "data": [["Bell 206B3 JetRanger", "1"], ["Robinson R-22", "2"], ["CH-53E Super Stallion", "6"], ["CH-47D Chinook", "9"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pa66n_5.png", "TableImg_R89a6_4.png"], "original_data_index": 38, "original_sql": "SELECT T1.Aircraft, T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Could you list the document IDs for drafts with a negative draft number, as well as the document IDs for mailed documents that were not mailed on November 3rd, 1971 at 12:32:14, have an ID of 13 or less, and were mailed to address ID 4?", "answer": {"columns": ["document_id"], "index": [0], "data": [["13"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_F1hl2_15.png", "TableImg_Nhmgu_14.png"], "original_data_index": 37, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"draft_number\" < 0 UNION ALL SELECT document_id FROM Documents_Mailed WHERE mailing_date <> \"1971-11-03 12:32:14\" AND \"document_id\" <= 13 AND \"mailed_to_address_id\" = 4"} {"question": "Can you give me a list of player IDs from the player table where either the ID is less than 6 and the votes aren't 4914 and the rank isn't \"3rd\", or the sponsor name is \"Winnipeg South Centre\" and the residence isn't \"Brandon\", combined with a list of player IDs from the player_coach table where the ID is less than or equal to 10?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["10"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_87krv_14.png", "TableImg_66lne_7.png"], "original_data_index": 39, "original_sql": "SELECT Player_ID FROM player WHERE \"Player_ID\" < 6 AND \"Votes\" <> 4914 AND Rank != \"3rd\" OR Sponsor_name = \"Winnipeg South Centre\" AND Residence <> \"Brandon\" UNION SELECT Player_ID FROM player_coach WHERE \"Player_ID\" <= 10"} {"question": "Can you list the aircraft IDs that are less than 1 from the aircraft table, and also list the aircraft IDs that equal 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3hjb6_5.png", "TableImg_3huq6_4.png"], "original_data_index": 40, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you show me the room name, room ID, and number of beds for rooms where the base price isn't 75 and the room name is \"Thrift and accolade\", or the room ID isn't \"CAS\", or the maximum occupancy is more than 4 and the number of beds isn't 1 and the decor isn't traditional, or the bed type is \"Double\", combined with the room name, room ID, and number of beds for rooms where the maximum occupancy is less than 4 or the bed type isn't \"Queen\"?", "answer": {"columns": ["roomName", "RoomId", "beds"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["Abscond or bolster", "AOB", "2"], ["Convoke and sanguine", "CAS", "2"], ["Frugal not apropos", "FNA", "2"], ["Harbinger but bequest", "HBB", "1"], ["Immutable before decorum", "IBD", "2"], ["Interim but salutary", "IBS", "1"], ["Mendicant with cryptic", "MWC", "2"], ["Recluse and defiance", "RND", "1"], ["Riddle to exculpate", "RTE", "2"], ["Thrift and accolade", "TAA", "1"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_5jp85_10.png", "TableImg_Ayt3c_10.png"], "original_data_index": 43, "original_sql": "SELECT roomName, RoomId, beds FROM Rooms WHERE \"basePrice\" <> 75 AND roomName = \"Thrift and accolade\" OR RoomId <> \"CAS\" OR \"maxOccupancy\" > 4 AND \"beds\" <> 1 AND decor <> \"traditional\" OR bedType = \"Double\" UNION SELECT roomName, RoomId, beds FROM Rooms WHERE \"maxOccupancy\" < 4 OR bedType <> \"Queen\""} {"question": "Which driver IDs, excluding driver ID 6, are not also driver IDs of school buses with driver IDs up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Roju8_12.png", "TableImg_Bh357_5.png"], "original_data_index": 52, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you find the smallest value in 'Other_Details' and the corresponding 'Document_ID' from the 'Documents' table, considering only entries where 'Document_Description' is not \"y\", or 'Other_Details' is \"None\", and 'Document_ID' is not 33930, and 'Template_ID' is not 7, or 'Document_Name' is not \"Robbin CV\", and then combine that with the smallest value in 'Other_Details' and the corresponding 'Document_ID' from the 'Paragraphs' table where 'Paragraph_ID' is not 765713812 and 'Document_ID' is greater than 80?", "answer": {"columns": ["MIN(Other_Details)", "Document_ID"], "index": [0, 1], "data": [["", "3540024"], ["", "385906526"]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_7mgba_15.png", "TableImg_V1w24_15.png"], "original_data_index": 53, "original_sql": "SELECT MIN(Other_Details), Document_ID FROM Documents WHERE Document_Description != \"y\" OR Other_Details = \"None\" AND \"Document_ID\" <> 33930 AND \"Template_ID\" != 7 OR Document_Name <> \"Robbin CV\" UNION SELECT MIN(Other_Details), Document_ID FROM Paragraphs WHERE \"Paragraph_ID\" != 765713812 AND \"Document_ID\" > 80"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 6, excluding any driver IDs that are equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nmu9t_12.png", "TableImg_A53wv_5.png"], "original_data_index": 41, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are less than 9 and also appear as driver IDs in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_14jwr_12.png", "TableImg_Jmvdr_5.png"], "original_data_index": 42, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 4, combined with a list of driver IDs from the school_bus table where each ID is not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kyhf9_12.png", "TableImg_Nkoyv_5.png"], "original_data_index": 45, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the shipping agent codes that are either \"SH\" or have a name other than \"Ship\", but exclude any codes where the description is \"g\" and the code is \"US\"?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2, 3, 4], "data": [["AL"], ["FE"], ["SH"], ["UP"], ["US"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_M9j1q_5.png", "TableImg_Pt90x_5.png"], "original_data_index": 44, "original_sql": "SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"SH\" OR shipping_agent_name != \"Ship\" EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description = \"g\" AND shipping_agent_code = \"US\""} {"question": "Can you give me a list of driver IDs that are less than 9, excluding any driver IDs that are also in the school bus list and equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tk0rx_12.png", "TableImg_Fomxd_5.png"], "original_data_index": 46, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are both less than or equal to 12 in the driver table and greater than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Acszo_12.png", "TableImg_Defht_5.png"], "original_data_index": 47, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs, excluding driver 6, are also school bus driver IDs, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Erfon_12.png", "TableImg_B00ib_5.png"], "original_data_index": 49, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Could you list the names of aircraft that have a distance of 6900 or less, or an aid less than 11, along with the names of employees who are not Lisa Walker and don't have a salary of 43723?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43], "data": [["Airbus A319"], ["Airbus A320"], ["Airbus A340-300"], ["Angela Martinez"], ["Betty Adams"], ["Boeing 727"], ["Boeing 737-800"], ["Boeing 747-400"], ["Boeing 757-300"], ["Boeing 767-400ER"], ["Boeing 777-300"], ["British Aerospace Jetstream 41"], ["Chad Stewart"], ["David Anderson"], ["Donald King"], ["Dorthy Lewis"], ["Elizabeth Taylor"], ["Embraer ERJ-145"], ["Eric Cooper"], ["George Wright"], ["Haywood Kelly"], ["James Smith"], ["Jennifer Thomas"], ["John Williams"], ["Joseph Thompson"], ["Karen Scott"], ["Larry West"], ["Lawrence Sperry"], ["Linda Davis"], ["Lockheed L1011"], ["Mark Young"], ["Mary Johnson"], ["Michael Miller"], ["Milo Brooks"], ["Patricia Jones"], ["Piper Archer III"], ["Richard Jackson"], ["Robert Brown"], ["SAAB 340"], ["Schwitzer 2-33"], ["Tupolev 154"], ["William Jones"], ["William Moore"], ["William Ward"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_U4cp8_16.png", "TableImg_U5uc6_31.png"], "original_data_index": 48, "original_sql": "SELECT name FROM aircraft WHERE \"distance\" <= 6900 OR \"aid\" < 11 UNION SELECT name FROM employee WHERE name != \"Lisa Walker\" AND \"salary\" != 43723"} {"question": "What is the difference between the total head ID of all heads, excluding Franklin Langham and those older than 43 or with a head ID of 10, and the total head ID of all management members with a head ID greater than 4 and a department ID not equal to 11?", "answer": {"columns": ["SUM(head_ID)"], "index": [0], "data": [["45"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Ndbpc_10.png", "TableImg_8ma1e_5.png"], "original_data_index": 50, "original_sql": "SELECT SUM(head_ID) FROM head WHERE name <> \"Franklin Langham\" AND \"age\" <= 43.0 OR \"head_ID\" <> 10 EXCEPT SELECT SUM(head_ID) FROM management WHERE \"head_ID\" > 4 AND \"department_ID\" != 11"} {"question": "Can you give me a list of driver IDs that are greater than 3 and also not equal to 4, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zof8r_12.png", "TableImg_Hf1aq_5.png"], "original_data_index": 51, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Could you list all the document type codes, including duplicates, where either the code isn't \"Paper\" or the description isn't \"f\", and also include all document type codes where the description isn't \"u\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2, 3, 4], "data": [["CD"], ["Paper"], ["Hard Drive"], ["CD"], ["Hard Drive"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Qqywi_3.png", "TableImg_8851u_3.png"], "original_data_index": 54, "original_sql": "SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code != \"Paper\" OR document_type_description != \"f\" UNION ALL SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description <> \"u\""} {"question": "Which driver IDs are equal to 1 in the driver table, but not equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pq6vx_12.png", "TableImg_Wryi6_5.png"], "original_data_index": 55, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12 from the driver table and driver ID 10 from the school bus table, making sure to only list each driver ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4dn06_12.png", "TableImg_Wi8hg_5.png"], "original_data_index": 56, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs greater than 5 from the driver table, combined with the driver IDs greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dfl06_12.png", "TableImg_Vr767_5.png"], "original_data_index": 60, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 10 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4o70d_12.png", "TableImg_J9iwg_5.png"], "original_data_index": 58, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs greater than 4 who are not in the school bus records, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z4zkf_12.png", "TableImg_Hc9li_5.png"], "original_data_index": 59, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the level, the minimum name, and the sum of card numbers for members where the level is less than 6, or they are from Jacksonville, Florida and their card number is not RE95, or their name is not David Jones, excluding those members whose member ID is 7 and are not from LaGrange, Georgia or their card number is not OLB56?", "answer": {"columns": ["Level", "MIN(Name)", "SUM(Card_Number)"], "index": [0], "data": [["6", "Braxton Kelley", "0"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_P0zjw_10.png", "TableImg_9lemb_10.png"], "original_data_index": 57, "original_sql": "SELECT Level, MIN(Name), SUM(Card_Number) FROM member WHERE \"Level\" < 6 OR Hometown = \"Jacksonville, Florida\" AND Card_Number <> \"RE95\" OR Name != \"David Jones\" EXCEPT SELECT Level, MIN(Name), SUM(Card_Number) FROM member WHERE \"Member_ID\" = 7 AND Hometown != \"LaGrange, Georgia\" OR Card_Number <> \"OLB56\""} {"question": "What are the store IDs of stores ranked 10 and with an area size less than 179.84, combined with the store IDs from the store_district table, excluding store ID 1?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_001qs_5.png", "TableImg_F2whv_5.png"], "original_data_index": 61, "original_sql": "SELECT Store_ID FROM store WHERE \"Ranking\" = 10 AND \"Area_size\" < 179.84 UNION SELECT Store_ID FROM store_district WHERE \"Store_ID\" <> 1"} {"question": "What are the driver IDs that are both greater than or equal to 6 in the driver table and less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_94gfv_12.png", "TableImg_8ti24_5.png"], "original_data_index": 62, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the aircraft IDs, excluding ID 1, that are present in both the aircraft and airport_aircraft tables, where the airport_aircraft IDs are greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7lco2_5.png", "TableImg_Jrvv2_4.png"], "original_data_index": 63, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the district IDs for stores with an ID greater than 3, also considering only those district IDs for stores with an ID greater than 1?", "answer": {"columns": ["District_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_7mubs_5.png", "TableImg_Kfs15_5.png"], "original_data_index": 65, "original_sql": "SELECT District_ID FROM store_district WHERE \"Store_ID\" > 3 INTERSECT SELECT District_ID FROM store_district WHERE \"Store_ID\" > 1"} {"question": "What are the shipping agent codes that appear in both the Documents table (excluding those with a receipt date of \"1986-12-14 14:18:59\", a document type code of \"CD\", or a shipping agent code of \"FE\" and other details of \"x\") and the Ref_Shipping_Agents table (excluding those with a description of \"w\" or a name of \"Ship\")?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2], "data": [["FE"], ["UP"], ["US"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Owpw7_15.png", "TableImg_Oc0gv_5.png"], "original_data_index": 64, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE receipt_date <> \"1986-12-14 14:18:59\" OR document_type_code != \"CD\" OR shipping_agent_code <> \"FE\" AND other_details != \"x\" INTERSECT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description <> \"w\" AND shipping_agent_name != \"Ship\""} {"question": "What are the driver IDs greater than 7 that are present in both the driver and school bus tables, where driver IDs in the school bus table are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5sgg4_12.png", "TableImg_Eyke3_5.png"], "original_data_index": 66, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 7, and with all driver IDs being greater than or equal to 1?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0dzyx_12.png", "TableImg_Pc09x_5.png"], "original_data_index": 67, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs greater than 5 from the driver table, combined with the driver IDs greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U1sil_12.png", "TableImg_Xssx1_5.png"], "original_data_index": 68, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs, excluding driver 8, that are present in both the driver and school bus tables, where the school bus driver IDs are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eqss0_12.png", "TableImg_33q9y_5.png"], "original_data_index": 69, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are less than or equal to 6, and also driver ID 7, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2prfg_12.png", "TableImg_P8abr_5.png"], "original_data_index": 71, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the IDs of drivers who have an ID of 8 or greater, and also appear on a school bus, but are not driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S4wn6_12.png", "TableImg_3g8d7_5.png"], "original_data_index": 70, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What is the sum of employee IDs and the bonus for each employee, grouped by name, excluding employees who are 28 years old, and only including those whose year awarded was 2016, or are younger than 30, or don't live in Bristol?", "answer": {"columns": ["SUM(T1.Employee_ID)", "Bonus"], "index": [0, 1, 2, 3], "data": [["2", "3000"], ["2", "3200"], ["10", "4000"], ["7", "3200"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_4u5qe_10.png", "TableImg_Wjsk2_6.png"], "original_data_index": 72, "original_sql": "SELECT SUM(T1.Employee_ID), T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE \"Age\" <> 28 GROUP BY Name HAVING Year_awarded = \"2016\" OR Age < 30 OR City <> \"Bristol\""} {"question": "What are the driver IDs that are both less than or equal to 8 and also greater than 4, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Labfe_12.png", "TableImg_Vgk4w_5.png"], "original_data_index": 73, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are greater than or equal to 9 but not equal to 9, considering only those IDs present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U2oe6_12.png", "TableImg_1gaay_5.png"], "original_data_index": 74, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the maximum age and head ID for heads from California who are 68 years old and work in a department with an ID greater than 2, or for heads named Nick Faldo who are temporarily acting?", "answer": {"columns": ["MAX(T1.age)", "head_ID"], "index": [0], "data": [["", ""]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Xz5sm_10.png", "TableImg_5i6te_5.png"], "original_data_index": 75, "original_sql": "SELECT MAX(T1.age), T2.head_ID FROM head as T1 JOIN management as T2 ON T1.head_ID = T2.head_ID WHERE born_state = \"California\" AND \"age\" = 68.0 AND \"department_ID\" > 2 OR name = \"Nick Faldo\" AND temporary_acting = \"Yes\""} {"question": "What are the aircraft IDs that are less than 5, and also the aircraft IDs greater than 2, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pl46m_5.png", "TableImg_Niyyv_4.png"], "original_data_index": 76, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the aircraft IDs greater than 4, combined with the aircraft IDs from airport_aircraft that are less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9mhpw_5.png", "TableImg_8ppt8_4.png"], "original_data_index": 79, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the driver IDs, excluding ID 11, that are present in both the driver and school bus tables, where the school bus driver IDs are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M4gxn_12.png", "TableImg_Uf5k9_5.png"], "original_data_index": 78, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the book IDs, writers, and issues for books where the book ID is 1 or the writer is not Christopher Hinz and the title isn't Sheva's War, and also for books where the book ID is not 6 or the title isn't The Dome: Ground Zero or the writer is not Howard Chaykin and the issues aren't 12?", "answer": {"columns": ["Book_ID", "Writer", "Issues"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "Timothy Truman", "6"], ["2", "Garth Ennis", "4"], ["3", "Garth Ennis", "4"], ["4", "Elaine Lee", "6"], ["5", "Howard Chaykin", "12"], ["7", "Dave Gibbons", "1"], ["9", "Michael Moorcock", "12"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_34lme_10.png", "TableImg_2fy4i_10.png"], "original_data_index": 77, "original_sql": "SELECT Book_ID, Writer, Issues FROM book WHERE \"Book_ID\" = 1 OR Writer <> \"Christopher Hinz\" AND Title != \"Sheva's War\" INTERSECT SELECT Book_ID, Writer, Issues FROM book WHERE \"Book_ID\" != 6 OR Title <> \"The Dome: Ground Zero\" OR Writer <> \"Howard Chaykin\" AND \"Issues\" <> 12.0"} {"question": "Which driver IDs are greater than or equal to 7 in the driver table, or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_490sj_12.png", "TableImg_J3ij2_5.png"], "original_data_index": 81, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are less than 9, but not driver IDs less than 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S5wja_12.png", "TableImg_Phqu0_5.png"], "original_data_index": 83, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs, excluding driver ID 6, and also those driver IDs greater than 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Etoz5_12.png", "TableImg_Kyhva_5.png"], "original_data_index": 82, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7 from the driver table and driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Stjkn_12.png", "TableImg_Htc6c_5.png"], "original_data_index": 80, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that are either greater than or equal to 1 in the aircraft table or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lw8w7_5.png", "TableImg_Xnfcs_4.png"], "original_data_index": 86, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the driver IDs that are less than or equal to 10, excluding those driver IDs that are less than 3, considering only driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T68it_12.png", "TableImg_540sq_5.png"], "original_data_index": 84, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What is the sum of People IDs for employees not in company 13 with People ID less than or equal to 1, combined with the sum of People IDs for people under 37 years old?", "answer": {"columns": ["SUM(People_ID)"], "index": [0, 1], "data": [["1"], ["19"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_54w6k_5.png", "TableImg_1yfwo_7.png"], "original_data_index": 85, "original_sql": "SELECT SUM(People_ID) FROM employment WHERE \"Company_ID\" <> 13 AND \"People_ID\" <= 1 UNION SELECT SUM(People_ID) FROM people WHERE \"Age\" < 37"} {"question": "Which driver IDs and school IDs are associated with drivers, considering the following conditions: the school ID is greater than 7 and the driver is full-time, or the driver is affiliated with the Republican party, or the driver's age is not 40, or the driver has worked less than 6 years and lives in Hartford?", "answer": {"columns": ["Driver_ID", "School_ID"], "index": [0, 1, 2, 3, 4], "data": [["9", "7"], ["3", "4"], ["4", "3"], ["7", "5"], ["10", "1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V16sx_12.png", "TableImg_Ma8vy_5.png"], "original_data_index": 87, "original_sql": "SELECT T1.Driver_ID, T2.School_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID == T2.Driver_ID GROUP BY Years_Working HAVING School_ID > 7 AND If_full_time = \"T\" OR Party = \"Rep\" OR Age <> 40 OR Years_Working < 6 AND Home_city = \"Hartford\""} {"question": "Which driver IDs are less than or equal to 8 but not present in the school bus table with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7t48g_12.png", "TableImg_8p9df_5.png"], "original_data_index": 89, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and also less than 3, considering only those aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cmjr9_5.png", "TableImg_B2fzu_4.png"], "original_data_index": 91, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 2, that are in the aircraft table, combined with the aircraft IDs, excluding aircraft ID 1, that are in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iakpf_5.png", "TableImg_Fdq85_4.png"], "original_data_index": 90, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which driver IDs, excluding driver 11, are present in both the driver and school bus records, but not driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_95k5y_12.png", "TableImg_Kzzeh_5.png"], "original_data_index": 88, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that appear in both the aircraft table (with an ID greater than or equal to 1) and the airport_aircraft table (with an ID equal to 2)?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_022wb_5.png", "TableImg_96pm8_4.png"], "original_data_index": 93, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the driver IDs that are greater than or equal to 9, and also the driver IDs from school buses that are not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hf76q_12.png", "TableImg_1dod8_5.png"], "original_data_index": 94, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the document type codes from the Documents table, excluding those with a receipt date of \"1999-04-17 14:19:32\" and other details not equal to \"u\", or a document type code not equal to \"Hard Drive\" and a receipt number of \"114\", or a shipping agent code not equal to \"UP\", or a document ID less than 24, but not including any document type codes where the document type description in the Ref_Document_Types table is \"b\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1], "data": [["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_O798q_15.png", "TableImg_Gfnzh_3.png"], "original_data_index": 92, "original_sql": "SELECT document_type_code FROM Documents WHERE receipt_date != \"1999-04-17 14:19:32\" AND other_details != \"u\" OR document_type_code != \"Hard Drive\" AND receipt_number = \"114\" OR shipping_agent_code != \"UP\" OR \"document_id\" < 24 EXCEPT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description = \"b\""} {"question": "What are the driver IDs, excluding driver ID 11, and also the driver IDs that are 9 or less, from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y5vam_12.png", "TableImg_Q5kqr_5.png"], "original_data_index": 96, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that are both equal to 1 and less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_45jiw_5.png", "TableImg_S10c9_4.png"], "original_data_index": 97, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver IDs 10 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3kk22_12.png", "TableImg_Hatow_5.png"], "original_data_index": 98, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the document IDs from the drafts that are not draft number 4 and don't have draft details \"r\", or the document ID is 12, combined with the document IDs from the documents that don't have a receipt date of \"1973-11-05 21:48:53\" or have other details \"u\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["1"], ["1"], ["2"], ["2"], ["7"], ["10"], ["12"], ["12"], ["13"], ["14"], ["17"], ["20"], ["1"], ["2"], ["3"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_2blv8_15.png", "TableImg_P324f_15.png"], "original_data_index": 99, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"draft_number\" <> 4 AND draft_details <> \"r\" OR \"document_id\" = 12 UNION ALL SELECT document_id FROM Documents WHERE receipt_date != \"1973-11-05 21:48:53\" OR other_details = \"u\""} {"question": "What are the aircraft IDs that are either less than or equal to 4 from the aircraft table, or not equal to 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7b6nq_5.png", "TableImg_9e6td_4.png"], "original_data_index": 100, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What is the sum of feature type codes, excluding those related to \"BurglarAlarm\" and \"Air Conditioning\" or where the feature ID is not 4, combined with the sum of feature type codes from the feature types table, excluding those named \"Amenity, eg Pool.\" or where the code is \"Amenity\"?", "answer": {"columns": ["SUM(feature_type_code)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_E6z85_3.png", "TableImg_Mbhmp_2.png"], "original_data_index": 102, "original_sql": "SELECT SUM(feature_type_code) FROM Other_Available_Features WHERE feature_name <> \"BurglarAlarm\" AND feature_description <> \"Air Conditioning.\" OR \"feature_id\" != 4 UNION ALL SELECT SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name != \"Amenity, eg Pool.\" OR feature_type_code = \"Amenity\""} {"question": "Which staff IDs are associated with lessons where the customer ID is not 10, or the lesson ID is less than or equal to 6 and the vehicle ID is not 2 and the lesson time is not \"9\", or the staff ID is not 11 and the lesson status code is not \"Completed\" and the lesson date is not \"2018-03-07 22:03:49\", or staff members whose nickname is not \"ymiller\" and middle name is not \"Sherwood\", or first name is \"Jaleel\", or staff address ID is 3 and date of birth is \"1998-04-27 12:55:05\", or date joined staff is \"2017-12-22 03:06:32\" and date left staff is \"2018-03-08 05:16:29\", or staff ID is not 11, or last name is not \"Weissnat\"?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_4txsd_15.png", "TableImg_Dg3ox_15.png"], "original_data_index": 101, "original_sql": "SELECT staff_id FROM Lessons WHERE \"customer_id\" <> 10 OR \"lesson_id\" <= 6 AND \"vehicle_id\" != 2 AND lesson_time <> \"9\" OR \"staff_id\" <> 11 AND lesson_status_code != \"Completed\" AND lesson_date <> \"2018-03-07 22:03:49\" UNION SELECT staff_id FROM Staff WHERE nickname <> \"ymiller\" AND middle_name <> \"Sherwood\" OR first_name = \"Jaleel\" OR \"staff_address_id\" = 3 AND date_of_birth = \"1998-04-27 12:55:05\" OR date_joined_staff = \"2017-12-22 03:06:32\" AND date_left_staff = \"2018-03-08 05:16:29\" OR \"staff_id\" != 11 OR last_name <> \"Weissnat\""} {"question": "What are the aircraft IDs that are either 1 or less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9pcin_5.png", "TableImg_X8xgy_4.png"], "original_data_index": 95, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs less than 3 that are not driver IDs other than 4, considering only the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xwht2_12.png", "TableImg_A9t9e_5.png"], "original_data_index": 106, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs that are less than 6 and also appear in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ikxjr_12.png", "TableImg_Azg54_5.png"], "original_data_index": 107, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are less than 2, excluding those driver IDs from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rbxda_12.png", "TableImg_Faoju_5.png"], "original_data_index": 108, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are equal to 5, but not driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Emkml_12.png", "TableImg_Fglqn_5.png"], "original_data_index": 109, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs that are either 5 or greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yifv6_5.png", "TableImg_Bqssx_4.png"], "original_data_index": 110, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the driver IDs, excluding driver ID 12, that are present in both the driver and school bus tables, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_81g0u_12.png", "TableImg_Oe81t_5.png"], "original_data_index": 111, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are less than 9, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O8wty_12.png", "TableImg_9ufwx_5.png"], "original_data_index": 112, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are either greater than or equal to 9 in the driver table or not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S8vr3_12.png", "TableImg_Kvyeo_5.png"], "original_data_index": 113, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are greater than or equal to 3 and are not equal to 5, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R89db_5.png", "TableImg_3akmt_4.png"], "original_data_index": 114, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What allergies other than food allergies are also grass pollen allergies?", "answer": {"columns": ["Allergy"], "index": [0], "data": [["Grass Pollen"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_6xhij_14.png", "TableImg_Grn1r_59.png"], "original_data_index": 115, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType <> \"food\" INTERSECT SELECT Allergy FROM Has_Allergy WHERE Allergy = \"Grass Pollen\""} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 1) and the school bus table (specifically driver ID 4)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tyen2_12.png", "TableImg_Ikdw0_5.png"], "original_data_index": 116, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are less than 7 but are not present in the school bus table with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X1vj4_12.png", "TableImg_Yijqd_5.png"], "original_data_index": 117, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the aircraft IDs of aircraft that are not turboshaft utility helicopters, combined with the aircraft IDs from airport_aircraft where the aircraft ID is less than or equal to 1, or the airport ID is 1, or the ID is 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["3"], ["4"], ["5"], ["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Br6eh_5.png", "TableImg_K32f7_4.png"], "original_data_index": 118, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Description != \"Turboshaft utility helicopter\" UNION ALL SELECT Aircraft_ID FROM airport_aircraft WHERE \"Aircraft_ID\" <= 1 OR \"Airport_ID\" = 1 OR \"ID\" = 2"} {"question": "What are the driver IDs that are either less than or equal to 10 from the driver table, or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gpt6k_12.png", "TableImg_Fvj0t_5.png"], "original_data_index": 119, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are greater than 3, and which driver ID is equal to 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5fwp6_12.png", "TableImg_Weyg1_5.png"], "original_data_index": 120, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the DPI, dimensions, and maximum page size for products where the product ID is less than 5, or the color pages per minute is greater than 3.0, or the maximum page size is not \"216mm x 356mm\", or the interface is not \"USB 2.0\", or the product is \"Plustek MobileOffice D28 Corporate\"? Also, what are the DPI, dimensions, and maximum page size for products where the maximum page size is \"A4\" but the product is not \"Canon imageFORMULA P-150\"?", "answer": {"columns": ["dpi", "dimensions", "max_page_size"], "index": [0, 1, 2, 3, 4, 5], "data": [["600", "280 x 95 x 40", "216mm x 356mm"], ["600", "289 x 51 x 38", "A4"], ["600", "298 x 209 x 99", "216mm x 355mm"], ["600", "300 x 50 x 45", "A4"], ["600", "301 x 160 x 158", "A4"], ["600", "303 x 94 x 60", "A4"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_97m51_6.png", "TableImg_5gojo_6.png"], "original_data_index": 121, "original_sql": "SELECT dpi, dimensions, max_page_size FROM product WHERE \"product_id\" < 5 OR \"pages_per_minute_color\" > 3.0 OR max_page_size != \"216mm x 356mm\" OR interface != \"USB 2.0\" OR product = \"Plustek MobileOffice D28 Corporate\" UNION SELECT dpi, dimensions, max_page_size FROM product WHERE max_page_size = \"A4\" AND product != \"Canon imageFORMULA P-150\""} {"question": "What are the aircraft IDs that are less than 1, and also the aircraft IDs that are 3 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dxl5k_5.png", "TableImg_8kc6r_4.png"], "original_data_index": 122, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 10, and where the driver ID is greater than or equal to 1?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G8rac_12.png", "TableImg_7blpt_5.png"], "original_data_index": 123, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are either greater than or equal to 11, or not equal to 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zi5nb_12.png", "TableImg_4el07_5.png"], "original_data_index": 124, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are either less than or equal to 4 from the driver table, or not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Us02f_12.png", "TableImg_Oyjz1_5.png"], "original_data_index": 105, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID less than 2, or in the airport_aircraft table with an ID of 2 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Alhl6_5.png", "TableImg_Tjp9c_4.png"], "original_data_index": 103, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the aircraft IDs that are not equal to 3 and are present in the aircraft table but not in the airport_aircraft table, where the airport_aircraft aircraft IDs are greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G3ekn_5.png", "TableImg_Frgd4_4.png"], "original_data_index": 104, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs are not equal to 3, but are not also driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1rqim_12.png", "TableImg_V86a1_5.png"], "original_data_index": 125, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that appear in both the aircraft table (with ID values of 2 or greater) and the airport_aircraft table (with ID values of 1 or greater)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ll36m_5.png", "TableImg_41t2k_4.png"], "original_data_index": 126, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the driver IDs that are both less than or equal to 11 and also not equal to 7, considering only those driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Etkjh_12.png", "TableImg_G15nf_5.png"], "original_data_index": 128, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the document type codes for documents with receipt number \"117\", or a receipt date not equal to \"1983-09-26 09:32:56\", or a document ID less than 12, or a document status code not equal to \"done\", combined with the document type codes from the document types table where the document type code is not \"Hard Drive\" or the description is not \"f\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2], "data": [["CD"], ["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Fta0f_15.png", "TableImg_4iv4c_3.png"], "original_data_index": 127, "original_sql": "SELECT document_type_code FROM Documents WHERE receipt_number = \"117\" OR receipt_date <> \"1983-09-26 09:32:56\" OR \"document_id\" < 12 OR document_status_code <> \"done\" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code != \"Hard Drive\" OR document_type_description <> \"f\""} {"question": "What are the aircraft IDs that are not 1 and also appear in the airport_aircraft table with an ID of 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N4evh_5.png", "TableImg_Hl8me_4.png"], "original_data_index": 129, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What is the average coach ID for coaches who are not Joe Fabbri, have a rank of 5, and a club ID less than 1, excluding the average coach ID from player-coach relationships where the player ID isn't 10 and the starting year is after 2012?", "answer": {"columns": ["AVG(Coach_ID)"], "index": [0], "data": [[""]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_7kkhc_5.png", "TableImg_M4os5_7.png"], "original_data_index": 132, "original_sql": "SELECT AVG(Coach_ID) FROM coach WHERE Coach_name != \"Joe Fabbri\" AND \"Rank\" = 5 AND \"Club_ID\" < 1 EXCEPT SELECT AVG(Coach_ID) FROM player_coach WHERE \"Player_ID\" <> 10 AND \"Starting_year\" > 2012"} {"question": "What are the driver IDs that are either less than or equal to 6 in the driver table or less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_57bb2_12.png", "TableImg_Mfqr2_5.png"], "original_data_index": 130, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs that are either 8 or less, or 10 or more?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jpyjf_12.png", "TableImg_6a0sc_5.png"], "original_data_index": 131, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are both equal to 3 in the driver table and less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C9z52_12.png", "TableImg_Foyxz_5.png"], "original_data_index": 135, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What driver IDs are both equal to 10 and greater than 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vnfxh_12.png", "TableImg_Alb0k_5.png"], "original_data_index": 136, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are both less than or equal to 9 in the driver table and less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_07sw4_12.png", "TableImg_7s7bt_5.png"], "original_data_index": 134, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the aircraft IDs that are not equal to 3, excluding those with IDs less than 2, considering only the aircraft table and the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1kd58_5.png", "TableImg_Kx5jm_4.png"], "original_data_index": 133, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 4) and the school bus table (specifically driver ID 7)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X02kx_12.png", "TableImg_Cu5nd_5.png"], "original_data_index": 137, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are either less than or equal to 5, or less than 9, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_57gpl_12.png", "TableImg_09hkg_5.png"], "original_data_index": 139, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are less than 3 but not present in the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kgbsr_12.png", "TableImg_992q6_5.png"], "original_data_index": 140, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are either 11 or greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ku98g_12.png", "TableImg_5hsvk_5.png"], "original_data_index": 138, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the aircraft IDs that are less than 1, and also the aircraft IDs that are 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xwqdt_5.png", "TableImg_Cfgmo_4.png"], "original_data_index": 141, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are less than 3 but not equal to 10, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jwj9b_12.png", "TableImg_Uexwa_5.png"], "original_data_index": 142, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are less than 12, and also the driver IDs from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fims3_12.png", "TableImg_Kcoxr_5.png"], "original_data_index": 144, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What registration years are present in the membership register, excluding those from 2016 or branch 1, and also present in the membership register where the branch is not 4 or the member ID is less than 1, or the year is 2016?", "answer": {"columns": ["Register_Year"], "index": [0], "data": [["2016"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Xz7se_8.png", "TableImg_Eeqqc_8.png"], "original_data_index": 143, "original_sql": "SELECT Register_Year FROM membership_register_branch WHERE Register_Year != \"2016\" OR Branch_ID != \"1\" INTERSECT SELECT Register_Year FROM membership_register_branch WHERE Branch_ID != \"4\" AND \"Member_ID\" < 1 OR Register_Year = \"2016\""} {"question": "Which driver IDs are equal to 3 but not greater than or equal to 9, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8116r_12.png", "TableImg_Zqo74_5.png"], "original_data_index": 145, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which continent IDs are not Asia, but are not America?", "answer": {"columns": ["ContId"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_10jf0_5.png", "TableImg_Z0zli_5.png"], "original_data_index": 146, "original_sql": "SELECT ContId FROM continents WHERE Continent <> \"asia\" EXCEPT SELECT ContId FROM continents WHERE Continent = \"america\""} {"question": "What are the driver IDs that are greater than or equal to 3, excluding those driver IDs that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2ehiz_12.png", "TableImg_Ql76p_5.png"], "original_data_index": 147, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are equal to 2 but not greater than 10, considering driver IDs from the 'driver' table and excluding those from the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_23gps_12.png", "TableImg_5avzt_5.png"], "original_data_index": 148, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which aircraft have an ID of 1 and are listed in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aziy8_5.png", "TableImg_I1fws_4.png"], "original_data_index": 149, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Which driver IDs are not 4 from the driver table, combined with driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L6rim_12.png", "TableImg_6kmdp_5.png"], "original_data_index": 152, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7 from the driver table and driver IDs 4 and above from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Anqb2_12.png", "TableImg_X2dil_5.png"], "original_data_index": 150, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and not equal to 5, considering only the aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nkxax_5.png", "TableImg_Berud_4.png"], "original_data_index": 151, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the driver IDs, excluding driver 12, that are present in both the driver and school bus tables, where the school bus driver ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U9h7v_12.png", "TableImg_Ud6pc_5.png"], "original_data_index": 153, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the IDs of drivers, excluding driver 9, and the IDs of school buses, excluding bus 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1ndgt_12.png", "TableImg_73672_5.png"], "original_data_index": 154, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are either greater than or equal to 1 in the aircraft table or not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ji8n_5.png", "TableImg_Xqwj6_4.png"], "original_data_index": 156, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are less than or equal to 11 but not equal to 9, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ik5tw_12.png", "TableImg_7dp6a_5.png"], "original_data_index": 155, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "How many aircraft are there for each aid value greater than 12, and how many are there for each aid value greater than or equal to 11, excluding Boeing 747-400?", "answer": {"columns": ["COUNT(name)", "aid"], "index": [0, 1], "data": [["4", "13"], ["6", "11"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_4051u_16.png", "TableImg_Xwdtq_16.png"], "original_data_index": 157, "original_sql": "SELECT COUNT(name), aid FROM aircraft WHERE \"aid\" > 12 UNION SELECT COUNT(name), aid FROM aircraft WHERE \"aid\" >= 11 AND name != \"Boeing 747-400\""} {"question": "What are the driver IDs that are both greater than or equal to 7 and also less than or equal to 10, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vdf5y_12.png", "TableImg_Dvgel_5.png"], "original_data_index": 159, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which branch IDs satisfy either of these conditions: the membership amount is 11, or the address road is not \"Valleys Place\", the opening year is 2012, the name isn't \"Zytogorski\", and the branch ID isn't 4, or the city is not \"London\"; or the branch ID is 3 and the member ID is less than 1, or the year is 2018?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["2"], ["4"], ["5"], ["6"], ["8"], ["3"], ["2"], ["3"], ["5"], ["5"], ["1"], ["6"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Oho2a_8.png", "TableImg_Zsrki_8.png"], "original_data_index": 158, "original_sql": "SELECT Branch_ID FROM branch WHERE membership_amount = \"11\" OR Address_road <> \"Valleys Place\" AND Open_year = \"2012\" AND Name != \"Zytogorski\" AND \"Branch_ID\" != 4 OR City <> \"London\" UNION ALL SELECT Branch_ID FROM purchase WHERE Branch_ID = \"3\" AND \"Member_ID\" < 1 OR Year = \"2018\""} {"question": "What are the driver IDs greater than 7 in the driver table, combined with the driver IDs greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_984z9_12.png", "TableImg_38dmu_5.png"], "original_data_index": 160, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the average payment date, the maximum customer ID, and the minimum payment amount for payments made by direct debit, and also for payments with an amount greater than or equal to 5475.26?", "answer": {"columns": ["AVG(datetime_payment)", "MAX(customer_id)", "MIN(amount_payment)"], "index": [0, 1], "data": [["2018", "14", "1708.18"], ["2018", "14", "5475.26"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Qcmvn_15.png", "TableImg_Oe5ui_15.png"], "original_data_index": 161, "original_sql": "SELECT AVG(datetime_payment), MAX(customer_id), MIN(amount_payment) FROM Customer_Payments WHERE payment_method_code = \"Direct Debit\" UNION SELECT AVG(datetime_payment), MAX(customer_id), MIN(amount_payment) FROM Customer_Payments WHERE \"amount_payment\" >= 5475.26"} {"question": "What are the driver IDs, excluding driver ID 9, and also driver IDs less than 10, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tewvs_12.png", "TableImg_M8u8u_5.png"], "original_data_index": 164, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the template type codes, effective to dates, and effective from dates for templates that have an effective from date of February 4, 1996, excluding those with non-empty template details or a template ID of 22 and an effective to date of October 22, 2000?", "answer": {"columns": ["Template_Type_Code", "Date_Effective_To", "Date_Effective_From"], "index": [0], "data": [["BK", "1995-09-19 22:27:48", "1996-02-04 11:27:24"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_Zrhk0_20.png", "TableImg_Kujq0_20.png"], "original_data_index": 165, "original_sql": "SELECT Template_Type_Code, Date_Effective_To, Date_Effective_From FROM Templates WHERE Date_Effective_From = \"1996-02-04 11:27:24\" EXCEPT SELECT Template_Type_Code, Date_Effective_To, Date_Effective_From FROM Templates WHERE Template_Details != \"\" OR \"Template_ID\" = 22 AND Date_Effective_To = \"2000-10-22 11:57:12\""} {"question": "What are the aircraft IDs that are not equal to 4, but are not present in the airport_aircraft table with IDs greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xaqtq_5.png", "TableImg_F4hca_4.png"], "original_data_index": 166, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the driver IDs that are less than or equal to 12, excluding those driver IDs that are greater than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ywusr_12.png", "TableImg_5z77t_5.png"], "original_data_index": 167, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are either 9 or greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uvl15_12.png", "TableImg_X007w_5.png"], "original_data_index": 169, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs that are less than or equal to 1, but not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ujcdg_5.png", "TableImg_Hiyms_4.png"], "original_data_index": 168, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the driver IDs, excluding ID 11, that are present in both the driver and school bus tables, where the school bus driver ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0402y_12.png", "TableImg_Fyqvj_5.png"], "original_data_index": 170, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are less than or equal to 2, excluding those that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ociso_12.png", "TableImg_Wbkzx_5.png"], "original_data_index": 171, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are either 1 or less than or equal to 7, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vf373_12.png", "TableImg_Lvu3u_5.png"], "original_data_index": 172, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are present in both the driver table (excluding driver ID 11) and the school bus table (excluding driver ID 3)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Luu9g_12.png", "TableImg_4nvxb_5.png"], "original_data_index": 163, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which customer IDs and payment method codes are not associated with Direct Debit, considering either a customer ID other than 2 or a payment amount of at least 787.12?", "answer": {"columns": ["customer_id", "payment_method_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1", "Direct Debit"], ["2", "Direct Debit"], ["4", "Direct Debit"], ["6", "Direct Debit"], ["7", "Direct Debit"], ["10", "Direct Debit"], ["11", "Direct Debit"], ["14", "Direct Debit"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_W01rg_15.png", "TableImg_8ehm8_15.png"], "original_data_index": 176, "original_sql": "SELECT customer_id, payment_method_code FROM Customer_Payments WHERE \"customer_id\" != 2 OR \"amount_payment\" >= 787.12 OR payment_method_code != \"Direct Debit\" EXCEPT SELECT customer_id, payment_method_code FROM Customer_Payments WHERE payment_method_code <> \"Direct Debit\""} {"question": "What are the driver IDs greater than 5 from the driver table, combined with the driver IDs less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bu0to_12.png", "TableImg_Zzk76_5.png"], "original_data_index": 177, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the minimum customer IDs, cell phone numbers, customer dates, customer address IDs, sums of first names, phone numbers, and sums of outstanding amounts for customers where the outstanding amount is greater than 3751, combined with customers where the first name is Dianna, or the customer ID is greater than 14 and the last name is not Terry, or the outstanding amount is not 2255, or the customer address ID is not 13, or the cell phone number is +45(6)4872981083, or the customer date is not 2016-02-17 08:26:23 and the email address is not wehner.harold@example.com and the phone number is not 1-618-535-9750?", "answer": {"columns": ["MIN(customer_id)", "cell_mobile_phone_number", "date_became_customer", "customer_address_id", "SUM(first_name)", "phone_number", "SUM(amount_outstanding)"], "index": [0, 1], "data": [["2", "578-518-4785x612", "2015-11-16 22:52:14", "10", "0", "+14(5)2351480248", "75296"], ["1", "861-638-9797", "2016-05-11 17:03:48", "13", "0", "07278206718", "84656"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_8v3n9_15.png", "TableImg_1r3jf_15.png"], "original_data_index": 178, "original_sql": "SELECT MIN(customer_id), cell_mobile_phone_number, date_became_customer, customer_address_id, SUM(first_name), phone_number, SUM(amount_outstanding) FROM Customers WHERE \"amount_outstanding\" > 3751.0 UNION ALL SELECT MIN(customer_id), cell_mobile_phone_number, date_became_customer, customer_address_id, SUM(first_name), phone_number, SUM(amount_outstanding) FROM Customers WHERE first_name = \"Dianna\" OR \"customer_id\" > 14 AND last_name <> \"Terry\" OR \"amount_outstanding\" <> 2255.0 OR \"customer_address_id\" <> 13 OR cell_mobile_phone_number = \"+45(6)4872981083\" OR date_became_customer <> \"2016-02-17 08:26:23\" AND email_address <> \"wehner.harold@example.com\" AND phone_number <> \"1-618-535-9750\""} {"question": "Which driver IDs are not equal to 4 but are not present in the school bus table with driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_14jfz_12.png", "TableImg_V9xde_5.png"], "original_data_index": 179, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs, excluding driver ID 2, and also the driver IDs less than 4, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9jog7_12.png", "TableImg_Vn3sx_5.png"], "original_data_index": 180, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs, excluding driver 11, that are present in both the driver and school bus tables, where the school bus driver ID is less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qtc00_12.png", "TableImg_Agfp3_5.png"], "original_data_index": 181, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are less than or equal to 12 but are not found in the school bus records with driver IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jbjvv_12.png", "TableImg_7i0r9_5.png"], "original_data_index": 182, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the aircraft IDs, excluding ID 5, listed in the aircraft table, combined with the aircraft IDs, excluding ID 1, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_90ov5_5.png", "TableImg_Ijead_4.png"], "original_data_index": 183, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are not equal to 2, but are not also driver IDs from school buses with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0z6ot_12.png", "TableImg_93vgw_5.png"], "original_data_index": 173, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the aircraft IDs that are either greater than or equal to 4 from the aircraft table, or not equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lb5wr_5.png", "TableImg_Hyoby_4.png"], "original_data_index": 175, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the driver IDs, excluding driver ID 8, from the driver table, combined with the driver IDs, excluding driver ID 7, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kf2fp_12.png", "TableImg_Ywb67_5.png"], "original_data_index": 185, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are either less than or equal to 11, or are specifically driver ID 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ivvm2_12.png", "TableImg_Md6uh_5.png"], "original_data_index": 186, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs greater than 2 from the driver table, combined with the driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cy5u3_12.png", "TableImg_J1hpt_5.png"], "original_data_index": 187, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are either 1 or not 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uikws_12.png", "TableImg_Kl8zb_5.png"], "original_data_index": 188, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs less than 9 that are not present in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6si7g_12.png", "TableImg_Yz0s3_5.png"], "original_data_index": 189, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are less than 12, excluding driver ID 10, considering driver information from the 'driver' and 'school_bus' tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_59f3e_12.png", "TableImg_It5qd_5.png"], "original_data_index": 190, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 3, and also excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_249cl_12.png", "TableImg_T3fm5_5.png"], "original_data_index": 191, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are not equal to 2, and which driver ID is equal to 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8e5i9_12.png", "TableImg_W6kid_5.png"], "original_data_index": 192, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that are less than or equal to 1, excluding those driver IDs that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G5zeb_12.png", "TableImg_2l5ft_5.png"], "original_data_index": 194, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the IDs of drivers, excluding driver 10, and also the IDs of school bus drivers, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zfvue_12.png", "TableImg_Si23r_5.png"], "original_data_index": 195, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the Lieutenant Governors from the party table, excluding those who meet any of these conditions: the party ID is not 7 and the US Senate is not Hillary Rodham Clinton, or the Lieutenant Governor is not Jonathan Reiter, or the Comptroller is Alan Hevesi and the Governor is not Carl McCall, or the year is before or equal to 2002, or the Attorney General is Andrew Cuomo; but also excluding those whose year is not 2002, or whose party is not Liberal and the Comptroller is not Alan Hevesi and the Governor is Eliot Spitzer and the party ID is greater than 4, or the Lieutenant Governor is Jonathan Reiter, or the Attorney General is not Eliot Spitzer?", "answer": {"columns": ["Lieutenant_Governor"], "index": [0, 1], "data": [["Dennis Mehiel"], ["Mary Donohue"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_5xrhk_7.png", "TableImg_0sm0z_7.png"], "original_data_index": 193, "original_sql": "SELECT Lieutenant_Governor FROM party WHERE \"Party_ID\" <> 7 AND US_Senate != \"Hillary Rodham Clinton\" OR Lieutenant_Governor <> \"Jonathan Reiter\" OR Comptroller = \"Alan Hevesi\" AND Governor <> \"Carl McCall\" OR \"Year\" <= 2002.0 OR Attorney_General = \"Andrew Cuomo\" EXCEPT SELECT Lieutenant_Governor FROM party WHERE \"Year\" != 2002.0 OR Party <> \"Liberal\" AND Comptroller != \"Alan Hevesi\" AND Governor = \"Eliot Spitzer\" AND \"Party_ID\" > 4 OR Lieutenant_Governor = \"Jonathan Reiter\" OR Attorney_General <> \"Eliot Spitzer\""} {"question": "Which driver IDs are less than 11 but not equal to 4, considering only those present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3i4dg_12.png", "TableImg_Ek0tt_5.png"], "original_data_index": 196, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs from the aircraft table where the ID is less than 13, combined with the aircraft IDs from the flight table for flights that arrived on April 12, 2005 at 5:03 AM, or had a distance of 2551 or less, or went to Honolulu, or had an aircraft ID of 7 or greater, or departed on a different date than April 12, 2005 at 8:45 AM and had flight number 68?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["1"], ["3"], ["2"], ["6"], ["9"], ["7"], ["5"], ["9"], ["10"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_Eonbm_16.png", "TableImg_Eua0s_10.png"], "original_data_index": 197, "original_sql": "SELECT aid FROM aircraft WHERE \"aid\" < 13 UNION ALL SELECT aid FROM flight WHERE arrival_date = \"04/12/2005 05:03\" OR \"distance\" <= 2551 OR destination = \"Honolulu\" OR \"aid\" >= 7 OR departure_date <> \"04/12/2005 08:45\" AND \"flno\" = 68"} {"question": "What is the lowest paragraph ID where the other details are \"None\", excluding the lowest paragraph IDs where the other details are not \"None\" or the paragraph text is not \"Korea\"?", "answer": {"columns": ["MIN(Paragraph_ID)"], "index": [0], "data": [[""]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_52t0j_15.png", "TableImg_6f8z4_15.png"], "original_data_index": 200, "original_sql": "SELECT MIN(Paragraph_ID) FROM Paragraphs WHERE Other_Details = \"None\" EXCEPT SELECT MIN(Paragraph_ID) FROM Paragraphs WHERE Other_Details <> \"None\" OR Paragraph_Text != \"Korea\""} {"question": "What are the driver IDs that are less than 10 and also appear in the school bus records, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yhjeh_12.png", "TableImg_9g9zs_5.png"], "original_data_index": 201, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are less than 9, and which driver IDs are greater than 9, considering both the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3fboy_12.png", "TableImg_Zixt6_5.png"], "original_data_index": 202, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the car models where the MakeId is less than 366 or the model is not \"datsun\", and also the car models from the model list where the model is not \"buick\" or the ModelId is not 23?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439], "data": [["chevrolet"], ["buick"], ["plymouth"], ["amc"], ["ford"], ["ford"], ["chevrolet"], ["plymouth"], ["pontiac"], ["amc"], ["citroen"], ["chevrolet"], ["ford"], ["plymouth"], ["amc"], ["dodge"], ["plymouth"], ["ford"], ["chevrolet"], ["buick"], ["toyota"], ["plymouth"], ["amc"], ["ford"], ["datsun"], ["volkswagen"], ["peugeot"], ["audi"], ["saab"], ["bmw"], ["amc"], ["ford"], ["chevrolet"], ["dodge"], ["hi"], ["datsun"], ["chevrolet"], ["toyota"], ["ford"], ["volkswagen"], ["amc"], ["plymouth"], ["chevrolet"], ["ford"], ["amc"], ["chevrolet"], ["pontiac"], ["ford"], ["plymouth"], ["dodge"], ["ford"], ["pontiac"], ["amc"], ["chevrolet"], ["pontiac"], ["ford"], ["mercury"], ["opel"], ["peugeot"], ["fiat"], ["toyota"], ["datsun"], ["volkswagen"], ["plymouth"], ["toyota"], ["dodge"], ["volkswagen"], ["chevrolet"], ["ford"], ["chevrolet"], ["pontiac"], ["plymouth"], ["ford"], ["amc"], ["mercury"], ["buick"], ["oldsmobile"], ["chrysler"], ["mazda"], ["amc"], ["chevrolet"], ["ford"], ["plymouth"], ["volvo"], ["volkswagen"], ["peugeot"], ["renault"], ["ford"], ["datsun"], ["toyota"], ["dodge"], ["toyota"], ["buick"], ["amc"], ["chevrolet"], ["ford"], ["dodge"], ["mercury"], ["chevrolet"], ["ford"], ["plymouth"], ["chrysler"], ["buick"], ["amc"], ["plymouth"], ["chevrolet"], ["amc"], ["ford"], ["plymouth"], ["volkswagen"], ["chevrolet"], ["ford"], ["plymouth"], ["oldsmobile"], ["amc"], ["toyota"], ["chevrolet"], ["datsun"], ["mazda"], ["ford"], ["mercury"], ["fiat"], ["chevrolet"], ["pontiac"], ["fiat"], ["opel"], ["audi"], ["volvo"], ["dodge"], ["saab"], ["toyota"], ["oldsmobile"], ["plymouth"], ["ford"], ["amc"], ["chevrolet"], ["datsun"], ["ford"], ["toyota"], ["chevrolet"], ["chevrolet"], ["amc"], ["plymouth"], ["ford"], ["buick"], ["dodge"], ["ford"], ["amc"], ["audi"], ["volkswagen"], ["opel"], ["toyota"], ["datsun"], ["dodge"], ["fiat"], ["fiat"], ["honda"], ["subaru"], ["fiat"], ["plymouth"], ["chevrolet"], ["mercury"], ["ford"], ["pontiac"], ["chevrolet"], ["plymouth"], ["ford"], ["buick"], ["chevrolet"], ["amc"], ["plymouth"], ["buick"], ["chevrolet"], ["ford"], ["toyota"], ["ford"], ["amc"], ["pontiac"], ["toyota"], ["volkswagen"], ["datsun"], ["ford"], ["volkswagen"], ["amc"], ["audi"], ["peugeot"], ["volvo"], ["saab"], ["honda"], ["fiat"], ["opel"], ["capri"], ["dodge"], ["renault"], ["chevrolet"], ["dodge"], ["amc"], ["ford"], ["plymouth"], ["chevrolet"], ["ford"], ["amc"], ["chevrolet"], ["chevrolet"], ["volkswagen"], ["honda"], ["dodge"], ["ford"], ["pontiac"], ["amc"], ["volkswagen"], ["datsun"], ["toyota"], ["ford"], ["volvo"], ["plymouth"], ["peugeot"], ["toyota"], ["mercedes-benz"], ["cadillac"], ["chevrolet"], ["ford"], ["dodge"], ["honda"], ["buick"], ["renault"], ["plymouth"], ["datsun"], ["chevrolet"], ["oldsmobile"], ["dodge"], ["mercury"], ["chevrolet"], ["buick"], ["plymouth"], ["ford"], ["pontiac"], ["chevrolet"], ["chrysler"], ["ford"], ["volkswagen"], ["pontiac"], ["toyota"], ["ford"], ["chevrolet"], ["dodge"], ["subaru"], ["volkswagen"], ["datsun"], ["bmw"], ["mazda"], ["volkswagen"], ["ford"], ["mazda"], ["datsun"], ["honda"], ["oldsmobile"], ["dodge"], ["mercury"], ["pontiac"], ["chevrolet"], ["ford"], ["ford"], ["plymouth"], ["amc"], ["buick"], ["mercury"], ["dodge"], ["amc"], ["chevrolet"], ["buick"], ["ford"], ["dodge"], ["chevrolet"], ["toyota"], ["datsun"], ["dodge"], ["toyota"], ["plymouth"], ["oldsmobile"], ["datsun"], ["audi"], ["volvo"], ["saab"], ["peugeot"], ["volkswagen"], ["honda"], ["pontiac"], ["mercury"], ["ford"], ["amc"], ["dodge"], ["chevrolet"], ["ford"], ["mercury"], ["dodge"], ["buick"], ["ford"], ["chevrolet"], ["chrysler"], ["volkswagen"], ["mazda"], ["dodge"], ["amc"], ["mercedes"], ["cadillac"], ["peugeot"], ["oldsmobile"], ["plymouth"], ["plymouth"], ["datsun"], ["fiat"], ["buick"], ["chevrolet"], ["oldsmobile"], ["pontiac"], ["volkswagen"], ["toyota"], ["chevrolet"], ["datsun"], ["chevrolet"], ["ford"], ["amc"], ["dodge"], ["audi"], ["toyota"], ["mazda"], ["datsun"], ["toyota"], ["mazda"], ["dodge"], ["datsun"], ["volkswagen"], ["volkswagen"], ["audi"], ["mercedes-benz"], ["honda"], ["renault"], ["subaru"], [" volkswagen"], ["datsun"], ["mazda"], ["triumph"], ["ford"], ["honda"], ["plymouth"], ["buick"], ["dodge"], ["chevrolet"], ["plymouth"], ["toyota"], ["plymouth"], ["honda"], ["subaru"], ["datsun"], ["toyota"], ["mazda"], ["plymouth"], ["ford"], ["ford"], ["volkswagen"], ["renault"], ["honda"], ["toyota"], ["datsun"], ["mazda"], ["peugeot"], ["saab"], ["volvo"], ["toyota"], ["buick"], ["oldsmobile"], ["ford"], ["chrysler"], ["chevrolet"], ["chevrolet"], ["chevrolet"], ["pontiac"], ["dodge"], ["pontiac"], ["ford"], ["amc"], ["volkswagen"], ["mazda"], ["mazda"], ["plymouth"], ["mercury"], ["nissan"], ["honda"], ["toyota"], ["honda"], ["honda"], ["buick"], ["oldsmobile"], ["chrysler"], ["ford"], ["toyota"], ["dodge"], ["chevrolet"], ["ford"], ["volkswagen"], ["dodge"], ["ford"], ["chevrolet"], ["amc"], ["audi"], ["bmw"], ["buick"], ["cadillac"], ["capri"], ["chevrolet"], ["chrysler"], ["citroen"], ["datsun"], ["dodge"], ["fiat"], ["ford"], ["hi"], ["honda"], ["hyundai"], ["jeep"], ["kia"], ["mazda"], ["mercedes"], ["mercedes-benz"], ["mercury"], ["nissan"], ["oldsmobile"], ["opel"], ["peugeot"], ["plymouth"], ["pontiac"], ["renault"], ["saab"], ["scion"], ["subaru"], ["toyota"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_Fytxh_406.png", "TableImg_Td1mx_36.png"], "original_data_index": 203, "original_sql": "SELECT Model FROM car_names WHERE \"MakeId\" < 366 OR Model != \"datsun\" UNION ALL SELECT Model FROM model_list WHERE Model <> \"buick\" OR \"ModelId\" != 23"} {"question": "What are the aircraft IDs that are equal to 2 in the aircraft table, but not less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zqjvp_5.png", "TableImg_Gkf36_4.png"], "original_data_index": 204, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs, excluding driver ID 8, that are present in both the driver and school bus records, where the school bus driver IDs are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vyqbf_12.png", "TableImg_Vhn2n_5.png"], "original_data_index": 184, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the contestant numbers for Jessie Eichman, and also any contestant number that isn't 3 or Jessie Alloway?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_U0qwl_11.png", "TableImg_6qxwm_11.png"], "original_data_index": 198, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = \"Jessie Eichman\" UNION SELECT contestant_number FROM CONTESTANTS WHERE \"contestant_number\" != 3 OR contestant_name = \"Jessie Alloway\""} {"question": "What are the driver IDs greater than 6, combined with the driver IDs from school buses that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ipo0x_12.png", "TableImg_Z8ams_5.png"], "original_data_index": 207, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are greater than 5 but not equal to 7, considering only those IDs that appear in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cwzfr_12.png", "TableImg_S4t34_5.png"], "original_data_index": 199, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_54hx2_12.png", "TableImg_Nn5fe_5.png"], "original_data_index": 208, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 2 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4jtuv_12.png", "TableImg_02op4_5.png"], "original_data_index": 209, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the aircraft IDs that are either less than or equal to 1 in the aircraft table, or greater than or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M3xbi_5.png", "TableImg_Kjyuh_4.png"], "original_data_index": 210, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the aircraft IDs greater than 2, and also the aircraft IDs greater than 3, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7lfec_5.png", "TableImg_21gyt_4.png"], "original_data_index": 211, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the titles and counts of items where the item ID is 0 or the title is \"orange\", but not those where the item ID is less than 6 or the title is not \"orange\"?", "answer": {"columns": ["title", "COUNT(i_id)"], "index": [0], "data": [["pear", "2"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_Ertnk_8.png", "TableImg_0rncv_8.png"], "original_data_index": 213, "original_sql": "SELECT title, COUNT(i_id) FROM item WHERE \"i_id\" = 0 OR title = \"orange\" EXCEPT SELECT title, COUNT(i_id) FROM item WHERE \"i_id\" < 6 OR title != \"orange\""} {"question": "What are the driver IDs, excluding ID 11, from the driver table, combined with the driver IDs, excluding ID 4, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fdi2m_12.png", "TableImg_Vp4t7_5.png"], "original_data_index": 212, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are less than or equal to 10 but not present in the school bus table with driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fjxhz_12.png", "TableImg_96wea_5.png"], "original_data_index": 214, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What driver IDs are both equal to 7 in the driver table and not equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9a45k_12.png", "TableImg_Sbq9c_5.png"], "original_data_index": 215, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are both greater than or equal to 10 in the driver table and not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_436up_12.png", "TableImg_Tnf3y_5.png"], "original_data_index": 216, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which shop IDs are associated with employee 1 or not full-time, but are not shop IDs of shops that are not named KuPS, located in Tehtaan kentt\u00e4, and do not have Mika Laurikainen as manager?", "answer": {"columns": ["Shop_ID"], "index": [0, 1], "data": [["2"], ["8"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_Fquyd_7.png", "TableImg_7p1n7_9.png"], "original_data_index": 217, "original_sql": "SELECT Shop_ID FROM hiring WHERE \"Employee_ID\" = 1 OR Is_full_time != \"T\" EXCEPT SELECT Shop_ID FROM shop WHERE Name <> \"KuPS\" AND District = \"Tehtaan kentt\u00e4\" AND Manager_name <> \"Mika Laurikainen\""} {"question": "What are the IDs of documents that were mailed, excluding document ID 4, but not including any documents that are draft copies with copy number 10 and document ID 2?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["7"], ["10"], ["12"], ["13"], ["14"], ["20"], ["23"], ["24"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Eqph4_14.png", "TableImg_Vyx5x_8.png"], "original_data_index": 218, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"document_id\" != 4 EXCEPT SELECT document_id FROM Draft_Copies WHERE \"copy_number\" = 10 AND \"document_id\" = 2"} {"question": "What are the IDs of drivers, excluding driver 4, who are also assigned to school buses with driver IDs of 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ocsux_12.png", "TableImg_N23j5_5.png"], "original_data_index": 219, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the document IDs that satisfy either of these conditions: the document ID is less than or equal to 4, the mailing date is not February 21, 1973 at 10:17:01, or the address ID is greater than or equal to 9, and also have a copy number of 4?", "answer": {"columns": ["document_id"], "index": [0], "data": [["2"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Lv4mi_14.png", "TableImg_U0kgo_8.png"], "original_data_index": 206, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"document_id\" <= 4 OR mailing_date != \"1973-02-21 10:17:01\" OR \"mailed_to_address_id\" >= 9 INTERSECT SELECT document_id FROM Draft_Copies WHERE \"copy_number\" = 4"} {"question": "What are the driver IDs that are 6 or greater, but not driver IDs less than 4, considering only driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5bfok_12.png", "TableImg_Pr1oy_5.png"], "original_data_index": 205, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the IDs of drivers who have an ID of 7 or greater and are also assigned to a school bus, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qoy10_12.png", "TableImg_C24zv_5.png"], "original_data_index": 222, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs that are both less than 12 and greater than 4, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dum78_12.png", "TableImg_Ioaw4_5.png"], "original_data_index": 223, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are greater than or equal to 5 but are not driver IDs that are not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ro1y4_12.png", "TableImg_Hlzeh_5.png"], "original_data_index": 225, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the regions and club names of clubs that are not in the USA and not club ID 3 and did not start in 1998, along with the regions and club names of clubs that are not Halmstads BK and have a club ID greater than 4?", "answer": {"columns": ["Region", "Club_name"], "index": [0, 1, 2, 3], "data": [["Korea", "Gefle IF"], ["Russia", "Halmstads BK"], ["France", "Helsingborgs IF"], ["France", "Helsingborgs IF"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_00xqs_6.png", "TableImg_Zuayb_6.png"], "original_data_index": 224, "original_sql": "SELECT Region, Club_name FROM club WHERE Region <> \"USA\" AND \"Club_ID\" != 3 AND \"Start_year\" <> 1998 UNION ALL SELECT Region, Club_name FROM club WHERE Club_name != \"Halmstads BK\" AND \"Club_ID\" > 4"} {"question": "What is the highest Club ID from the coach table where the Coach ID is less than 2 and the gender is not female, combined with the highest Club ID from the match result table where Big Silver is 9 and Rank is 5, or Gold is less than or equal to 13 and Small Silver is 10, or Club ID is greater than 2, or Points is greater than or equal to 139?", "answer": {"columns": ["MAX(Club_ID)"], "index": [0, 1], "data": [["1"], ["6"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Wmtfa_5.png", "TableImg_Cdscx_6.png"], "original_data_index": 220, "original_sql": "SELECT MAX(Club_ID) FROM coach WHERE \"Coach_ID\" < 2 AND Gender != \"F\" UNION ALL SELECT MAX(Club_ID) FROM match_result WHERE \"Big_Silver\" = 9 AND \"Rank\" = 5 OR \"Gold\" <= 13 AND \"Small_Silver\" = 10 OR \"Club_ID\" > 2 OR \"Points\" >= 139"} {"question": "What are the driver IDs, excluding driver ID 7, and also the driver IDs less than 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R6y2o_12.png", "TableImg_6o79b_5.png"], "original_data_index": 228, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the maximum fld_feature_1, sum of shp_feature_3, oth_feature_1, minimum oth_feature_2, fld_feature_2, count of property_name, shp_feature_1, hse_feature_2, minimum vendor_requested_price, maximum hse_feature_3, property_type_code, count of fld_feature_3, date_on_market, agreed_selling_price, other_property_details, oth_feature_3, buyer_offered_price, average date_sold, apt_feature_3, apt_feature_1, and maximum apt_feature_2 for properties where hse_feature_1 is not \"None\" or the address is \"49578 Ayden Mountains New Russellhaven, UT 46626\" and oth_feature_3 is not \"None\" or the property ID is not 9 or apt_feature_2 is not \"suscipit\" or the property name is not \"wall street\" or apt_feature_1 is \"quos\", and also for properties where the date on market is \"1976-06-10 20:25:38\" or oth_feature_3 is not \"None\" or hse_feature_2 is not \"None\" or oth_feature_2 is \"None\" and fld_feature_1 is not \"None\" and the vendor requested price is not 2198735.095 or fld_feature_2 is not \"None\" or shp_feature_1 is not \"None\" and the room count is 8 or shp_feature_2 is not \"None\" and oth_feature_1 is not \"None\" and the property ID is less than or equal to 15 and the address is not \"49578 Ayden Mountains New Russellhaven, UT 46626\"?", "answer": {"columns": ["MAX(fld_feature_1)", "SUM(shp_feature_3)", "oth_feature_1", "MIN(oth_feature_2)", "fld_feature_2", "COUNT(property_name)", "shp_feature_1", "hse_feature_2", "MIN(vendor_requested_price)", "MAX(hse_feature_3)", "property_type_code", "COUNT(fld_feature_3)", "date_on_market", "agreed_selling_price", "other_property_details", "oth_feature_3", "buyer_offered_price", "AVG(date_sold)", "apt_feature_3", "apt_feature_1", "MAX(apt_feature_2)"], "index": [0, 1], "data": [["", "", "", "", "", "1", "", "", "13.4715", "", "Apartment", "0", "1976-06-10 20:25:38", "0.0", "", "", "0.0", "2001.0", "", "fuga", "odio"], ["", "", "", "", "", "15", "", "", "13.4715", "", "Apartment", "0", "2003-12-25 16:13:19", "244353758.1824", "", "", "1.5509", "1989.8666666667", "", "consequatur", "vero"]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_7pl6o_15.png", "TableImg_Yp15x_15.png"], "original_data_index": 221, "original_sql": "SELECT MAX(fld_feature_1), SUM(shp_feature_3), oth_feature_1, MIN(oth_feature_2), fld_feature_2, COUNT(property_name), shp_feature_1, hse_feature_2, MIN(vendor_requested_price), MAX(hse_feature_3), property_type_code, COUNT(fld_feature_3), date_on_market, agreed_selling_price, other_property_details, oth_feature_3, buyer_offered_price, AVG(date_sold), apt_feature_3, apt_feature_1, MAX(apt_feature_2) FROM Properties WHERE hse_feature_1 <> \"None\" OR property_address = \"49578 Ayden Mountains New Russellhaven, UT 46626\" AND oth_feature_3 <> \"None\" OR \"property_id\" <> 9 OR apt_feature_2 != \"suscipit\" OR property_name <> \"wall street\" OR apt_feature_1 = \"quos\" UNION SELECT MAX(fld_feature_1), SUM(shp_feature_3), oth_feature_1, MIN(oth_feature_2), fld_feature_2, COUNT(property_name), shp_feature_1, hse_feature_2, MIN(vendor_requested_price), MAX(hse_feature_3), property_type_code, COUNT(fld_feature_3), date_on_market, agreed_selling_price, other_property_details, oth_feature_3, buyer_offered_price, AVG(date_sold), apt_feature_3, apt_feature_1, MAX(apt_feature_2) FROM Properties WHERE date_on_market = \"1976-06-10 20:25:38\" OR oth_feature_3 != \"None\" OR hse_feature_2 <> \"None\" OR oth_feature_2 = \"None\" AND fld_feature_1 != \"None\" AND \"vendor_requested_price\" != 2198735.095 OR fld_feature_2 != \"None\" OR shp_feature_1 != \"None\" AND \"room_count\" = 8 OR shp_feature_2 <> \"None\" AND oth_feature_1 <> \"None\" AND \"property_id\" <= 15 AND property_address <> \"49578 Ayden Mountains New Russellhaven, UT 46626\""} {"question": "What are the driver IDs that are not 7 and are not found in the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G3or4_12.png", "TableImg_I6anf_5.png"], "original_data_index": 229, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What is the highest player ID for players who are not named Matt Schaubroeck and are ranked 4th, and also what is the highest player ID from the player_coach table where the player ID is 4 or greater?", "answer": {"columns": ["MAX(Player_ID)"], "index": [0, 1], "data": [["7"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_R7g6f_14.png", "TableImg_N9454_7.png"], "original_data_index": 230, "original_sql": "SELECT MAX(Player_ID) FROM player WHERE Player_name <> \"Matt Schaubroeck\" AND Rank = \"4th\" UNION ALL SELECT MAX(Player_ID) FROM player_coach WHERE \"Player_ID\" >= 4"} {"question": "What are the principal activities, incorporation location, group equity shareholding, and type of companies that are either cargo companies incorporated in Hong Kong, excluding joint ventures, or companies with an ID less than or equal to 12, or a group equity shareholding of 100 or more, or the name \"CLS Catering Services Limited\"?", "answer": {"columns": ["Principal_activities", "Incorporated_in", "Group_Equity_Shareholding", "Type"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Cargo", "Hong Kong", "100.0", "Subsidiary"], ["Airline", "China", "18.77", "Corporate"], ["Cargo airline", "China", "49.0", "Joint Venture"], ["Cargo airline", "Hong Kong", "60.0", "Joint Venture"], ["Airline", "Hong Kong", "100.0", "Subsidiary"], ["Cargo airline", "Hong Kong", "100.0", "Subsidiary"], ["Catering services", "Hong Kong", "100.0", "Subsidiary"], ["Cargo", "Hong Kong", "100.0", "Subsidiary"], ["Travel agency", "Hong Kong", "100.0", "Subsidiary"], ["Travel agency", "Hong Kong", "100.0", "Subsidiary"], ["Ground handling", "Hong Kong", "100.0", "Subsidiary"], ["Laundry", "Hong Kong", "100.0", "Subsidiary"], ["Laundry", "Taiwan", "45.0", "Joint Venture"], ["Catering services", "Canada", "30.0", "Joint Venture"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Xyp5p_14.png", "TableImg_C0k78_14.png"], "original_data_index": 231, "original_sql": "SELECT Principal_activities, Incorporated_in, Group_Equity_Shareholding, Type FROM operate_company WHERE Type <> \"Joint Venture\" AND Incorporated_in = \"Hong Kong\" AND Principal_activities = \"Cargo\" UNION ALL SELECT Principal_activities, Incorporated_in, Group_Equity_Shareholding, Type FROM operate_company WHERE \"id\" <= 12 OR \"Group_Equity_Shareholding\" >= 100.0 OR name = \"CLS Catering Services Limited\""} {"question": "What are the branch IDs of branches that were not open in 2012, are not in London, or are not named Cochrane and have a membership amount other than 11, combined with the branch IDs from purchases where the member ID is not 3 or the year is 2018?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_09apn_8.png", "TableImg_F3s93_8.png"], "original_data_index": 232, "original_sql": "SELECT Branch_ID FROM branch WHERE Open_year != \"2012\" OR City != \"London\" OR Name != \"Cochrane\" AND membership_amount <> \"11\" UNION SELECT Branch_ID FROM purchase WHERE \"Member_ID\" <> 3 OR Year = \"2018\""} {"question": "What are the driver IDs that are present in both the driver and school bus tables, and are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zdbcu_12.png", "TableImg_84g3n_5.png"], "original_data_index": 233, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What continents are not America and also not Australia, excluding the continent with ID 5?", "answer": {"columns": ["Continent"], "index": [0, 1, 2], "data": [["africa"], ["asia"], ["europe"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_Qgae1_5.png", "TableImg_Cqn6y_5.png"], "original_data_index": 235, "original_sql": "SELECT Continent FROM continents WHERE Continent <> \"america\" INTERSECT SELECT Continent FROM continents WHERE Continent <> \"australia\" AND \"ContId\" != 5"} {"question": "What is the average writer value and title for books where the issues are 4.0 and the title is \"Michael Moorcock's Multiverse\" or the writer is \"Christopher Hinz\" and the book ID is greater than or equal to 6, and also for books where the issues are less than 6.0 and the title is \"The Black Lamb\"?", "answer": {"columns": ["AVG(Writer)", "Title"], "index": [0, 1], "data": [["", ""], ["0.0", "Dead Corps"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_Ejeg0_10.png", "TableImg_Oytzz_10.png"], "original_data_index": 234, "original_sql": "SELECT AVG(Writer), Title FROM book WHERE \"Issues\" = 4.0 AND Title = \"Michael Moorcock's Multiverse\" OR Writer = \"Christopher Hinz\" AND \"Book_ID\" >= 6 UNION SELECT AVG(Writer), Title FROM book WHERE \"Issues\" < 6.0 AND Title = \"The Black Lamb\""} {"question": "Which driver IDs, excluding driver ID 1, are in the driver table but not in the school bus table (excluding driver ID 7)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yn9ab_12.png", "TableImg_G47wk_5.png"], "original_data_index": 236, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 2 from the driver table and driver IDs 7 and above from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ldk6j_12.png", "TableImg_Szetj_5.png"], "original_data_index": 237, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the maximum user ID from reviews where the rank is not 1, the rating is less than 7, or the item ID is less than 4 and the user ID is greater than 2, excluding the maximum user ID from user accounts where the name is not Helen?", "answer": {"columns": ["MAX(u_id)"], "index": [0], "data": [["2"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Bzlt5_7.png", "TableImg_Kqyvq_7.png"], "original_data_index": 238, "original_sql": "SELECT MAX(u_id) FROM review WHERE \"rank\" <> 1 OR \"rating\" < 7 OR \"i_id\" < 4 AND \"u_id\" > 2 EXCEPT SELECT MAX(u_id) FROM useracct WHERE name != \"Helen\""} {"question": "What are the driver IDs greater than 6, combined with the driver IDs from school buses that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Meu7o_12.png", "TableImg_Bx7ey_5.png"], "original_data_index": 239, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 5 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L19km_12.png", "TableImg_Lqxek_5.png"], "original_data_index": 240, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are greater than 7 but not equal to 9, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ggo9c_12.png", "TableImg_Igxqu_5.png"], "original_data_index": 241, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oafqg_12.png", "TableImg_Skced_5.png"], "original_data_index": 242, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are greater than or equal to 9, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rfnh0_12.png", "TableImg_Yxqfr_5.png"], "original_data_index": 243, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the aircraft IDs that are not 5, but are not also aircraft IDs less than 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I5pwk_5.png", "TableImg_6ne2l_4.png"], "original_data_index": 244, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs that are less than 5 from the driver table, combined with the driver IDs that are less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Otbbz_12.png", "TableImg_Ynn9q_5.png"], "original_data_index": 246, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "For companies, what are the maximum market value, average assets, maximum sales, the count of company IDs, the count of headquarters, the count of names, and the minimum profits, grouped by industry? Consider companies where the market value is not 180 or the profits are not 21.5, or the industry is Automotive, or the assets are less than 340.5, the company ID is not 4, and the sales are 102, but exclude industries where the minimum profits are 15.9. Also, include companies where profits are at least 10.3 and the market value is no more than 218, and the industry is not Oil and gas, excluding industries where the average assets are not 1867.55, or the maximum market value is greater than 213.7, and the count of company IDs is at least 1 and the count of names is less than 6, or the count of headquarters is not 1, or the minimum profits are no more than 11.1.", "answer": {"columns": ["Industry", "MAX(Market_Value_in_Billion)", "AVG(Assets_in_Billion)", "MAX(Sales_in_Billion)", "COUNT(Company_ID)", "COUNT(Headquarters)", "COUNT(Name)", "MIN(Profits_in_Billion)"], "index": [0, 1, 2, 3, 4], "data": [["Automotive", "79.5", "328.7", "221.9", "1", "1", "1", "21.5"], ["Banking", "201.9", "1867.55", "110.8", "6", "6", "6", "11.1"], ["Banking", "237.4", "1892.0571428571", "110.8", "7", "7", "7", "11.1"], ["Conglomerate", "213.7", "554.9", "147.3", "2", "2", "2", "10.3"], ["Retailing", "208.4", "193.4", "447.0", "1", "1", "1", "15.7"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_U2kdx_19.png", "TableImg_Dq2bm_19.png"], "original_data_index": 245, "original_sql": "SELECT Industry, MAX(Market_Value_in_Billion), AVG(Assets_in_Billion), MAX(Sales_in_Billion), COUNT(Company_ID), COUNT(Headquarters), COUNT(Name), MIN(Profits_in_Billion) FROM company WHERE \"Market_Value_in_Billion\" <> 180.0 AND \"Profits_in_Billion\" <> 21.5 OR Industry = \"Automotive\" OR \"Assets_in_Billion\" < 340.5 AND \"Company_ID\" <> 4.0 AND \"Sales_in_Billion\" = 102.0 GROUP BY Industry HAVING MIN(Profits_in_Billion) <> 15.9 UNION SELECT Industry, MAX(Market_Value_in_Billion), AVG(Assets_in_Billion), MAX(Sales_in_Billion), COUNT(Company_ID), COUNT(Headquarters), COUNT(Name), MIN(Profits_in_Billion) FROM company WHERE \"Profits_in_Billion\" >= 10.3 AND \"Market_Value_in_Billion\" <= 218.0 AND Industry <> \"Oil and gas\" GROUP BY Industry HAVING AVG(Assets_in_Billion) <> 1867.5500000000002 OR MAX(Market_Value_in_Billion) > 213.7 AND COUNT(Company_ID) >= 1 AND COUNT(Name) < 6 OR COUNT(Headquarters) <> 1 OR MIN(Profits_in_Billion) <= 11.1"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 2 or greater, combined with the aircraft IDs from the airport_aircraft table that have an ID greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ovnj1_5.png", "TableImg_T75i3_4.png"], "original_data_index": 226, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs are less than or equal to 4 but are not driver IDs of any school buses with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Usikf_12.png", "TableImg_Rxg4y_5.png"], "original_data_index": 227, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs greater than 2, and also the driver IDs less than or equal to 4, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ratsq_12.png", "TableImg_O2l78_5.png"], "original_data_index": 248, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs, excluding aircraft ID 2, from the aircraft table, combined with aircraft IDs greater than or equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wicq0_5.png", "TableImg_78k2m_4.png"], "original_data_index": 250, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the driver IDs that are either less than or equal to 12 from the driver table, or greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_You3r_12.png", "TableImg_5kx86_5.png"], "original_data_index": 249, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Give me the other details, the count of template IDs, the maximum document ID, and the document name for documents where the template ID is 25 or the document ID is greater than 801801, the document name isn't \"Learning French\", and the other details are \"None\", combined with the results for documents where the document name isn't \"Palm reading\" or the template ID is 14 or greater.", "answer": {"columns": ["Other_Details", "COUNT(Template_ID)", "MAX(Document_ID)", "Document_Name"], "index": [0, 1], "data": [["", "2", "16514113", "A history of Arts"], ["", "14", "385906526", "About Korea"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Xb85z_15.png", "TableImg_R581y_15.png"], "original_data_index": 247, "original_sql": "SELECT Other_Details, COUNT(Template_ID), MAX(Document_ID), Document_Name FROM Documents WHERE \"Template_ID\" = 25 OR \"Document_ID\" > 801801 AND Document_Name <> \"Learning French\" AND Other_Details = \"None\" UNION SELECT Other_Details, COUNT(Template_ID), MAX(Document_ID), Document_Name FROM Documents WHERE Document_Name != \"Palm reading\" OR \"Template_ID\" >= 14"} {"question": "What are the driver IDs that are either less than or equal to 10 from the driver table, or greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uviop_12.png", "TableImg_1fh94_5.png"], "original_data_index": 251, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 2 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z6c9k_12.png", "TableImg_9uat9_5.png"], "original_data_index": 252, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the IDs of drivers who are either not driver ID 3 in the driver table or not driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_58i0l_12.png", "TableImg_454jb_5.png"], "original_data_index": 254, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are less than or equal to 7, excluding those driver IDs that are not equal to 7 and are found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sn5m2_12.png", "TableImg_I90d4_5.png"], "original_data_index": 253, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 in the driver table and driver IDs less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pfx4i_12.png", "TableImg_9ey61_5.png"], "original_data_index": 255, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that appear in either the driver table with IDs no greater than 2 or the school bus table with IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_99etb_12.png", "TableImg_Liqsb_5.png"], "original_data_index": 256, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are greater than or equal to 5 but not present in the school bus table with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D758w_12.png", "TableImg_0v4gj_5.png"], "original_data_index": 258, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the price, book ID, publication ID, publication date, and publisher for publications that cost less than 3,000,000, are not published by Pearson, have a publication ID other than 1, and a book ID greater than 4, and also for publications that are not published by Springer Nature or were not published in March 2008?", "answer": {"columns": ["Price", "Book_ID", "Publication_ID", "Publication_Date", "Publisher"], "index": [0], "data": [["2000000", "10", "7", "April 2007", "Bertelsmann"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_4isxc_7.png", "TableImg_Gf6d3_7.png"], "original_data_index": 257, "original_sql": "SELECT Price, Book_ID, Publication_ID, Publication_Date, Publisher FROM publication WHERE \"Price\" < 3000000.0 AND Publisher != \"Pearson\" AND \"Publication_ID\" <> 1 AND \"Book_ID\" > 4 INTERSECT SELECT Price, Book_ID, Publication_ID, Publication_Date, Publisher FROM publication WHERE Publisher <> \"Springer Nature\" OR Publication_Date <> \"March 2008\""} {"question": "Which driver IDs are in either the driver table (excluding ID 10) or the school bus table (with IDs less than 7)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yfrmt_12.png", "TableImg_5gbi9_5.png"], "original_data_index": 261, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that are less than or equal to 5, excluding those aircraft IDs greater than 3 that are also present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zdo93_5.png", "TableImg_0x6sc_4.png"], "original_data_index": 260, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the driver IDs, excluding driver ID 5, and also the driver IDs up to and including 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bx40w_12.png", "TableImg_1gbkg_5.png"], "original_data_index": 262, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "How many roles are there and what's the lowest role code, excluding roles that aren't \"ED\" and aren't \"Proof Manager\", combined with the count and lowest code for roles that are \"MG\" or aren't \"Manager\"?", "answer": {"columns": ["COUNT(role_description)", "MIN(role_code)"], "index": [0, 1], "data": [["2", "MG"], ["4", "ED"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Tn1l2_4.png", "TableImg_P41ad_4.png"], "original_data_index": 259, "original_sql": "SELECT COUNT(role_description), MIN(role_code) FROM Roles WHERE role_code != \"ED\" AND role_description != \"Proof Manager\" UNION SELECT COUNT(role_description), MIN(role_code) FROM Roles WHERE role_code = \"MG\" OR role_description <> \"Manager\""} {"question": "What are the IDs of drivers, excluding driver 11, who are also assigned to school buses and have a driver ID greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bcoqk_12.png", "TableImg_Xz5hk_5.png"], "original_data_index": 263, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 5 or greater, but not in the airport_aircraft table with an ID of 3 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nvljs_5.png", "TableImg_Ob583_4.png"], "original_data_index": 266, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are less than or equal to 8 but not present in the school bus table with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A4aus_12.png", "TableImg_5eyzt_5.png"], "original_data_index": 267, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the school IDs of schools that are not in \"75 Starke\" county, have an enrollment of 379 or less, are not in IHSAA Football Class \"AAA\", and are not in IHSAA Class \"A\", combined with the school IDs from the endowment table where the donor name is not \"Com. Dom. En Estados Unidos\", the school ID is not 7, and the donation amount is at least 9.83?", "answer": {"columns": ["School_id"], "index": [0, 1], "data": [["6"], ["2"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_Oqfzc_8.png", "TableImg_Vev60_11.png"], "original_data_index": 265, "original_sql": "SELECT School_id FROM School WHERE County != \"75 Starke\" AND \"Enrollment\" <= 379 AND IHSAA_Football_Class != \"AAA\" AND IHSAA_Class <> \"A\" UNION ALL SELECT School_id FROM endowment WHERE donator_name <> \"Com. Dom. En Estados Unidos\" AND \"School_id\" != 7 AND \"amount\" >= 9.83"} {"question": "What are the aircraft IDs that are not 1, but are not aircraft IDs less than 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ai7uh_5.png", "TableImg_51usn_4.png"], "original_data_index": 268, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the store and district IDs for stores with IDs less than 1, combined with the store and district IDs for stores that don't have an ID of 4?", "answer": {"columns": ["Store_ID", "District_ID"], "index": [0, 1, 2, 3], "data": [["1", "15"], ["2", "15"], ["3", "11"], ["5", "3"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_N2lcb_5.png", "TableImg_U7h7t_5.png"], "original_data_index": 270, "original_sql": "SELECT Store_ID, District_ID FROM store_district WHERE \"Store_ID\" < 1 UNION SELECT Store_ID, District_ID FROM store_district WHERE \"Store_ID\" != 4"} {"question": "What are the driver IDs that are either 6 or greater in the driver table, or 9 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_57dxd_12.png", "TableImg_4m8z6_5.png"], "original_data_index": 271, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are either less than or equal to 10 in the driver table, or greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R7z9q_12.png", "TableImg_Snq5q_5.png"], "original_data_index": 272, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "For students, give me the sum of advisors, city codes, sum of student IDs, maximum major, average age, last names, count of first names, and sexes, either where the major is 600, the city code isn't NYC, the first name is George, or the advisor is less than 8721, or where the student ID is greater than 1015 or the age is 21 or older.", "answer": {"columns": ["SUM(Advisor)", "city_code", "SUM(StuID)", "MAX(Major)", "AVG(Age)", "LName", "COUNT(Fname)", "Sex"], "index": [0, 1], "data": [["182439", "BAL", "33594", "600", "19.5454545455", "Smith", "33", "F"], ["125098", "WAS", "23529", "600", "20.0869565217", "Jones", "23", "F"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Daitq_34.png", "TableImg_Rohwl_34.png"], "original_data_index": 269, "original_sql": "SELECT SUM(Advisor), city_code, SUM(StuID), MAX(Major), AVG(Age), LName, COUNT(Fname), Sex FROM Student WHERE \"Major\" = 600 OR city_code != \"NYC\" OR Fname = \"George\" OR \"Advisor\" < 8721 UNION ALL SELECT SUM(Advisor), city_code, SUM(StuID), MAX(Major), AVG(Age), LName, COUNT(Fname), Sex FROM Student WHERE \"StuID\" > 1015 OR \"Age\" >= 21"} {"question": "Which driver IDs are either 5 or greater than 10, considering both driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wh0bj_12.png", "TableImg_Ar58h_5.png"], "original_data_index": 273, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs that are either less than or equal to 2 in the aircraft table, or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1pc3c_5.png", "TableImg_Ae7d5_4.png"], "original_data_index": 274, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the IDs of pets that are not pet ID 2002, excluding those with pet IDs greater than or equal to 2003 and student IDs greater than 1001?", "answer": {"columns": ["PetID"], "index": [0], "data": [["2001"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Vhy42_3.png", "TableImg_9j2a7_3.png"], "original_data_index": 275, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"PetID\" != 2002 EXCEPT SELECT PetID FROM Has_Pet WHERE \"PetID\" >= 2003 AND \"StuID\" > 1001"} {"question": "What are the driver IDs that are either less than or equal to 8 from the driver table, or not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_81bxe_12.png", "TableImg_C5in2_5.png"], "original_data_index": 276, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the student IDs greater than 1001 who have pets, combined with the student IDs of students whose major is 600 or less, or whose sex is not male?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_G1tgt_3.png", "TableImg_Fpfbw_34.png"], "original_data_index": 277, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" > 1001 UNION SELECT StuID FROM Student WHERE \"Major\" <= 600 OR Sex != \"M\""} {"question": "What are the driver IDs that are less than 5 and also appear in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zgl15_12.png", "TableImg_3tno9_5.png"], "original_data_index": 279, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the aircraft IDs that are present in both the aircraft and airport_aircraft tables, grouped by maximum gross weight, where the description is \"Tandem rotor helicopter\" and the aircraft is not \"CH-47D Chinook\" and the maximum disk loading is not \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" or the airport ID is less than 9?", "answer": {"columns": ["Aircraft_ID -1", "Aircraft_ID -2"], "index": [0, 1, 2], "data": [["1", "1"], ["2", "2"], ["5", "5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N4s7h_5.png", "TableImg_I6pa0_4.png"], "original_data_index": 278, "original_sql": "SELECT T1.Aircraft_ID, T2.Aircraft_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID == T2.Aircraft_ID GROUP BY Max_Gross_Weight HAVING Description = \"Tandem rotor helicopter\" AND Aircraft <> \"CH-47D Chinook\" AND Max_disk_Loading <> \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" OR Airport_ID < 9"} {"question": "What are the building numbers, address IDs, and countries for addresses that are not in West Virginia and also for addresses that are not in Washington, or are in Lake Rafaela, not in zip code 22194, have an address ID less than 14, and are not in the USA?", "answer": {"columns": ["line_1_number_building", "address_id", "country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["00704 Zoe Alley", "3", "USA"], ["053 Quigley Island", "2", "USA"], ["2291 Larkin Ports", "10", "USA"], ["354 Frederik Ridge", "5", "USA"], ["376 Kallie Tunnel Apt. 784", "6", "USA"], ["37698 Hahn Curve Apt. 572", "11", "USA"], ["3904 Stroman Passage", "1", "USA"], ["43235 Jazmin Mountain Suite 251", "13", "USA"], ["4834 Schaefer Light Suite 947", "14", "USA"], ["484 O'Hara Drive", "4", "USA"], ["535 Ariel Brook", "9", "USA"], ["7089 Mueller Forks", "12", "USA"], ["9260 Streich Mountain", "15", "USA"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_7drpl_15.png", "TableImg_G31ba_15.png"], "original_data_index": 280, "original_sql": "SELECT line_1_number_building, address_id, country FROM Addresses WHERE state_province_county <> \"WestVirginia\" INTERSECT SELECT line_1_number_building, address_id, country FROM Addresses WHERE state_province_county <> \"Washington\" OR city = \"Lake Rafaela\" AND zip_postcode != \"22194\" AND \"address_id\" < 14 AND country != \"USA\""} {"question": "Which driver IDs are less than or equal to 1, but not greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U3vgn_12.png", "TableImg_644n4_5.png"], "original_data_index": 281, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are either 11 or greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8825x_12.png", "TableImg_5lnr6_5.png"], "original_data_index": 283, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the aircraft IDs that are not 2 and also appear in the airport aircraft table with IDs less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zxps7_5.png", "TableImg_Uryjw_4.png"], "original_data_index": 282, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the driver IDs that are less than 6, and also the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1j71t_12.png", "TableImg_Xgmyw_5.png"], "original_data_index": 285, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are either less than or equal to 10 from the driver table, or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wik00_12.png", "TableImg_Efoce_5.png"], "original_data_index": 284, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs that are either less than or equal to 9 from the driver table or not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4cdmw_12.png", "TableImg_5ficb_5.png"], "original_data_index": 286, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the gold values for matches where Small_Silver is not 4, Points is not 89, and Big_Silver is greater than 7 and Gold is less than or equal to 5, or where Rank is 1 and Club_ID is at least 1? Also, what are the gold values for matches where Rank is less than or equal to 4, or where Small_Silver is not 10 and Big_Silver is greater than 9?", "answer": {"columns": ["Gold"], "index": [0, 1, 2, 3], "data": [["5"], ["12"], ["13"], ["20"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Wplsk_6.png", "TableImg_4diou_6.png"], "original_data_index": 287, "original_sql": "SELECT Gold FROM match_result WHERE \"Small_Silver\" <> 4 AND \"Points\" <> 89 AND \"Big_Silver\" > 7 AND \"Gold\" <= 5 OR \"Rank\" = 1 AND \"Club_ID\" >= 1 UNION SELECT Gold FROM match_result WHERE \"Rank\" <= 4 OR \"Small_Silver\" <> 10 AND \"Big_Silver\" > 9"} {"question": "What are the driver IDs that are both greater than or equal to 1 and less than or equal to 10, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_19wf4_12.png", "TableImg_Mmeud_5.png"], "original_data_index": 288, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are equal to 12 but not greater than 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fd7ta_12.png", "TableImg_Hmad0_5.png"], "original_data_index": 290, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs greater than 3 that are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J13ss_5.png", "TableImg_Guc9g_4.png"], "original_data_index": 289, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What states are in the AREA_CODE_STATE table but not in area code 724 or Florida, and also what states in the VOTES table have NY as the state and contestant number 5, but not phone number 5112677315, or a creation time other than \"2018-03-09 19:03:21\", or a vote ID that is not 3?", "answer": {"columns": ["state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288], "data": [["NJ"], ["DC"], ["CT"], ["AL"], ["WA"], ["ME"], ["ID"], ["CA"], ["TX"], ["NY"], ["CA"], ["TX"], ["PA"], ["OH"], ["IL"], ["MN"], ["IN"], ["IL"], ["LA"], ["MS"], ["GA"], ["MI"], ["OH"], ["VA"], ["MD"], ["MI"], ["AL"], ["NC"], ["WA"], ["TX"], ["AL"], ["IN"], ["WI"], ["PA"], ["MI"], ["KY"], ["VA"], ["MI"], ["TX"], ["OH"], ["MD"], ["DE"], ["CO"], ["WV"], ["WY"], ["NE"], ["IL"], ["CA"], ["IL"], ["MI"], ["MO"], ["NY"], ["KS"], ["IN"], ["LA"], ["IA"], ["MN"], ["CA"], ["TX"], ["OH"], ["IL"], ["AL"], ["NC"], ["LA"], ["MA"], ["CA"], ["NY"], ["MA"], ["WA"], ["TX"], ["CA"], ["OH"], ["UT"], ["RI"], ["NE"], ["GA"], ["OK"], ["MT"], ["CA"], ["TX"], ["MD"], ["PA"], ["MA"], ["WI"], ["CA"], ["MO"], ["OH"], ["TN"], ["CA"], ["WA"], ["TX"], ["TX"], ["VA"], ["UT"], ["OH"], ["CA"], ["MD"], ["IL"], ["TX"], ["GA"], ["CT"], ["GA"], ["AR"], ["AZ"], ["PA"], ["AR"], ["KY"], ["OR"], ["LA"], ["NM"], ["MN"], ["MA"], ["WA"], ["CA"], ["TX"], ["OH"], ["IA"], ["NY"], ["MI"], ["NY"], ["AZ"], ["CA"], ["VA"], ["OR"], ["NJ"], ["MO"], ["CA"], ["CA"], ["IA"], ["WA"], ["OH"], ["PA"], ["VA"], ["MO"], ["IN"], ["NM"], ["OK"], ["NY"], ["MI"], ["MS"], ["AZ"], ["NH"], ["SD"], ["KY"], ["NY"], ["WI"], ["NJ"], ["PA"], ["MN"], ["OH"], ["TN"], ["MI"], ["MA"], ["IL"], ["CA"], ["KS"], ["AZ"], ["CA"], ["CA"], ["CA"], ["IL"], ["NY"], ["MO"], ["IA"], ["NY"], ["CA"], ["MN"], ["MO"], ["CA"], ["MS"], ["CA"], ["GA"], ["MI"], ["TX"], ["ND"], ["NV"], ["VA"], ["NC"], ["GA"], ["CA"], ["IL"], ["IA"], ["TX"], ["CA"], ["WI"], ["NY"], ["PA"], ["NY"], ["CO"], ["CO"], ["TN"], ["NJ"], ["MI"], ["TX"], ["OH"], ["CA"], ["VA"], ["CA"], ["GA"], ["MN"], ["CA"], ["IN"], ["MS"], ["GA"], ["IL"], ["MA"], ["NV"], ["IL"], ["MA"], ["KS"], ["UT"], ["VT"], ["SC"], ["VA"], ["CA"], ["TX"], ["HI"], ["MI"], ["IN"], ["PA"], ["IL"], ["MO"], ["TX"], ["CA"], ["NC"], ["TX"], ["CA"], ["TX"], ["PA"], ["SC"], ["NY"], ["IL"], ["NJ"], ["NJ"], ["MA"], ["CA"], ["KY"], ["CT"], ["NJ"], ["SC"], ["TN"], ["AR"], ["IL"], ["PA"], ["TN"], ["TX"], ["MI"], ["AK"], ["NJ"], ["CA"], ["NC"], ["GA"], ["KS"], ["NY"], ["TX"], ["CA"], ["NY"], ["OK"], ["NC"], ["WI"], ["CA"], ["AZ"], ["TN"], ["CA"], ["TX"], ["OH"], ["TX"], ["MI"], ["CA"], ["CA"], ["MN"], ["TX"], ["NM"], ["CT"], ["CO"], ["OR"], ["TX"], ["NJ"], ["MO"], ["MA"], ["TX"], ["NC"], ["NC"], ["LA"], ["MI"], ["NY"], ["NY"], ["CA"], ["NJ\n"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_5ffzd_305.png", "TableImg_Dhl51_4.png"], "original_data_index": 291, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE \"area_code\" != 724 AND state <> \"FL\" UNION ALL SELECT state FROM VOTES WHERE state = \"NY\" AND \"contestant_number\" = 5 AND \"phone_number\" != 5112677315 OR created != \"2018-03-09 19:03:21\" OR \"vote_id\" <> 3"} {"question": "What are the album IDs that are less than or equal to 136, and also the IDs of the \"Metal\" genre?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Ebj1l_347.png", "TableImg_Pcnnm_25.png"], "original_data_index": 292, "original_sql": "SELECT id FROM albums WHERE \"id\" <= 136 UNION ALL SELECT id FROM genres WHERE \"id\" = 11 AND name = \"Metal\""} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs from school buses that are 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cvzi2_12.png", "TableImg_X7m93_5.png"], "original_data_index": 294, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs, excluding driver ID 2, and also the driver IDs less than 3, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aikvg_12.png", "TableImg_Ksc3k_5.png"], "original_data_index": 295, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "How many companies have a market value less than or equal to 213.7 billion, or are named \"Industrial and Commercial Bank of China\", or have profits not equal to 20.1 billion and are not in the \"Conglomerate\" industry, or have assets of 1563.9 billion and have been working for a year or less, or have a people ID greater than 3, or have sales of 447.0 billion, or have headquarters not in China? Group these companies by their profits and show the count and people ID, but only include groups where sales are greater than or equal to 433.5 billion, or the year worked is greater than or equal to 1 and profits are greater than 21.5 billion, or the people ID is less than 4.", "answer": {"columns": ["COUNT(T1.Market_Value_in_Billion)", "People_ID"], "index": [0, 1, 2], "data": [["1", "2"], ["1", "3"], ["1", "1"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Lwvmv_19.png", "TableImg_37una_5.png"], "original_data_index": 293, "original_sql": "SELECT COUNT(T1.Market_Value_in_Billion), T2.People_ID FROM company as T1 JOIN employment as T2 ON T1.Company_ID = T2.Company_ID WHERE \"Market_Value_in_Billion\" <= 213.7 OR Name = \"Industrial and Commercial Bank of China\" OR \"Profits_in_Billion\" <> 20.1 AND Industry <> \"Conglomerate\" OR \"Assets_in_Billion\" = 1563.9 AND \"Year_working\" <= 1 OR \"People_ID\" > 3 OR \"Sales_in_Billion\" = 447.0 OR Headquarters <> \"China\" GROUP BY Profits_in_Billion HAVING Sales_in_Billion >= 433.5 OR Year_working >= 1 AND Profits_in_Billion > 21.5 OR People_ID < 4"} {"question": "What are the driver IDs that are less than or equal to 9, excluding those driver IDs that are not equal to 9, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nc6u3_12.png", "TableImg_94j7l_5.png"], "original_data_index": 296, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are either 6 or greater than or equal to 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lc8np_12.png", "TableImg_Gnxiw_5.png"], "original_data_index": 297, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are greater than 9, excluding those driver IDs equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ai8fd_12.png", "TableImg_Gbhjb_5.png"], "original_data_index": 298, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs, excluding driver ID 5, and also driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_889ay_12.png", "TableImg_C90fd_5.png"], "original_data_index": 300, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the aircraft IDs that are less than or equal to 1, but not equal to 3, considering only the aircraft IDs present in the aircraft table and excluding those in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F9ylu_5.png", "TableImg_Wtq6z_4.png"], "original_data_index": 299, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which branch IDs meet either of the following criteria: their membership amount is 7, or their opening year is not 2009 and their ID is greater than 6, or their name is not Alexandre and their city is not London; and also include all branch IDs from the membership register except for branch ID 1?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["6"], ["7"], ["8"], ["4"], ["5"], ["6"], ["2"], ["8"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_2zrfb_8.png", "TableImg_Goh6h_8.png"], "original_data_index": 301, "original_sql": "SELECT Branch_ID FROM branch WHERE membership_amount = \"7\" OR Open_year <> \"2009\" AND \"Branch_ID\" > 6 OR Name <> \"Alexandre\" AND City != \"London\" UNION ALL SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID <> \"1\""} {"question": "What are the driver IDs, excluding driver ID 4, and also any driver IDs greater than 7, from either the driver or school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nmpf3_12.png", "TableImg_Htpg2_5.png"], "original_data_index": 302, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are either less than or equal to 10 in the driver table, or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tlks5_12.png", "TableImg_0fa6e_5.png"], "original_data_index": 303, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Show me the name, ID, age, and city of employees who are not named Tim Payne and are at least 30 years old, excluding those named Steve Borthwick who are 40 or younger, have an ID less than 3, and don't live in Wasps.", "answer": {"columns": ["Name", "Employee_ID", "Age", "City"], "index": [0, 1, 2, 3, 4], "data": [["Jason Hobson", "4", "30", "Bristol"], ["Louis Deacon", "10", "36", "Leicester"], ["Mark Regan", "3", "43", "Bristol"], ["Phil Vickery", "8", "40", "Wasps"], ["Steve Borthwick", "9", "32", "Bath"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_V930j_10.png", "TableImg_Wg3ys_10.png"], "original_data_index": 304, "original_sql": "SELECT Name, Employee_ID, Age, City FROM employee WHERE Name <> \"Tim Payne\" AND \"Age\" >= 30 EXCEPT SELECT Name, Employee_ID, Age, City FROM employee WHERE Name = \"Steve Borthwick\" AND \"Age\" <= 40 AND \"Employee_ID\" < 3 AND City <> \"Wasps\""} {"question": "What are the driver IDs that are both less than 10 in the driver table and equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mxlue_12.png", "TableImg_Xvrj2_5.png"], "original_data_index": 305, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs, excluding driver ID 2, and also the driver IDs less than 9, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vt985_12.png", "TableImg_Vzar0_5.png"], "original_data_index": 306, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs, excluding driver ID 7, that are present in both the driver and school bus tables, where the school bus driver IDs are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Glr37_12.png", "TableImg_J2lek_5.png"], "original_data_index": 308, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the template IDs and version numbers for templates where the effective date is not June 5, 2003, or the version number is 7 and the template ID is 15? Also, what are the template IDs and version numbers for templates where the template type code is not BK or the template details are empty? Combine both sets of results.", "answer": {"columns": ["Template_ID", "Version_Number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38], "data": [["0", "5"], ["1", "9"], ["4", "4"], ["6", "2"], ["7", "8"], ["8", "3"], ["9", "2"], ["11", "6"], ["14", "7"], ["15", "9"], ["16", "5"], ["18", "5"], ["19", "7"], ["20", "6"], ["21", "9"], ["22", "0"], ["23", "2"], ["24", "8"], ["25", "5"], ["0", "5"], ["1", "9"], ["4", "4"], ["6", "2"], ["7", "8"], ["8", "3"], ["9", "2"], ["10", "1"], ["11", "6"], ["14", "7"], ["15", "9"], ["16", "5"], ["18", "5"], ["19", "7"], ["20", "6"], ["21", "9"], ["22", "0"], ["23", "2"], ["24", "8"], ["25", "5"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_O9rzc_20.png", "TableImg_Q4q7o_20.png"], "original_data_index": 307, "original_sql": "SELECT Template_ID, Version_Number FROM Templates WHERE Date_Effective_From != \"2003-06-05 04:03:45\" OR \"Version_Number\" = 7 AND \"Template_ID\" = 15 UNION ALL SELECT Template_ID, Version_Number FROM Templates WHERE Template_Type_Code != \"BK\" OR Template_Details = \"\""} {"question": "Which driver IDs are less than or equal to 8, or which driver IDs are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dxjs2_12.png", "TableImg_Qiqwb_5.png"], "original_data_index": 311, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 3 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pb6hl_12.png", "TableImg_Si10y_5.png"], "original_data_index": 310, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are not equal to 4 and are not present in the school bus table with driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gh1po_12.png", "TableImg_68w06_5.png"], "original_data_index": 312, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the document status codes for documents that are not shipped by FE and have other details marked as \"y\", or are of type \"Paper\" and not marked as \"done\"? Also, include the document status code \"done\" from the document status reference table.", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2, 3], "data": [["overdue"], ["working"], ["working"], ["done"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_0jnr1_15.png", "TableImg_82zj8_3.png"], "original_data_index": 309, "original_sql": "SELECT document_status_code FROM Documents WHERE shipping_agent_code <> \"FE\" AND other_details = \"y\" OR document_type_code = \"Paper\" AND document_status_code != \"done\" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code = \"done\""} {"question": "Which driver IDs are less than or equal to 4, but not equal to 3, and are present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5l0e1_12.png", "TableImg_5m1ug_5.png"], "original_data_index": 315, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are greater than or equal to 6, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V3ogs_12.png", "TableImg_U1di4_5.png"], "original_data_index": 314, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs greater than 2, and also any driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ydifi_12.png", "TableImg_Sccai_5.png"], "original_data_index": 313, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs, excluding driver 4, are in the driver table but not in the school bus table, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ozfav_12.png", "TableImg_Z3f1r_5.png"], "original_data_index": 317, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Show me the lesson details (status, ID, customer, price, time, staff, vehicle, and date) for lessons that were either cancelled and not at time 2 or had a staff ID greater than 8 or a lesson ID not equal to 2, combined with lessons that had a staff ID of 15 or more, or a lesson time of 9, or a lesson ID of 11 or more, or a status not completed, or a date of March 4, 2018, at 6:55:46, or a vehicle ID of 3 or more, or a price less than 184 and a customer ID greater than 9.", "answer": {"columns": ["lesson_status_code", "lesson_id", "customer_id", "price", "lesson_time", "staff_id", "vehicle_id", "lesson_date"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Cancelled", "1", "6", "199", "5", "8", "3", "2018-02-28 10:55:36"], ["Cancelled", "2", "8", "167", "6", "14", "3", "2018-03-07 16:12:36"], ["Cancelled", "3", "6", "352", "3", "11", "2", "2018-03-03 15:10:16"], ["Cancelled", "7", "9", "231", "9", "11", "1", "2018-03-08 16:05:05"], ["Cancelled", "10", "2", "495", "4", "5", "2", "2018-02-26 02:36:35"], ["Cancelled", "11", "10", "223", "2", "15", "1", "2018-03-04 06:55:46"], ["Cancelled", "12", "11", "184", "2", "12", "2", "2018-03-16 07:08:52"], ["Cancelled", "14", "11", "483", "5", "11", "1", "2018-03-07 11:53:32"], ["Cancelled", "15", "3", "340", "9", "8", "1", "2018-03-06 21:48:51"], ["Completed", "4", "8", "306", "9", "1", "2", "2018-03-17 19:02:07"], ["Completed", "5", "10", "295", "9", "3", "2", "2018-03-12 00:41:59"], ["Completed", "6", "5", "492", "6", "4", "2", "2018-03-07 22:03:49"], ["Completed", "8", "3", "277", "2", "8", "2", "2018-03-21 06:48:45"], ["Completed", "9", "2", "456", "9", "4", "2", "2018-03-05 20:05:33"], ["Completed", "13", "13", "446", "5", "12", "1", "2018-03-05 18:05:31"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_A3idz_15.png", "TableImg_Hm2hj_15.png"], "original_data_index": 316, "original_sql": "SELECT lesson_status_code, lesson_id, customer_id, price, lesson_time, staff_id, vehicle_id, lesson_date FROM Lessons WHERE lesson_status_code = \"Cancelled\" AND lesson_time != \"2\" OR \"staff_id\" > 8 OR \"lesson_id\" <> 2 UNION SELECT lesson_status_code, lesson_id, customer_id, price, lesson_time, staff_id, vehicle_id, lesson_date FROM Lessons WHERE \"staff_id\" >= 15 OR lesson_time = \"9\" AND \"lesson_id\" >= 11 OR lesson_status_code != \"Completed\" OR lesson_date = \"2018-03-04 06:55:46\" OR \"vehicle_id\" >= 3 OR \"price\" < 184.0 AND \"customer_id\" > 9"} {"question": "Which driver IDs are not equal to 9, and which driver IDs are greater than or equal to 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ardt2_12.png", "TableImg_5x28l_5.png"], "original_data_index": 319, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are both 4 or greater and also less than 9, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bi96g_12.png", "TableImg_Flspp_5.png"], "original_data_index": 318, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are both greater than or equal to 10 in the driver table and less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xlbyd_12.png", "TableImg_Mq4z0_5.png"], "original_data_index": 320, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What is the average rank and club ID for coaches where the rank is 5, the club ID is less than or equal to 1, or the coach name is not Smith Brown, combined with the average rank and club ID from match results where Big_Silver is less than or equal to 11 and Bronze is not 8?", "answer": {"columns": ["AVG(Rank)", "Club_ID"], "index": [0, 1], "data": [["3", "1"], ["4", "2"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Gaq1s_5.png", "TableImg_Deoy6_6.png"], "original_data_index": 321, "original_sql": "SELECT AVG(Rank), Club_ID FROM coach WHERE \"Rank\" = 5 OR \"Club_ID\" <= 1 OR Coach_name <> \"Smith Brown\" UNION SELECT AVG(Rank), Club_ID FROM match_result WHERE \"Big_Silver\" <= 11 AND \"Bronze\" <> 8"} {"question": "What are the driver IDs that are greater than or equal to 2, or the driver IDs that are less than 7, considering both the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0hpy3_12.png", "TableImg_T83nx_5.png"], "original_data_index": 322, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the sum of car IDs and the horsepower, grouped by car maker, for cars with more than 4 cylinders and horsepower not equal to 105 or acceleration greater than or equal to 18.0, further filtered to include only those with fewer than 6 cylinders and a year after 1970 or a country not equal to 1 or MPG not equal to 16 and engine displacement greater than 140.0 or a maker not equal to opel and a weight of 2904?", "answer": {"columns": ["SUM(T1.Id)", "Horsepower"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1", "130"], ["3", "150"], ["6", "198"], ["7", "220"], ["13", "153"], ["9", "225"], ["5", "140"], ["23", "97"], ["22", "95"], ["12", "165"], ["8", "215"], ["14", "175"], ["15", "175"], ["16", "170"], ["17", "160"], ["18", "140"], ["19", "150"], ["20", "225"], ["2", "165"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Tipge_22.png", "TableImg_Rtniy_406.png"], "original_data_index": 323, "original_sql": "SELECT SUM(T1.Id), T2.Horsepower FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE \"Cylinders\" > 4 AND Horsepower <> \"105\" OR \"Accelerate\" >= 18.0 GROUP BY FullName HAVING Cylinders < 6 AND Year > 1970 OR Country <> \"1\" OR MPG <> \"16\" AND Edispl > 140.0 OR Maker <> \"opel\" AND Weight = 2904"} {"question": "What are the driver IDs that are either greater than or equal to 6 from the driver table, or not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y82z8_12.png", "TableImg_6sizb_5.png"], "original_data_index": 325, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which branch IDs meet at least one of these conditions: the branch ID is 7 or greater, the branch name is Taverner, the opening year is not 2014 and the address road is not Abbey Rise, or the branch ID is 6?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["6"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Iovzq_8.png", "TableImg_5ack4_8.png"], "original_data_index": 324, "original_sql": "SELECT Branch_ID FROM branch WHERE \"Branch_ID\" >= 7 OR Name = \"Taverner\" OR Open_year <> \"2014\" AND Address_road != \"Abbey Rise\" UNION SELECT Branch_ID FROM purchase WHERE Branch_ID = \"6\""} {"question": "What are the aircraft IDs that are both aircraft ID 2 and not aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3nuol_5.png", "TableImg_8181b_4.png"], "original_data_index": 326, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the aircraft IDs that are not 4, but are not present in the airport aircraft table with IDs less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X1c6w_5.png", "TableImg_1lbvr_4.png"], "original_data_index": 327, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs that are both equal to 9 in the driver table and not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D9xib_12.png", "TableImg_Qsivw_5.png"], "original_data_index": 329, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the school IDs of schools with ID \"1\" that are not associated with endowments where the endowment ID is not 1, or the school ID is 8 or greater, the donor is \"Com. Dom. En Estados Unidos\", and the amount is greater than 8.43?", "answer": {"columns": ["School_id"], "index": [0], "data": [["1"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_12s6d_8.png", "TableImg_Zn2i1_11.png"], "original_data_index": 328, "original_sql": "SELECT School_id FROM School WHERE School_id = \"1\" EXCEPT SELECT School_id FROM endowment WHERE \"endowment_id\" != 1 OR \"School_id\" >= 8 AND donator_name = \"Com. Dom. En Estados Unidos\" AND \"amount\" > 8.43"} {"question": "What is the average of the airport names that are \"Bergen Airport\" in Brussels or have IATA code \"BGO\" and not ICAO code \"KBOS\" or are in the United States and have an ID other than 4, intersecting with the average of operate company names that are not \"Cathay Pacific Cargo\"?", "answer": {"columns": ["AVG(name)"], "index": [0], "data": [["0"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Ncoi1_9.png", "TableImg_Qi2rs_14.png"], "original_data_index": 330, "original_sql": "SELECT AVG(name) FROM airport WHERE name = \"Bergen Airport\" AND City = \"Brussels\" OR ICAO != \"KBOS\" AND IATA = \"BGO\" OR Country = \"United States\" AND \"id\" <> 4 INTERSECT SELECT AVG(name) FROM operate_company WHERE name != \"Cathay Pacific Cargo\""} {"question": "What are the aircraft IDs that are either greater than or equal to 3 in the aircraft table, or not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X6zhq_5.png", "TableImg_7v8wg_4.png"], "original_data_index": 331, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs, that are at least 5, are in the driver table but not in the school bus table where driver IDs are at least 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P18h7_12.png", "TableImg_Du85v_5.png"], "original_data_index": 332, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are both greater than or equal to 6 and present in the driver table, and also less than 10 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_49bem_12.png", "TableImg_Llvrm_5.png"], "original_data_index": 162, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What is the sum of document IDs from document drafts where the ID is 20 or greater and the draft details are not \"m\", combined with the sum of document IDs from documents where the other details are not \"w\" and either the document status is not \"done\" or the receipt date is not \"2015-04-03 09:36:19\" and the shipping agent code is \"FE\"?", "answer": {"columns": ["SUM(document_id)"], "index": [0, 1], "data": [["43"], ["174"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Twm2j_15.png", "TableImg_03uw3_15.png"], "original_data_index": 333, "original_sql": "SELECT SUM(document_id) FROM Document_Drafts WHERE \"document_id\" >= 20 AND draft_details != \"m\" UNION SELECT SUM(document_id) FROM Documents WHERE other_details <> \"w\" AND document_status_code != \"done\" OR receipt_date <> \"2015-04-03 09:36:19\" AND shipping_agent_code = \"FE\""} {"question": "Which aircraft IDs, excluding aircraft ID 5, are also aircraft ID 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yknaj_5.png", "TableImg_Bcy88_4.png"], "original_data_index": 334, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me the driver IDs that appear exactly once in the driver table, specifically driver ID 1, but are not driver IDs less than or equal to 3 that appear exactly once in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0urd4_12.png", "TableImg_Jgk3m_5.png"], "original_data_index": 335, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and any driver IDs greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_64hp6_12.png", "TableImg_48ger_5.png"], "original_data_index": 336, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of aircraft IDs that are greater than 4 and also not equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_679tl_5.png", "TableImg_Lx7qz_4.png"], "original_data_index": 338, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What is the smallest store ID that satisfies either an area size of 7.23 or less, a ranking of 9 or less and a store ID greater than 1, or a number of product categories not equal to 793, and also has a product ID that is not 1 and a store ID that is not 5?", "answer": {"columns": ["MIN(Store_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_Qasz8_5.png", "TableImg_7vfke_15.png"], "original_data_index": 337, "original_sql": "SELECT MIN(Store_ID) FROM store WHERE \"Area_size\" <= 7.23 OR \"Ranking\" <= 9 AND \"Store_ID\" > 1 OR \"Number_of_product_category\" <> 793.0 INTERSECT SELECT MIN(Store_ID) FROM store_product WHERE \"Product_ID\" != 1 AND \"Store_ID\" != 5"} {"question": "Can you give me a list of driver IDs that are 12 or greater, excluding those driver IDs that are greater than 3 and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zih90_12.png", "TableImg_Gjfcg_5.png"], "original_data_index": 264, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 8, combined with a list of driver IDs from the school_bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U17nl_12.png", "TableImg_Xn824_5.png"], "original_data_index": 174, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 2, and those from the school_bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_409jb_12.png", "TableImg_5zgp7_5.png"], "original_data_index": 339, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me the draft numbers from the circulation history where the draft number is 17 or higher, or the employee ID is not 2 and the document ID is 20, or the copy number is not 10, but excluding any draft numbers from the document drafts that have draft details of \"e\" or a draft number of 14?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["17"], ["20"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_4akri_4.png", "TableImg_1o2t9_15.png"], "original_data_index": 340, "original_sql": "SELECT draft_number FROM Circulation_History WHERE \"draft_number\" >= 17 OR \"employee_id\" <> 2 AND \"document_id\" = 20 OR \"copy_number\" != 10 EXCEPT SELECT draft_number FROM Document_Drafts WHERE draft_details = \"e\" OR \"draft_number\" = 14"} {"question": "Can you give me a list of branch names from branches that either don't have a membership amount of 11 and aren't in London, or don't have the name Taverner, or have a Branch ID of 8 or greater, or aren't on Oaks Crescent, combined with a list of member names that are David Jones, or are not from Columbia, South Carolina and don't have a card number of MLB4, or don't have a Member ID of 10?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["Alexandre"], ["Braxton Kelley"], ["Brooke Greville"], ["Cochrane"], ["Corey Peters"], ["David Jones"], ["Jeremy Jarmon"], ["Johnny Williams"], ["Matt Lentz"], ["Micah Johnson"], ["Myron Pryor"], ["Popert"], ["Saint Amant"], ["Stanley"], ["Taverner"], ["Trevard Lindley"], ["Ventrell Jenkins"], ["Zytogorski"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_Fe1xi_8.png", "TableImg_861a8_10.png"], "original_data_index": 341, "original_sql": "SELECT Name FROM branch WHERE membership_amount <> \"11\" AND City != \"London\" OR Name != \"Taverner\" OR \"Branch_ID\" >= 8 OR Address_road <> \"Oaks Crescent\" UNION SELECT Name FROM member WHERE Name = \"David Jones\" OR Hometown <> \"Columbia, South Carolina\" AND Card_Number <> \"MLB4\" OR \"Member_ID\" != 10"} {"question": "Can you give me a list of driver IDs, including those that are not equal to 2 from the driver table, and those that are equal to 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tpvcu_12.png", "TableImg_Nfo7z_5.png"], "original_data_index": 342, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including driver ID 5 from the driver table, and any driver IDs greater than or equal to 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["5"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eijgf_12.png", "TableImg_Qefhe_5.png"], "original_data_index": 343, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the driver IDs that are less than or equal to 4 from the driver table, and also include driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3l70v_12.png", "TableImg_C5e6j_5.png"], "original_data_index": 344, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, excluding driver ID 7, are in the driver table but not in the school_bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W8s6n_12.png", "TableImg_0ve2f_5.png"], "original_data_index": 347, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hm81x_12.png", "TableImg_75txo_5.png"], "original_data_index": 348, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of country IDs, including those from countries that are not on continent 1 or that have a country ID other than 5 and aren't named \"italy\", along with those from countries that are on continent 1 and have a country ID other than 14?", "answer": {"columns": ["CountryId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["1"], ["15"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_Lsjzu_15.png", "TableImg_Svmb3_15.png"], "original_data_index": 345, "original_sql": "SELECT CountryId FROM countries WHERE \"Continent\" <> 1 OR \"CountryId\" != 5 AND CountryName <> \"italy\" UNION ALL SELECT CountryId FROM countries WHERE \"Continent\" = 1 AND \"CountryId\" <> 14"} {"question": "Can you give me the airport ID, pilot, and ID from the flight table, combining two sets of results: the first set includes flights where the company ID is less than or equal to 9, or the airport ID is less than 9, or the flight number is \"M2-F1 #64\" and the pilot is \"Thompson\", or the ID is less than 12, the date is March 1, 1963, and the velocity is less than 240; and the second set includes flights where the altitude is less than or equal to 3650.0 and the date is July 16, 1965, or the ID is not equal to 10 and the company ID is not equal to 7, or the airport ID is greater than or equal to 4?", "answer": {"columns": ["airport_id", "Pilot", "id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["1", "Thompson", "1"], ["2", "Thompson", "2"], ["2", "Thompson", "3"], ["3", "Thompson", "4"], ["4", "Thompson", "5"], ["4", "Thompson", "6"], ["5", "Peterson", "7"], ["2", "Peterson", "8"], ["6", "Thompson", "9"], ["9", "Thompson", "10"], ["4", "Thompson", "11"], ["6", "Thompson", "12"], ["8", "Peterson", "13"], ["1", "Thompson", "1"], ["2", "Thompson", "2"], ["2", "Thompson", "3"], ["3", "Thompson", "4"], ["4", "Thompson", "5"], ["4", "Thompson", "6"], ["5", "Peterson", "7"], ["2", "Peterson", "8"], ["6", "Thompson", "9"], ["9", "Thompson", "10"], ["4", "Thompson", "11"], ["6", "Thompson", "12"], ["8", "Peterson", "13"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Jh0bz_13.png", "TableImg_T4xum_13.png"], "original_data_index": 346, "original_sql": "SELECT airport_id, Pilot, id FROM flight WHERE \"company_id\" <= 9 OR \"airport_id\" < 9 OR Vehicle_Flight_number = \"M2-F1 #64\" AND Pilot = \"Thompson\" OR \"id\" < 12 AND Date = \"March 1, 1963\" AND \"Velocity\" < 240.0 UNION ALL SELECT airport_id, Pilot, id FROM flight WHERE \"Altitude\" <= 3650.0 AND Date = \"July 16, 1965\" OR \"id\" != 10 AND \"company_id\" <> 7 OR \"airport_id\" >= 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver ID 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1a56f_12.png", "TableImg_L4pu9_5.png"], "original_data_index": 349, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs that are not 10 and are also greater than 7, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xq299_12.png", "TableImg_G46uz_5.png"], "original_data_index": 350, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those with the ID 5 from the driver table, and those with IDs up to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jktzz_12.png", "TableImg_4q4p6_5.png"], "original_data_index": 351, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are both not equal to 5 and less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0dyyv_12.png", "TableImg_8ww21_5.png"], "original_data_index": 352, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the address details and IDs from the Addresses table that are not in the US and have an ID of 6 or less, but also are not in Italy and don't have an ID of 8?", "answer": {"columns": ["address_details", "address_id"], "index": [0, 1, 2, 3, 4], "data": [["DE", "2"], ["ES", "3"], ["ES", "4"], ["IE", "5"], ["MX", "1"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_6x5wb_10.png", "TableImg_Kofjy_10.png"], "original_data_index": 353, "original_sql": "SELECT address_details, address_id FROM Addresses WHERE address_details <> \"US\" AND \"address_id\" <= 6 INTERSECT SELECT address_details, address_id FROM Addresses WHERE address_details <> \"IT\" AND \"address_id\" != 8"} {"question": "Could you give me the birth dates that appear in both of the following groups: people with an ID greater than 3 and a name that isn't \"Roman Bragin\", and people with a height that isn't 196 cm, or a name that is \"Semen Poltavskiy\" and an ID of 6 or greater, or a nationality that isn't \"Russia\", or a birth date of \"August 8, 1986\"?", "answer": {"columns": ["Birth_Date"], "index": [0, 1, 2, 3], "data": [["August 8, 1986"], ["February 8, 1981"], ["January 22, 1987"], ["July 14, 1983"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Fhz4e_7.png", "TableImg_Y4nyw_7.png"], "original_data_index": 354, "original_sql": "SELECT Birth_Date FROM people WHERE \"People_ID\" > 3 AND Name != \"Roman Bragin\" INTERSECT SELECT Birth_Date FROM people WHERE \"Height\" != 196.0 OR Name = \"Semen Poltavskiy\" AND \"People_ID\" >= 6 OR Nationality != \"Russia\" OR Birth_Date = \"August 8, 1986\""} {"question": "Can you give me a list of aircraft IDs that are less than 3 when looking at the aircraft table, but also not equal to 2 when looking at the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_26v0t_5.png", "TableImg_85dey_4.png"], "original_data_index": 355, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Could you list the aircraft IDs, excluding aircraft ID 5, that appear in the aircraft table but not in the airport_aircraft table, also excluding aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z1blj_5.png", "TableImg_Vjtiw_4.png"], "original_data_index": 356, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which aircraft IDs are both greater than or equal to 2 and present with an ID of 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Noqxa_5.png", "TableImg_781mb_4.png"], "original_data_index": 358, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs that are greater than 2, and also include driver IDs from the school bus list that are 10 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zt321_12.png", "TableImg_L1jc3_5.png"], "original_data_index": 357, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "How many Boeing 767-400ER aircraft with a distance greater than 4103 have certificate ID 90873519, and what is that certificate ID?", "answer": {"columns": ["COUNT(T1.aid)", "eid"], "index": [0], "data": [["0", ""]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Jf4np_16.png", "TableImg_Mor74_69.png"], "original_data_index": 359, "original_sql": "SELECT COUNT(T1.aid), T2.eid FROM aircraft as T1 JOIN certificate as T2 ON T1.aid = T2.aid WHERE \"distance\" > 4103 AND \"eid\" = 90873519 AND name = \"Boeing 767-400ER\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 4 and not equal to 9, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Br7qc_12.png", "TableImg_Pbfd5_5.png"], "original_data_index": 361, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_En9o4_12.png", "TableImg_0zwnk_5.png"], "original_data_index": 360, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table and any driver IDs greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rs7m3_12.png", "TableImg_Dsrpa_5.png"], "original_data_index": 364, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Could you list all the Model IDs from the model list where the Model ID is less than 13, and also list all the Model IDs from the model list where the Maker is greater than 4?", "answer": {"columns": ["ModelId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["22"], ["23"], ["24"], ["26"], ["27"], ["28"], ["29"], ["30"], ["32"], ["33"], ["34"], ["35"], ["36"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Rdrpk_36.png", "TableImg_Q2nd3_36.png"], "original_data_index": 366, "original_sql": "SELECT ModelId FROM model_list WHERE \"ModelId\" < 13 UNION ALL SELECT ModelId FROM model_list WHERE \"Maker\" > 4"} {"question": "Can you give me the IDs of aircraft that meet certain criteria, specifically, those from the aircraft table that either have an ID less than 5 and are heavy-lift helicopters with a total disk area not equal to \"5,655 ft\u00b2 (526 m\u00b2)\", or have a max disk loading not equal to \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\", or are not a \"Robinson R-22\", or have a max gross weight not equal to \"73,500 lb (33,300 kg)\", and also are present in the airport_aircraft table where the airport ID is not 6 and either the ID is greater than or equal to 3 or the aircraft ID is less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9nwsy_5.png", "TableImg_32s04_4.png"], "original_data_index": 365, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE \"Aircraft_ID\" < 5 AND Description = \"Heavy-lift helicopter\" AND Total_disk_area != \"5,655 ft\u00b2 (526 m\u00b2)\" OR Max_disk_Loading != \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\" OR Aircraft != \"Robinson R-22\" OR Max_Gross_Weight <> \"73,500 lb (33,300 kg)\" INTERSECT SELECT Aircraft_ID FROM airport_aircraft WHERE \"Airport_ID\" <> 6 AND \"ID\" >= 3 OR \"Aircraft_ID\" < 1"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 6, excluding any driver IDs from the school_bus table that are equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3hq4g_12.png", "TableImg_02xqq_5.png"], "original_data_index": 367, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What aircraft IDs are greater than or equal to 3, excluding those that are also greater than or equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_284az_5.png", "TableImg_A7flg_4.png"], "original_data_index": 368, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of driver IDs, including driver ID 10 from the driver table, and all driver IDs except 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ole7b_12.png", "TableImg_Aaaso_5.png"], "original_data_index": 369, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me the departure date, airline ID, total distance, and destination for flights that either have an airline ID of 10 or greater, or depart on a date other than 04/12/2005 05:30, have a flight number of 346, originate in Chicago, arrive on a date other than 04/12/2005 03:18, and are destined for Boston, but exclude any flights where the distance is 5478 or greater, the origin is not Los Angeles, the airline ID is 3 or greater, or the departure date is not 04/12/2005 11:50, the arrival date is 04/12/2005 09:40, the destination is not Dallas, and the price is greater than 425.98?", "answer": {"columns": ["departure_date", "aid", "SUM(distance)", "destination"], "index": [0], "data": [["04/12/2005 09:00", "10", "802", "New York"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_A7qag_10.png", "TableImg_B591i_10.png"], "original_data_index": 370, "original_sql": "SELECT departure_date, aid, SUM(distance), destination FROM flight WHERE \"aid\" >= 10 OR departure_date <> \"04/12/2005 05:30\" AND \"flno\" = 346 AND origin = \"Chicago\" AND arrival_date <> \"04/12/2005 03:18\" AND destination = \"Boston\" EXCEPT SELECT departure_date, aid, SUM(distance), destination FROM flight WHERE \"distance\" >= 5478 AND origin <> \"Los Angeles\" AND \"aid\" >= 3 OR departure_date != \"04/12/2005 11:50\" AND arrival_date = \"04/12/2005 09:40\" AND destination <> \"Dallas\" AND \"price\" > 425.98"} {"question": "Which driver IDs, excluding driver ID 2, are also driver ID 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ofvk_12.png", "TableImg_2921p_5.png"], "original_data_index": 371, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are both not equal to 6 and less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hb9ak_12.png", "TableImg_Xg21n_5.png"], "original_data_index": 373, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of property IDs from the Other_Property_Features table where the property ID is not 7, the feature ID is greater than 3, and the property feature description is not \"vitae\", combined with a list of property IDs from the Properties table where either the date sold is not November 7th, 1997 at 8:22 PM, the vendor requested price is greater than 372652.2909, or a combination of other conditions related to buyer offered price, apartment features, field features, house features, property name, other property details, shop features, agreed selling price, room count, and property ID are met?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["12"], ["14"], ["14"], ["2"], ["4"], ["10"], ["12"], ["13"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_A7bgi_15.png", "TableImg_Baibd_15.png"], "original_data_index": 372, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"property_id\" <> 7 AND \"feature_id\" > 3 AND property_feature_description <> \"vitae\" UNION ALL SELECT property_id FROM Properties WHERE date_sold != \"1997-11-07 20:22:05\" AND \"vendor_requested_price\" > 372652.2909 OR \"buyer_offered_price\" <> 1.68 AND apt_feature_2 = \"est\" AND fld_feature_2 <> \"None\" AND hse_feature_1 = \"None\" OR property_name = \"riverside\" OR apt_feature_3 <> \"None\" OR other_property_details <> \"None\" OR shp_feature_3 <> \"None\" OR \"agreed_selling_price\" > 244353758.1824 OR hse_feature_2 != \"None\" OR \"room_count\" > 9 AND \"property_id\" <> 4 OR shp_feature_1 != \"None\" AND hse_feature_3 <> \"None\" OR fld_feature_1 <> \"None\" OR fld_feature_3 != \"None\""} {"question": "Which driver IDs are equal to 2 in the driver table, but not equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_31ksi_12.png", "TableImg_J828z_5.png"], "original_data_index": 374, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the address details and address IDs for all addresses, including those with \"IE\" as the address detail and those with any other address detail besides \"DE\"?", "answer": {"columns": ["address_details", "address_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["ES", "3"], ["ES", "4"], ["IE", "5"], ["IE", "8"], ["IT", "0"], ["MX", "1"], ["MX", "9"], ["PT", "7"], ["US", "6"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Uijjq_10.png", "TableImg_Q46ii_10.png"], "original_data_index": 375, "original_sql": "SELECT address_details, address_id FROM Addresses WHERE address_details = \"IE\" UNION SELECT address_details, address_id FROM Addresses WHERE address_details <> \"DE\""} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 1, and those from the school bus table where the ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9lybe_12.png", "TableImg_Byv9p_5.png"], "original_data_index": 376, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you list all the driver IDs, combining those from the driver table that aren't 4 with those from the school bus table that are 4 or less, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Akows_12.png", "TableImg_Pcztv_5.png"], "original_data_index": 363, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver has an ID of 8, but does not have an ID of 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bysfv_12.png", "TableImg_Hyxvy_5.png"], "original_data_index": 362, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Could you give me a list of employee role codes, excluding those that are also role codes for \"Proof Manager\" roles, but only considering employees whose other details are not \"f\" or whose employee ID is less than 3 and whose name is Jordyn?", "answer": {"columns": ["role_code"], "index": [0, 1, 2], "data": [["ED"], ["MG"], ["PT"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_I2zb2_6.png", "TableImg_040gz_4.png"], "original_data_index": 377, "original_sql": "SELECT role_code FROM Employees WHERE other_details != \"f\" OR \"employee_id\" < 3 AND employee_name = \"Jordyn\" EXCEPT SELECT role_code FROM Roles WHERE role_description = \"Proof Manager\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 1, and those from the school bus table that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ci9qa_12.png", "TableImg_H8obj_5.png"], "original_data_index": 378, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are both not equal to 4 and also greater than or equal to 7, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ptta_12.png", "TableImg_Q2q79_5.png"], "original_data_index": 380, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Could you give me a list of document IDs from the circulation history where either the draft number is 2 or higher, the document ID is greater than 20, the employee ID is not 8, or the copy number is 4, combined with a list of document IDs from the documents table where the document status is overdue and the receipt date is September 15, 1976, at 7:24 PM, or where the other details are \"r\", the receipt number is not \"8\", the shipping agent code is \"UP\", the document type is not \"Paper\", or the document ID is less than 23?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Kb8fy_4.png", "TableImg_8odk2_15.png"], "original_data_index": 379, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"draft_number\" >= 2 AND \"document_id\" > 20 OR \"employee_id\" != 8 OR \"copy_number\" = 4 UNION SELECT document_id FROM Documents WHERE document_status_code = \"overdue\" AND receipt_date = \"1976-09-15 19:24:17\" OR other_details = \"r\" AND receipt_number <> \"8\" AND shipping_agent_code = \"UP\" AND document_type_code != \"Paper\" OR \"document_id\" < 23"} {"question": "Which driver IDs appear in both the driver list (excluding driver ID 6) and the school bus list (only including driver IDs greater than 7)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zln1l_12.png", "TableImg_Rd0gz_5.png"], "original_data_index": 383, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including driver ID 12 from the driver table, and any driver IDs greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vmi7k_12.png", "TableImg_Hi85s_5.png"], "original_data_index": 382, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 3 or greater, combined with a list of driver IDs from the school_bus table where the driver ID is exactly 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Md9i3_12.png", "TableImg_1l0or_5.png"], "original_data_index": 381, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What aircraft IDs, excluding ID 4, are present in the aircraft table but not in the airport_aircraft table, also excluding ID 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G7l2s_5.png", "TableImg_91z3e_4.png"], "original_data_index": 384, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What is the total PetID and corresponding PetType for pets where either the StuID is less than or equal to 1001 or the pet's age is 3?", "answer": {"columns": ["SUM(T1.PetID)", "PetType"], "index": [0], "data": [["2001", "cat"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_6toa9_3.png", "TableImg_Yn6am_3.png"], "original_data_index": 388, "original_sql": "SELECT SUM(T1.PetID), T2.PetType FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID = T2.PetID WHERE \"StuID\" <= 1001 OR \"pet_age\" = 3"} {"question": "Which aircraft IDs, excluding ID 1, are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S6wzc_5.png", "TableImg_9twfk_4.png"], "original_data_index": 386, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which driver IDs are greater than 5 and also not equal to 9, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Co85i_12.png", "TableImg_Gxfwe_5.png"], "original_data_index": 385, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me the occupation, residence, player ID, rank, and gender of players who either live in Thompson, or don't have a rank of 3rd, and whose Player ID is not 12, and whose sponsor is not Saint Boniface, or whose name is not Ross C. Martin, but only for those players whose Player ID is greater than 2?", "answer": {"columns": ["Occupation", "Residence", "Player_ID", "Rank", "Gender"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["Design Coordinator", "Oakbank", "8", "2nd", "M"], ["Distribution Centre Associate", "Winnipeg", "7", "4th", "M"], ["Parliamentarian", "Winnipeg", "11", "1st", "M"], ["Parliamentarian", "Winnipeg", "12", "1st", "F"], ["Product Consultant - MLCC", "Winnipeg", "13", "3rd", "M"], ["Researcher", "Thompson", "3", "1st", "F"], ["Retired", "Birtle", "4", "2nd", "M"], ["Retired", "Selkirk", "10", "2nd", "F"], ["Self Employed / Consultant", "Winnipeg", "6", "2nd", "M"], ["Small Businessman", "Winnipeg", "5", "1st", "M"], ["Student", "Winnipeg", "9", "3rd", "M"], ["Student", "Winnipeg", "14", "3rd", "F"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_Ffw4b_14.png", "TableImg_Az2t0_14.png"], "original_data_index": 387, "original_sql": "SELECT Occupation, Residence, Player_ID, Rank, Gender FROM player WHERE Residence = \"Thompson\" OR Rank != \"3rd\" AND \"Player_ID\" != 12 AND Sponsor_name <> \"Saint Boniface\" OR Player_name != \"Ross C. Martin\" INTERSECT SELECT Occupation, Residence, Player_ID, Rank, Gender FROM player WHERE \"Player_ID\" > 2"} {"question": "Can you give me a list of driver IDs, excluding those equal to 4, that are greater than 6 and appear more than once in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3o9fq_12.png", "TableImg_3x842_5.png"], "original_data_index": 391, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of aircraft IDs, up to and including 4, that exist in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T1tso_5.png", "TableImg_9ftsc_4.png"], "original_data_index": 392, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me the smallest People ID from the employment table where either the Company ID is not 15 or the Year working is 2 or more, combined with the smallest People ID from the people table where the name is not Tom Sheehey and the People ID is less than 4, or the age is less than 37?", "answer": {"columns": ["MIN(People_ID)"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_N9hvd_5.png", "TableImg_U62li_7.png"], "original_data_index": 390, "original_sql": "SELECT MIN(People_ID) FROM employment WHERE \"Company_ID\" != 15 OR \"Year_working\" >= 2 UNION SELECT MIN(People_ID) FROM people WHERE Name != \"Tom Sheehey\" AND \"People_ID\" < 4 OR \"Age\" < 37"} {"question": "Which driver IDs, excluding driver ID 9, are also driver IDs excluding driver ID 3, that are present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J4gam_12.png", "TableImg_281cd_5.png"], "original_data_index": 389, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Could you list all the draft numbers from the Draft Copies table, including those where the document ID is greater than 23, the draft number is greater than 2, or the copy number is less than or equal to 15, and also including those where the document ID is not equal to 2 or the copy number is greater than or equal to 6?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["8"], ["9"], ["9"], ["20"], ["1"], ["2"], ["17"], ["12"], ["9"], ["9"], ["20"], ["2"], ["17"], ["12"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_F7fkv_8.png", "TableImg_6kgcs_8.png"], "original_data_index": 396, "original_sql": "SELECT draft_number FROM Draft_Copies WHERE \"document_id\" > 23 OR \"draft_number\" > 2 OR \"copy_number\" <= 15 UNION ALL SELECT draft_number FROM Draft_Copies WHERE \"document_id\" <> 2 OR \"copy_number\" >= 6"} {"question": "Which driver IDs are greater than or equal to 4, but not greater than 4 and also present in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D2eej_12.png", "TableImg_496xx_5.png"], "original_data_index": 394, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list all the aircraft IDs that are greater than or equal to 4 from the aircraft table, and also list all aircraft IDs that are greater than 2 from the airport_aircraft table, combining the two lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3rgri_5.png", "TableImg_Zn1on_4.png"], "original_data_index": 393, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, where each ID is 11 or greater, but excluding any driver IDs that are also in the school bus table, unless that ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0ox7x_12.png", "TableImg_Otc3o_5.png"], "original_data_index": 398, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver has an ID of 9 and also drives a school bus, but not school bus number 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q8q98_12.png", "TableImg_U8qyi_5.png"], "original_data_index": 399, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs less than 10, excluding those driver IDs that are also less than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8b9fh_12.png", "TableImg_M9w8m_5.png"], "original_data_index": 400, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the aircraft IDs that are less than 3 from the aircraft table, and also list the aircraft IDs that are not equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Alhvd_5.png", "TableImg_Ivleo_4.png"], "original_data_index": 401, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Could you give me a list of driver IDs that are less than 9 and also greater than or equal to 4, considering only driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bx332_12.png", "TableImg_I4u4t_5.png"], "original_data_index": 402, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the aircraft IDs that are greater than 3 when grouped in the aircraft table, and also list the aircraft IDs that are less than or equal to 2 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E75sy_5.png", "TableImg_Sr8el_4.png"], "original_data_index": 403, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs that are equal to 5 from the driver table, combined with a list of driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pqrra_12.png", "TableImg_Tjzt3_5.png"], "original_data_index": 404, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which aircraft with ID 4 are not associated with any airport except those associated with aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R7sc0_5.png", "TableImg_Mysse_4.png"], "original_data_index": 406, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 10, and those from the school bus table with driver IDs of 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4nhds_12.png", "TableImg_Yww86_5.png"], "original_data_index": 405, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are also less than or equal to 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A5bso_12.png", "TableImg_E3azx_5.png"], "original_data_index": 407, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 9 or higher, and those from the school bus table where the ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xux6a_12.png", "TableImg_Sl15t_5.png"], "original_data_index": 408, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 12 or less, and those from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y221c_12.png", "TableImg_Lh9zj_5.png"], "original_data_index": 409, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What aircraft IDs are greater than 1 and appear in the aircraft table, but not in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yov6u_5.png", "TableImg_5n5bq_4.png"], "original_data_index": 410, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "How many customers made payments that weren't for $7440.34 and weren't made with a credit card, excluding customer ID 7, plus how many lessons were taught by staff other than staff ID 11 using vehicles other than vehicle ID 2 on dates other than March 6, 2018 at 9:48:51 PM with lesson IDs greater than 13, or at 9 AM?", "answer": {"columns": ["COUNT(customer_id)"], "index": [0, 1], "data": [["5"], ["9"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_Ygn8g_15.png", "TableImg_2pxht_15.png"], "original_data_index": 397, "original_sql": "SELECT COUNT(customer_id) FROM Customer_Payments WHERE \"amount_payment\" != 7440.34 AND payment_method_code != \"Credit Card\" AND \"customer_id\" <> 7 UNION SELECT COUNT(customer_id) FROM Lessons WHERE \"staff_id\" <> 11 AND \"vehicle_id\" <> 2 AND lesson_date != \"2018-03-06 21:48:51\" AND \"lesson_id\" > 13 OR lesson_time = \"9\""} {"question": "Can you give me a list of employee IDs, including those who have worked with document IDs greater than 1 and copy number 4 or higher, as well as those employees whose other details are \"v\" or whose role code is \"PR\"?", "answer": {"columns": ["employee_id"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["7"], ["8"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_Eei4k_4.png", "TableImg_766dl_6.png"], "original_data_index": 414, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"document_id\" > 1 AND \"copy_number\" >= 4 UNION SELECT employee_id FROM Employees WHERE other_details = \"v\" OR role_code = \"PR\""} {"question": "Can you give me a list of driver IDs, including driver ID 3 from the driver table and all driver IDs except 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yelbs_12.png", "TableImg_Qf62m_5.png"], "original_data_index": 415, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 10, combined with a list of driver IDs from the school_bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4xkjh_12.png", "TableImg_Cbc0i_5.png"], "original_data_index": 416, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are not 10 and are also less than 10, considering only drivers who appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Haybq_12.png", "TableImg_60kfh_5.png"], "original_data_index": 417, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of aircraft IDs that are both greater than or equal to 4 in the aircraft table and not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U17c5_5.png", "TableImg_J1tyl_4.png"], "original_data_index": 418, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 9 or greater, and those from the school bus table that are 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Necoh_12.png", "TableImg_Pb1z2_5.png"], "original_data_index": 419, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 3, combined with a list of driver IDs from the school_bus table where each ID is less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xkdme_12.png", "TableImg_9hik5_5.png"], "original_data_index": 420, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, first from the driver table excluding driver ID 2, and then from the school bus table including only driver IDs less than 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D8fgu_12.png", "TableImg_Ceuk0_5.png"], "original_data_index": 421, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Could you give me the IDs of books that have more than 4 issues and an ID of 1 or greater, excluding those book IDs that are in publications with a publication ID of 6 or greater?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["4"], ["5"], ["8"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_0p0fb_10.png", "TableImg_N7h4f_7.png"], "original_data_index": 422, "original_sql": "SELECT Book_ID FROM book WHERE \"Issues\" > 4.0 AND \"Book_ID\" >= 1 EXCEPT SELECT Book_ID FROM publication WHERE \"Publication_ID\" >= 6"} {"question": "Can you find the aircraft ID, name, and shortest distance for aircraft, first including those that aren't Boeing 757-300s with an ID up to 7 or a distance not equal to 2605, and then only showing the results that also include aircraft that aren't Boeing 737-800s or have an ID of 13 or greater?", "answer": {"columns": ["aid", "name", "MIN(distance)"], "index": [0], "data": [["16", "Schwitzer 2-33", "30"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Vc4oc_16.png", "TableImg_Ifzhz_16.png"], "original_data_index": 423, "original_sql": "SELECT aid, name, MIN(distance) FROM aircraft WHERE name <> \"Boeing 757-300\" AND \"aid\" <= 7 OR \"distance\" != 2605 INTERSECT SELECT aid, name, MIN(distance) FROM aircraft WHERE name != \"Boeing 737-800\" OR \"aid\" >= 13"} {"question": "Which aircraft IDs, excluding aircraft ID 3, are also aircraft IDs, excluding aircraft ID 5, found at airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1uuey_5.png", "TableImg_Pvh57_4.png"], "original_data_index": 424, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are not 6, and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rntgh_12.png", "TableImg_Hyl82_5.png"], "original_data_index": 425, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are greater than 3, but only include those that are not also driver IDs greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F6oaf_12.png", "TableImg_W136z_5.png"], "original_data_index": 426, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the Club IDs for clubs that are either named \"Pen and Paper Gaming\" and have an ID greater than 4 and are not located in \"AKW\", or have a description different from \"Refurbish computers; teach kids and adults about computer basics.\", excluding the Club IDs of clubs where there's a member who isn't a Vice-President?", "answer": {"columns": ["ClubID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_X6l3n_4.png", "TableImg_Zjt43_4.png"], "original_data_index": 413, "original_sql": "SELECT ClubID FROM Club WHERE \"ClubID\" > 4 AND ClubLocation <> \"AKW\" AND ClubName = \"Pen and Paper Gaming\" OR ClubDesc != \"Refurbish computers; teach kids and adults about computer basics.\" EXCEPT SELECT ClubID FROM Member_of_club WHERE Position <> \"Vice-President\""} {"question": "Can you give me a list of driver IDs that are 10 or greater from the driver table, excluding any driver IDs that are 9 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O7ae8_12.png", "TableImg_Ni041_5.png"], "original_data_index": 411, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J9d2t_12.png", "TableImg_1i24h_5.png"], "original_data_index": 412, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 11 and those from the school_bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yowbs_12.png", "TableImg_Lr50q_5.png"], "original_data_index": 430, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 1, excluding any driver IDs that are not equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hb6kw_12.png", "TableImg_Uwuje_5.png"], "original_data_index": 428, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are both greater than 2 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9zh53_12.png", "TableImg_Ka9gi_5.png"], "original_data_index": 427, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me the ID of the driver who appears exactly once in the driver table, specifically with the ID 1, but is not a driver with any ID other than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_96nch_12.png", "TableImg_3ormk_5.png"], "original_data_index": 429, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you find the common minimum district number, election ID, party, committee, and average counties represented from the election table where either the district is not 1, the committee is not \"Ways and Means\", the first elected year is not 2002, the counties represented is not \"12.1 12A\", and the election ID is less than or equal to 2, or the party is 1, or the delegate is not \"Bobo, Elizabeth Elizabeth Bobo\", and where either the district is not 2, the counties represented is not \"12.1 12A\", or the party is greater than 2 and the delegate is \"Pendergrass, Shane E. Shane Pendergrass\", or the committee is \"Appropriations\"?", "answer": {"columns": ["MIN(District)", "Election_ID", "Party", "Committee", "AVG(Counties_Represented)"], "index": [0], "data": [["1", "1", "1", "Appropriations", "11.7"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_21g0h_8.png", "TableImg_5ug3i_8.png"], "original_data_index": 431, "original_sql": "SELECT MIN(District), Election_ID, Party, Committee, AVG(Counties_Represented) FROM election WHERE \"District\" <> 1 OR Committee != \"Ways and Means\" AND \"First_Elected\" != 2002.0 AND Counties_Represented != \"12.1 12A\" AND \"Election_ID\" <= 2 OR \"Party\" = 1 OR Delegate <> \"Bobo, Elizabeth Elizabeth Bobo\" INTERSECT SELECT MIN(District), Election_ID, Party, Committee, AVG(Counties_Represented) FROM election WHERE \"District\" <> 2 OR Counties_Represented != \"12.1 12A\" OR \"Party\" > 2 AND Delegate = \"Pendergrass, Shane E. Shane Pendergrass\" OR Committee = \"Appropriations\""} {"question": "Can you list all the driver IDs, including those from the driver table excluding ID 12 and those from the school bus table with IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z23xd_12.png", "TableImg_O57xc_5.png"], "original_data_index": 432, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of road addresses for branches that either opened in 2014, or have a branch ID that is not 7 and are not located in London, along with a list of all branches located on Brampton Road?", "answer": {"columns": ["Address_road"], "index": [0, 1, 2, 3], "data": [["Abbey Rise"], ["Cecilia Avenue"], ["Glebe Street"], ["Brampton Road"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_0eyw9_8.png", "TableImg_Hx7ir_8.png"], "original_data_index": 433, "original_sql": "SELECT Address_road FROM branch WHERE Open_year = \"2014\" OR \"Branch_ID\" != 7 AND City <> \"London\" UNION ALL SELECT Address_road FROM branch WHERE Address_road = \"Brampton Road\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 11, and those from the school bus table that are 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mok0o_12.png", "TableImg_Adjss_5.png"], "original_data_index": 434, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of aircraft IDs, excluding ID 4, that appear in the aircraft table but not in the airport_aircraft table, also excluding ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rwq8g_5.png", "TableImg_Oec4q_4.png"], "original_data_index": 435, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of all People IDs from the employment table, excluding ID 3, combined with a list of People IDs from the people table where the ID is greater than 2 and the person is either from the United States or their name isn't Reggie Lewis?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["4"], ["2"], ["1"], ["7"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_203hr_5.png", "TableImg_Tgsi8_7.png"], "original_data_index": 436, "original_sql": "SELECT People_ID FROM employment WHERE \"People_ID\" != 3 UNION ALL SELECT People_ID FROM people WHERE \"People_ID\" > 2 AND Nationality = \"United States\" OR Name <> \"Reggie Lewis\""} {"question": "Can you give me a list of driver IDs from the driver table, excluding driver ID 3, but also excluding any driver IDs that appear in the school_bus table with a driver ID of 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Phsbm_12.png", "TableImg_26mcw_5.png"], "original_data_index": 437, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are less than or equal to 6 from the driver table, combined with driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ytu34_12.png", "TableImg_Jrgn6_5.png"], "original_data_index": 438, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 5, and those from the school bus table where the ID is 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cx1uo_12.png", "TableImg_Dhwrn_5.png"], "original_data_index": 439, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which aircraft IDs are both greater than or equal to 1 and present in the aircraft table, and less than or equal to 3 and present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_761kq_5.png", "TableImg_67z1c_4.png"], "original_data_index": 440, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 6 or higher, and those from the school bus table where the ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I2gyx_12.png", "TableImg_Dyftd_5.png"], "original_data_index": 441, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Could you list the Coach IDs from the coach table for all coaches who are not male or whose name is Joe Fabbri, and also include the Coach IDs from the player_coach table where the Coach ID is less than or equal to 3?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["1"], ["1"], ["1"], ["2"], ["3"], ["3"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_4e4o6_5.png", "TableImg_Smbpe_7.png"], "original_data_index": 442, "original_sql": "SELECT Coach_ID FROM coach WHERE Gender <> \"M\" OR Coach_name = \"Joe Fabbri\" UNION ALL SELECT Coach_ID FROM player_coach WHERE \"Coach_ID\" <= 3"} {"question": "Which driver IDs, other than 10, are present in both the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L17bu_12.png", "TableImg_Y868r_5.png"], "original_data_index": 445, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 3 and also less than 10, considering only unique driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_21rbl_12.png", "TableImg_U0unr_5.png"], "original_data_index": 446, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs, starting from 1, that are present in the aircraft table but not in the airport_aircraft table, where only aircraft IDs starting from 3 are considered in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9kh9u_5.png", "TableImg_P7f12_4.png"], "original_data_index": 447, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me the age, home city, and name of drivers who meet both of these conditions: first, they must have a Driver ID less than 2 and belong to the \"Dem\" party, or be 30 years old, or have a name other than \"Henry Genga\" and a home city other than \"Hartford\"; and second, they must not be 46 years old, must live in \"Bethel\", must not belong to the \"Dem\" party, and must not be named \"Timothy Ackert\"?", "answer": {"columns": ["Age", "Home_city", "Name"], "index": [0], "data": [["30", "Bethel", "Dan Carter"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_0k967_12.png", "TableImg_Ufkda_12.png"], "original_data_index": 448, "original_sql": "SELECT Age, Home_city, Name FROM driver WHERE \"Driver_ID\" < 2 AND Party = \"Dem\" OR \"Age\" = 30 OR Name <> \"Henry Genga\" AND Home_city <> \"Hartford\" INTERSECT SELECT Age, Home_city, Name FROM driver WHERE \"Age\" != 46 AND Home_city = \"Bethel\" AND Party <> \"Dem\" AND Name <> \"Timothy Ackert\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 7 and not equal to 4, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gvijm_12.png", "TableImg_9btrz_5.png"], "original_data_index": 449, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are less than 8, excluding any driver IDs that are also 3 or greater and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tah2c_12.png", "TableImg_V1iff_5.png"], "original_data_index": 450, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What aircraft IDs are not equal to 3 and are also not equal to 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V38tj_5.png", "TableImg_C3qsb_4.png"], "original_data_index": 451, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list the sponsor name, player ID, residence, occupation, votes, and gender for all players, combining those with a Player ID greater than 7, a rank other than 2nd, a gender other than male, and a name other than Jean Luc Bouch\u00e9, with those who are ranked 2nd and are not named Pat Martin?", "answer": {"columns": ["Sponsor_name", "Player_ID", "Residence", "Occupation", "Votes", "Gender"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Brandon\u2014Souris", "1", "Brandon", "Locomotive Engineer", "6055", "M"], ["Dauphin\u2014Swan River\u2014Marquette", "4", "Birtle", "Retired", "4914", "M"], ["Kildonan\u2014St. Paul", "6", "Winnipeg", "Self Employed / Consultant", "12093", "M"], ["Provencher", "8", "Oakbank", "Design Coordinator", "4947", "M"], ["Selkirk\u2014Interlake", "10", "Selkirk", "Retired", "9506", "F"], ["Winnipeg North", "12", "Winnipeg", "Parliamentarian", "14097", "F"], ["Winnipeg South Centre", "14", "Winnipeg", "Student", "5490", "F"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_Som82_14.png", "TableImg_H50sp_14.png"], "original_data_index": 452, "original_sql": "SELECT Sponsor_name, Player_ID, Residence, Occupation, Votes, Gender FROM player WHERE \"Player_ID\" > 7 AND Rank != \"2nd\" AND Gender != \"M\" AND Player_name != \"Jean Luc Bouch\u00e9\" UNION SELECT Sponsor_name, Player_ID, Residence, Occupation, Votes, Gender FROM player WHERE Rank = \"2nd\" AND Player_name <> \"Pat Martin\""} {"question": "What aircraft IDs are both less than 2 when considering only aircraft, and less than or equal to 5 when considering only airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gszhm_5.png", "TableImg_Pmuq4_4.png"], "original_data_index": 453, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What allergies are not of the environmental type and are also either not nuts or associated with student IDs less than or equal to 1030?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Anchovies"], ["Cat"], ["Dog"], ["Eggs"], ["Milk"], ["Nuts"], ["Rodent"], ["Shellfish"], ["Soy"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_Rezur_14.png", "TableImg_Bd5n2_59.png"], "original_data_index": 454, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType <> \"environmental\" INTERSECT SELECT Allergy FROM Has_Allergy WHERE Allergy != \"Nuts\" OR \"StuID\" <= 1030"} {"question": "What is the average employee ID and the employee ID for employees whose bonus is not $3000, considering both employee and evaluation information?", "answer": {"columns": ["AVG(T1.Employee_ID)", "Employee_ID"], "index": [0], "data": [["4.8", "2"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Cdulc_10.png", "TableImg_O97tk_6.png"], "original_data_index": 455, "original_sql": "SELECT AVG(T1.Employee_ID), T2.Employee_ID FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE \"Bonus\" <> 3000.0"} {"question": "Can you give me a list of store IDs that are either in district 11 or sell products other than product 6, or are store ID 5?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_9mixa_5.png", "TableImg_Rwppn_15.png"], "original_data_index": 456, "original_sql": "SELECT Store_ID FROM store_district WHERE \"District_ID\" = 11 UNION SELECT Store_ID FROM store_product WHERE \"Product_ID\" <> 6 OR \"Store_ID\" = 5"} {"question": "Can you give me a list of driver IDs that are less than 6, excluding any driver IDs that are also in the school bus list and are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_05t5s_12.png", "TableImg_Rpbyr_5.png"], "original_data_index": 457, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What is the average district ID for districts where the city area is 75 and the district name is not Bhakkar District, or the headquarters city is not Bahawalnagar City, combined with the average district ID for store districts where the district ID is 3 or greater?", "answer": {"columns": ["AVG(District_ID)"], "index": [0, 1], "data": [["8.4285714286"], ["9.6"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Vifwn_15.png", "TableImg_9lq4d_5.png"], "original_data_index": 443, "original_sql": "SELECT AVG(District_ID) FROM district WHERE \"City_Area\" = 75.0 AND District_name != \"Bhakkar District\" OR Headquartered_City <> \"Bahawalnagar City\" UNION SELECT AVG(District_ID) FROM store_district WHERE \"District_ID\" >= 3"} {"question": "Can you give me a list of airport ICAO codes, including those from airports that are not in Baltimore, have an ID of 6 or less, or are not in Spain, as well as those that don't have the ICAO code LEBL or the IATA code BCN, combined with ICAO codes from airports in the Netherlands, or with the IATA code BLL, or with a name other than Schiphol Airport, or with an ID of 9 or more, or that don't have the ICAO code KBWI?", "answer": {"columns": ["ICAO"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["BIAR"], ["EBBR"], ["EHAM"], ["EKBI"], ["ENBR"], ["KBOS"], ["KBWI"], ["LEBL"], ["PANC"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Jx3hg_9.png", "TableImg_9a5lr_9.png"], "original_data_index": 444, "original_sql": "SELECT ICAO FROM airport WHERE City <> \"Baltimore\" AND \"id\" <= 6 AND Country != \"Spain\" OR ICAO != \"LEBL\" OR IATA <> \"BCN\" UNION SELECT ICAO FROM airport WHERE Country = \"Netherlands\" OR IATA = \"BLL\" OR name != \"Schiphol Airport\" OR \"id\" >= 9 OR ICAO != \"KBWI\""} {"question": "Can you give me a list of driver IDs that are greater than 6, excluding those driver IDs that are also greater than 4 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5epc9_12.png", "TableImg_F9crx_5.png"], "original_data_index": 460, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are greater than 3 and also greater than or equal to 7, considering only unique driver IDs from both the driver and school_bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qikk7_12.png", "TableImg_Nq5w5_5.png"], "original_data_index": 459, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are not equal to 6 and are also not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0cctk_12.png", "TableImg_Huf4b_5.png"], "original_data_index": 458, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of member IDs, including those of members who don't live in Jacksonville, Florida and have a level greater than 4, as well as those who made a purchase in 2018 or whose member ID is not 3?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_F1768_10.png", "TableImg_Dmcl3_8.png"], "original_data_index": 461, "original_sql": "SELECT Member_ID FROM member WHERE Hometown <> \"Jacksonville, Florida\" AND \"Level\" > 4 UNION SELECT Member_ID FROM purchase WHERE Year = \"2018\" OR \"Member_ID\" != 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 2, and also include driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4kj9e_12.png", "TableImg_J6sta_5.png"], "original_data_index": 464, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the Aircraft IDs that are greater than 4 in the aircraft table, and also list the Aircraft IDs that equal 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7h5qy_5.png", "TableImg_Dr5eb_4.png"], "original_data_index": 463, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 5, but only if they don't also appear in the airport_aircraft table with an aircraft ID of 1 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F7aiu_5.png", "TableImg_Lqpmi_4.png"], "original_data_index": 462, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you list all the aircraft IDs, including those from the aircraft table where the ID is less than or equal to 4, and those from the airport_aircraft table where the ID is not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ya41p_5.png", "TableImg_V4ute_4.png"], "original_data_index": 465, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What aircraft IDs, excluding aircraft ID 2, are also aircraft IDs excluding aircraft ID 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mhwhr_5.png", "TableImg_Hciam_4.png"], "original_data_index": 467, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which driver IDs, excluding driver ID 4, are also driver ID 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_756gw_12.png", "TableImg_Bfi9k_5.png"], "original_data_index": 468, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Could you list the store IDs from the store table, excluding Miramichi stores and including those with an area size greater than 179.84, a store ID less than 4, or a number of product categories not equal to 990, but then remove any store IDs that appear in the store_district table where the store ID is greater than 2 or the district ID is not 15?", "answer": {"columns": ["Store_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Gbmky_5.png", "TableImg_Pp24f_5.png"], "original_data_index": 466, "original_sql": "SELECT Store_ID FROM store WHERE Store_Name <> \"Miramichi\" OR \"Area_size\" > 179.84 OR \"Store_ID\" < 4 OR \"Number_of_product_category\" <> 990.0 EXCEPT SELECT Store_ID FROM store_district WHERE \"Store_ID\" > 2 OR \"District_ID\" <> 15"} {"question": "What aircraft IDs are both greater than or equal to 5 when grouped in the aircraft table, and greater than 3 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Icq0n_5.png", "TableImg_2mezd_4.png"], "original_data_index": 471, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs that are not equal to 2 from the driver table, excluding any driver IDs greater than 9 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_11r1m_12.png", "TableImg_Lur8s_5.png"], "original_data_index": 469, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you tell me the name and the alphabetically last city for employees with IDs of 6 or higher, excluding those in Bath and named George Chuter, combined with the name and alphabetically last city for all employees not in Bath?", "answer": {"columns": ["Name", "MAX(City)"], "index": [0, 1], "data": [["Phil Vickery", "Wasps"], ["Tim Payne", "Wasps"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Zrmh7_10.png", "TableImg_Mkc6l_10.png"], "original_data_index": 470, "original_sql": "SELECT Name, MAX(City) FROM employee WHERE \"Employee_ID\" >= 6 AND City <> \"Bath\" AND Name <> \"George Chuter\" UNION SELECT Name, MAX(City) FROM employee WHERE City != \"Bath\""} {"question": "What are the aircraft IDs that are not 4 and are not present in the airport aircraft table with IDs less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_My74w_5.png", "TableImg_Mei6p_4.png"], "original_data_index": 473, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and appear in both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P114l_5.png", "TableImg_Ogvzt_4.png"], "original_data_index": 395, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the driver IDs, excluding driver ID 7, and also the driver IDs greater than 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tqra1_12.png", "TableImg_6zz5r_5.png"], "original_data_index": 472, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the sum of document IDs from the circulation history, excluding records where the draft number is 20 and employee ID is 8, or the document ID is not 1, or the copy number is less than 10, but not including the sum of document IDs from paper documents?", "answer": {"columns": ["SUM(document_id)"], "index": [0], "data": [["33"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Awxcv_4.png", "TableImg_1yu1r_15.png"], "original_data_index": 474, "original_sql": "SELECT SUM(document_id) FROM Circulation_History WHERE \"draft_number\" <> 20 AND \"employee_id\" <> 8 OR \"document_id\" <> 1 OR \"copy_number\" < 10 EXCEPT SELECT SUM(document_id) FROM Documents WHERE document_type_code = \"Paper\""} {"question": "What are the home cities, driver IDs, parties, and ages of drivers with driver IDs of 10 or greater, combined with the home cities, driver IDs, parties, and ages of drivers who are not Democrats and live in Manchester, or whose names are not Matthew Ritter and are not 38 years old?", "answer": {"columns": ["Home_city", "Driver_ID", "Party", "Age"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["East Hartford", "10", "Dem", "37"], ["East Hartford", "11", "Dem", "36"], ["Manchester", "12", "Dem", "52"], ["Bethel", "2", "Rep", "30"], ["Hartford", "3", "Dem", "46"], ["Hartford", "4", "Dem", "42"], ["Hartford", "5", "Dem", "45"], ["Hartford", "6", "Dem", "52"], ["Hartford", "7", "Dem", "36"], ["Coventry", "8", "Rep", "35"], ["East Hartford", "10", "Dem", "37"], ["East Hartford", "11", "Dem", "36"], ["Manchester", "12", "Dem", "52"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_71pnd_12.png", "TableImg_62dut_12.png"], "original_data_index": 475, "original_sql": "SELECT Home_city, Driver_ID, Party, Age FROM driver WHERE \"Driver_ID\" >= 10 UNION ALL SELECT Home_city, Driver_ID, Party, Age FROM driver WHERE Party <> \"Dem\" AND Home_city = \"Manchester\" OR Name <> \"Matthew Ritter\" AND \"Age\" != 38"} {"question": "What are the driver IDs that are either less than or equal to 6 from the driver table or less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y8n82_12.png", "TableImg_9ecoj_5.png"], "original_data_index": 476, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are less than 12 but not equal to 9, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cbcsm_12.png", "TableImg_A5xea_5.png"], "original_data_index": 479, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the IDs of endowments where the donor is not \"San Crist\u00f3bal\" and the endowment ID is not 1, combined with the IDs of endowments where the donor is \"Valverde\" or the school ID is greater than 8, the endowment ID is less than or equal to 3, and the amount is less than or equal to 8.53?", "answer": {"columns": ["endowment_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_Hklqf_11.png", "TableImg_Wap5l_11.png"], "original_data_index": 477, "original_sql": "SELECT endowment_id FROM endowment WHERE donator_name != \"San Crist\u00f3bal\" AND \"endowment_id\" != 1 UNION SELECT endowment_id FROM endowment WHERE donator_name = \"Valverde\" OR \"School_id\" > 8 AND \"endowment_id\" <= 3 AND \"amount\" <= 8.53"} {"question": "How many customers are there in total, considering those who didn't pay by Direct Debit or whose payment amount wasn't 9414.74 or with customer ID 14, and also those who didn't become customers on November 12, 2017 at 4:34:44 AM?", "answer": {"columns": ["COUNT(customer_id)"], "index": [0, 1], "data": [["15"], ["14"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Rvhs0_15.png", "TableImg_Wjxt1_15.png"], "original_data_index": 478, "original_sql": "SELECT COUNT(customer_id) FROM Customer_Payments WHERE payment_method_code != \"Direct Debit\" OR \"amount_payment\" != 9414.74 OR \"customer_id\" = 14 UNION ALL SELECT COUNT(customer_id) FROM Customers WHERE date_became_customer <> \"2017-11-12 04:34:44\""} {"question": "What are the paragraph and document IDs for paragraphs where the document ID is less than or equal to 80 and the paragraph ID is less than or equal to 510442723, or the other details are \"None\"? Also, what are the paragraph and document IDs for paragraphs where the other details are \"None\" and the document ID is not 80, or the paragraph text is \"Senegal\"?", "answer": {"columns": ["Paragraph_ID", "Document_ID"], "index": [0, 1, 2], "data": [["9", "3"], ["16615", "80"], ["1104059", "3830"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_4hi5m_15.png", "TableImg_874z9_15.png"], "original_data_index": 480, "original_sql": "SELECT Paragraph_ID, Document_ID FROM Paragraphs WHERE \"Document_ID\" <= 80 AND \"Paragraph_ID\" <= 510442723 OR Other_Details = \"None\" UNION ALL SELECT Paragraph_ID, Document_ID FROM Paragraphs WHERE Other_Details = \"None\" AND \"Document_ID\" <> 80 OR Paragraph_Text = \"Senegal\""} {"question": "What are the driver IDs, excluding driver ID 10, from the driver table, and also the driver IDs greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3pcai_12.png", "TableImg_L7qem_5.png"], "original_data_index": 481, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are both greater than or equal to 9 and also not equal to 10, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7sesv_12.png", "TableImg_Q6ona_5.png"], "original_data_index": 482, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are less than 5 but not present in the school bus table with IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wnaz2_12.png", "TableImg_E9kou_5.png"], "original_data_index": 485, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Give me the details like features, price, address, and dates for properties that either have certain features not equal to \"None\" or meet specific price and type criteria, and also include properties where certain features are \"None\" or have specific sale dates or agreed prices, combining the results.", "answer": {"columns": ["apt_feature_1", "fld_feature_2", "agreed_selling_price", "property_name", "shp_feature_1", "hse_feature_2", "property_address", "date_sold", "shp_feature_3", "apt_feature_2", "property_id", "hse_feature_1", "fld_feature_3", "other_property_details", "fld_feature_1", "apt_feature_3", "oth_feature_2", "shp_feature_2", "date_on_market", "vendor_requested_price"], "index": [0, 1, 2, 3], "data": [["consequatur", "", "244353758.1824", "renoir", "", "", "084 Lakin Vista Apt. 394\nFishertown, MA 16876", "1997-01-07 19:52:45", "", "vero", "10", "", "", "", "", "", "", "", "2003-12-25 16:13:19", "77172926.3"], ["est", "", "21769471.8328", "the cole", "", "", "098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537", "1990-11-14 19:16:38", "", "est", "2", "", "", "", "", "", "", "", "1990-05-25 23:01:51", "661536468.4429"], ["et", "", "170766.472", "murray hill", "", "", "2088 Bashirian Fork Suite 337\nFaustinoport, MT 16771-9320", "1997-11-07 20:22:05", "", "est", "11", "", "", "", "", "", "", "", "1981-08-23 05:40:38", "6713620.9"], ["quos", "", "2794972.2495", "avalon", "", "", "092 Paucek Highway Apt. 772\nEast Erika, IA 61358", "1998-09-15 05:26:22", "", "est", "7", "", "", "", "", "", "", "", "1996-09-16 22:04:27", "150045.7568"]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Ox7pl_15.png", "TableImg_U7l89_15.png"], "original_data_index": 484, "original_sql": "SELECT apt_feature_1, fld_feature_2, agreed_selling_price, property_name, shp_feature_1, hse_feature_2, property_address, date_sold, shp_feature_3, apt_feature_2, property_id, hse_feature_1, fld_feature_3, other_property_details, fld_feature_1, apt_feature_3, oth_feature_2, shp_feature_2, date_on_market, vendor_requested_price FROM Properties WHERE fld_feature_1 != \"None\" AND hse_feature_1 != \"None\" AND fld_feature_2 != \"None\" AND oth_feature_3 != \"None\" OR \"vendor_requested_price\" >= 305.0 AND apt_feature_2 <> \"et\" AND property_type_code = \"House\" AND apt_feature_3 != \"None\" OR fld_feature_3 != \"None\" UNION SELECT apt_feature_1, fld_feature_2, agreed_selling_price, property_name, shp_feature_1, hse_feature_2, property_address, date_sold, shp_feature_3, apt_feature_2, property_id, hse_feature_1, fld_feature_3, other_property_details, fld_feature_1, apt_feature_3, oth_feature_2, shp_feature_2, date_on_market, vendor_requested_price FROM Properties WHERE hse_feature_1 = \"None\" OR date_sold = \"1997-01-07 19:52:45\" OR \"agreed_selling_price\" != 3344706.5755 AND apt_feature_2 = \"est\""} {"question": "What are the player's name, sponsor name, occupation, votes, residence, and gender for players who live in Winnipeg, are not ranked 1st, are not male, are named Ross C. Martin, don't have 14355 votes, are not Locomotive Engineers, and have a Player ID of 10, and also for players who don't live in Birtle or are not sponsored by Winnipeg North, and have a Player ID less than or equal to 11?", "answer": {"columns": ["Player_name", "Sponsor_name", "Occupation", "Votes", "Residence", "Gender"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Fiona Shiells", "Charleswood\u2014St. James\u2014Assiniboia", "Ministerial Assistant", "7190", "Winnipeg", "F"], ["Jim Maloway", "Elmwood\u2014Transcona", "Small Businessman", "14355", "Winnipeg", "M"], ["Judy Wasylycia-Leis", "Winnipeg North", "Parliamentarian", "14097", "Winnipeg", "F"], ["Matt Schaubroeck", "Saint Boniface", "Student", "5502", "Winnipeg", "M"], ["Mohamed Alli", "Portage\u2014Lisgar", "Distribution Centre Associate", "2353", "Winnipeg", "M"], ["Pat Martin", "Winnipeg Centre", "Parliamentarian", "12285", "Winnipeg", "M"], ["Rachel Heinrichs", "Winnipeg South Centre", "Student", "5490", "Winnipeg", "F"], ["Ross Eadie", "Kildonan\u2014St. Paul", "Self Employed / Consultant", "12093", "Winnipeg", "M"], ["Sean Robert", "Winnipeg South", "Product Consultant - MLCC", "4673", "Winnipeg", "M"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_Sm8ej_14.png", "TableImg_1xgjc_14.png"], "original_data_index": 483, "original_sql": "SELECT Player_name, Sponsor_name, Occupation, Votes, Residence, Gender FROM player WHERE Residence = \"Winnipeg\" OR Rank <> \"1st\" AND Gender != \"M\" AND Player_name = \"Ross C. Martin\" AND \"Votes\" != 14355 AND Occupation != \"Locomotive Engineer\" AND \"Player_ID\" = 10 INTERSECT SELECT Player_name, Sponsor_name, Occupation, Votes, Residence, Gender FROM player WHERE Residence <> \"Birtle\" OR Sponsor_name != \"Winnipeg North\" AND \"Player_ID\" <= 11"} {"question": "What are the driver IDs, excluding driver ID 9, that are present in both the driver and school bus tables, where the school bus driver ID is less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hovry_12.png", "TableImg_Eutzx_5.png"], "original_data_index": 486, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are greater than or equal to 1 and are not driver IDs from school buses that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lxjga_12.png", "TableImg_60bem_5.png"], "original_data_index": 487, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are either 1 or 4 and above?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nvbfq_12.png", "TableImg_Wsy9n_5.png"], "original_data_index": 488, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the template type descriptions and codes, excluding those with code \"BK\" or description \"Paper\", but not including the template type with code \"PP\"?", "answer": {"columns": ["Template_Type_Description", "Template_Type_Code"], "index": [0, 1, 2], "data": [["Advertisement", "AD"], ["CV", "CV"], ["Presentation", "PPT"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Pihrh_5.png", "TableImg_2uyhm_5.png"], "original_data_index": 489, "original_sql": "SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != \"BK\" AND Template_Type_Description <> \"Paper\" EXCEPT SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = \"PP\""} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs that are less than or equal to 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4p8xa_12.png", "TableImg_Yu644_5.png"], "original_data_index": 491, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What is the average city population and the district ID, considering districts where the sum of city area is 25, or the store ID is less than or equal to 4, or the headquartered city is not Chiniot City, or the district name is not Gujrat District, or the maximum city population is less than or equal to 1526168?", "answer": {"columns": ["AVG(T1.City_Population)", "District_ID"], "index": [0], "data": [["223166", "15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Rq3uk_15.png", "TableImg_26x8k_5.png"], "original_data_index": 490, "original_sql": "SELECT AVG(T1.City_Population), T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE SUM(City_Area) = 25.0 OR Store_ID <= 4 OR Headquartered_City <> \"Chiniot City\" OR District_name <> \"Gujrat District\" OR MAX(City_Population) <= 1526168.0"} {"question": "Which driver IDs are less than 5 but not greater than 10, considering only those IDs present in the 'driver' table and excluding those in the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tjy1c_12.png", "TableImg_Tguhk_5.png"], "original_data_index": 492, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs that are both less than or equal to 5 in the aircraft table and less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fpv1w_5.png", "TableImg_Ey3ro_4.png"], "original_data_index": 493, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs, excluding driver ID 5, and also the driver IDs that are 4 or greater, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D3n5t_12.png", "TableImg_Di5ax_5.png"], "original_data_index": 496, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs that are both greater than or equal to 9 and also not equal to 3, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mnhp0_12.png", "TableImg_A97s9_5.png"], "original_data_index": 495, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the club IDs, including club ID 2 and club IDs from members who are not in club 1, or have a student ID less than or equal to 1008, or are not Teaching Coordinators?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2, 3], "data": [["2"], ["1"], ["4"], ["2"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Tbyyn_4.png", "TableImg_Efuc8_4.png"], "original_data_index": 494, "original_sql": "SELECT ClubID FROM Club WHERE \"ClubID\" = 2 UNION ALL SELECT ClubID FROM Member_of_club WHERE \"ClubID\" <> 1 OR \"StuID\" <= 1008 OR Position != \"Teaching Coordinator\""} {"question": "Which driver IDs are less than 9, and which driver IDs are 9 or greater, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y8sfn_12.png", "TableImg_L90vd_5.png"], "original_data_index": 500, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs, excluding driver ID 5, and also any driver IDs that are 9 or greater, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_82bx3_12.png", "TableImg_Anx3i_5.png"], "original_data_index": 498, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs greater than 8 that are present in both the driver and school bus tables, excluding driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0953n_12.png", "TableImg_Isfa2_5.png"], "original_data_index": 497, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the minimum club location, excluding clubs that refurbish computers and teach computer basics, and also excluding clubs that are not \"Hopkins Student Enterprises\" or are located in \"AKW\" or have a ClubID less than 2?", "answer": {"columns": ["MIN(ClubLocation)"], "index": [0], "data": [[""]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_42pnj_4.png", "TableImg_2lpjw_4.png"], "original_data_index": 499, "original_sql": "SELECT MIN(ClubLocation) FROM Club WHERE ClubDesc != \"Refurbish computers; teach kids and adults about computer basics.\" IN (SELECT MIN(ClubLocation) FROM Club WHERE ClubDesc != \"Refurbish computers; teach kids and adults about computer basics.\" AND ClubName != \"Hopkins Student Enterprises\" AND \"ClubID\" >= 2 OR ClubLocation <> \"AKW\")"} {"question": "Which driver IDs are equal to 1 but not greater than or equal to 7, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ft1u2_12.png", "TableImg_Vgqg0_5.png"], "original_data_index": 501, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are greater than 8 but not present in the school bus table with driver IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mtbf4_12.png", "TableImg_Zcam8_5.png"], "original_data_index": 502, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the document status codes for documents with an ID of 14 or higher, or a receipt number that isn't \"19\" and a status of \"working\", that are also not \"overdue\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1], "data": [["done"], ["working"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Pejq0_15.png", "TableImg_J75xa_3.png"], "original_data_index": 504, "original_sql": "SELECT document_status_code FROM Documents WHERE \"document_id\" >= 14 OR receipt_number != \"19\" AND document_status_code = \"working\" INTERSECT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> \"overdue\""} {"question": "Which aircraft are not a Mil Mi-26, or have a maximum gross weight different from 123,500 lb (56,000 kg), or have an Aircraft_ID of 3 but are not aircraft with a total disk area of 4,900 ft\u00b2 (460 m\u00b2) and a maximum disk loading of 8.8 lb/ft\u00b2 (43 kg/m\u00b2)?", "answer": {"columns": ["Aircraft"], "index": [0, 1, 2, 3, 4], "data": [["Robinson R-22"], ["Bell 206B3 JetRanger"], ["CH-47D Chinook"], ["Mil Mi-26"], ["CH-53E Super Stallion"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Ncd3q_5.png", "TableImg_Ovdbm_5.png"], "original_data_index": 503, "original_sql": "SELECT Aircraft FROM aircraft WHERE Aircraft <> \"Mil Mi-26\" OR Max_Gross_Weight != \"123,500 lb (56,000 kg)\" OR \"Aircraft_ID\" = 3 NOT IN (SELECT Aircraft FROM aircraft WHERE Total_disk_area <> \"4,900 ft\u00b2 (460 m\u00b2)\" AND Max_disk_Loading <> \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\")"} {"question": "What are the freight metric tonnes and aircraft IDs for each airport?", "answer": {"columns": ["Freight_Metric_Tonnes", "Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1397054", "2"], ["107702", "1"], ["12192", "5"], ["3", "3"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Crto9_10.png", "TableImg_L30qr_4.png"], "original_data_index": 507, "original_sql": "SELECT T1.Freight_Metric_Tonnes, T2.Aircraft_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "What are the driver IDs that are less than 5 and also appear in the school bus table with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Muw5k_12.png", "TableImg_Lcl6x_5.png"], "original_data_index": 508, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What allergy types and allergies are neither soy nor animal allergies, and also have nuts as an allergy but are not environmental allergies?", "answer": {"columns": ["AllergyType", "Allergy"], "index": [0], "data": [["food", "Nuts"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_S3uuw_14.png", "TableImg_Uz1ag_14.png"], "original_data_index": 505, "original_sql": "SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy != \"Soy\" AND AllergyType != \"animal\" INTERSECT SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy = \"Nuts\" AND AllergyType <> \"environmental\""} {"question": "What are the student IDs of students who have a pet with ID 2001 or less, or students who live outside of PEK, or have an advisor other than 8918, or are male and have student ID 1002?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_I4icn_3.png", "TableImg_Xzfy7_34.png"], "original_data_index": 506, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"PetID\" <= 2001 UNION SELECT StuID FROM Student WHERE city_code != \"PEK\" OR \"Advisor\" != 8918 OR Sex = \"M\" AND \"StuID\" = 1002"} {"question": "What is the minimum age of a head, and the head ID, where the maximum department ID is 15?", "answer": {"columns": ["MIN(T1.age)", "head_ID"], "index": [0], "data": [["52", "4"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Djb9o_10.png", "TableImg_Xcqjp_5.png"], "original_data_index": 511, "original_sql": "SELECT MIN(T1.age), T2.head_ID FROM head as T1 JOIN management as T2 ON T1.head_ID = T2.head_ID WHERE MAX(department_ID) = 15"} {"question": "Which driver IDs, excluding driver ID 7, are greater than 11, considering only those present in the 'driver' table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G07yu_12.png", "TableImg_Nntoc_5.png"], "original_data_index": 509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are both less than or equal to 12 and also greater than 3, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6pvfv_12.png", "TableImg_Fyitu_5.png"], "original_data_index": 510, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are either greater than or equal to 5 in the driver table or less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lui2d_12.png", "TableImg_5900u_5.png"], "original_data_index": 514, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that appear in both the driver and school bus tables, where the driver ID is less than or equal to 9 in the driver table and less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N2kjg_12.png", "TableImg_5r0xw_5.png"], "original_data_index": 515, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are less than 12 but not equal to 4, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zzdkj_12.png", "TableImg_4bkj2_5.png"], "original_data_index": 513, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "How many schools meet the budget criteria where the invested amount is less than 8335 or the budgeted amount is not 4979 and the year is not 2006 and the total budget percentage invested is at least 2.2, and how many schools meet the endowment criteria where the school ID is not 1 or the endowment ID is greater than 8 or the amount is not 9.51?", "answer": {"columns": ["COUNT(School_id)"], "index": [0, 1], "data": [["5"], ["10"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_A7u7t_8.png", "TableImg_Dsrbf_11.png"], "original_data_index": 512, "original_sql": "SELECT COUNT(School_id) FROM budget WHERE \"Invested\" < 8335 OR \"Budgeted\" != 4979 AND \"Year\" <> 2006 AND \"total_budget_percent_invested\" >= 2.2 UNION SELECT COUNT(School_id) FROM endowment WHERE \"School_id\" != 1 OR \"endowment_id\" > 8 OR \"amount\" <> 9.51"} {"question": "What is the average aircraft ID, and what are the corresponding airport IDs, based on the aircraft and airport aircraft information?", "answer": {"columns": ["AVG(T1.Aircraft_ID)", "Airport_ID"], "index": [0], "data": [["2.75", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M9105_5.png", "TableImg_612ci_4.png"], "original_data_index": 519, "original_sql": "SELECT AVG(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the aircraft IDs, excluding ID 1, that are in the aircraft table, combined with the aircraft IDs less than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9atcf_5.png", "TableImg_Kyjum_4.png"], "original_data_index": 517, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which driver IDs are not equal to 8 and are not found in the school bus table with driver IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gfujk_12.png", "TableImg_V2qdg_5.png"], "original_data_index": 516, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which coach IDs meet these criteria: they are male and named Joe Fabbri, or their ID is less than 2, or their rank is greater than 3, or their club ID is 1 or higher; but exclude any coach IDs that are not 1, or whose starting year is 2010 or earlier and player ID is not 1?", "answer": {"columns": ["Coach_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_36ber_5.png", "TableImg_68aza_7.png"], "original_data_index": 518, "original_sql": "SELECT Coach_ID FROM coach WHERE Gender = \"M\" AND Coach_name = \"Joe Fabbri\" OR \"Coach_ID\" < 2 OR \"Rank\" > 3 OR \"Club_ID\" >= 1 EXCEPT SELECT Coach_ID FROM player_coach WHERE \"Coach_ID\" != 1 OR \"Starting_year\" <= 2010 AND \"Player_ID\" != 1"} {"question": "Which driver IDs are not 8, but are present in the driver table, and also which driver ID is 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y2jp4_12.png", "TableImg_H1ih8_5.png"], "original_data_index": 523, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the descriptions of roles that are not \"Photo\" or have the code \"PT\", and also have a role code that is not \"MG\"?", "answer": {"columns": ["role_description"], "index": [0, 1, 2], "data": [["Editor"], ["Photo"], ["Proof Manager"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Bgvrg_4.png", "TableImg_J2qc1_4.png"], "original_data_index": 521, "original_sql": "SELECT role_description FROM Roles WHERE role_description != \"Photo\" OR role_code = \"PT\" INTERSECT SELECT role_description FROM Roles WHERE role_code != \"MG\""} {"question": "What are the player IDs of players who are not male, or have a player ID less than or equal to 5, or are named Sean Robert, or whose occupation is not Parliamentarian and whose sponsor is not Charleswood\u2014St. James\u2014Assiniboia, and also have votes less than or equal to 4947, or have a rank of 1st, or are not male?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["10"], ["12"], ["13"], ["14"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_Nmmdv_14.png", "TableImg_Cbdn1_14.png"], "original_data_index": 522, "original_sql": "SELECT Player_ID FROM player WHERE Gender != \"M\" OR \"Player_ID\" <= 5 OR Player_name = \"Sean Robert\" OR Occupation != \"Parliamentarian\" AND Sponsor_name <> \"Charleswood\u2014St. James\u2014Assiniboia\" INTERSECT SELECT Player_ID FROM player WHERE \"Votes\" <= 4947 OR Rank = \"1st\" OR Gender != \"M\""} {"question": "What are the driver IDs, excluding driver ID 11, and also any driver IDs greater than 4, from either the driver or school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7427d_12.png", "TableImg_D3xki_5.png"], "original_data_index": 524, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs, excluding ID 10, are present in both the driver and school bus tables, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wjy4p_12.png", "TableImg_E4mk3_5.png"], "original_data_index": 520, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs that are 4 or greater, but not 7 or greater, from the driver and school bus tables respectively?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vz34z_12.png", "TableImg_Gd6f7_5.png"], "original_data_index": 525, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs, excluding ID 2, that are present in both the aircraft and airport_aircraft tables, excluding ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kuaua_5.png", "TableImg_Ctew3_4.png"], "original_data_index": 526, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the names of all clubs, excluding the Tennis Club, or located in HHH, combined with the names of clubs where the ClubID is not 1, or located in AKW, or not named Tennis Club?", "answer": {"columns": ["ClubName"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Bootup Baltimore"], ["Hopkins Student Enterprises"], ["Pen and Paper Gaming"], ["Bootup Baltimore"], ["Hopkins Student Enterprises"], ["Pen and Paper Gaming"], ["Tennis Club"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_3lbih_4.png", "TableImg_Sj72i_4.png"], "original_data_index": 527, "original_sql": "SELECT ClubName FROM Club WHERE ClubName <> \"Tennis Club\" OR ClubLocation = \"HHH\" UNION ALL SELECT ClubName FROM Club WHERE \"ClubID\" != 1 OR ClubLocation = \"AKW\" OR ClubName != \"Tennis Club\""} {"question": "Which driver IDs are greater than 7 and also appear in the school bus table with IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3dd42_12.png", "TableImg_Tfkfd_5.png"], "original_data_index": 529, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs greater than 3 that are not present in the airport aircraft table with IDs less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uu4d1_5.png", "TableImg_Unhwe_4.png"], "original_data_index": 528, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs are greater than or equal to 6 and also appear in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4hgz5_12.png", "TableImg_C9ao5_5.png"], "original_data_index": 531, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are greater than 4 but not found in the school bus table with IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wfsju_12.png", "TableImg_Humzp_5.png"], "original_data_index": 532, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the minimum student ID and average pet ID for students with a pet ID of 2002 or higher, or a student ID of 1002 or higher, but not for students who don't have a pet ID of 2002 and have a student ID of 1002 or lower?", "answer": {"columns": ["MIN(StuID)", "AVG(PetID)"], "index": [0], "data": [["1002", "2002.5"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_8m70s_3.png", "TableImg_07zyr_3.png"], "original_data_index": 533, "original_sql": "SELECT MIN(StuID), AVG(PetID) FROM Has_Pet WHERE \"PetID\" >= 2002 OR \"StuID\" >= 1002 EXCEPT SELECT MIN(StuID), AVG(PetID) FROM Has_Pet WHERE \"PetID\" != 2002 AND \"StuID\" <= 1002"} {"question": "What are the models that are not Volvo and not model ID 22, and also either have a model ID of 20 or have a maker ID greater than or equal to 23 and are not Jeep?", "answer": {"columns": ["Model"], "index": [0, 1], "data": [["hyundai"], ["nissan"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_R517j_36.png", "TableImg_9o4vl_36.png"], "original_data_index": 530, "original_sql": "SELECT Model FROM model_list WHERE Model <> \"volvo\" AND \"ModelId\" <> 22 INTERSECT SELECT Model FROM model_list WHERE \"ModelId\" = 20 OR Model != \"jeep\" AND \"Maker\" >= 23"} {"question": "What are the driver IDs greater than 3 that are not present in the school bus table with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_95w5w_12.png", "TableImg_0v45m_5.png"], "original_data_index": 536, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the document IDs that have other details not equal to \"n\" and a receipt date not equal to \"1996-05-31 06:51:58\", but are not document IDs from the Documents_Mailed table where the mailing date is not \"1973-02-21 10:17:01\", or the document ID is 7, or the mailed to address ID is not 2?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["15"], ["17"], ["25"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Exu2l_15.png", "TableImg_10nbn_14.png"], "original_data_index": 534, "original_sql": "SELECT document_id FROM Documents WHERE other_details <> \"n\" AND receipt_date != \"1996-05-31 06:51:58\" EXCEPT SELECT document_id FROM Documents_Mailed WHERE mailing_date != \"1973-02-21 10:17:01\" OR \"document_id\" = 7 OR \"mailed_to_address_id\" <> 2"} {"question": "What are the document IDs that are either less than or equal to 2 in the circulation history, or have other details equal to \"z\" and a receipt date not equal to \"1976-09-15 19:24:17\", or a shipping agent code of \"AL\", or a document ID of 14, or a receipt number not equal to \"114\" in the documents table?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["25"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_1fgwc_4.png", "TableImg_M8lcd_15.png"], "original_data_index": 535, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" <= 2 UNION ALL SELECT document_id FROM Documents WHERE other_details = \"z\" AND receipt_date <> \"1976-09-15 19:24:17\" OR shipping_agent_code = \"AL\" OR \"document_id\" = 14 OR receipt_number != \"114\""} {"question": "Which driver IDs are less than 7 but not greater than or equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cobim_12.png", "TableImg_Jcs6k_5.png"], "original_data_index": 539, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs, excluding driver ID 9, are present in the driver table, and which driver IDs greater than 9 are present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lfsqv_12.png", "TableImg_Fp9yn_5.png"], "original_data_index": 537, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the locations, school IDs, and counties of schools that meet both of the following criteria: either the school ID is \"6\" or the football class isn't \"AAA\", the mascot is \"Lions\", and the school name isn't \"Triton\"; and also either the county isn't \"50 Marshall\" or the school ID isn't \"3\", or the enrollment is at least 379, or the mascot isn't \"Cavaliers\", the football class is \"A\", the location isn't \"Bourbon\", and the IHSAA class isn't \"AA\"?", "answer": {"columns": ["Location", "School_id", "County"], "index": [0, 1], "data": [["Bremen", "1", "50 Marshall"], ["Lakeville", "6", "71 St. Joseph"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Nbrcb_8.png", "TableImg_Aikj6_8.png"], "original_data_index": 538, "original_sql": "SELECT Location, School_id, County FROM School WHERE School_id = \"6\" OR IHSAA_Football_Class <> \"AAA\" AND Mascot = \"Lions\" AND School_name != \"Triton\" INTERSECT SELECT Location, School_id, County FROM School WHERE County <> \"50 Marshall\" AND School_id != \"3\" OR \"Enrollment\" >= 379 OR Mascot <> \"Cavaliers\" AND IHSAA_Football_Class = \"A\" AND Location != \"Bourbon\" AND IHSAA_Class != \"AA\""} {"question": "Which driver IDs are not 7, and also which driver ID is 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vmk0w_12.png", "TableImg_Neio5_5.png"], "original_data_index": 541, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What is the minimum title and ID from the albums table where the title is \"Santana Live\" and the ID is 199, combined with the minimum title and ID from the employees table where any of the following conditions are met: the phone number is \"+1 (403) 456-9986\", the address is not \"11120 Jasper Ave NW\" and reports_to is not 1.0 and the state is not \"AB\", the ID is greater than 5 and the postal code is not \"T1K 5N8\", the birth date is not \"1973-08-29 00:00:00\", the first name is not \"Andrew\", the country is not \"Canada\", the city is not \"Calgary\", the title is not \"Sales Support Agent\" and the email is not \"nancy@chinookcorp.com\" and the last name is not \"Johnson\", or the hire date is \"2002-08-14 00:00:00\"?", "answer": {"columns": ["MIN(title)", "id"], "index": [0, 1], "data": [["", ""], ["General Manager", "1.0"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_Gkw4i_347.png", "TableImg_44b16_8.png"], "original_data_index": 540, "original_sql": "SELECT MIN(title), id FROM albums WHERE title = \"Santana Live\" AND \"id\" = 199 UNION SELECT MIN(title), id FROM employees WHERE phone = \"+1 (403) 456-9986\" OR address != \"11120 Jasper Ave NW\" AND \"reports_to\" <> 1.0 AND state != \"AB\" OR \"id\" > 5 AND postal_code <> \"T1K 5N8\" OR birth_date != \"1973-08-29 00:00:00\" OR first_name != \"Andrew\" OR country <> \"Canada\" OR city <> \"Calgary\" OR title <> \"Sales Support Agent\" AND email <> \"nancy@chinookcorp.com\" AND last_name <> \"Johnson\" OR hire_date = \"2002-08-14 00:00:00\""} {"question": "Which driver IDs are equal to 1 but not equal to 4, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xay5u_12.png", "TableImg_Jbdb8_5.png"], "original_data_index": 543, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs, excluding ID 12, from the driver table, combined with driver IDs greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C6338_12.png", "TableImg_Vfgxs_5.png"], "original_data_index": 544, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are not equal to 5, excluding those driver IDs that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H84z4_12.png", "TableImg_As56c_5.png"], "original_data_index": 542, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the document IDs that are not draft number 17 and also meet at least one of the following conditions: document type is not \"Hard Drive\", receipt number is not \"114\", document ID is greater than 23, document status is \"overdue\", or other details are not \"y\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2], "data": [["1"], ["2"], ["10"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_H8das_4.png", "TableImg_Sf9m7_15.png"], "original_data_index": 545, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"draft_number\" <> 17 INTERSECT SELECT document_id FROM Documents WHERE document_type_code != \"Hard Drive\" OR receipt_number != \"114\" OR \"document_id\" > 23 OR document_status_code = \"overdue\" OR other_details != \"y\""} {"question": "What are the driver IDs less than 12 that are not in the school bus records, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O1hlx_12.png", "TableImg_Opeo0_5.png"], "original_data_index": 548, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are less than 4 and also appear in the airport aircraft table, excluding aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bd18y_5.png", "TableImg_Kcusg_4.png"], "original_data_index": 547, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the contestant numbers for Nita Coster, and also for any votes not from New York, or where the contestant number is 3, or where the vote was not created at a specific time, or where the phone number is less than or equal to 6209222712?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["2"], ["3"], ["3"], ["5"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_Rclmh_11.png", "TableImg_58b6l_4.png"], "original_data_index": 546, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = \"Nita Coster\" UNION ALL SELECT contestant_number FROM VOTES WHERE state <> \"NY\" OR \"contestant_number\" = 3 OR created <> \"2018-03-09 19:03:40\" OR \"phone_number\" <= 6209222712"} {"question": "Which driver IDs, excluding ID 11, are present in both the driver and school bus records, but not ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dsx4w_12.png", "TableImg_4h0ey_5.png"], "original_data_index": 552, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are either 11 or not 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0wpza_12.png", "TableImg_Lk33e_5.png"], "original_data_index": 550, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What is the sum of ClubIDs and the ClubID, grouped by position, for members where the club location is not HHH or the club name is Tennis Club, and the position is not Teaching Coordinator, and the student ID is 1007?", "answer": {"columns": ["SUM(T1.ClubID)", "ClubID"], "index": [0], "data": [["4", "4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Tkcqm_4.png", "TableImg_Gb5it_4.png"], "original_data_index": 549, "original_sql": "SELECT SUM(T1.ClubID), T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubLocation <> \"HHH\" OR ClubName = \"Tennis Club\" AND Position <> \"Teaching Coordinator\" GROUP BY Position HAVING StuID = 1007"} {"question": "What is the maximum value of 'Other_Details' from the 'Documents' table where 'Other_Details' is not \"None\", 'Template_ID' is 6 or greater, the document name isn't \"Learning French\", and the description is \"w\", combined with the maximum 'Other_Details' from the 'Paragraphs' table where 'Paragraph_ID' is greater than 3708?", "answer": {"columns": ["MAX(Other_Details)"], "index": [0], "data": [[""]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_Ui1g9_15.png", "TableImg_2ts84_15.png"], "original_data_index": 551, "original_sql": "SELECT MAX(Other_Details) FROM Documents WHERE Other_Details <> \"None\" AND \"Template_ID\" >= 6 AND Document_Name <> \"Learning French\" AND Document_Description = \"w\" UNION SELECT MAX(Other_Details) FROM Paragraphs WHERE \"Paragraph_ID\" > 3708"} {"question": "Which driver IDs are less than 6 but not present in the school bus table with IDs greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J5unu_12.png", "TableImg_3uj3g_5.png"], "original_data_index": 553, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs that are less than or equal to 5, excluding those aircraft IDs that are less than 3 and present in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tyl5e_5.png", "TableImg_Bjw4z_4.png"], "original_data_index": 554, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs, excluding ID 12, that are present in both the driver and school bus tables, excluding ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ulvj7_12.png", "TableImg_Ztj8k_5.png"], "original_data_index": 555, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the property IDs that have a feature ID of 4 or greater, excluding those properties where specific feature conditions are met, such as certain feature values, address, and dates?", "answer": {"columns": ["property_id"], "index": [0, 1], "data": [["12"], ["14"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_4k6yg_15.png", "TableImg_Hmfqh_15.png"], "original_data_index": 556, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"feature_id\" >= 4 EXCEPT SELECT property_id FROM Properties WHERE fld_feature_2 = \"None\" AND apt_feature_1 <> \"ut\" AND shp_feature_3 = \"None\" AND property_address = \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" OR hse_feature_3 != \"None\" OR oth_feature_1 <> \"None\" OR date_sold = \"1981-06-26 21:28:28\" AND apt_feature_3 != \"None\" OR shp_feature_2 = \"None\" AND oth_feature_3 <> \"None\" OR fld_feature_3 = \"None\" AND \"buyer_offered_price\" <= 296733.0 OR \"room_count\" < 3 OR date_on_market = \"1986-11-26 04:12:18\" AND \"agreed_selling_price\" != 4201.8 AND oth_feature_2 <> \"None\" OR apt_feature_2 <> \"adipisci\" AND property_type_code = \"Field\" AND property_name != \"longacre\" AND \"vendor_requested_price\" > 2573.0 AND shp_feature_1 <> \"None\" AND other_property_details <> \"None\" OR hse_feature_1 <> \"None\" OR hse_feature_2 = \"None\" AND fld_feature_1 = \"None\""} {"question": "What are the driver IDs that are greater than or equal to 4, excluding any driver IDs that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dbumw_12.png", "TableImg_Ktbw0_5.png"], "original_data_index": 560, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the aircraft IDs that are either less than or equal to 5 in the aircraft table or greater than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4q03y_5.png", "TableImg_0ad8f_4.png"], "original_data_index": 558, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the driver IDs greater than 4 in the driver table, combined with the driver IDs greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I3rhh_12.png", "TableImg_Hm1sx_5.png"], "original_data_index": 557, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs greater than 3 or less than 1, considering data from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zrmhk_5.png", "TableImg_Ntl9q_4.png"], "original_data_index": 559, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the driver IDs that are less than 3, and also the driver IDs from school buses that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ywp97_12.png", "TableImg_D9hx4_5.png"], "original_data_index": 564, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the names of employees who either don't earn 23980 or aren't named Mark Young, and also the names of employees with an employee ID less than or equal to 248965255?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["Angela Martinez"], ["Barbara Wilson"], ["Betty Adams"], ["Chad Stewart"], ["David Anderson"], ["Donald King"], ["Dorthy Lewis"], ["Elizabeth Taylor"], ["Eric Cooper"], ["George Wright"], ["Haywood Kelly"], ["James Smith"], ["Jennifer Thomas"], ["John Williams"], ["Joseph Thompson"], ["Karen Scott"], ["Larry West"], ["Lawrence Sperry"], ["Linda Davis"], ["Lisa Walker"], ["Mark Young"], ["Mary Johnson"], ["Michael Miller"], ["Milo Brooks"], ["Patricia Jones"], ["Richard Jackson"], ["Robert Brown"], ["William Jones"], ["William Moore"], ["William Ward"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Kq57n_31.png", "TableImg_U2hy6_31.png"], "original_data_index": 562, "original_sql": "SELECT name FROM employee WHERE \"salary\" != 23980 OR name != \"Mark Young\" UNION SELECT name FROM employee WHERE \"eid\" <= 248965255"} {"question": "What are the aircraft IDs, excluding ID 1, that are either listed in the aircraft table or in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jami6_5.png", "TableImg_Glxge_4.png"], "original_data_index": 563, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "For documents, what are the document status codes, receipt dates, the count of shipping agents, average document IDs, document type codes, and average receipt numbers? Include documents where the shipping agent code is not \"SH\" or the receipt number is not \"114\", and also those where the document type code is not \"Hard Drive\", or the document status code is not \"overdue\", or the receipt date is not \"2008-04-21 20:42:25\" and the document ID is greater than 17. Also include documents where the document status code is \"working\" and the shipping agent code is not \"UP\", or where other details are \"y\" and the receipt date is not \"2015-04-03 09:36:19\" and the document type code is \"Paper\".", "answer": {"columns": ["document_status_code", "receipt_date", "COUNT(shipping_agent_code)", "AVG(document_id)", "document_type_code", "AVG(receipt_number)"], "index": [0, 1], "data": [["working", "1982-09-27 14:52:15", "4", "17.0", "CD", "104.0"], ["working", "2008-04-21 20:42:25", "15", "12.6666666667", "CD", "77.4666666667"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_4hwfu_15.png", "TableImg_48uh0_15.png"], "original_data_index": 561, "original_sql": "SELECT document_status_code, receipt_date, COUNT(shipping_agent_code), AVG(document_id), document_type_code, AVG(receipt_number) FROM Documents WHERE shipping_agent_code <> \"SH\" OR receipt_number <> \"114\" AND document_type_code <> \"Hard Drive\" OR document_status_code != \"overdue\" OR receipt_date != \"2008-04-21 20:42:25\" AND \"document_id\" > 17 UNION SELECT document_status_code, receipt_date, COUNT(shipping_agent_code), AVG(document_id), document_type_code, AVG(receipt_number) FROM Documents WHERE document_status_code = \"working\" AND shipping_agent_code <> \"UP\" OR other_details = \"y\" AND receipt_date <> \"2015-04-03 09:36:19\" AND document_type_code = \"Paper\""} {"question": "Which driver IDs are greater than 8 but not present in the school bus table with IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uhvmv_12.png", "TableImg_0dsiw_5.png"], "original_data_index": 566, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are greater than 9, and which driver ID is 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aagar_12.png", "TableImg_N82we_5.png"], "original_data_index": 565, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the age, city code, sex, major, and first name of students who are not named Steven, are not female, and are not 22 years old, or live in a city other than WAS, or have student ID 1035, a major greater than 550, and advisor 1148, and also have a city code of WAS, or are younger than 19 and have a major of at least 550, or have a last name of Tai, or a first name other than Dinesh?", "answer": {"columns": ["Age", "city_code", "Sex", "Major", "Fname"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "data": [["16", "HKG", "F", "600", "Susan"], ["17", "DET", "M", "600", "Mark"], ["17", "HOU", "M", "600", "Derek"], ["17", "PEK", "M", "100", "Jun"], ["17", "PHL", "M", "540", "Michael"], ["18", "BAL", "F", "540", "Stacy"], ["18", "BAL", "F", "600", "Linda"], ["18", "BAL", "M", "600", "Andy"], ["18", "BOS", "M", "50", "Eric"], ["18", "DAL", "M", "600", "Charles"], ["18", "LOS", "M", "520", "Paul"], ["18", "NAR", "M", "550", "William"], ["18", "PIT", "F", "600", "Lisa"], ["18", "PIT", "M", "520", "Mark"], ["18", "WAS", "M", "600", "Arthur"], ["19", "HKG", "F", "600", "Tracy"], ["19", "HKG", "M", "520", "Eric"], ["19", "NYC", "M", "520", "George"], ["19", "YYZ", "M", "600", "Eric"], ["20", "ATL", "M", "550", "Eric"], ["20", "BAL", "F", "600", "Jandy"], ["20", "NYC", "M", "520", "David"], ["20", "PHL", "F", "550", "Sarah"], ["20", "PIT", "M", "600", "Michael"], ["20", "PIT", "M", "600", "Steven"], ["20", "ROC", "M", "550", "Eric"], ["21", "SFO", "F", "550", "Lisa"], ["22", "NYC", "M", "520", "Ian"], ["22", "PHL", "M", "600", "David"], ["26", "YYZ", "M", "600", "Paul"], ["27", "LON", "M", "600", "Bruce"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Q8zk6_34.png", "TableImg_E0q25_34.png"], "original_data_index": 567, "original_sql": "SELECT Age, city_code, Sex, Major, Fname FROM Student WHERE Fname <> \"Steven\" AND Sex != \"F\" AND \"Age\" != 22 OR city_code != \"WAS\" OR \"StuID\" = 1035 AND \"Major\" > 550 AND \"Advisor\" = 1148 INTERSECT SELECT Age, city_code, Sex, Major, Fname FROM Student WHERE city_code = \"WAS\" OR \"Age\" < 19 AND \"Major\" >= 550 OR LName = \"Tai\" OR Fname != \"Dinesh\""} {"question": "What are the driver IDs that are greater than or equal to 5, excluding those driver IDs that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kr3h5_12.png", "TableImg_Rkxvm_5.png"], "original_data_index": 570, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs that are greater than or equal to 4, but not aircraft IDs that are less than 5, considering aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I73wi_5.png", "TableImg_Xqon4_4.png"], "original_data_index": 569, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 1 from the driver table and driver IDs greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X3y99_12.png", "TableImg_Vy4hj_5.png"], "original_data_index": 568, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs that are less than 3 in the driver table, combined with the driver IDs that are not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Inj0r_12.png", "TableImg_Uvefv_5.png"], "original_data_index": 571, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 3 or greater, or in the airport_aircraft table with an ID of 2 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qsjsm_5.png", "TableImg_Ghrpm_4.png"], "original_data_index": 572, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which driver IDs are less than 6 but not equal to 10, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2058e_12.png", "TableImg_Ltas9_5.png"], "original_data_index": 573, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs, excluding driver ID 1, that are present in both the driver and school bus tables, with the school bus driver IDs being 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ri8k3_12.png", "TableImg_T5wfv_5.png"], "original_data_index": 574, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs, excluding driver 6, that are present in both the driver and school bus tables, excluding driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kqi31_12.png", "TableImg_8tpzc_5.png"], "original_data_index": 575, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What is the maximum continent for Russia, and what is the maximum continent for countries that are not Nigeria and have a country ID greater than 12 or a continent value greater than 2?", "answer": {"columns": ["MAX(Continent)"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_Hw9he_15.png", "TableImg_Qwr52_15.png"], "original_data_index": 576, "original_sql": "SELECT MAX(Continent) FROM countries WHERE CountryName = \"russia\" UNION SELECT MAX(Continent) FROM countries WHERE CountryName <> \"nigeria\" AND \"CountryId\" > 12 OR \"Continent\" > 2"} {"question": "What are the aircraft IDs that are greater than or equal to 4 in the aircraft table, but not in the airport_aircraft table where the aircraft ID is greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mvodn_5.png", "TableImg_Mjnxf_4.png"], "original_data_index": 578, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the aircraft IDs that are less than 5, and also the aircraft IDs from the airport table that are not 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F1j4t_5.png", "TableImg_8k7pz_4.png"], "original_data_index": 577, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the driver IDs, excluding driver ID 8, that are present in both the driver and school bus tables, where the driver ID is less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wls9z_12.png", "TableImg_40kuq_5.png"], "original_data_index": 579, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs that are either less than or equal to 8 in the driver table or less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T65jr_12.png", "TableImg_8ojub_5.png"], "original_data_index": 580, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are less than 5 and also appear in the school bus table with IDs no greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F6qot_12.png", "TableImg_B4oaq_5.png"], "original_data_index": 583, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs, excluding aircraft ID 1, that are present in both the aircraft and airport_aircraft tables, but also excluding aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ehs30_5.png", "TableImg_Fof6j_4.png"], "original_data_index": 582, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the airport IDs, flight IDs, and dates for flights where the flight ID is less than or equal to 11 and the flight number is not M2-F1 #21 and the pilot is not Thompson, or the altitude is at least 3650, combined with flights where the flight number is not M2-F1 #1 or the pilot is not Thompson and the date is not March 1, 1963 and the company ID is greater than 7, or the flight ID is not 9, or the altitude is 3650, or the velocity is not 135, or the airport ID is less than or equal to 5?", "answer": {"columns": ["airport_id", "id", "Date"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], "data": [["2", "2", "1963-08-16 00:00:00"], ["2", "3", "1963-09-03 00:00:00"], ["3", "4", "1963-10-25 00:00:00"], ["4", "5", "1963-11-08 00:00:00"], ["4", "6", "1964-01-29 00:00:00"], ["5", "7", "1964-03-30 00:00:00"], ["2", "8", "1964-05-19 00:00:00"], ["6", "9", "1965-07-16 00:00:00"], ["9", "10", "1965-08-30 00:00:00"], ["4", "11", "1965-10-08 00:00:00"], ["6", "12", "1966-03-28 00:00:00"], ["8", "13", "1966-08-04 00:00:00"], ["1", "1", "1963-03-01 00:00:00"], ["2", "2", "1963-08-16 00:00:00"], ["2", "3", "1963-09-03 00:00:00"], ["3", "4", "1963-10-25 00:00:00"], ["4", "5", "1963-11-08 00:00:00"], ["4", "6", "1964-01-29 00:00:00"], ["5", "7", "1964-03-30 00:00:00"], ["2", "8", "1964-05-19 00:00:00"], ["6", "9", "1965-07-16 00:00:00"], ["9", "10", "1965-08-30 00:00:00"], ["4", "11", "1965-10-08 00:00:00"], ["6", "12", "1966-03-28 00:00:00"], ["8", "13", "1966-08-04 00:00:00"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Lfd1j_13.png", "TableImg_Cics3_13.png"], "original_data_index": 581, "original_sql": "SELECT airport_id, id, Date FROM flight WHERE \"id\" <= 11 AND Vehicle_Flight_number != \"M2-F1 #21\" AND Pilot <> \"Thompson\" OR \"Altitude\" >= 3650.0 UNION ALL SELECT airport_id, id, Date FROM flight WHERE Vehicle_Flight_number <> \"M2-F1 #1\" OR Pilot <> \"Thompson\" AND Date <> \"March 1, 1963\" AND \"company_id\" > 7 OR \"id\" <> 9 OR \"Altitude\" = 3650.0 OR \"Velocity\" <> 135.0 OR \"airport_id\" <= 5"} {"question": "What are the driver IDs greater than 12 from the driver table, combined with the driver IDs not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R9wrb_12.png", "TableImg_Bh92j_5.png"], "original_data_index": 585, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs that are either aircraft ID 4 or any aircraft ID that is not 3, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wjxv9_5.png", "TableImg_M4p6m_4.png"], "original_data_index": 586, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the draft numbers and document IDs that appear in both the Circulation History where the copy number is greater than 10 or the employee ID is not 8, and in the Document Drafts where the draft number is not 14, the document ID is less than or equal to 12, and the draft details are not \"m\"?", "answer": {"columns": ["draft_number", "document_id"], "index": [0, 1, 2], "data": [["1", "2"], ["2", "1"], ["20", "10"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_0k4cu_4.png", "TableImg_G8doz_15.png"], "original_data_index": 584, "original_sql": "SELECT draft_number, document_id FROM Circulation_History WHERE \"copy_number\" > 10 OR \"employee_id\" <> 8 INTERSECT SELECT draft_number, document_id FROM Document_Drafts WHERE \"draft_number\" <> 14 AND \"document_id\" <= 12 AND draft_details <> \"m\""} {"question": "What are the origin, arrival date, and flight number for all flights, including those that arrived on 04/12/2005 05:03, and also those that arrived on any other date?", "answer": {"columns": ["origin", "arrival_date", "flno"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["Los Angeles", "04/12/2005 09:40", "99"], ["Los Angeles", "04/12/2005 08:45", "13"], ["Los Angeles", "04/12/2005 07:05", "346"], ["Los Angeles", "04/12/2005 11:10", "7"], ["Los Angeles", "04/12/2005 03:55", "2"], ["Los Angeles", "04/12/2005 11:15", "33"], ["Los Angeles", "04/12/2005 03:18", "34"], ["Chicago", "04/12/2005 10:03", "76"], ["Chicago", "04/12/2005 12:02", "68"], ["Los Angeles", "04/12/2005 05:03", "387"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_926dw_10.png", "TableImg_Vtrrs_10.png"], "original_data_index": 587, "original_sql": "SELECT origin, arrival_date, flno FROM flight WHERE arrival_date <> \"04/12/2005 05:03\" UNION ALL SELECT origin, arrival_date, flno FROM flight WHERE arrival_date = \"04/12/2005 05:03\""} {"question": "What are the driver IDs that are less than 2, and also the driver IDs from school buses that are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Etr8o_12.png", "TableImg_R551e_5.png"], "original_data_index": 588, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs greater than 3, considering both the aircraft and airport_aircraft tables, and combining the results?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5w98s_5.png", "TableImg_J8rvm_4.png"], "original_data_index": 589, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the IDs of drivers who are either not driver ID 4 in the driver table or not driver ID 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6z9r4_12.png", "TableImg_Ehpdy_5.png"], "original_data_index": 590, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs that are either greater than or equal to 3 in the aircraft table or not equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y3zzt_5.png", "TableImg_Gn0qi_4.png"], "original_data_index": 595, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs are in the driver table, excluding driver ID 2, or are in the school bus table with driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ngxke_12.png", "TableImg_Rfeic_5.png"], "original_data_index": 594, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the names of counties that do not have a zip code of D09, excluding those counties where the County ID is less than 1 and the zip code is not D02 and the population is less than or equal to 21000, or the county name is not Manning?", "answer": {"columns": ["County_name"], "index": [0], "data": [["Manning"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_R15i9_5.png", "TableImg_10lvt_5.png"], "original_data_index": 593, "original_sql": "SELECT County_name FROM county WHERE Zip_code <> \"D09\" EXCEPT SELECT County_name FROM county WHERE \"County_Id\" < 1 AND Zip_code != \"D02\" AND \"Population\" <= 21000.0 OR County_name <> \"Manning\""} {"question": "What are the aircraft IDs that are greater than 4 and also appear in the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qw21f_5.png", "TableImg_O7xdr_4.png"], "original_data_index": 592, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which driver IDs are less than or equal to 3 but not found in the school bus table with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xi6ux_12.png", "TableImg_L397c_5.png"], "original_data_index": 596, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are either 5 or greater, or less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xqn7w_5.png", "TableImg_1mtvo_4.png"], "original_data_index": 598, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are greater than or equal to 8 but not present in the school bus table with IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X8q9y_12.png", "TableImg_Tg7xo_5.png"], "original_data_index": 597, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs, excluding ID 4, from the aircraft table, combined with the aircraft IDs, excluding ID 2, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Agz0p_5.png", "TableImg_2fcxs_4.png"], "original_data_index": 600, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the maximum other details and receipt dates for documents, excluding those with \"working\" status or receipt number \"79\", or not received on \"2005-09-30 00:10:02\"? Also, what are the maximum other details and receipt dates for documents that don't have receipt number \"189\", or where the document status isn't \"done\" and the document ID is less than 23, the other details aren't \"w\", and the document type isn't \"Hard Drive\"?", "answer": {"columns": ["MAX(other_details)", "receipt_date"], "index": [0, 1], "data": [["z", "2008-04-21 20:42:25"], ["z", "2008-04-21 20:42:25"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_0r9va_15.png", "TableImg_75j0o_15.png"], "original_data_index": 599, "original_sql": "SELECT MAX(other_details), receipt_date FROM Documents WHERE document_status_code <> \"working\" AND receipt_number <> \"79\" OR receipt_date <> \"2005-09-30 00:10:02\" UNION ALL SELECT MAX(other_details), receipt_date FROM Documents WHERE receipt_number <> \"189\" OR document_status_code != \"done\" AND \"document_id\" < 23 AND other_details != \"w\" AND document_type_code != \"Hard Drive\""} {"question": "Which driver IDs are not equal to 5, but are not found in the school bus table with driver IDs not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4kt3i_12.png", "TableImg_Jgfcz_5.png"], "original_data_index": 602, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are greater than 2 but not less than 9, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4dztn_12.png", "TableImg_Ppbn9_5.png"], "original_data_index": 601, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are either less than or equal to 6 or not equal to 10, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sfpg3_12.png", "TableImg_R0sf5_5.png"], "original_data_index": 603, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs, excluding driver ID 4, are associated with drivers and have a driver ID greater than 1?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ivhdj_12.png", "TableImg_Afxwk_5.png"], "original_data_index": 604, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are not equal to 6 and are not present in the school bus table with driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I4k5r_12.png", "TableImg_3m51i_5.png"], "original_data_index": 605, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the Lieutenant Governor and Attorney General for parties that are not Democratic or where the US Senate is not Hillary Rodham Clinton, combined with the Lieutenant Governor and Attorney General for parties that are not Democratic or where the year is not 2002?", "answer": {"columns": ["Lieutenant_Governor", "Attorney_General"], "index": [0, 1, 2, 3, 4, 5], "data": [["David Paterson", "Andrew Cuomo"], ["David Paterson", "Jeanine Pirro"], ["Dennis Mehiel", "Eliot Spitzer"], ["Jonathan Reiter", "Eliot Spitzer"], ["Mary Donohue", "Eliot Spitzer"], ["Sandra Frankel", "Eliot Spitzer"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_8cf3x_7.png", "TableImg_E53jv_7.png"], "original_data_index": 606, "original_sql": "SELECT Lieutenant_Governor, Attorney_General FROM party WHERE Party != \"Democratic\" OR US_Senate <> \"Hillary Rodham Clinton\" UNION SELECT Lieutenant_Governor, Attorney_General FROM party WHERE Party != \"Democratic\" OR \"Year\" <> 2002.0"} {"question": "How many school bus drivers have worked for more than 8 years or have a Driver ID of 4 or less, excluding those who are not full-time, and show whether they are full-time or not?", "answer": {"columns": ["COUNT(Years_Working)", "If_full_time"], "index": [0], "data": [["3", "F"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_5hg9r_5.png", "TableImg_A7u3r_5.png"], "original_data_index": 608, "original_sql": "SELECT COUNT(Years_Working), If_full_time FROM school_bus WHERE \"Years_Working\" > 8 OR \"Driver_ID\" <= 4 EXCEPT SELECT COUNT(Years_Working), If_full_time FROM school_bus WHERE If_full_time != \"T\""} {"question": "What are the sales, headquarters, and profits for companies that aren't in the Conglomerate industry and don't have sales of 470.2 billion, or are named Petrobras and not headquartered in Germany, or have a company ID other than 5, or have profits greater than or equal to 16.2 billion and a market value other than 107.5 billion? Also, what are the sales, headquarters, and profits for companies headquartered in the USA or in the Banking industry, or named Royal Dutch Shell and have sales not equal to 221.9 billion, and a company ID less than or equal to 4, or have profits less than or equal to 20.5 billion?", "answer": {"columns": ["Sales_in_Billion", "Headquarters", "Profits_in_Billion"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["62.4", "China", "14.4"], ["68.7", "China", "20.5"], ["82.6", "China", "25.1"], ["87.6", "USA", "15.9"], ["102.0", "UK", "16.2"], ["102.6", "USA", "11.1"], ["110.8", "USA", "19.0"], ["117.6", "Russia", "31.7"], ["143.7", "USA", "10.3"], ["145.9", "Brazil", "20.1"], ["147.3", "USA", "14.2"], ["216.2", "France", "15.9"], ["221.9", "Germany", "21.5"], ["236.3", "USA", "26.9"], ["310.1", "China", "20.6"], ["375.5", "UK", "25.7"], ["433.5", "USA", "41.1"], ["447.0", "USA", "15.7"], ["470.2", "Netherlands", "30.9"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_O95k1_19.png", "TableImg_Mpspg_19.png"], "original_data_index": 607, "original_sql": "SELECT Sales_in_Billion, Headquarters, Profits_in_Billion FROM company WHERE \"Sales_in_Billion\" != 470.2 AND Industry != \"Conglomerate\" OR Headquarters != \"Germany\" AND Name = \"Petrobras\" OR \"Company_ID\" <> 5.0 OR \"Market_Value_in_Billion\" <> 107.5 AND \"Profits_in_Billion\" >= 16.2 UNION SELECT Sales_in_Billion, Headquarters, Profits_in_Billion FROM company WHERE Headquarters = \"USA\" OR Industry = \"Banking\" OR Name = \"Royal Dutch Shell\" AND \"Sales_in_Billion\" <> 221.9 AND \"Company_ID\" <= 4.0 OR \"Profits_in_Billion\" <= 20.5"} {"question": "What are the aircraft IDs that are less than 3 in the aircraft table, combined with the aircraft IDs that are less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kkg32_5.png", "TableImg_Drdfa_4.png"], "original_data_index": 612, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs that are either less than or equal to 3 in the driver table, or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L0m3s_12.png", "TableImg_Zdwct_5.png"], "original_data_index": 609, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are not equal to 6 and are not found in the school bus table with driver IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3enap_12.png", "TableImg_D8wbl_5.png"], "original_data_index": 610, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What is the average city code, age, last name, major, count of first names, sum of advisor, and sex for students where the age is greater than 18, or the first name is Ian and the student ID is greater than 1035, or the advisor is less than or equal to 1148, excluding those students who are 17 years old, named Michael, and not male, or whose major is 550 and last name is not Andreou?", "answer": {"columns": ["AVG(city_code)", "Age", "LName", "Major", "COUNT(Fname)", "SUM(Advisor)", "Sex"], "index": [0], "data": [["0", "18", "Smith", "600", "21", "109554", "F"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Lbcv6_34.png", "TableImg_F6yx9_34.png"], "original_data_index": 611, "original_sql": "SELECT AVG(city_code), Age, LName, Major, COUNT(Fname), SUM(Advisor), Sex FROM Student WHERE \"Age\" > 18 OR Fname = \"Ian\" AND \"StuID\" > 1035 OR \"Advisor\" <= 1148 EXCEPT SELECT AVG(city_code), Age, LName, Major, COUNT(Fname), SUM(Advisor), Sex FROM Student WHERE \"Age\" = 17 AND Fname = \"Michael\" AND Sex != \"M\" OR \"Major\" = 550 AND LName != \"Andreou\""} {"question": "What are the driver IDs, excluding driver ID 8, that are present in both the driver and school bus tables, where the driver ID is also less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Roxw4_12.png", "TableImg_Oldpl_5.png"], "original_data_index": 613, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that are not 3 and are present in the aircraft table but not in the airport_aircraft table with an ID less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5neut_5.png", "TableImg_Nofcw_4.png"], "original_data_index": 616, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs that are either less than or equal to 3, or are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Umnhi_12.png", "TableImg_Scqnw_5.png"], "original_data_index": 617, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the airport IDs for airports in Norway that are not in Brussels, have an ID less than or equal to 6, and don't have the ICAO code EHAM, combined with the flight IDs for flights that did not occur on January 29, 1964?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["6"], ["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_4m6qz_9.png", "TableImg_P4r4s_13.png"], "original_data_index": 615, "original_sql": "SELECT id FROM airport WHERE City != \"Brussels\" AND \"id\" <= 6 AND ICAO != \"EHAM\" AND Country = \"Norway\" UNION ALL SELECT id FROM flight WHERE Date <> \"January 29, 1964\""} {"question": "What are the driver IDs that are both equal to 4 in the driver table and not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7fd5e_12.png", "TableImg_Cm0u2_5.png"], "original_data_index": 614, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs, excluding driver ID 1, are in the driver table but not in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S9ggw_12.png", "TableImg_2jb24_5.png"], "original_data_index": 619, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that are less than 2, and also the aircraft IDs that are 3 or greater, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z5qjf_5.png", "TableImg_Whlbp_4.png"], "original_data_index": 618, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the driver IDs that are less than 5 from the driver table, combined with the driver IDs that are less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_51avr_12.png", "TableImg_Wg30m_5.png"], "original_data_index": 622, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the district IDs where the district is headquartered in Bhakkar City and the district ID is greater than 9, or the city population is not 464742, and also the district IDs where the store ID is not 3 or the district ID is less than 3?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_41e2b_15.png", "TableImg_Pruqw_5.png"], "original_data_index": 621, "original_sql": "SELECT District_ID FROM district WHERE Headquartered_City = \"Bhakkar City\" AND \"District_ID\" > 9 OR \"City_Population\" <> 464742.0 UNION SELECT District_ID FROM store_district WHERE \"Store_ID\" <> 3 OR \"District_ID\" < 3"} {"question": "What are the driver IDs greater than 9, and also the driver IDs less than 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yfd4b_12.png", "TableImg_Nqvr3_5.png"], "original_data_index": 620, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs that are greater than or equal to 2, excluding those driver IDs that are not equal to 9, considering only the driver IDs from the driver table and the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jmksl_12.png", "TableImg_Ksux3_5.png"], "original_data_index": 623, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are not equal to 6, but are not found in the school bus table with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zqsgu_12.png", "TableImg_Q066f_5.png"], "original_data_index": 626, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are not 3 and also appear in the school bus table with IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uu84w_12.png", "TableImg_U6jr5_5.png"], "original_data_index": 627, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs greater than 5, and also what are the driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8ox1p_12.png", "TableImg_Xdqss_5.png"], "original_data_index": 624, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs that are less than or equal to 5, excluding those with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gqrde_12.png", "TableImg_Zxmbs_5.png"], "original_data_index": 625, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the aircraft IDs that are either less than or equal to 5, or greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4fy2l_5.png", "TableImg_7smwy_4.png"], "original_data_index": 630, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are less than 12 but not equal to 4, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gof2o_12.png", "TableImg_Xllz1_5.png"], "original_data_index": 631, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are greater than 6 but not present in the school bus table with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cc9e5_12.png", "TableImg_Pk37o_5.png"], "original_data_index": 628, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the country, building number, and zip code for addresses that are not \"37698 Hahn Curve Apt. 572\" and not in zip code \"14445\", and also for addresses that are not in \"New Bernieceburgh\" or not in \"Georgia\" with a zip code other than \"75074\", a building number other than \"535 Ariel Brook\", and a country other than \"USA\", where the address ID is 5 or greater?", "answer": {"columns": ["country", "line_1_number_building", "zip_postcode"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["USA", "00704 Zoe Alley", "8938"], ["USA", "053 Quigley Island", "22194"], ["USA", "2291 Larkin Ports", "95098"], ["USA", "29085 Dejah Pine Suite 059", "80376"], ["USA", "354 Frederik Ridge", "27559"], ["USA", "376 Kallie Tunnel Apt. 784", "63768"], ["USA", "43235 Jazmin Mountain Suite 251", "75074"], ["USA", "4834 Schaefer Light Suite 947", "61121"], ["USA", "484 O'Hara Drive", "5"], ["USA", "535 Ariel Brook", "85954"], ["USA", "56461 Baumbach Well Suite 634", "34975"], ["USA", "9260 Streich Mountain", "43988"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_29p54_15.png", "TableImg_3ff3o_15.png"], "original_data_index": 629, "original_sql": "SELECT country, line_1_number_building, zip_postcode FROM Addresses WHERE line_1_number_building != \"37698 Hahn Curve Apt. 572\" AND zip_postcode != \"14445\" INTERSECT SELECT country, line_1_number_building, zip_postcode FROM Addresses WHERE city <> \"New Bernieceburgh\" OR state_province_county != \"Georgia\" AND zip_postcode <> \"75074\" AND line_1_number_building <> \"535 Ariel Brook\" AND country != \"USA\" AND \"address_id\" >= 5"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 4 from the driver table and including only driver IDs greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_92ih1_12.png", "TableImg_R4tyd_5.png"], "original_data_index": 635, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are equal to 9, and also which driver IDs are not equal to 9, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xrsim_12.png", "TableImg_Hicn7_5.png"], "original_data_index": 632, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are less than or equal to 4, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4fico_12.png", "TableImg_Q58or_5.png"], "original_data_index": 634, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs, excluding driver ID 3, that are present in both the driver and school bus tables, where the driver ID is less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9h4m7_12.png", "TableImg_Lwp5j_5.png"], "original_data_index": 633, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 7 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hzhpk_12.png", "TableImg_Kmx79_5.png"], "original_data_index": 636, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are greater than or equal to 1, combined with the aircraft IDs that are less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gjbav_5.png", "TableImg_Hroos_4.png"], "original_data_index": 640, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the IDs of drivers, excluding driver 5, and the IDs of school bus drivers, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H4nmp_12.png", "TableImg_Rey5g_5.png"], "original_data_index": 638, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are greater than 6 but not present in the school bus table with IDs greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X2lv0_12.png", "TableImg_D2f2b_5.png"], "original_data_index": 637, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the IDs of people who either have not worked for at least 2 years or have a company ID of 11 or greater or don't have an ID of 4, combined with the IDs of people who are not from the United Kingdom and are named Tom Sheehey or are 27 years old or older or did not graduate from California?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["3"], ["2"], ["7"], ["1"], ["4"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_Mtrtc_5.png", "TableImg_Zud0i_7.png"], "original_data_index": 639, "original_sql": "SELECT People_ID FROM employment WHERE \"Year_working\" <> 2 OR \"Company_ID\" >= 11 OR \"People_ID\" != 4 UNION ALL SELECT People_ID FROM people WHERE Nationality <> \"United Kindom\" AND Name = \"Tom Sheehey\" OR \"Age\" >= 27 OR Graduation_College <> \"California\""} {"question": "What are the driver IDs greater than 9, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ds9l5_12.png", "TableImg_Jc2ge_5.png"], "original_data_index": 643, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are not equal to 7, but are not also driver IDs from school buses with IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yq7pt_12.png", "TableImg_Wcgro_5.png"], "original_data_index": 642, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the names and IDs of the airports listed in the airport and airport_aircraft tables?", "answer": {"columns": ["Airport_Name", "Airport_ID"], "index": [0, 1, 2, 3], "data": [["London Heathrow", "1"], ["London Gatwick", "2"], ["Birmingham Airport", "6"], ["Bristol", "9"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Yw1rz_10.png", "TableImg_Plpg7_4.png"], "original_data_index": 641, "original_sql": "SELECT T1.Airport_Name, T2.Airport_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "What are the minimum headquarters and market value in billions for companies that are not in the oil and gas industry or are headquartered in Brazil and have sales not equal to 110.8 billion, combined with the minimum headquarters and market value in billions for companies with sales of 110.8 billion and headquartered in China, or named Royal Dutch Shell, or with profits of 16.2 billion?", "answer": {"columns": ["MIN(Headquarters)", "Market_Value_in_Billion"], "index": [0, 1], "data": [["Brazil", "180.0"], ["Netherlands", "227.6"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_3ldxa_19.png", "TableImg_7dart_19.png"], "original_data_index": 644, "original_sql": "SELECT MIN(Headquarters), Market_Value_in_Billion FROM company WHERE Industry != \"Oil and gas\" OR Headquarters = \"Brazil\" AND \"Sales_in_Billion\" <> 110.8 UNION SELECT MIN(Headquarters), Market_Value_in_Billion FROM company WHERE \"Sales_in_Billion\" = 110.8 AND Headquarters = \"China\" OR Name = \"Royal Dutch Shell\" OR \"Profits_in_Billion\" = 16.2"} {"question": "What are the driver IDs that are less than or equal to 7, excluding those with IDs less than 3, considering driver information from the 'driver' and 'school_bus' tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qk2tr_12.png", "TableImg_Bphzo_5.png"], "original_data_index": 645, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What is the minimum city population in Gujrat City with a city area of 10.0, excluding the minimum city population where the city area is not 12.0, or the district name is not Bahawalnagar District and the district ID is not 1, or the city population is less than or equal to 219254.0?", "answer": {"columns": ["MIN(City_Population)"], "index": [0], "data": [[""]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_E3sl4_15.png", "TableImg_65sa6_15.png"], "original_data_index": 646, "original_sql": "SELECT MIN(City_Population) FROM district WHERE Headquartered_City = \"Gujrat City\" AND \"City_Area\" = 10.0 EXCEPT SELECT MIN(City_Population) FROM district WHERE \"City_Area\" <> 12.0 OR District_name != \"Bahawalnagar District\" AND \"District_ID\" != 1 OR \"City_Population\" <= 219254.0"} {"question": "What are the IDs of people where the People ID is 7, combined with the IDs of poker players who have a money rank of 58 or less, or earnings over 189233, or a People ID of 7, or a best finish of 2 or less, or a poker player ID greater than 3?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_1g4to_7.png", "TableImg_Qzp4g_5.png"], "original_data_index": 647, "original_sql": "SELECT People_ID FROM people WHERE \"People_ID\" = 7 UNION ALL SELECT People_ID FROM poker_player WHERE \"Money_Rank\" <= 58.0 OR \"Earnings\" > 189233.0 AND \"People_ID\" = 7 OR \"Best_Finish\" <= 2.0 OR \"Poker_Player_ID\" > 3"} {"question": "Which customer IDs made payments that weren't on February 27, 2018 at 20:08:53, or had a customer ID other than 3, or paid less than 6970.98, but did not have a lesson date other than March 4, 2018 at 06:55:46, or a lesson status of \"Cancelled\", or a vehicle ID of 2?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["12"], ["14"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_6pekw_15.png", "TableImg_0m8b2_15.png"], "original_data_index": 648, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment != \"2018-02-27 20:08:53\" OR \"customer_id\" != 3 OR \"amount_payment\" < 6970.98 EXCEPT SELECT customer_id FROM Lessons WHERE lesson_date <> \"2018-03-04 06:55:46\" OR lesson_status_code = \"Cancelled\" OR \"vehicle_id\" = 2"} {"question": "What are the driver IDs that are either less than or equal to 12 from the driver table, or less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A0auq_12.png", "TableImg_Rqcy0_5.png"], "original_data_index": 651, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are greater than or equal to 1, excluding those driver IDs that are not equal to 3, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V80fl_12.png", "TableImg_Pgnyt_5.png"], "original_data_index": 652, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are greater than or equal to 10, but not equal to 4, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Plkr4_12.png", "TableImg_Fehf6_5.png"], "original_data_index": 650, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the first elected year, district, delegate, party, and counties represented for elections where the election ID is at least 1 and the committee is not \"Environmental Matters (Vice-Chair)\", or the party is less than 1? Also, what are the first elected year, district, delegate, party, and counties represented for elections in district 3 where the committee is not \"Economic Matters\", or the counties represented is \"13\" and the delegate is \"Turner, Frank S. Frank S. Turner\", or the party is 3?", "answer": {"columns": ["First_Elected", "District", "Delegate", "Party", "Counties_Represented"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1994", "1", "Pendergrass, Shane E. Shane Pendergrass", "4", "13"], ["1994", "2", "Bobo, Elizabeth Elizabeth Bobo", "3", "12.2 12B"], ["1994", "3", "Malone, James E. Jr. James E. Malone, Jr.", "2", "12.1 12A"], ["1994", "3", "Turner, Frank S. Frank S. Turner", "7", "13"], ["2002", "1", "Bates, Gail H. Gail H. Bates", "1", "09.1 9A"], ["2002", "2", "DeBoy, Steven J. Sr. Steven J. DeBoy, Sr.", "2", "12.1 12A"], ["2003", "1", "Miller, Warren E. Warren E. Miller", "1", "09.1 9A"], ["2006", "4", "Guzzone, Guy Guy Guzzone", "1", "13"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Shc1f_8.png", "TableImg_Ae4gu_8.png"], "original_data_index": 649, "original_sql": "SELECT First_Elected, District, Delegate, Party, Counties_Represented FROM election WHERE \"Election_ID\" >= 1 AND Committee != \"Environmental Matters (Vice-Chair)\" OR \"Party\" < 1 UNION SELECT First_Elected, District, Delegate, Party, Counties_Represented FROM election WHERE \"District\" = 3 AND Committee != \"Economic Matters\" OR Counties_Represented = \"13\" AND Delegate = \"Turner, Frank S. Frank S. Turner\" OR \"Party\" = 3"} {"question": "Which driver IDs are greater than 10 but not present in the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6972v_12.png", "TableImg_C4wdn_5.png"], "original_data_index": 653, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs that are not 2 and also have an ID of 5 or greater, considering both the aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_47vpq_5.png", "TableImg_Zkueg_4.png"], "original_data_index": 655, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which contestant numbers appear in the CONTESTANTS table, excluding Tabatha Gehling, or are less than 11, and also appear in the VOTES table with a contestant number of 3 or more, a creation date other than March 9, 2018 at 7:03 PM, or a phone number less than 6209222712, or a state other than CA?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["2"], ["3"], ["3"], ["5"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_89i9h_11.png", "TableImg_70qdj_4.png"], "original_data_index": 654, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name != \"Tabatha Gehling\" OR \"contestant_number\" < 11 UNION ALL SELECT contestant_number FROM VOTES WHERE \"contestant_number\" >= 3 AND created != \"2018-03-09 19:03:40\" OR \"phone_number\" < 6209222712 OR state <> \"CA\""} {"question": "What are the driver IDs, excluding driver ID 9, and also any driver IDs less than 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O0tbh_12.png", "TableImg_Y1eul_5.png"], "original_data_index": 657, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which school IDs are not in Los Angeles, California and not equal to 6, or have been working for at least 3 years or have a school ID greater than 7?", "answer": {"columns": ["School_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["1"], ["5"], ["3"], ["4"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_1f223_7.png", "TableImg_Lfpxd_5.png"], "original_data_index": 656, "original_sql": "SELECT School_ID FROM school WHERE Location <> \"Los Angeles, California\" AND \"School_ID\" <> 6 UNION ALL SELECT School_ID FROM school_bus WHERE \"Years_Working\" >= 3 OR \"School_ID\" > 7"} {"question": "Which driver IDs are less than 3, excluding those with ID 10, considering only driver IDs from the 'driver' and 'school_bus' tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4k2ch_12.png", "TableImg_Pon61_5.png"], "original_data_index": 658, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are greater than or equal to 3, excluding those driver IDs that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W8xo2_12.png", "TableImg_C61jg_5.png"], "original_data_index": 661, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs that are both less than or equal to 5 and also present in the school bus table with IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1v7at_12.png", "TableImg_Xlma5_5.png"], "original_data_index": 660, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs greater than 1 that are in the aircraft table but not in the airport_aircraft table, also considering only IDs greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_87o0e_5.png", "TableImg_6twba_4.png"], "original_data_index": 659, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs, excluding driver ID 1, and also the driver IDs that are 3 or greater, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bdw7h_12.png", "TableImg_3cmfn_5.png"], "original_data_index": 664, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are greater than or equal to 4, excluding those driver IDs greater than 3 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fd284_12.png", "TableImg_34qhg_5.png"], "original_data_index": 665, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the document status descriptions and codes, excluding those described as \"mailed\" or with the code \"overdue\", and also those that are \"done\" but not \"currently working on\"?", "answer": {"columns": ["document_status_description", "document_status_code"], "index": [0, 1, 2, 3], "data": [["currently working on", "working"], ["mailed", "done"], ["mailed late", "overdue"], ["mailed", "done"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_C0ewm_3.png", "TableImg_Tvvh8_3.png"], "original_data_index": 666, "original_sql": "SELECT document_status_description, document_status_code FROM Ref_Document_Status WHERE document_status_description != \"mailed\" OR document_status_code <> \"overdue\" UNION ALL SELECT document_status_description, document_status_code FROM Ref_Document_Status WHERE document_status_description != \"currently working on\" AND document_status_code = \"done\""} {"question": "What are the driver IDs that are either greater than or equal to 10 in the driver table or not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O244i_12.png", "TableImg_Bbkhl_5.png"], "original_data_index": 667, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are present in both the driver table (with IDs greater than or equal to 1) and the school_bus table (with IDs less than or equal to 4)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_19jlq_12.png", "TableImg_Mr2tu_5.png"], "original_data_index": 668, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the role codes and descriptions for roles that are not \"MG\" or not \"Manager\", combined with the role codes and descriptions for roles that are not \"Manager\" or not \"ED\"?", "answer": {"columns": ["role_code", "role_description"], "index": [0, 1, 2, 3], "data": [["ED", "Editor"], ["MG", "Manager"], ["PR", "Proof Manager"], ["PT", "Photo"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Ptxq5_4.png", "TableImg_4sd9v_4.png"], "original_data_index": 669, "original_sql": "SELECT role_code, role_description FROM Roles WHERE role_code <> \"MG\" OR role_description != \"Manager\" UNION SELECT role_code, role_description FROM Roles WHERE role_description != \"Manager\" OR role_code != \"ED\""} {"question": "What are the years working and school ID for full-time school bus drivers, excluding those who are not full-time and have a driver ID other than 3 or have worked for 8 or more years?", "answer": {"columns": ["Years_Working", "School_ID"], "index": [0, 1, 2], "data": [["2", "7"], ["3", "4"], ["6", "3"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_Asezi_5.png", "TableImg_3a05z_5.png"], "original_data_index": 670, "original_sql": "SELECT Years_Working, School_ID FROM school_bus WHERE If_full_time = \"T\" EXCEPT SELECT Years_Working, School_ID FROM school_bus WHERE If_full_time != \"T\" AND \"Driver_ID\" != 3 OR \"Years_Working\" >= 8"} {"question": "What are the driver IDs that are both equal to 3 in the driver table and less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zbsl5_12.png", "TableImg_1zetx_5.png"], "original_data_index": 671, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "How many clubs from Russia have only one club ID, along with their names and the maximum start year, excluding those clubs not from Russia named \"Helsingborgs IF\" that started after 2011 and don't have exactly one club ID?", "answer": {"columns": ["COUNT(Club_ID)", "Club_name", "COUNT(Region)", "MAX(Start_year)"], "index": [0], "data": [["1", "Halmstads BK", "1", "2000"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Sd1y2_6.png", "TableImg_9cngd_6.png"], "original_data_index": 672, "original_sql": "SELECT COUNT(Club_ID), Club_name, COUNT(Region), MAX(Start_year) FROM club WHERE Region = \"Russia\" GROUP BY Club_name HAVING COUNT(Club_ID) = 1 EXCEPT SELECT COUNT(Club_ID), Club_name, COUNT(Region), MAX(Start_year) FROM club WHERE Region != \"Russia\" AND Club_name = \"Helsingborgs IF\" GROUP BY Club_name HAVING MAX(Start_year) > 2011 AND COUNT(Club_ID) != 1"} {"question": "What are the aircraft IDs that satisfy either the conditions where the total disk area is not \"497 ft\u00b2 (46.2 m\u00b2)\" or the maximum disk loading is not \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\", or where the aircraft ID is greater than or equal to 5, the aircraft is not \"Mil Mi-26\", the description is \"Tandem rotor helicopter\", and the maximum gross weight is \"1,370 lb (635 kg)\", and also appear in the airport_aircraft table with an ID other than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9mf7r_5.png", "TableImg_Llkck_4.png"], "original_data_index": 673, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Total_disk_area <> \"497 ft\u00b2 (46.2 m\u00b2)\" OR Max_disk_Loading <> \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" OR \"Aircraft_ID\" >= 5 AND Aircraft != \"Mil Mi-26\" AND Description = \"Tandem rotor helicopter\" AND Max_Gross_Weight = \"1,370 lb (635 kg)\" INTERSECT SELECT Aircraft_ID FROM airport_aircraft WHERE \"ID\" <> 1"} {"question": "Which driver IDs are not 6, and which driver ID is 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1wan4_12.png", "TableImg_Pb5hc_5.png"], "original_data_index": 674, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs that are either less than or equal to 12, or are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wajcj_12.png", "TableImg_02cyd_5.png"], "original_data_index": 675, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs, excluding driver ID 2, and also the driver IDs that are 4 or greater, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_97lv7_12.png", "TableImg_Ym429_5.png"], "original_data_index": 676, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are less than or equal to 5 but not equal to 9, considering only driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9j55h_12.png", "TableImg_Ab7ef_5.png"], "original_data_index": 677, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the average district and the comptroller for each party, considering only parties where the Lieutenant Governor is not Jonathan Reiter or the number of election years is less than or equal to 2006?", "answer": {"columns": ["AVG(T1.District)", "Comptroller"], "index": [0], "data": [["", ""]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Dh2y6_8.png", "TableImg_P1yyh_7.png"], "original_data_index": 663, "original_sql": "SELECT AVG(T1.District), T2.Comptroller FROM election as T1 JOIN party as T2 ON T1.Party = T2.Party WHERE Lieutenant_Governor <> \"Jonathan Reiter\" OR COUNT(Year) <= 2006.0"} {"question": "What are the aircraft IDs that are less than 5, and also any aircraft IDs that are not equal to 2, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nxhv9_5.png", "TableImg_2zy7t_4.png"], "original_data_index": 679, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are equal to 8 but not equal to 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rhpxe_12.png", "TableImg_1krws_5.png"], "original_data_index": 680, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are not equal to 11 and are not present in the school bus table with IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3hf0b_12.png", "TableImg_L0dj5_5.png"], "original_data_index": 681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are either less than or equal to 7 from the driver table or not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_50ser_12.png", "TableImg_4bytu_5.png"], "original_data_index": 678, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs that are greater than 9 and also appear in the school bus table with IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_87375_12.png", "TableImg_Vv3wx_5.png"], "original_data_index": 684, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are both greater than or equal to 7 in the driver table and equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sse1q_12.png", "TableImg_Fi00h_5.png"], "original_data_index": 683, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are less than 8 but not equal to 4, considering driver IDs from the driver table and school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Depy8_12.png", "TableImg_7w5ie_5.png"], "original_data_index": 682, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs, excluding ID 11, from the driver table, and the driver IDs, excluding ID 10, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yzubc_12.png", "TableImg_2unl9_5.png"], "original_data_index": 685, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are both greater than or equal to 10 in the driver table and greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_98jx9_12.png", "TableImg_Knl2b_5.png"], "original_data_index": 688, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are both greater than or equal to 7 and also less than or equal to 10, considering only those drivers who are in the driver table and also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_The44_12.png", "TableImg_Taf05_5.png"], "original_data_index": 689, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs greater than 4, and also what are the driver IDs less than 4, considering both driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yo4km_12.png", "TableImg_R2jeh_5.png"], "original_data_index": 686, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you show me the contestant number, phone number, creation date, state, and vote ID for votes in New York, or with a vote ID less than or equal to 2, or not created on March 9, 2018 at 7:03:39 PM, along with votes with a phone number greater than or equal to 7148407040?", "answer": {"columns": ["contestant_number", "phone_number", "created", "state", "vote_id"], "index": [0, 1, 2, 3, 4], "data": [["2", "7182887233", "2018-03-09 19:03:21", "NY", "1"], ["3", "7148407040", "2018-03-09 19:03:36", "NY", "2"], ["5", "5112677315", "2018-03-09 19:03:40", "NJ\n", "5"], ["3", "7148407040", "2018-03-09 19:03:36", "NY", "2"], ["2", "7182887233", "2018-03-09 19:03:21", "NY", "1"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_K2ts7_4.png", "TableImg_X6yz5_4.png"], "original_data_index": 687, "original_sql": "SELECT contestant_number, phone_number, created, state, vote_id FROM VOTES WHERE state = \"NY\" OR \"vote_id\" <= 2 OR created <> \"2018-03-09 19:03:39\" UNION ALL SELECT contestant_number, phone_number, created, state, vote_id FROM VOTES WHERE \"phone_number\" >= 7148407040"} {"question": "Which driver IDs are greater than or equal to 2, but not equal to 7, and are present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nrbwp_12.png", "TableImg_Em655_5.png"], "original_data_index": 692, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the IDs of schools that are not named \"Glenn\" or that received donations from \"Monte Plata\"?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_Sqpm0_8.png", "TableImg_Wmjlf_11.png"], "original_data_index": 691, "original_sql": "SELECT School_id FROM School WHERE School_name != \"Glenn\" UNION SELECT School_id FROM endowment WHERE donator_name = \"Monte Plata\""} {"question": "What are the driver IDs that are either greater than or equal to 12, or not equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S1bdf_12.png", "TableImg_Dowu9_5.png"], "original_data_index": 690, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are either 8 or greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aqqag_12.png", "TableImg_Qt31u_5.png"], "original_data_index": 695, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are either less than or equal to 5 from the driver table, or less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Czlm5_12.png", "TableImg_96bb1_5.png"], "original_data_index": 693, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the aircraft IDs that are not 4 and also have an ID of 3 or greater in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7foes_5.png", "TableImg_Mtogs_4.png"], "original_data_index": 696, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the driver IDs that are less than 3, and also the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cj2t5_12.png", "TableImg_Jq1oa_5.png"], "original_data_index": 694, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are either greater than or equal to 7 in the driver table or not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ilvnv_12.png", "TableImg_44dn7_5.png"], "original_data_index": 697, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs, excluding ID 4, are present in both the driver and school bus records, excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bde38_12.png", "TableImg_90ztj_5.png"], "original_data_index": 698, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are not equal to 12, but are not present in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5vk1o_12.png", "TableImg_P8euu_5.png"], "original_data_index": 699, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs, excluding driver ID 6, that are present in both the driver table and the school bus table, where the driver ID is greater than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A0je6_12.png", "TableImg_Q0tsd_5.png"], "original_data_index": 700, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the aircraft IDs that are either less than or equal to 2 in the aircraft table or greater than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O71we_5.png", "TableImg_Ik3dd_4.png"], "original_data_index": 704, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the aircraft IDs that are equal to 4 in the aircraft table, but not aircraft IDs less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yocgz_5.png", "TableImg_Tz5ak_4.png"], "original_data_index": 702, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you list the age, name, nationality, graduation college, and people ID for people who are not from the United States or did not graduate from Oklahoma, along with those whose ID is 5, are under 30 and from the United States, or whose name is Darryl Kennedy?", "answer": {"columns": ["Age", "Name", "Nationality", "Graduation_College", "People_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["25", "Brad Lohaus", "United States", "Iowa", "2"], ["27", "Reggie Lewis", "United States", "Northeastern", "1"], ["30", "Jerry Corcoran", "United States", "Northeastern", "7"], ["31", "Darryl Kennedy", "United States", "Oklahoma", "4"], ["34", "David Butler", "United Kindom", "California", "5"], ["37", "Tim Naegeli", "United States", "Wisconsin\u2013Stevens Point", "6"], ["37", "Tom Sheehey", "United Kindom", "Virginia", "3"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Yoft3_7.png", "TableImg_R2igk_7.png"], "original_data_index": 701, "original_sql": "SELECT Age, Name, Nationality, Graduation_College, People_ID FROM people WHERE Nationality != \"United States\" OR Graduation_College != \"Oklahoma\" UNION SELECT Age, Name, Nationality, Graduation_College, People_ID FROM people WHERE \"People_ID\" = 5 OR \"Age\" < 30 AND Nationality = \"United States\" OR Name = \"Darryl Kennedy\""} {"question": "What are the names of branches that are either named \"Popert\", opened in a year other than 2009, or not located in \"London\", but are not also the names of members who have a member ID of 8 or greater, a level of 6 or less, a hometown other than \"LaGrange, Georgia\", and are named \"Myron Pryor\" with card number \"SLB51\"?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Alexandre"], ["Brooke Greville"], ["Cochrane"], ["Popert"], ["Saint Amant"], ["Stanley"], ["Taverner"], ["Zytogorski"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_T15ns_8.png", "TableImg_Whia9_10.png"], "original_data_index": 703, "original_sql": "SELECT Name FROM branch WHERE Name = \"Popert\" OR Open_year != \"2009\" OR City <> \"London\" EXCEPT SELECT Name FROM member WHERE \"Member_ID\" >= 8 OR \"Level\" <= 6 OR Hometown <> \"LaGrange, Georgia\" AND Name = \"Myron Pryor\" AND Card_Number = \"SLB51\""} {"question": "What are the aircraft IDs that are not 5, but are not aircraft IDs less than 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yam8x_5.png", "TableImg_751ev_4.png"], "original_data_index": 705, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0b7bx_12.png", "TableImg_Nbcf8_5.png"], "original_data_index": 708, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are less than or equal to 9 but not equal to 4, considering only those IDs present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ffb02_12.png", "TableImg_To5yu_5.png"], "original_data_index": 706, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What is the maximum driver ID and the number of years worked for each driver, considering drivers who don't live in Manchester, have a school ID of 1, are older than 46 and have worked more than 8 years, are Democrats named Douglas McCrory, or work full-time? Then, exclude results where the home city is Bethel and the years worked are not more than 6, or the age is not 36, or the driver is not a Democrat, not full-time, and not Tim Larson, and has a school ID of at least 1?", "answer": {"columns": ["MAX(T1.Driver_ID)", "Years_Working"], "index": [0, 1], "data": [["10", "10"], ["7", "8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pdxy1_12.png", "TableImg_88isu_5.png"], "original_data_index": 707, "original_sql": "SELECT MAX(T1.Driver_ID), T2.Years_Working FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city <> \"Manchester\" OR \"School_ID\" = 1 OR \"Age\" > 46 AND \"Years_Working\" > 8 OR Party = \"Dem\" AND Name = \"Douglas McCrory\" OR If_full_time = \"T\" GROUP BY Home_city HAVING Home_city <> \"Bethel\" AND Years_Working > 6 OR Age <> 36 OR Party <> \"Dem\" AND If_full_time <> \"T\" AND Name = \"Tim Larson\" AND School_ID >= 1"} {"question": "What are the contestant numbers and the maximum contestant names, excluding Jessie Eichman, and also what are the contestant numbers and maximum contestant names excluding contestant number 8?", "answer": {"columns": ["contestant_number", "MAX(contestant_name)"], "index": [0], "data": [["2", "Tabatha Gehling"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Qnudk_11.png", "TableImg_0k5mf_11.png"], "original_data_index": 710, "original_sql": "SELECT contestant_number, MAX(contestant_name) FROM CONTESTANTS WHERE contestant_name != \"Jessie Eichman\" UNION SELECT contestant_number, MAX(contestant_name) FROM CONTESTANTS WHERE \"contestant_number\" <> 8"} {"question": "What are the city codes and student IDs for students who are not from NYC or have a major of 600, and also for students who are at least 18 years old and have an advisor number less than 2311, or whose student ID is not 1006?", "answer": {"columns": ["city_code", "StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["ATL", "1032"], ["BAL", "1001"], ["BAL", "1006"], ["BAL", "1008"], ["BAL", "1024"], ["BOS", "1034"], ["CHI", "1004"], ["DAL", "1014"], ["DET", "1016"], ["HKG", "1002"], ["HKG", "1015"], ["HKG", "1026"], ["HOU", "1010"], ["LON", "1017"], ["LOS", "1027"], ["NAR", "1033"], ["NYC", "1020"], ["NYC", "1021"], ["NYC", "1023"], ["PEK", "1029"], ["PHL", "1011"], ["PHL", "1022"], ["PHL", "1031"], ["PIT", "1007"], ["PIT", "1012"], ["PIT", "1018"], ["PIT", "1025"], ["ROC", "1028"], ["SFO", "1030"], ["WAS", "1003"], ["WAS", "1019"], ["WAS", "1035"], ["YYZ", "1005"], ["YYZ", "1009"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Twmdy_34.png", "TableImg_C3185_34.png"], "original_data_index": 709, "original_sql": "SELECT city_code, StuID FROM Student WHERE city_code != \"NYC\" OR \"Major\" = 600 UNION SELECT city_code, StuID FROM Student WHERE \"Age\" >= 18 AND \"Advisor\" < 2311 OR \"StuID\" != 1006"} {"question": "Which school IDs are in the budget table for years up to 2001 with invested amounts no more than 95542 and a budget invested percentage not equal to 228.8 and a budgeted amount not equal to 119527, but are not in the endowment table where the endowment ID is 5 or greater and the school ID is not 4?", "answer": {"columns": ["School_id"], "index": [0], "data": [["2"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_U4sdd_8.png", "TableImg_Wdvc0_11.png"], "original_data_index": 711, "original_sql": "SELECT School_id FROM budget WHERE \"Year\" <= 2001 AND \"Invested\" <= 95542 AND Budget_invested_percent <> \"228.8\" AND \"Budgeted\" <> 119527 EXCEPT SELECT School_id FROM endowment WHERE \"endowment_id\" >= 5 AND \"School_id\" <> 4"} {"question": "Which driver IDs are either 2 or 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mymaf_12.png", "TableImg_Gx0vv_5.png"], "original_data_index": 715, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are either 10 or not 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_23431_12.png", "TableImg_Gwtcv_5.png"], "original_data_index": 714, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are less than 8 but not present in the school bus table with IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6djqb_12.png", "TableImg_Ub84u_5.png"], "original_data_index": 712, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that appear in either the driver table with an ID of 10 or greater, or in the school bus table with an ID greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bhqgh_12.png", "TableImg_Uhdyc_5.png"], "original_data_index": 713, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs that are not equal to 5 and are not present in the airport aircraft table with IDs less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sezyh_5.png", "TableImg_9y4ux_4.png"], "original_data_index": 717, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs greater than 6 that are also present in the school bus table with driver IDs of 3 or more?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jtegz_12.png", "TableImg_6njuw_5.png"], "original_data_index": 716, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are less than 8 from the driver table, combined with the driver IDs that are less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wz90w_12.png", "TableImg_Fqwmo_5.png"], "original_data_index": 718, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs, excluding driver ID 9, that are present in both the driver and school bus tables, where the school bus driver ID is 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jnsyj_12.png", "TableImg_U818e_5.png"], "original_data_index": 719, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs greater than 3 that are not present in the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iwdns_5.png", "TableImg_Jcadp_4.png"], "original_data_index": 720, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the aircraft IDs that are either less than or equal to 3 in the aircraft table, or not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7jwlg_5.png", "TableImg_M0qqs_4.png"], "original_data_index": 721, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the driver IDs that are both equal to 4 in the driver table and not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vy127_12.png", "TableImg_Vhdk4_5.png"], "original_data_index": 722, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs of aircraft that have a distance of at least 520, and also the aircraft IDs of certificates where the employee ID is at least 269734834 or the aircraft ID is less than or equal to 3?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["2"], ["2"], ["1"], ["2"], ["3"], ["2"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["10"], ["12"], ["8"], ["9"], ["8"], ["9"], ["6"], ["3"], ["13"], ["14"], ["7"], ["1"], ["12"], ["2"], ["7"], ["14"], ["2"], ["3"], ["5"], ["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"], ["11"], ["12"], ["15"], ["3"], ["4"], ["5"], ["6"], ["8"], ["7"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Srzu6_16.png", "TableImg_3meg9_69.png"], "original_data_index": 723, "original_sql": "SELECT aid FROM aircraft WHERE \"distance\" >= 520 UNION ALL SELECT aid FROM certificate WHERE \"eid\" >= 269734834 OR \"aid\" <= 3"} {"question": "What are the driver IDs greater than 5 that are in the driver table but not in the school bus table where the driver IDs are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Phslv_12.png", "TableImg_M30pn_5.png"], "original_data_index": 724, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the names of employees who are not Jason Hobson or are not 30 years old, excluding the names of shops that are FC Inter or have a Shop_ID of 2 or more, or have Mika Lehkosuo as manager but are not in the Tehtaan kentt\u00e4 district?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Andrew Sheridan"], ["George Chuter"], ["Lee Mears"], ["Louis Deacon"], ["Mark Regan"], ["Matt Stevens"], ["Phil Vickery"], ["Steve Borthwick"], ["Tim Payne"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_Ene1f_10.png", "TableImg_16s15_9.png"], "original_data_index": 727, "original_sql": "SELECT Name FROM employee WHERE Name != \"Jason Hobson\" OR \"Age\" != 30 EXCEPT SELECT Name FROM shop WHERE Name = \"FC Inter\" OR \"Shop_ID\" >= 2 OR Manager_name = \"Mika Lehkosuo\" AND District <> \"Tehtaan kentt\u00e4\""} {"question": "What are the names of companies that have profits less than 10.3 billion, or are named Chevron, or have assets less than or equal to 213 billion and sales less than 447 billion and a market value less than or equal to 294.7 billion, or are not headquartered in the USA? Also, what are the names of people who have a people ID greater than 2, are older than 37, did not graduate from Northeastern, are not of United Kingdom nationality, or are not named David Butler?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["Agricultural Bank of China"], ["BP"], ["Brad Lohaus"], ["Chevron"], ["China Construction Bank"], ["Darryl Kennedy"], ["Gazprom"], ["HSBC"], ["Industrial and Commercial Bank of China"], ["Jerry Corcoran"], ["PetroChina"], ["Petrobras"], ["Reggie Lewis"], ["Royal Dutch Shell"], ["Tim Naegeli"], ["Tom Sheehey"], ["Total"], ["Volkswagen Group"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_Zhhcz_19.png", "TableImg_Msu24_7.png"], "original_data_index": 725, "original_sql": "SELECT Name FROM company WHERE \"Profits_in_Billion\" < 10.3 OR Name = \"Chevron\" OR \"Assets_in_Billion\" <= 213.0 AND \"Sales_in_Billion\" < 447.0 AND \"Market_Value_in_Billion\" <= 294.7 OR Headquarters != \"USA\" UNION SELECT Name FROM people WHERE \"People_ID\" > 2 AND \"Age\" > 37 AND Graduation_College <> \"Northeastern\" AND Nationality <> \"United Kindom\" OR Name != \"David Butler\""} {"question": "Which driver IDs are either 2 or greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_787oe_12.png", "TableImg_We763_5.png"], "original_data_index": 730, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are less than 10 and are in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5lesa_12.png", "TableImg_W87hz_5.png"], "original_data_index": 728, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are not equal to 5 and are not found in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4mh1e_12.png", "TableImg_Fdbkr_5.png"], "original_data_index": 729, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs greater than 7, and also the driver ID that is 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_86yf8_12.png", "TableImg_K8fqq_5.png"], "original_data_index": 726, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the IDs of drivers who are not driver 9, or the IDs of school buses that are not bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Doxvr_12.png", "TableImg_Mirni_5.png"], "original_data_index": 734, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the document IDs that meet either of these conditions: the employee ID is at least 2, or the copy number is less than 4 and the draft number is greater than 20, or the document ID is not 10; and also meet either of these conditions: the copy number is greater than 4, or the draft number is less than 2 and the document ID is at least 2?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["10"], ["20"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_Nozky_4.png", "TableImg_39ac1_8.png"], "original_data_index": 735, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"employee_id\" >= 2 OR \"copy_number\" < 4 AND \"draft_number\" > 20 OR \"document_id\" <> 10 INTERSECT SELECT document_id FROM Draft_Copies WHERE \"copy_number\" > 4 OR \"draft_number\" < 2 AND \"document_id\" >= 2"} {"question": "What are the driver IDs that are either 5 or greater, or less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hoodf_12.png", "TableImg_W9btq_5.png"], "original_data_index": 736, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What is the count and average address ID for addresses where the address ID is less than or equal to 0, combined with the count and average address ID for addresses where the address ID is less than 1?", "answer": {"columns": ["COUNT(address_details)", "AVG(address_id)"], "index": [0], "data": [["1", "0"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Rwoch_10.png", "TableImg_Wo6ez_10.png"], "original_data_index": 737, "original_sql": "SELECT COUNT(address_details), AVG(address_id) FROM Addresses WHERE \"address_id\" <= 0 UNION SELECT COUNT(address_details), AVG(address_id) FROM Addresses WHERE \"address_id\" < 1"} {"question": "What are the driver IDs less than 7 from the driver table and the driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H228s_12.png", "TableImg_4zpuz_5.png"], "original_data_index": 738, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What driver IDs are present in both the driver table (excluding driver ID 11) and the school bus table (specifically driver ID 7)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_88pf0_12.png", "TableImg_7mehs_5.png"], "original_data_index": 739, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are less than 7 from the driver table, combined with the driver IDs that are greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yyq7p_12.png", "TableImg_Bvbhs_5.png"], "original_data_index": 740, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which school IDs are in the School table but not in the endowment table, considering schools that don't have an enrollment of 379, or are not in IHSAA football class AA, or don't have the mascot \"Redskins\", or are not in St. Joseph County, and also excluding schools with a school ID greater than or equal to 3 or an endowment ID greater than or equal to 11?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_Q97zu_8.png", "TableImg_Kt64k_11.png"], "original_data_index": 741, "original_sql": "SELECT School_id FROM School WHERE \"Enrollment\" != 379 OR IHSAA_Football_Class != \"AA\" OR Mascot != \"Redskins\" OR County <> \"71 St. Joseph\" EXCEPT SELECT School_id FROM endowment WHERE \"School_id\" >= 3 OR \"endowment_id\" >= 11"} {"question": "What are the airport IDs that are not in Denmark, but are not also flight IDs where the flight ID is not 10, the pilot is Thompson, the altitude is over 3650, and the vehicle flight number is not M2-F1 #13?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_I4n46_9.png", "TableImg_Fircb_13.png"], "original_data_index": 742, "original_sql": "SELECT id FROM airport WHERE Country != \"Denmark\" EXCEPT SELECT id FROM flight WHERE \"id\" <> 10 AND Pilot = \"Thompson\" AND \"Altitude\" > 3650.0 AND Vehicle_Flight_number <> \"M2-F1 #13\""} {"question": "How many staff IDs are there in Lessons where the staff ID is less than or equal to 1 and the price isn't 277, or the customer ID is less than 6, or the lesson status is Cancelled and the lesson date is February 26, 2018, or the vehicle ID isn't 1 and the lesson time isn't 9? Also, how many staff IDs are there in Staff where the middle name isn't Caesar, or the last name is Weissnat, or the first name is Ernestina, or the staff address ID isn't 12, or the date of birth isn't June 13, 2000, or the nickname isn't ynader and the date joined staff isn't June 4, 2017, or the staff ID is less than 13?", "answer": {"columns": ["COUNT(staff_id)"], "index": [0, 1], "data": [["10"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Kxpry_15.png", "TableImg_77ww8_15.png"], "original_data_index": 743, "original_sql": "SELECT COUNT(staff_id) FROM Lessons WHERE \"staff_id\" <= 1 AND \"price\" <> 277.0 OR \"customer_id\" < 6 OR lesson_status_code = \"Cancelled\" AND lesson_date = \"2018-02-26 02:36:35\" OR \"vehicle_id\" != 1 AND lesson_time != \"9\" UNION ALL SELECT COUNT(staff_id) FROM Staff WHERE middle_name <> \"Caesar\" OR last_name = \"Weissnat\" OR first_name = \"Ernestina\" OR \"staff_address_id\" != 12 OR date_of_birth != \"2000-06-13 18:09:11\" OR nickname != \"ynader\" AND date_joined_staff != \"2017-06-04 14:30:41\" OR \"staff_id\" < 13"} {"question": "What is the highest People ID from the employment table where the year worked is not 4, excluding the highest People ID from the people table where the graduation college is Wisconsin\u2013Stevens Point or the name is not Tim Naegeli and the People ID is 5 or greater?", "answer": {"columns": ["MAX(People_ID)"], "index": [0], "data": [["4"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_5qir9_5.png", "TableImg_G7r89_7.png"], "original_data_index": 744, "original_sql": "SELECT MAX(People_ID) FROM employment WHERE \"Year_working\" <> 4 EXCEPT SELECT MAX(People_ID) FROM people WHERE Graduation_College = \"Wisconsin\u2013Stevens Point\" OR Name != \"Tim Naegeli\" AND \"People_ID\" >= 5"} {"question": "What is the highest club ID from clubs that are not in the UK or have a club ID less than or equal to 1 and are not named Djurg\u00e5rdens IF, combined with the highest club ID from match results where the club ID is greater than or equal to 2 or the rank is not 6 and the small silver value is not 6?", "answer": {"columns": ["MAX(Club_ID)"], "index": [0], "data": [["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_E6m5r_6.png", "TableImg_Muxw3_6.png"], "original_data_index": 745, "original_sql": "SELECT MAX(Club_ID) FROM club WHERE Region != \"UK\" OR \"Club_ID\" <= 1 AND Club_name != \"Djurg\u00e5rdens IF\" UNION SELECT MAX(Club_ID) FROM match_result WHERE \"Club_ID\" >= 2 OR \"Rank\" != 6 AND \"Small_Silver\" <> 6"} {"question": "What are the aircraft IDs that are both greater than or equal to 2 and less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_83dhz_5.png", "TableImg_5rgq7_4.png"], "original_data_index": 746, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the names, levels, and hometowns of members from Jacksonville, Florida or Columbia, South Carolina?", "answer": {"columns": ["Name", "Level", "Hometown"], "index": [0, 1], "data": [["Johnny Williams", "6", "Jacksonville, Florida"], ["Ventrell Jenkins", "6", "Columbia, South Carolina"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_S043w_10.png", "TableImg_3boqj_10.png"], "original_data_index": 731, "original_sql": "SELECT Name, Level, Hometown FROM member WHERE Hometown = \"Jacksonville, Florida\" UNION SELECT Name, Level, Hometown FROM member WHERE Hometown = \"Columbia, South Carolina\""} {"question": "For addresses, show the building number, the earliest state/province/county, the latest city, the sum of the country, the zip code, and the address ID. Include addresses where the building number isn't \"053 Quigley Island\", or the city is \"Buckridgehaven\", or the state/province/county isn't \"Louisiana\" and the address ID is less than or equal to 5 and the zip code isn't \"00005\". Also include addresses where the state/province/county isn't \"Georgia\" and the city is \"Ericamouth\", or the country isn't \"USA\", or the zip code isn't \"99903\" and the building number isn't \"484 O'Hara Drive\", or the address ID isn't 13.", "answer": {"columns": ["line_1_number_building", "MIN(state_province_county)", "MAX(city)", "SUM(country)", "zip_postcode", "address_id"], "index": [0, 1], "data": [["9260 Streich Mountain", "Alabama", "West Edmondview", "0", "43988", "15"], ["9260 Streich Mountain", "Alabama", "West Edmondview", "0", "43988", "15"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_W9u8q_15.png", "TableImg_B8r6d_15.png"], "original_data_index": 732, "original_sql": "SELECT line_1_number_building, MIN(state_province_county), MAX(city), SUM(country), zip_postcode, address_id FROM Addresses WHERE line_1_number_building != \"053 Quigley Island\" OR city = \"Buckridgehaven\" OR state_province_county != \"Louisiana\" AND \"address_id\" <= 5 AND zip_postcode <> \"00005\" UNION ALL SELECT line_1_number_building, MIN(state_province_county), MAX(city), SUM(country), zip_postcode, address_id FROM Addresses WHERE state_province_county <> \"Georgia\" AND city = \"Ericamouth\" OR country <> \"USA\" OR zip_postcode != \"99903\" AND line_1_number_building != \"484 O'Hara Drive\" OR \"address_id\" != 13"} {"question": "Which driver IDs are greater than 6, and also the driver ID 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H9y4z_12.png", "TableImg_W2tkb_5.png"], "original_data_index": 733, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are less than 3 in the driver table, combined with the driver IDs that are less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Onvq5_12.png", "TableImg_85ezt_5.png"], "original_data_index": 747, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are not equal to 8 and are not found in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_88e72_12.png", "TableImg_7u7nf_5.png"], "original_data_index": 750, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are greater than or equal to 10 in the driver table but not present in the school bus table with driver IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3lhwr_12.png", "TableImg_Akgpn_5.png"], "original_data_index": 749, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are either less than or equal to 5 or greater than 4, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nyi5j_12.png", "TableImg_Faskc_5.png"], "original_data_index": 752, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs that are less than 9 and also appear in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4vjbb_12.png", "TableImg_Qcnfj_5.png"], "original_data_index": 753, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the names of companies that are not headquartered in China and have assets not equal to 292.5 billion, or sales greater than or equal to 117.6 billion, or are in the banking industry, or have profits of 26.9 billion, or are named General Electric, or have a company ID of 5, or have a market value not equal to 294.7 billion? Also, what are the names of people who are from the United States, are not named Brad Lohaus, and are 31 years old or younger?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["Agricultural Bank of China"], ["BP"], ["Berkshire Hathaway"], ["Chevron"], ["China Construction Bank"], ["Citigroup"], ["Darryl Kennedy"], ["ExxonMobil"], ["Gazprom"], ["General Electric"], ["HSBC"], ["Industrial and Commercial Bank of China"], ["JPMorgan Chase"], ["Jerry Corcoran"], ["PetroChina"], ["Petrobras"], ["Reggie Lewis"], ["Royal Dutch Shell"], ["Total"], ["Volkswagen Group"], ["Walmart"], ["Wells Fargo"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_J77yg_19.png", "TableImg_9mi9m_7.png"], "original_data_index": 751, "original_sql": "SELECT Name FROM company WHERE Headquarters != \"China\" AND \"Assets_in_Billion\" != 292.5 OR \"Sales_in_Billion\" >= 117.6 OR Industry = \"Banking\" OR \"Profits_in_Billion\" = 26.9 OR Name = \"General Electric\" OR \"Company_ID\" = 5.0 OR \"Market_Value_in_Billion\" <> 294.7 UNION SELECT Name FROM people WHERE Nationality = \"United States\" AND Name <> \"Brad Lohaus\" AND \"Age\" <= 31"} {"question": "Which driver IDs, excluding driver ID 11, are found in the driver table, and which driver IDs greater than 3 are found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Si9qd_12.png", "TableImg_Vf461_5.png"], "original_data_index": 756, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs greater than 2, and also the driver IDs less than or equal to 3, considering both driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4w2on_12.png", "TableImg_7515y_5.png"], "original_data_index": 754, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the aircraft IDs that are not 4, excluding those aircraft IDs less than 2, considering the aircraft and airport-aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_97jt9_5.png", "TableImg_Auhfm_4.png"], "original_data_index": 755, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are less than 3, and also driver ID 7, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1s7v3_12.png", "TableImg_B0oaq_5.png"], "original_data_index": 748, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are equal to 5, or greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oaje0_12.png", "TableImg_Wcn0z_5.png"], "original_data_index": 759, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs, excluding driver ID 1, and also the driver IDs up to 9, that are associated with either drivers or school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hvpqi_12.png", "TableImg_7ytld_5.png"], "original_data_index": 757, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What is the maximum maker name from the car makers table where the maker is Nissan and the ID is less than 15, excluding the maximum maker name from the model list table where the maker is less than 5 and the model is not Mercedes-Benz or the model ID is less than or equal to 36?", "answer": {"columns": ["MAX(Maker)"], "index": [0], "data": [["nissan"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Ry58m_22.png", "TableImg_Xgvg2_36.png"], "original_data_index": 760, "original_sql": "SELECT MAX(Maker) FROM car_makers WHERE Maker = \"nissan\" AND \"Id\" < 15 EXCEPT SELECT MAX(Maker) FROM model_list WHERE \"Maker\" < 5 AND Model != \"mercedes-benz\" OR \"ModelId\" <= 36"} {"question": "What are the feature type codes that are either not feature ID 4 and not \"BurglarAlarm\", or have a description of \"Air Conditioning.\", or are \"Security\", and also have a feature type code of \"Security\" but a feature type name that is not \"Amenity, eg Pool.\"?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Oigcm_3.png", "TableImg_1ngii_2.png"], "original_data_index": 758, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE \"feature_id\" <> 4 AND feature_name != \"BurglarAlarm\" OR feature_description = \"Air Conditioning.\" OR feature_type_code = \"Security\" INTERSECT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code = \"Security\" AND feature_type_name != \"Amenity, eg Pool.\""} {"question": "What are the driver IDs that are either less than or equal to 10 from the driver table or greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4plub_12.png", "TableImg_L5kl9_5.png"], "original_data_index": 761, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are greater than 5 and also appear in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ylj0i_12.png", "TableImg_9mpgr_5.png"], "original_data_index": 762, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are equal to 6 but not greater than or equal to 9, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V83x4_12.png", "TableImg_2yw72_5.png"], "original_data_index": 763, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are less than 11 but not greater than 9, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ro774_12.png", "TableImg_Ggifs_5.png"], "original_data_index": 765, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the district IDs, and for which districts, is the headquartered city not \"Bahawalnagar City\", the store ID is at least 1, and the city population is greater than 314617, grouped by headquartered city?", "answer": {"columns": ["District_ID -1", "District_ID -2"], "index": [0], "data": [["3", "3"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_89two_15.png", "TableImg_1umyt_5.png"], "original_data_index": 764, "original_sql": "SELECT T1.District_ID, T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID == T2.District_ID GROUP BY Headquartered_City HAVING Headquartered_City <> \"Bahawalnagar City\" AND Store_ID >= 1 AND City_Population > 314617.0"} {"question": "What are the driver IDs that are not 7 and are also present in the school bus table with a driver ID of 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5mh27_12.png", "TableImg_Rsy5b_5.png"], "original_data_index": 770, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs that are not 4 and are not in the airport_aircraft table with IDs greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9q4ur_5.png", "TableImg_Muvh8_4.png"], "original_data_index": 768, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the driver IDs, excluding driver ID 7, and also the driver IDs that are 7 or less, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zr2rl_12.png", "TableImg_0si2b_5.png"], "original_data_index": 769, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What is the highest aircraft ID for aircraft with a distance less than 1502 and not named \"Airbus A320\" and not ID 6, and also the highest aircraft ID from the certificate table where the ID is not 8?", "answer": {"columns": ["MAX(aid)"], "index": [0, 1], "data": [["16"], ["15"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_B77gb_16.png", "TableImg_Usods_69.png"], "original_data_index": 771, "original_sql": "SELECT MAX(aid) FROM aircraft WHERE \"distance\" < 1502 AND name <> \"Airbus A320\" AND \"aid\" <> 6 UNION ALL SELECT MAX(aid) FROM certificate WHERE \"aid\" != 8"} {"question": "What are the player IDs of players who meet at least one of the following conditions: they are ranked 2nd, their sponsor is not Winnipeg South and they are male, they have more than 14355 votes, their player ID is less than or equal to 14, or their player name is not Matt Schaubroeck, and also have a coach ID of 5 or greater?", "answer": {"columns": ["Player_ID"], "index": [0], "data": [["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_Uc1mc_14.png", "TableImg_Rzdmi_7.png"], "original_data_index": 766, "original_sql": "SELECT Player_ID FROM player WHERE Rank = \"2nd\" OR Sponsor_name <> \"Winnipeg South\" AND Gender = \"M\" OR \"Votes\" > 14355 OR \"Player_ID\" <= 14 OR Player_name <> \"Matt Schaubroeck\" INTERSECT SELECT Player_ID FROM player_coach WHERE \"Coach_ID\" >= 5"} {"question": "Which driver IDs are less than or equal to 8, but not found in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5irqi_12.png", "TableImg_Xb8b5_5.png"], "original_data_index": 772, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs, excluding ID 2, from the aircraft table, combined with the aircraft IDs, excluding ID 5, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2v3b8_5.png", "TableImg_Ih463_4.png"], "original_data_index": 773, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the aircraft IDs greater than 3 that are not present in the airport aircraft table, excluding those with an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wjcps_5.png", "TableImg_0zt62_4.png"], "original_data_index": 774, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are not equal to 8 but are not present in school buses with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lp484_12.png", "TableImg_Ay2n9_5.png"], "original_data_index": 776, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the minimum maximum occupancy, average room ID, and minimum base price for modern rooms with room ID \"IBS\", a maximum occupancy of 2, no more than 2 beds, a base price of at least 100, a bed type of King, and not named \"Mendicant with cryptic\", excluding the results for rooms with room ID \"AOB\", or a bed type of King and modern decor, or a room name not equal to \"Harbinger but bequest\" and a base price not equal to 150?", "answer": {"columns": ["MIN(maxOccupancy)", "AVG(RoomId)", "MIN(basePrice)"], "index": [0], "data": [["", "", ""]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_Sn7cn_10.png", "TableImg_Ombqx_10.png"], "original_data_index": 775, "original_sql": "SELECT MIN(maxOccupancy), AVG(RoomId), MIN(basePrice) FROM Rooms WHERE decor = \"modern\" AND RoomId = \"IBS\" AND \"beds\" <= 2 AND \"maxOccupancy\" = 2 AND roomName <> \"Mendicant with cryptic\" AND \"basePrice\" >= 100 AND bedType = \"King\" EXCEPT SELECT MIN(maxOccupancy), AVG(RoomId), MIN(basePrice) FROM Rooms WHERE RoomId = \"AOB\" OR bedType = \"King\" AND decor = \"modern\" OR roomName != \"Harbinger but bequest\" AND \"basePrice\" != 150"} {"question": "What driver IDs are present in both the driver table, excluding driver ID 6, and the school bus table, specifically driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wyb3w_12.png", "TableImg_Dj3ss_5.png"], "original_data_index": 777, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What is the average sales, the count of industries, and the sum of headquarters for each company ID, considering companies that are not headquartered in the UK or have assets greater than 717.2 billion or are not in the oil and gas industry? Also, what is the average sales, the count of industries, and the sum of headquarters for each company ID, excluding those headquartered in the USA?", "answer": {"columns": ["AVG(Sales_in_Billion)", "COUNT(Industry)", "SUM(Headquarters)", "Company_ID"], "index": [0, 1], "data": [["194.8", "18", "0", "1"], ["197.5545454545", "11", "0", "4"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_3809c_19.png", "TableImg_Hr84o_19.png"], "original_data_index": 778, "original_sql": "SELECT AVG(Sales_in_Billion), COUNT(Industry), SUM(Headquarters), Company_ID FROM company WHERE Headquarters <> \"UK\" OR \"Assets_in_Billion\" > 717.2 AND \"Profits_in_Billion\" <> 21.5 OR Industry <> \"Oil and gas\" UNION ALL SELECT AVG(Sales_in_Billion), COUNT(Industry), SUM(Headquarters), Company_ID FROM company WHERE Headquarters <> \"USA\""} {"question": "What are the driver IDs that are 10 or greater, excluding those driver IDs that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2msmq_12.png", "TableImg_Muzl4_5.png"], "original_data_index": 779, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 8 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2hhi0_12.png", "TableImg_Zz70o_5.png"], "original_data_index": 780, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs that are less than 2, combined with the aircraft IDs that are not 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eyzqk_5.png", "TableImg_X2epr_4.png"], "original_data_index": 781, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the driver IDs that are either less than or equal to 9 from the driver table, or greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2h7wx_12.png", "TableImg_Oujwz_5.png"], "original_data_index": 782, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are both less than or equal to 9 and also not equal to 10, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bn10c_12.png", "TableImg_J06fw_5.png"], "original_data_index": 783, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are not 1 and are present in both the aircraft and airport aircraft tables, with the aircraft ID being 5 or greater in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cxnkl_5.png", "TableImg_Cpi8f_4.png"], "original_data_index": 786, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are either 2 or greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["2"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sxuu2_12.png", "TableImg_87ao0_5.png"], "original_data_index": 787, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are either less than or equal to 9 in the driver table or greater than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2qgcc_12.png", "TableImg_Ipw4j_5.png"], "original_data_index": 788, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs, excluding driver ID 9, are present in the driver table but not in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zybyq_12.png", "TableImg_X8nj5_5.png"], "original_data_index": 789, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the driver IDs that are less than 6, and also the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ylahc_12.png", "TableImg_Nptbg_5.png"], "original_data_index": 790, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are less than or equal to 3, but not equal to 10, considering only driver IDs present in the 'driver' table and excluding those in the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D4xg7_12.png", "TableImg_Omjf4_5.png"], "original_data_index": 791, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are greater than or equal to 1 in the aircraft table, combined with the aircraft IDs that are not equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qhqqc_5.png", "TableImg_Om1jr_4.png"], "original_data_index": 792, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the aircraft IDs that are less than 5, but not equal to 5, based on the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cpr9y_5.png", "TableImg_Ry54d_4.png"], "original_data_index": 793, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the driver IDs that are less than 3, and also the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Krhm6_12.png", "TableImg_80hb1_5.png"], "original_data_index": 794, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are either greater than or equal to 11 in the driver table or greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Olrc1_12.png", "TableImg_Arvg1_5.png"], "original_data_index": 795, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs that are less than 1 in the driver table, combined with the driver IDs that are less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gd4zf_12.png", "TableImg_1jo1h_5.png"], "original_data_index": 796, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "For each user ID, what is the lowest rank, considering reviews where the item ID is 7 or less, the user ID is greater than 2 and the author ID is 3 or greater, or the rank is 7 or less, or the rating is 5? Also, for each user ID, what is the lowest rank for reviews where the author ID is 6 and the user ID is 2 or less?", "answer": {"columns": ["u_id", "MIN(rank)"], "index": [0, 1], "data": [["1", "1"], ["1", "5"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_6azch_7.png", "TableImg_Xridr_7.png"], "original_data_index": 797, "original_sql": "SELECT u_id, MIN(rank) FROM review WHERE \"i_id\" <= 7 AND \"u_id\" > 2 AND \"a_id\" >= 3 OR \"rank\" <= 7 OR \"rating\" = 5 UNION ALL SELECT u_id, MIN(rank) FROM review WHERE \"a_id\" = 6 AND \"u_id\" <= 2"} {"question": "What are the IDs of albums by artists with ID 147 or greater and the title \"Holst: The Planets, Op. 32 & Vaughan Williams: Fantasies\", or any album ID except 269, and also the IDs of playlists with an ID greater than 18?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_Ldu1l_347.png", "TableImg_Qqxf8_18.png"], "original_data_index": 798, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" >= 147 AND title = \"Holst: The Planets, Op. 32 & Vaughan Williams: Fantasies\" OR \"id\" <> 269 UNION SELECT id FROM playlists WHERE \"id\" > 18"} {"question": "What is the average driver ID and the driver ID from the school bus table for drivers under 52 years old?", "answer": {"columns": ["AVG(T1.Driver_ID)", "Driver_ID"], "index": [0], "data": [["6.6", "10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F02bo_12.png", "TableImg_Eb3iv_5.png"], "original_data_index": 785, "original_sql": "SELECT AVG(T1.Driver_ID), T2.Driver_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE \"Age\" < 52"} {"question": "What are the smallest club IDs from the club table where the region is USA, or the start year is before 2011, or the club name is not Gefle IF and the club ID is greater than 5? Also, what are the smallest club IDs from the coach table where the gender is M and the rank is at least 1 and the club ID is greater than 3 and the coach ID is at least 1, or the coach name is Joe Fabbri?", "answer": {"columns": ["MIN(Club_ID)"], "index": [0, 1], "data": [["1"], ["1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Gxnll_6.png", "TableImg_Lr8iw_5.png"], "original_data_index": 784, "original_sql": "SELECT MIN(Club_ID) FROM club WHERE Region = \"USA\" OR \"Start_year\" < 2011 OR Club_name != \"Gefle IF\" AND \"Club_ID\" > 5 UNION ALL SELECT MIN(Club_ID) FROM coach WHERE Gender = \"M\" AND \"Rank\" >= 1 AND \"Club_ID\" > 3 AND \"Coach_ID\" >= 1 OR Coach_name = \"Joe Fabbri\""} {"question": "What are the driver IDs that are both less than 6 and also appear in the school bus table with IDs no greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ocq69_12.png", "TableImg_Htn77_5.png"], "original_data_index": 801, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are less than 1, combined with the driver IDs that are not 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J35hr_12.png", "TableImg_Z9aq1_5.png"], "original_data_index": 800, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs, excluding aircraft ID 2, from the aircraft table, combined with aircraft IDs less than or equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tagoq_5.png", "TableImg_1dabv_4.png"], "original_data_index": 799, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the aircraft IDs, excluding aircraft ID 1, that are present in both the aircraft and airport_aircraft tables, where the aircraft ID is also less than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N9irn_5.png", "TableImg_Nr81q_4.png"], "original_data_index": 802, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs greater than 7 in the driver table or less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D5lsm_12.png", "TableImg_Mdxbz_5.png"], "original_data_index": 806, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are less than 4 but not equal to 3, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ga50r_12.png", "TableImg_Nzy22_5.png"], "original_data_index": 803, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are less than 2, excluding those aircraft IDs that are not equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sm4sm_5.png", "TableImg_P9dnp_4.png"], "original_data_index": 804, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What template type codes are present in both the Ref_Template_Types table (excluding \"BK\") and the Templates table (where the effective end date isn't \"1974-09-14 06:34:39\", the version number is less than 2, the template type code is not \"PP\", or the template ID is 20 or greater, or the template details are not empty, and the effective start date is not \"2002-08-25 13:26:23\")?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2], "data": [["AD"], ["PP"], ["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_Ntla6_5.png", "TableImg_Pmxbl_20.png"], "original_data_index": 805, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code <> \"BK\" INTERSECT SELECT Template_Type_Code FROM Templates WHERE Date_Effective_To <> \"1974-09-14 06:34:39\" AND \"Version_Number\" < 2 AND Template_Type_Code != \"PP\" OR \"Template_ID\" >= 20 OR Template_Details <> \"\" AND Date_Effective_From != \"2002-08-25 13:26:23\""} {"question": "Which driver IDs are either less than or equal to 2, or equal to 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V4gps_12.png", "TableImg_Vg52w_5.png"], "original_data_index": 807, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_66f7x_12.png", "TableImg_Qpw91_5.png"], "original_data_index": 809, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are less than or equal to 3, excluding those that are not equal to 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pgjqy_12.png", "TableImg_Fl9xe_5.png"], "original_data_index": 810, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "How many property features have a description of \"corrupti\", or a feature ID less than 4, or a property ID of 4 or more, combined with how many property features have a property ID greater than 14 or a feature ID of 3 or more?", "answer": {"columns": ["COUNT(property_feature_description)"], "index": [0, 1], "data": [["15"], ["10"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Fof5s_15.png", "TableImg_C6bxs_15.png"], "original_data_index": 808, "original_sql": "SELECT COUNT(property_feature_description) FROM Other_Property_Features WHERE property_feature_description = \"corrupti\" OR \"feature_id\" < 4 OR \"property_id\" >= 4 UNION ALL SELECT COUNT(property_feature_description) FROM Other_Property_Features WHERE \"property_id\" > 14 OR \"feature_id\" >= 3"} {"question": "Which driver IDs are not 5, and which driver ID is 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cj7rn_12.png", "TableImg_9x2l0_5.png"], "original_data_index": 813, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs that are greater than or equal to 2, but not present in the school bus table with IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qik68_12.png", "TableImg_Kx8ea_5.png"], "original_data_index": 812, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are equal to 4 in the driver table, and which driver IDs are not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nbugo_12.png", "TableImg_Tw8bd_5.png"], "original_data_index": 811, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the aircraft IDs that are greater than or equal to 3 and also appear in the airport aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ui9yp_5.png", "TableImg_T5d93_4.png"], "original_data_index": 814, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the names and user IDs of all users who are not named Nancy, and also the names and user IDs of users with a user ID of 6 or higher, excluding those named Mark?", "answer": {"columns": ["name", "u_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["Emily", "7"], ["Helen", "1"], ["Mark", "2"], ["Rosie", "5"], ["Roxi", "6"], ["Terry", "3"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_D6g0l_7.png", "TableImg_Oxwly_7.png"], "original_data_index": 817, "original_sql": "SELECT name, u_id FROM useracct WHERE name <> \"Nancy\" UNION SELECT name, u_id FROM useracct WHERE \"u_id\" >= 6 AND name != \"Mark\""} {"question": "What are the IDs of albums that aren't \"UB40 The Best Of - Volume Two UK\" and have an ID of 140 or greater and an artist ID greater than 115, along with the IDs of playlists that aren't named \"Audiobooks\" and don't have an ID of 10?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176], "data": [["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["199"], ["200"], ["201"], ["202"], ["203"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["242"], ["243"], ["244"], ["245"], ["246"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["257"], ["258"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["1"], ["2"], ["3"], ["5"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_8ztr8_347.png", "TableImg_1klb8_18.png"], "original_data_index": 816, "original_sql": "SELECT id FROM albums WHERE title <> \"UB40 The Best Of - Volume Two UK\" AND \"id\" >= 140 AND \"artist_id\" > 115 UNION ALL SELECT id FROM playlists WHERE name != \"Audiobooks\" AND \"id\" != 10"} {"question": "What are the counties represented, first elected year, and the maximum party value for candidates whose party value is greater than 1, excluding those who are not Elizabeth Bobo, do not represent county \"12.2 12B\", were not first elected in 1994, and are not on the Economic Matters committee?", "answer": {"columns": ["Counties_Represented", "First_Elected", "MAX(Party)"], "index": [0], "data": [["13", "1994", "7"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Xaepr_8.png", "TableImg_Ier0n_8.png"], "original_data_index": 815, "original_sql": "SELECT Counties_Represented, First_Elected, MAX(Party) FROM election WHERE \"Party\" > 1 EXCEPT SELECT Counties_Represented, First_Elected, MAX(Party) FROM election WHERE Delegate <> \"Bobo, Elizabeth Elizabeth Bobo\" AND Counties_Represented != \"12.2 12B\" AND \"First_Elected\" != 1994.0 AND Committee <> \"Economic Matters\""} {"question": "Which driver IDs are either 12 or less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Be4az_12.png", "TableImg_Bjhm8_5.png"], "original_data_index": 820, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs greater than 2 that are in the driver table but not in the school bus table, excluding any driver ID that is not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8nosk_12.png", "TableImg_S4ojn_5.png"], "original_data_index": 818, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are greater than or equal to 3 in the driver table, but not present in the school bus table with driver IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W2c42_12.png", "TableImg_Jtcsz_5.png"], "original_data_index": 819, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 11 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ejfsl_12.png", "TableImg_Lxyqj_5.png"], "original_data_index": 822, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs that are both less than or equal to 10 and also not equal to 9, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1hyth_12.png", "TableImg_6t0pp_5.png"], "original_data_index": 821, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are either 1 or not 3, considering both aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Misyc_5.png", "TableImg_D0jlq_4.png"], "original_data_index": 823, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Give me the full-time status, shop ID, employee ID, and start date for all hiring records where the shop ID is 2 or greater, or the full-time status is not \"T\", excluding any records where the employee ID is 1 and the shop ID is 5.", "answer": {"columns": ["Is_full_time", "Shop_ID", "Employee_ID", "Start_from"], "index": [0, 1, 2, 3, 4], "data": [["F", "2", "6", "2010"], ["F", "8", "3", "2011"], ["T", "4", "4", "2012"], ["T", "5", "5", "2013"], ["T", "6", "7", "2008"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Vd59q_7.png", "TableImg_Iaqqg_7.png"], "original_data_index": 824, "original_sql": "SELECT Is_full_time, Shop_ID, Employee_ID, Start_from FROM hiring WHERE \"Shop_ID\" >= 2 OR Is_full_time != \"T\" EXCEPT SELECT Is_full_time, Shop_ID, Employee_ID, Start_from FROM hiring WHERE \"Employee_ID\" = 1 AND \"Shop_ID\" = 5"} {"question": "Which driver IDs are greater than or equal to 9 and are not present in the school bus table with driver IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Judhn_12.png", "TableImg_Ojjiy_5.png"], "original_data_index": 826, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are equal to 3 in the driver table but not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gj1jf_12.png", "TableImg_5irga_5.png"], "original_data_index": 827, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the club IDs of clubs that have a club ID greater than or equal to 1 or a start year after 2001, combined with the club IDs from match results where the small silver value is greater than 10 and the points are not 139 or the gold value is not 13?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["1"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_Nr86p_6.png", "TableImg_Ex3cv_6.png"], "original_data_index": 828, "original_sql": "SELECT Club_ID FROM club WHERE \"Club_ID\" >= 1 OR \"Start_year\" > 2001 UNION ALL SELECT Club_ID FROM match_result WHERE \"Small_Silver\" > 10 AND \"Points\" <> 139 OR \"Gold\" != 13"} {"question": "How many airports have ICAO \"EHAM\", or a city other than \"Billund\", or are in Belgium, or don't have IATA \"BWI\" and aren't named \"Bergen Airport\"? Also, how many airports have ICAO \"EBBR\" and a name other than \"Ted Stevens Airport\", or have an ID less than or equal to 3, or are not in Netherlands and have IATA \"BWI\", or have a city other than \"Bergen\"? For each of these sets of airports, what is the count of their ICAO codes, the count of their names, their ID, and the minimum IATA code?", "answer": {"columns": ["COUNT(ICAO)", "COUNT(name)", "id", "MIN(IATA)"], "index": [0, 1], "data": [["8", "8", "1", "AEY"], ["9", "9", "1", "AEY"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Cmp5d_9.png", "TableImg_Dkjzs_9.png"], "original_data_index": 825, "original_sql": "SELECT COUNT(ICAO), COUNT(name), id, MIN(IATA) FROM airport WHERE ICAO = \"EHAM\" OR City <> \"Billund\" OR Country = \"Belgium\" OR IATA <> \"BWI\" AND name <> \"Bergen Airport\" UNION SELECT COUNT(ICAO), COUNT(name), id, MIN(IATA) FROM airport WHERE ICAO = \"EBBR\" AND name != \"Ted Stevens Airport\" OR \"id\" <= 3 OR Country != \"Netherlands\" AND IATA = \"BWI\" OR City != \"Bergen\""} {"question": "What is the highest allergy value, excluding environmental allergies or soy allergies, and also the highest allergy value, excluding dog allergies and for students other than student ID 1003?", "answer": {"columns": ["MAX(Allergy)"], "index": [0, 1], "data": [["Wheat"], ["Tree Pollen"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_Lryh0_14.png", "TableImg_Ukxyx_59.png"], "original_data_index": 830, "original_sql": "SELECT MAX(Allergy) FROM Allergy_Type WHERE AllergyType != \"environmental\" OR Allergy <> \"Soy\" UNION ALL SELECT MAX(Allergy) FROM Has_Allergy WHERE Allergy <> \"Dog\" AND \"StuID\" != 1003"} {"question": "What are the Comptroller, Governor, and Party ID for parties that meet any of the following conditions: the US Senate is not Hillary Rodham Clinton, or the year is before 2006, or the Lieutenant Governor is David Paterson and the party is Liberal, or the Governor is not Peter Vallone; or, the year is after 2006, or the US Senate is Hillary Rodham Clinton and the Comptroller is Carl McCall, or the Governor is not Tom Golisano and the Party ID is not 7, or the Lieutenant Governor is not Jonathan Reiter?", "answer": {"columns": ["Comptroller", "Governor", "Party_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Alan Hevesi", "Carl McCall", "3"], ["Alan Hevesi", "Eliot Spitzer", "5"], ["Alan Hevesi", "Eliot Spitzer", "6"], ["Alan Hevesi", "Eliot Spitzer", "7"], ["Carl McCall", "Betsy McCaughey Ross", "2"], ["Carl McCall", "Peter Vallone", "1"], ["John Faso", "Tom Golisano", "4"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_017l7_7.png", "TableImg_F95lk_7.png"], "original_data_index": 832, "original_sql": "SELECT Comptroller, Governor, Party_ID FROM party WHERE US_Senate <> \"Hillary Rodham Clinton\" OR \"Year\" < 2006.0 OR Lieutenant_Governor = \"David Paterson\" AND Party = \"Liberal\" OR Governor <> \"Peter Vallone\" UNION SELECT Comptroller, Governor, Party_ID FROM party WHERE \"Year\" > 2006.0 OR US_Senate = \"Hillary Rodham Clinton\" AND Comptroller = \"Carl McCall\" OR Governor != \"Tom Golisano\" AND \"Party_ID\" != 7 OR Lieutenant_Governor != \"Jonathan Reiter\""} {"question": "Which driver IDs are either less than or equal to 4, or greater than 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V8csu_12.png", "TableImg_Isf9b_5.png"], "original_data_index": 829, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are either 11 or less than or equal to 10, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vg2qd_12.png", "TableImg_5jaer_5.png"], "original_data_index": 831, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs that are either less than or equal to 2 in the aircraft table or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nfnxy_5.png", "TableImg_74wop_4.png"], "original_data_index": 834, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the driver IDs that are greater than or equal to 7, excluding those driver IDs that are greater than 10 and are associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lys1c_12.png", "TableImg_Qs804_5.png"], "original_data_index": 833, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver IDs 10 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R0m2n_12.png", "TableImg_Rjnzh_5.png"], "original_data_index": 835, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs, excluding driver 7, that are present in both the driver and school bus tables, where the school bus driver ID is greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ph0q7_12.png", "TableImg_Gvu8d_5.png"], "original_data_index": 836, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs greater than 3 from the driver table, combined with the driver IDs that are not 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zbdli_12.png", "TableImg_8fm02_5.png"], "original_data_index": 837, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the IDs of drivers who have an ID of 4 or greater and are also assigned to a school bus, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Biwa7_12.png", "TableImg_Tyiz4_5.png"], "original_data_index": 838, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the document IDs from the 'Documents' table where 'other_details' is \"m\", or 'shipping_agent_code' is not \"UP\", or 'receipt_date' is not \"1976-09-15 19:24:17\" and the document ID is not 14, combined with the document IDs from the 'Draft_Copies' table where the copy number is not 10, or the document ID is less than 4, or the draft number is not 17?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"], ["2"], ["4"], ["23"], ["10"], ["2"], ["1"], ["20"], ["12"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Nv8qp_15.png", "TableImg_Qr94e_8.png"], "original_data_index": 840, "original_sql": "SELECT document_id FROM Documents WHERE other_details = \"m\" OR shipping_agent_code != \"UP\" OR receipt_date <> \"1976-09-15 19:24:17\" AND \"document_id\" <> 14 UNION ALL SELECT document_id FROM Draft_Copies WHERE \"copy_number\" <> 10 OR \"document_id\" < 4 OR \"draft_number\" <> 17"} {"question": "What are the full-time status and start dates from the hiring table, excluding entries where the start year is 2012 and the shop ID is less than 8, or where the full-time status is not \"T\", or where the employee ID is not greater than 1? Also, what are the full-time status and start dates from the hiring table, excluding entries where the start year is 2009 and the employee ID is not greater than 2, or where the shop ID is less than 2?", "answer": {"columns": ["Is_full_time", "Start_from"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["T", "2003"], ["F", "2011"], ["T", "2012"], ["T", "2013"], ["F", "2010"], ["T", "2008"], ["F", "2011"], ["T", "2012"], ["T", "2013"], ["F", "2010"], ["T", "2008"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Ytori_7.png", "TableImg_Mg4fk_7.png"], "original_data_index": 839, "original_sql": "SELECT Is_full_time, Start_from FROM hiring WHERE Start_from != \"2012\" AND \"Shop_ID\" >= 8 OR Is_full_time != \"T\" OR \"Employee_ID\" > 1 UNION ALL SELECT Is_full_time, Start_from FROM hiring WHERE Start_from != \"2009\" AND \"Employee_ID\" > 2 OR \"Shop_ID\" >= 2"} {"question": "What are the club descriptions, excluding those that are not \"Venture capital fund for student business.\" and not \"Pen and Paper Gaming\" and located in \"AKW\" with an ID greater than 2, but including those not located in \"AKW\" or are \"A competitive tennis club.\" and not having an ID of 4?", "answer": {"columns": ["ClubDesc"], "index": [0], "data": [["Play pen and paper games on campus."]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Rhm32_4.png", "TableImg_Te8w5_4.png"], "original_data_index": 841, "original_sql": "SELECT ClubDesc FROM Club WHERE ClubLocation <> \"AKW\" OR ClubDesc = \"A competitive tennis club.\" AND \"ClubID\" <> 4 EXCEPT SELECT ClubDesc FROM Club WHERE ClubDesc != \"Venture capital fund for student business.\" AND ClubName <> \"Pen and Paper Gaming\" AND \"ClubID\" > 2 AND ClubLocation = \"AKW\""} {"question": "Which driver IDs are not equal to 5 but are not found in the school bus table where the driver ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O4ab5_12.png", "TableImg_M77ic_5.png"], "original_data_index": 842, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs, excluding driver ID 11, from the driver table, and also the driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q62k8_12.png", "TableImg_0d82m_5.png"], "original_data_index": 843, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the customer IDs from payment records that don't have a payment time of \"2018-02-06 13:35:58\", excluding those customers whose address ID is not 13, outstanding amount is no more than 5494.0, email is kroberts@example.org, and cell phone number is +57(9)4602098297?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["6"], ["7"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_9i207_15.png", "TableImg_Mz303_15.png"], "original_data_index": 844, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment != \"2018-02-06 13:35:58\" EXCEPT SELECT customer_id FROM Customers WHERE \"customer_address_id\" <> 13 AND \"amount_outstanding\" <= 5494.0 AND email_address = \"kroberts@example.org\" AND cell_mobile_phone_number = \"+57(9)4602098297\""} {"question": "What are the document descriptions, sums of document names, average other details, maximum document IDs, and maximum template IDs for documents that either have a description other than \"k\", or a document ID less than or equal to 2394, or other details not equal to \"None\", or a document name not equal to \"Robbin CV\", and also have a document description not equal to \"z\" or a document name not equal to \"A history of Arts\" and other details equal to \"None\"?", "answer": {"columns": ["Document_Description", "SUM(Document_Name)", "AVG(Other_Details)", "MAX(Document_ID)", "MAX(Template_ID)"], "index": [0], "data": [["y", "0", "", "385906526", "25"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_06crm_15.png", "TableImg_5obpf_15.png"], "original_data_index": 845, "original_sql": "SELECT Document_Description, SUM(Document_Name), AVG(Other_Details), MAX(Document_ID), MAX(Template_ID) FROM Documents WHERE Document_Description <> \"k\" OR \"Document_ID\" <= 2394 OR Other_Details <> \"None\" OR Document_Name != \"Robbin CV\" INTERSECT SELECT Document_Description, SUM(Document_Name), AVG(Other_Details), MAX(Document_ID), MAX(Template_ID) FROM Documents WHERE Document_Description != \"z\" AND Other_Details = \"None\" OR Document_Name <> \"A history of Arts\""} {"question": "What are the aircraft IDs that are both greater than or equal to 2 in the aircraft table and less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sltj6_5.png", "TableImg_Pgec0_4.png"], "original_data_index": 847, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What is the smallest employee ID from the certificate table where the aid is 11 or greater and the employee ID is 556784565 or less, excluding the smallest employee ID from the employee table where the salary is less than 256481 and the name is not Lawrence Sperry or the employee ID is less than 11564812?", "answer": {"columns": ["MIN(eid)"], "index": [0], "data": [["141582651"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Tqx39_69.png", "TableImg_2uh1h_31.png"], "original_data_index": 848, "original_sql": "SELECT MIN(eid) FROM certificate WHERE \"aid\" >= 11 AND \"eid\" <= 556784565 EXCEPT SELECT MIN(eid) FROM employee WHERE \"salary\" < 256481 AND name <> \"Lawrence Sperry\" OR \"eid\" < 11564812"} {"question": "What are the driver IDs, excluding driver ID 3, and also the driver IDs that are 7 or less, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ptp5_12.png", "TableImg_274h6_5.png"], "original_data_index": 846, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are greater than 6 but not present in the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ymlf7_12.png", "TableImg_5lpsf_5.png"], "original_data_index": 849, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs greater than 5 that are present in both the driver and school bus tables, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Feue4_12.png", "TableImg_0c5ll_5.png"], "original_data_index": 850, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are greater than 8 but not equal to 10, considering only those present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kd6r5_12.png", "TableImg_Qr4kk_5.png"], "original_data_index": 853, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs, excluding driver 12, are present in both the driver and school bus records, but not driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bn6ru_12.png", "TableImg_Bidqb_5.png"], "original_data_index": 851, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the IDs and titles of albums that aren't album ID 208 and have artist ID 58, combined with the IDs and titles of employees who either don't live in Calgary, or were not born on December 8, 1958, or have the fax number +1 (403) 456-8485, or live in Alberta and have the email robert@chinookcorp.com and the address 7727B 41 Ave and were not hired on May 1, 2002 and report to someone with an ID of 6 or higher, or have a first name other than Laura and an ID of 3 or higher, or have a phone number other than +1 (403) 263-4423, or have a postal code of T5K 2N1 and a last name other than Mitchell and the job title IT Staff?", "answer": {"columns": ["id", "title"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["43", "MK III The Final Concerts [Disc 1]"], ["50", "The Final Concerts (Disc 2)"], ["58", "Come Taste The Band"], ["59", "Deep Purple In Rock"], ["60", "Fireball"], ["61", "Knocking at Your Back Door: The Best Of Deep Purple in the 80's"], ["62", "Machine Head"], ["63", "Purpendicular"], ["64", "Slaves And Masters"], ["65", "Stormbringer"], ["66", "The Battle Rages On"], ["1", "General Manager"], ["2", "Sales Manager"], ["3", "Sales Support Agent"], ["4", "Sales Support Agent"], ["5", "Sales Support Agent"], ["6", "IT Manager"], ["7", "IT Staff"], ["8", "IT Staff"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_5nwj7_347.png", "TableImg_20slw_8.png"], "original_data_index": 852, "original_sql": "SELECT id, title FROM albums WHERE \"id\" <> 208 AND \"artist_id\" = 58 UNION ALL SELECT id, title FROM employees WHERE city <> \"Calgary\" OR birth_date != \"1958-12-08 00:00:00\" OR fax = \"+1 (403) 456-8485\" OR state = \"AB\" AND email = \"robert@chinookcorp.com\" AND address = \"7727B 41 Ave\" AND hire_date != \"2002-05-01 00:00:00\" AND \"reports_to\" >= 6.0 OR first_name != \"Laura\" AND \"id\" >= 3 OR phone != \"+1 (403) 263-4423\" OR postal_code = \"T5K 2N1\" AND last_name != \"Mitchell\" AND title = \"IT Staff\""} {"question": "What is the total number of driver IDs and the school ID, where the driver is either from Hartford and named Edwin Vargas, or the minimum school ID is less than 5 and not full-time, or the driver is under 42, or the count of years working is not 6?", "answer": {"columns": ["SUM(T1.Driver_ID)", "School_ID"], "index": [0], "data": [["33", "1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9k28a_12.png", "TableImg_Lbs2q_5.png"], "original_data_index": 854, "original_sql": "SELECT SUM(T1.Driver_ID), T2.School_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city = \"Hartford\" AND Name = \"Edwin Vargas\" OR MIN(School_ID) < 5 AND If_full_time <> \"T\" OR Age < 42 OR COUNT(Years_Working) <> 6"} {"question": "What are the average rank and rating, and the minimum user and item IDs, for reviews where the item ID is not 3, the rank is less than 3, the author ID is less than 4, and the rating is less than 7, or where the user ID is not 2? Also, what are the average rank and rating, and the minimum user and item IDs, for reviews where the rating is not 7, the rank is greater than 6, and the item ID is not 7?", "answer": {"columns": ["AVG(rank)", "AVG(rating)", "MIN(u_id)", "MIN(i_id)"], "index": [0, 1], "data": [["", "", "", ""], ["2.75", "6.75", "1.0", "1.0"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Egs4m_7.png", "TableImg_1jci7_7.png"], "original_data_index": 856, "original_sql": "SELECT AVG(rank), AVG(rating), MIN(u_id), MIN(i_id) FROM review WHERE \"i_id\" <> 3 AND \"rank\" < 3 AND \"a_id\" < 4 AND \"rating\" < 7 OR \"u_id\" <> 2 UNION SELECT AVG(rank), AVG(rating), MIN(u_id), MIN(i_id) FROM review WHERE \"rating\" != 7 AND \"rank\" > 6 AND \"i_id\" != 7"} {"question": "What is the sum of car IDs and the weight, considering cars made by \"American Motor Company\", or with less than 4 cylinders, or with horsepower not equal to \"75\" and made before or in 1982 and with acceleration less than or equal to 16.5 and with minimum weight not equal to 2472 and country not equal to \"8\" or maker not equal to \"toyota\"?", "answer": {"columns": ["SUM(T1.Id)", "Weight"], "index": [0], "data": [["266", "3504"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Lv1aq_22.png", "TableImg_Nq570_406.png"], "original_data_index": 855, "original_sql": "SELECT SUM(T1.Id), T2.Weight FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE FullName = \"American Motor Company\" OR COUNT(Cylinders) < 4 OR Horsepower <> \"75\" AND Year <= 1982 AND COUNT(Accelerate) <= 16.5 AND MIN(Weight) <> 2472 AND Country <> \"8\" OR Maker <> \"toyota\""} {"question": "Which driver IDs are greater than 6, excluding those with a driver ID of 3, considering only the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wcpbh_12.png", "TableImg_Cheg8_5.png"], "original_data_index": 857, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which player IDs played in a year other than 2010 or are not player ID 14?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["6"], ["10"], ["1"], ["2"], ["3"], ["4"], ["6"], ["10"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_W15uv_7.png", "TableImg_1veda_7.png"], "original_data_index": 860, "original_sql": "SELECT Player_ID FROM player_coach WHERE \"Starting_year\" != 2010 UNION ALL SELECT Player_ID FROM player_coach WHERE \"Player_ID\" <> 14"} {"question": "What are the driver IDs that are present in both the driver and school bus tables, excluding driver ID 9 from the driver table and including driver IDs greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zxfcx_12.png", "TableImg_Ce08k_5.png"], "original_data_index": 858, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs that are not 4, and also the aircraft IDs greater than 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bpv21_5.png", "TableImg_7ibti_4.png"], "original_data_index": 859, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the IDs of drivers who have an ID of 4 or greater and also are assigned to a school bus with an ID that is not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kh3qk_12.png", "TableImg_Kyv3l_5.png"], "original_data_index": 861, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs, excluding ID 1, are associated with drivers, and which driver IDs greater than 3 are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Szbkl_12.png", "TableImg_3fcdn_5.png"], "original_data_index": 864, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the document status codes that are either \"mailed\" or not \"done\", but not those that are not \"currently working on\" or not \"working\"?", "answer": {"columns": ["document_status_code"], "index": [0], "data": [["working"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Kw8mm_3.png", "TableImg_62guo_3.png"], "original_data_index": 862, "original_sql": "SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description = \"mailed\" OR document_status_code <> \"done\" EXCEPT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> \"currently working on\" OR document_status_code <> \"working\""} {"question": "What are the aircraft IDs that are greater than or equal to 1 in the aircraft table, combined with the aircraft IDs that are less than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L3y7b_5.png", "TableImg_H1q8g_4.png"], "original_data_index": 863, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the feature IDs that are either less than 4, not \"Swimming Pool.\", or are \"BurglarAlarm\", but are not feature IDs associated with property 3, or where the feature ID is less than or equal to 2 and the description isn't \"quo\"?", "answer": {"columns": ["feature_id"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_2ltns_3.png", "TableImg_Qks5h_15.png"], "original_data_index": 865, "original_sql": "SELECT feature_id FROM Other_Available_Features WHERE \"feature_id\" < 4 OR feature_description != \"Swimming Pool.\" OR feature_name = \"BurglarAlarm\" EXCEPT SELECT feature_id FROM Other_Property_Features WHERE \"property_id\" = 3 OR \"feature_id\" <= 2 AND property_feature_description != \"quo\""} {"question": "What are the driver IDs that are less than 10 and also appear in the school bus records with IDs no greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Okj4r_12.png", "TableImg_F5gxz_5.png"], "original_data_index": 868, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 9, and also excluding driver ID 12?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jkc20_12.png", "TableImg_9hhy5_5.png"], "original_data_index": 867, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs, excluding driver ID 3, that are present in both the driver and school bus tables, where the driver ID is less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1k23a_12.png", "TableImg_Qq5uj_5.png"], "original_data_index": 869, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the IDs of people who either work at a company with an ID of 7 or higher, or have worked for more than 3 years, combined with the IDs of people who are not named Brad Lohaus and are 37 years old, or have an ID of 3?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["2"], ["7"], ["1"], ["4"], ["3"], ["6"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_Dg0fp_5.png", "TableImg_6kmki_7.png"], "original_data_index": 866, "original_sql": "SELECT People_ID FROM employment WHERE \"Company_ID\" >= 7 OR \"People_ID\" <> 3 AND \"Year_working\" > 3 UNION ALL SELECT People_ID FROM people WHERE Name != \"Brad Lohaus\" AND \"Age\" = 37 OR \"People_ID\" = 3"} {"question": "Which driver IDs are associated with either drivers who are not driver ID 8 or school buses that are not driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rhy62_12.png", "TableImg_U3ze4_5.png"], "original_data_index": 870, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iq48h_12.png", "TableImg_Cbc4v_5.png"], "original_data_index": 872, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs that are less than 8 from the driver table, combined with the driver IDs that are not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kk7dr_12.png", "TableImg_J2lav_5.png"], "original_data_index": 871, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the IDs of car makers that are not Renault and also have cars where the MPG is not 38.1, or the engine displacement is less than or equal to 98.0, or the weight is not 2914 and the number of cylinders is 4?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Casez_22.png", "TableImg_H8new_406.png"], "original_data_index": 873, "original_sql": "SELECT Id FROM car_makers WHERE FullName != \"Renault\" INTERSECT SELECT Id FROM cars_data WHERE MPG <> \"38.1\" OR \"Edispl\" <= 98.0 OR \"Weight\" <> 2914 AND \"Cylinders\" = 4"} {"question": "What are the aircraft IDs that appear in either the aircraft table or the airport_aircraft table, where the aircraft ID is 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hkdig_5.png", "TableImg_60qm8_4.png"], "original_data_index": 874, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are not equal to 9 and are not found in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zdlx0_12.png", "TableImg_M92wz_5.png"], "original_data_index": 876, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are less than or equal to 12 but are not present in the school bus table with driver IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3bacn_12.png", "TableImg_Bwgqq_5.png"], "original_data_index": 877, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the customer IDs who do not pay via Direct Debit or are not customer ID 10, excluding those who have lessons with lesson ID 4 or higher, staff ID greater than 11 and a completed status, or a lesson time not equal to 9, or a customer ID of 2 or higher and a lesson date that is not February 28, 2018, at 10:55:36?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["12"], ["14"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_2z86u_15.png", "TableImg_Vo9zu_15.png"], "original_data_index": 875, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE payment_method_code != \"Direct Debit\" OR \"customer_id\" != 10 EXCEPT SELECT customer_id FROM Lessons WHERE \"lesson_id\" >= 4 OR \"staff_id\" > 11 AND lesson_status_code = \"Completed\" OR lesson_time <> \"9\" OR \"customer_id\" >= 2 AND lesson_date != \"2018-02-28 10:55:36\""} {"question": "Which driver IDs are greater than 8 but not present in the school bus table with IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W537q_12.png", "TableImg_7ewhp_5.png"], "original_data_index": 878, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are equal to 12 but not equal to 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_20zn6_12.png", "TableImg_Ipao3_5.png"], "original_data_index": 880, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are greater than 10 but not equal to 7, considering only those present in the 'driver' table and excluding those in the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1d3ej_12.png", "TableImg_7fxii_5.png"], "original_data_index": 879, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the department rankings that are not 5 and also not 13, and do not have 30266 employees?", "answer": {"columns": ["Ranking"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["14"], ["15"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Md14y_15.png", "TableImg_Dym45_15.png"], "original_data_index": 881, "original_sql": "SELECT Ranking FROM department WHERE \"Ranking\" <> 5 INTERSECT SELECT Ranking FROM department WHERE \"Ranking\" != 13 AND \"Num_Employees\" != 30266.0"} {"question": "What are the driver IDs that are either less than or equal to 11 from the driver table, or less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mcf1q_12.png", "TableImg_1nh4a_5.png"], "original_data_index": 884, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are greater than or equal to 4 but not present in the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_105ar_12.png", "TableImg_77qz7_5.png"], "original_data_index": 883, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the different document status codes, excluding \"done\" or those not described as \"mailed\", combined with those that are not \"working\" and not described as \"mailed late\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2], "data": [["done"], ["overdue"], ["working"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Sk9e6_3.png", "TableImg_Q861w_3.png"], "original_data_index": 885, "original_sql": "SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> \"done\" OR document_status_description != \"mailed\" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> \"working\" AND document_status_description <> \"mailed late\""} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 3 or greater, or in the airport_aircraft table with an ID of 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gi45m_5.png", "TableImg_Yoyh1_4.png"], "original_data_index": 882, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are greater than 12 in the driver table or greater than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2t4nl_12.png", "TableImg_Hjx92_5.png"], "original_data_index": 889, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs, excluding driver ID 8, from the driver table, and also the driver IDs, excluding driver ID 9, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4lchj_12.png", "TableImg_M62h1_5.png"], "original_data_index": 886, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are all the feature IDs from the 'Other_Available_Features' table where the feature name is \"AirCon\", combined with feature IDs from the 'Other_Property_Features' table where the feature ID is not 4, or the description isn't \"quo\", or the property ID is 6?", "answer": {"columns": ["feature_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["2"], ["3"], ["4"], ["2"], ["2"], ["3"], ["3"], ["2"], ["4"], ["3"], ["3"], ["3"], ["2"], ["2"], ["4"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_K7g9i_3.png", "TableImg_3bdwa_15.png"], "original_data_index": 887, "original_sql": "SELECT feature_id FROM Other_Available_Features WHERE feature_name = \"AirCon\" UNION ALL SELECT feature_id FROM Other_Property_Features WHERE \"feature_id\" != 4 OR property_feature_description <> \"quo\" OR \"property_id\" = 6"} {"question": "What are the driver IDs that are not equal to 7, but are not present in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kmcr9_12.png", "TableImg_Mrxk9_5.png"], "original_data_index": 888, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are both less than 11 and greater than 9, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_67hvo_12.png", "TableImg_I8jjc_5.png"], "original_data_index": 893, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are either greater than or equal to 12 in the driver table, or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cwayk_12.png", "TableImg_V4r1j_5.png"], "original_data_index": 890, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs that are not 5, and also the aircraft IDs that are 5 or less, considering data from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4sguf_5.png", "TableImg_Xztev_4.png"], "original_data_index": 892, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the driver IDs that are present in both the driver and school bus tables, excluding driver ID 9, and where the driver ID is greater than or equal to 1?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nitag_12.png", "TableImg_Tv11n_5.png"], "original_data_index": 891, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are either 3 or less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T3z4g_12.png", "TableImg_J98xc_5.png"], "original_data_index": 897, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs that are 5 or greater, but not driver IDs that are 9 or less, considering the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_44x6m_12.png", "TableImg_Ldqj1_5.png"], "original_data_index": 896, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs, excluding driver ID 11, are present in the driver table but not in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8qoh8_12.png", "TableImg_B9rel_5.png"], "original_data_index": 894, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the highest ID and the MPG for cars made in or after 1974 with 150 horsepower and an MPG other than 38, or with an engine displacement greater than 140.0, or an acceleration of 16.0, or a full name other than Citroen, or a maker that is citroen, grouped by the number of cylinders, but excluding those where the full name is Subaru, the maker is renault, and the weight is at least 3459, or the acceleration is not 12.2, or the number of cylinders is 8 and the engine displacement is not 351.0, or the horsepower is not 180 and the MPG is 13 and the year is at least 1974 and the country is not 3?", "answer": {"columns": ["MAX(T1.Id)", "MPG"], "index": [0, 1, 2], "data": [["21", "24"], ["23", "18"], ["20", "14"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_5hsnz_22.png", "TableImg_2mqkx_406.png"], "original_data_index": 895, "original_sql": "SELECT MAX(T1.Id), T2.MPG FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE \"Year\" >= 1974 AND Horsepower = \"150\" AND MPG <> \"38\" OR \"Edispl\" > 140.0 OR \"Accelerate\" = 16.0 OR FullName <> \"Citroen\" OR Maker = \"citroen\" GROUP BY Cylinders HAVING FullName <> \"Subaru\" AND Maker <> \"renault\" AND Weight >= 3459 OR Accelerate <> 12.2 OR Cylinders = 8 AND Edispl <> 351.0 OR Horsepower <> \"180\" AND MPG = \"13\" AND Year >= 1974 AND Country <> \"3\""} {"question": "What are the driver IDs that are either less than or equal to 11 from the driver table or not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Smqbt_12.png", "TableImg_A7958_5.png"], "original_data_index": 899, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are equal to 12 but not present in the school bus table with a driver ID that is not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4tyd5_12.png", "TableImg_Nx1js_5.png"], "original_data_index": 900, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "How many payments were made, and what are the corresponding mobile phone numbers, for customers who did not pay via Direct Debit, where the payment time was 2018-02-06 13:35:58, the customer status was \"Good Customer\", and the phone number was not (662)490-3108, or the payment amount was 1708.18 and the customer became a customer on 2017-10-05 14:15:46 and the date of birth was 1998-09-18 04:45:01, or the amount outstanding was greater than or equal to 9332.0, or the email address was kroberts@example.org, grouped by mobile phone number, excluding those with a date of birth not equal to 1996-08-29 00:03:08, and a payment time not equal to 2018-02-06 13:35:58, and a mobile phone number not equal to 1-387-258-1016x96963, or an amount outstanding equal to 2255.0?", "answer": {"columns": ["COUNT(T1.amount_payment)", "cell_mobile_phone_number"], "index": [0], "data": [["1", "577-584-4864"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_J3uaz_15.png", "TableImg_Zcljt_15.png"], "original_data_index": 898, "original_sql": "SELECT COUNT(T1.amount_payment), T2.cell_mobile_phone_number FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code <> \"Direct Debit\" AND datetime_payment = \"2018-02-06 13:35:58\" AND customer_status_code = \"Good Customer\" AND phone_number <> \"(662)490-3108\" OR \"amount_payment\" = 1708.18 AND date_became_customer = \"2017-10-05 14:15:46\" AND date_of_birth = \"1998-09-18 04:45:01\" OR \"amount_outstanding\" >= 9332.0 OR email_address = \"kroberts@example.org\" GROUP BY cell_mobile_phone_number HAVING date_of_birth <> \"1996-08-29 00:03:08\" AND datetime_payment <> \"2018-02-06 13:35:58\" AND cell_mobile_phone_number <> \"1-387-258-1016x96963\" OR amount_outstanding = 2255.0"} {"question": "Which driver IDs are greater than or equal to 4, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xszd8_12.png", "TableImg_088ub_5.png"], "original_data_index": 903, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs greater than 12 from the driver table, combined with the driver IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oc9yb_12.png", "TableImg_8ck6o_5.png"], "original_data_index": 904, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "How many cities are there for employees aged 32 or younger, considering the number of cities for employees named Phil Vickery who don't live in Bath and don't have employee ID 8?", "answer": {"columns": ["COUNT(City)"], "index": [0], "data": [["3"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Wrxxh_10.png", "TableImg_F91cp_10.png"], "original_data_index": 902, "original_sql": "SELECT COUNT(City) FROM employee WHERE \"Age\" <= 32 IN (SELECT COUNT(City) FROM employee WHERE Name = \"Phil Vickery\" AND City <> \"Bath\" AND \"Employee_ID\" <> 8)"} {"question": "Which schools meet at least one of the following conditions: their total budget invested percentage is at least 2.0, their total budget budgeted percentage is at least 1.3, or their budget invested percentage is not 228.8 and the year is before 2006 and the budgeted amount is less than or equal to 6803 or the invested amount is less than 95542; or which schools have a donator name that is not \"La Vega\"?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["2"], ["2"], ["2"], ["3"], ["1"], ["4"], ["5"], ["5"], ["1"], ["2"], ["3"], ["3"], ["3"], ["4"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_Wj2q5_8.png", "TableImg_F7kzq_11.png"], "original_data_index": 901, "original_sql": "SELECT School_id FROM budget WHERE \"total_budget_percent_invested\" >= 2.0 OR \"total_budget_percent_budgeted\" >= 1.3 OR Budget_invested_percent != \"228.8\" AND \"Year\" < 2006 AND \"Budgeted\" <= 6803 OR \"Invested\" < 95542 UNION ALL SELECT School_id FROM endowment WHERE donator_name <> \"La Vega\""} {"question": "Can you list the major, student ID, sex, last name, first name, and city code for all female students who are not from Houston, or for any student whose advisor ID is greater than 8722 and last name is Pang, student ID is less than 1014, first name is Eric, and age is 18, along with all students with a student ID greater than or equal to 1014?", "answer": {"columns": ["Major", "StuID", "Sex", "LName", "Fname", "city_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "data": [["600", "1001", "F", "Smith", "Linda", "BAL"], ["600", "1002", "F", "Kim", "Tracy", "HKG"], ["600", "1003", "F", "Jones", "Shiela", "WAS"], ["600", "1007", "F", "Apap", "Lisa", "PIT"], ["600", "1008", "F", "Nelson", "Jandy", "BAL"], ["600", "1015", "F", "Lee", "Susan", "HKG"], ["540", "1024", "F", "Prater", "Stacy", "BAL"], ["550", "1030", "F", "Cheng", "Lisa", "SFO"], ["550", "1031", "F", "Smith", "Sarah", "PHL"], ["50", "1035", "F", "Schmidt", "Sarah", "WAS"], ["600", "1014", "M", "Norris", "Charles", "DAL"], ["600", "1015", "F", "Lee", "Susan", "HKG"], ["600", "1016", "M", "Schwartz", "Mark", "DET"], ["600", "1017", "M", "Wilson", "Bruce", "LON"], ["600", "1018", "M", "Leighton", "Michael", "PIT"], ["600", "1019", "M", "Pang", "Arthur", "WAS"], ["520", "1020", "M", "Thornton", "Ian", "NYC"], ["520", "1021", "M", "Andreou", "George", "NYC"], ["540", "1022", "M", "Woods", "Michael", "PHL"], ["520", "1023", "M", "Shieber", "David", "NYC"], ["540", "1024", "F", "Prater", "Stacy", "BAL"], ["520", "1025", "M", "Goldman", "Mark", "PIT"], ["520", "1026", "M", "Pang", "Eric", "HKG"], ["520", "1027", "M", "Brody", "Paul", "LOS"], ["550", "1028", "M", "Rugh", "Eric", "ROC"], ["100", "1029", "M", "Han", "Jun", "PEK"], ["550", "1030", "F", "Cheng", "Lisa", "SFO"], ["550", "1031", "F", "Smith", "Sarah", "PHL"], ["550", "1032", "M", "Brown", "Eric", "ATL"], ["550", "1033", "M", "Simms", "William", "NAR"], ["50", "1034", "M", "Epp", "Eric", "BOS"], ["50", "1035", "F", "Schmidt", "Sarah", "WAS"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Pfvw6_34.png", "TableImg_Ek86n_34.png"], "original_data_index": 907, "original_sql": "SELECT Major, StuID, Sex, LName, Fname, city_code FROM Student WHERE Sex != \"M\" AND city_code <> \"HOU\" OR \"Advisor\" > 8722 AND LName = \"Pang\" AND \"StuID\" < 1014 AND Fname = \"Eric\" AND \"Age\" = 18 UNION ALL SELECT Major, StuID, Sex, LName, Fname, city_code FROM Student WHERE \"StuID\" >= 1014"} {"question": "For paragraphs, show the document ID, the longest paragraph text, the paragraph ID, and the minimum other details. Include paragraphs where the document ID is less than 651512 or the other details are not \"None\" and the paragraph text is \"Palestinian Territory\". Also, include paragraphs where the other details are not \"None\" and the paragraph ID is less than 243399026.", "answer": {"columns": ["Document_ID", "MAX(Paragraph_Text)", "Paragraph_ID", "MIN(Other_Details)"], "index": [0, 1], "data": [["80.0", "Ukraine", "608931827.0", ""], ["", "", "", ""]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_Gj8rt_15.png", "TableImg_3wiwd_15.png"], "original_data_index": 906, "original_sql": "SELECT Document_ID, MAX(Paragraph_Text), Paragraph_ID, MIN(Other_Details) FROM Paragraphs WHERE \"Document_ID\" < 651512 OR Other_Details != \"None\" AND Paragraph_Text = \"Palestinian Territory\" UNION ALL SELECT Document_ID, MAX(Paragraph_Text), Paragraph_ID, MIN(Other_Details) FROM Paragraphs WHERE Other_Details != \"None\" AND \"Paragraph_ID\" < 243399026"} {"question": "What are the aircraft IDs greater than 1, and also any aircraft IDs from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N7ryg_5.png", "TableImg_Cu10h_4.png"], "original_data_index": 908, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the receipt numbers, earliest receipt dates, document status codes, document IDs, and the sum of other details for documents that are not overdue and not of type \"Hard Drive\", or have a shipping agent other than \"UP\" and other details equal to \"u\", or have a document ID greater than or equal to 15 and a receipt date of \"2014-12-25 17:22:44\"? Also, what are the same details for documents shipped by \"SH\"?", "answer": {"columns": ["receipt_number", "MIN(receipt_date)", "document_status_code", "document_id", "SUM(other_details)"], "index": [0, 1], "data": [["61", "1982-09-27 14:52:15", "working", "7", "0"], ["80", "1973-11-05 21:48:53", "done", "4", "0"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Omupr_15.png", "TableImg_R1c9s_15.png"], "original_data_index": 905, "original_sql": "SELECT receipt_number, MIN(receipt_date), document_status_code, document_id, SUM(other_details) FROM Documents WHERE document_status_code <> \"overdue\" AND document_type_code <> \"Hard Drive\" OR shipping_agent_code <> \"UP\" AND other_details = \"u\" OR \"document_id\" >= 15 AND receipt_date = \"2014-12-25 17:22:44\" UNION SELECT receipt_number, MIN(receipt_date), document_status_code, document_id, SUM(other_details) FROM Documents WHERE shipping_agent_code = \"SH\""} {"question": "What are the driver IDs that are both equal to 9 in the driver table and greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ieaff_12.png", "TableImg_2wdk5_5.png"], "original_data_index": 911, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Give me the department ID, head ID, and temporary acting status for all management entries where the head ID is less than 10, and also for entries where the department ID is not 7 and the temporary acting status is not \"No\", or where the head ID is 10 or greater.", "answer": {"columns": ["department_ID", "head_ID", "temporary_acting"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2", "5", "Yes"], ["15", "4", "Yes"], ["2", "6", "Yes"], ["7", "3", "No"], ["2", "5", "Yes"], ["15", "4", "Yes"], ["2", "6", "Yes"], ["11", "10", "No"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_Or45n_5.png", "TableImg_J9ns9_5.png"], "original_data_index": 910, "original_sql": "SELECT department_ID, head_ID, temporary_acting FROM management WHERE \"head_ID\" < 10 UNION ALL SELECT department_ID, head_ID, temporary_acting FROM management WHERE \"department_ID\" <> 7 AND temporary_acting != \"No\" OR \"head_ID\" >= 10"} {"question": "Which school IDs meet any of the following conditions: the total budget percentage invested is less than or equal to 2.0 and the amount invested is less than or equal to 8335, or the total budget percentage budgeted is greater than 2.0, or the year is not 2002 and the budget invested percentage is 146.9 and the school ID is not 5 and the budgeted amount is 74849; or the endowment amount is greater than 9.73 and the donor name is not Santiago, or the endowment ID is greater than 8?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["2"], ["2"], ["3"], ["1"], ["2"], ["6"], ["7"], ["8"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_6161u_8.png", "TableImg_I57hm_11.png"], "original_data_index": 909, "original_sql": "SELECT School_id FROM budget WHERE \"total_budget_percent_invested\" <= 2.0 AND \"Invested\" <= 8335 OR \"total_budget_percent_budgeted\" > 2.0 OR \"Year\" != 2002 AND Budget_invested_percent = \"146.9\" AND \"School_id\" != 5 AND \"Budgeted\" = 74849 UNION ALL SELECT School_id FROM endowment WHERE \"amount\" > 9.73 AND donator_name <> \"Santiago\" OR \"endowment_id\" > 8"} {"question": "Which driver IDs are less than or equal to 8 but not equal to 9, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O2h6o_12.png", "TableImg_13yos_5.png"], "original_data_index": 912, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are equal to 5, but not driver IDs that are less than or equal to 4, considering information from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7qt77_12.png", "TableImg_74v9z_5.png"], "original_data_index": 915, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 11 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Evsfu_12.png", "TableImg_M7l0q_5.png"], "original_data_index": 913, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the IDs of drivers who are either in the driver table or the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lxmou_12.png", "TableImg_A8ejo_5.png"], "original_data_index": 917, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are not equal to 3, but are not also aircraft IDs greater than 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hqqhr_5.png", "TableImg_7hfjt_4.png"], "original_data_index": 918, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the smallest customer IDs from the Customers table where the date of birth is 1998-09-18 04:45:01, or the cell phone number is +45(6)4872981083, or the date became a customer is not 2016-03-18 06:14:18, or the customer status is not \"Good Customer\", or the customer address ID is not 1 and the last name is Bruen, or the phone number is not 1-875-045-0806, or the first name is Estelle, or the customer ID is less than or equal to 13 and the email address is not wehner.harold@example.com, or the amount outstanding is less than or equal to 7256.0? Also, what are the smallest customer IDs from the Lessons table where the lesson time is not \"2\", or the lesson status is not \"Cancelled\", or the lesson date is not 2018-03-07 22:03:49 and the price is greater than 456.0, or the customer ID is 11, or the vehicle ID is not 1?", "answer": {"columns": ["MIN(customer_id)"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_40hu4_15.png", "TableImg_Spdrf_15.png"], "original_data_index": 914, "original_sql": "SELECT MIN(customer_id) FROM Customers WHERE date_of_birth = \"1998-09-18 04:45:01\" OR cell_mobile_phone_number = \"+45(6)4872981083\" OR date_became_customer != \"2016-03-18 06:14:18\" OR customer_status_code <> \"Good Customer\" OR \"customer_address_id\" != 1 AND last_name = \"Bruen\" OR phone_number != \"1-875-045-0806\" OR first_name = \"Estelle\" OR \"customer_id\" <= 13 AND email_address != \"wehner.harold@example.com\" OR \"amount_outstanding\" <= 7256.0 UNION ALL SELECT MIN(customer_id) FROM Lessons WHERE lesson_time != \"2\" OR lesson_status_code != \"Cancelled\" OR lesson_date <> \"2018-03-07 22:03:49\" AND \"price\" > 456.0 OR \"customer_id\" = 11 OR \"vehicle_id\" != 1"} {"question": "What football class levels are shared by schools that meet at least one of these conditions: located in Marshall County with enrollment under 316, or not named LaVille and are class A, or have the Redskins mascot, or have a school ID other than 8; and schools that meet at least one of these conditions: have the Trojans mascot and are not in Marshall County, or have a school ID of 3 and an enrollment of 495, or are not class AA, or are not class A and are not named Bremen?", "answer": {"columns": ["IHSAA_Football_Class"], "index": [0, 1, 2], "data": [["A"], ["AAA"], ["AAAA"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Are0j_8.png", "TableImg_X4a72_8.png"], "original_data_index": 916, "original_sql": "SELECT IHSAA_Football_Class FROM School WHERE County = \"50 Marshall\" AND \"Enrollment\" < 316 OR School_name != \"LaVille\" AND IHSAA_Class = \"A\" OR Mascot = \"Redskins\" OR School_id <> \"8\" INTERSECT SELECT IHSAA_Football_Class FROM School WHERE Mascot = \"Trojans\" AND County != \"50 Marshall\" OR School_id = \"3\" AND \"Enrollment\" = 495 OR IHSAA_Class <> \"AA\" OR IHSAA_Football_Class <> \"A\" AND School_name <> \"Bremen\""} {"question": "What are the age and bonus for each city, excluding the employee named Matt Stevens?", "answer": {"columns": ["Age", "Bonus"], "index": [0, 1, 2], "data": [["29", "3200"], ["23", "3000"], ["36", "4000"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Oltje_10.png", "TableImg_494f1_6.png"], "original_data_index": 919, "original_sql": "SELECT T1.Age, T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID == T2.Employee_ID GROUP BY City HAVING Name <> \"Matt Stevens\""} {"question": "Which shop IDs started in 2012, or are located in Helsinki, or have a shop ID greater than 4?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_A22f3_7.png", "TableImg_7fc02_9.png"], "original_data_index": 922, "original_sql": "SELECT Shop_ID FROM hiring WHERE Start_from = \"2012\" UNION ALL SELECT Shop_ID FROM shop WHERE Location = \"Helsinki\" OR \"Shop_ID\" > 4"} {"question": "For counties, what are the population values, the count of zip codes, the count of county names, and the maximum county ID? Consider only counties where the county ID is less than or equal to 5 and the population is not 21000, or where the county name is not \"Baltimore County\" and the zip code is not \"D09\". Group the results by population, and only include groups where the zip code count is less than 1 or the county name count is less than or equal to 1 and the maximum county ID is greater than 4. Also, show the same information for counties where the county ID is not 1, grouped by population, but only include groups where the county name count is greater than 1. Combine the results from both sets of criteria.", "answer": {"columns": ["Population", "COUNT(Zip_code)", "COUNT(County_name)", "MAX(County_Id)"], "index": [0], "data": [["13300", "1", "1", "5"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_Brdbb_5.png", "TableImg_Z9glq_5.png"], "original_data_index": 920, "original_sql": "SELECT Population, COUNT(Zip_code), COUNT(County_name), MAX(County_Id) FROM county WHERE \"County_Id\" <= 5 AND \"Population\" <> 21000.0 OR County_name <> \"Baltimore County\" AND Zip_code <> \"D09\" GROUP BY Population HAVING COUNT(Zip_code) < 1 OR COUNT(County_name) <= 1 AND MAX(County_Id) > 4 UNION SELECT Population, COUNT(Zip_code), COUNT(County_name), MAX(County_Id) FROM county WHERE \"County_Id\" != 1 GROUP BY Population HAVING COUNT(County_name) > 1"} {"question": "What are the city population, district ID, the most frequent headquartered city, average district name, and average city area for districts that meet the following conditions: the district ID is not 11 or the headquartered city is not Chakwal City and the city area is not 12.0 and the city population is less than or equal to 314617.0, and also meet these conditions: the district name is not Bhakkar District or the district ID is not 5 or the headquartered city is not Dera Ghazi Khan City and the city population is less than or equal to 219254.0?", "answer": {"columns": ["City_Population", "District_ID", "MAX(Headquartered_City)", "AVG(District_name)", "AVG(City_Area)"], "index": [0], "data": [["165038", "15", "Khanewal City", "0", "31.4666666667"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_1sskf_15.png", "TableImg_Gsycg_15.png"], "original_data_index": 921, "original_sql": "SELECT City_Population, District_ID, MAX(Headquartered_City), AVG(District_name), AVG(City_Area) FROM district WHERE \"District_ID\" <> 11 OR Headquartered_City != \"Chakwal City\" AND \"City_Area\" <> 12.0 AND \"City_Population\" <= 314617.0 INTERSECT SELECT City_Population, District_ID, MAX(Headquartered_City), AVG(District_name), AVG(City_Area) FROM district WHERE District_name != \"Bhakkar District\" OR \"District_ID\" <> 5 OR Headquartered_City != \"Dera Ghazi Khan City\" AND \"City_Population\" <= 219254.0"} {"question": "What are the aircraft IDs that are present in both the aircraft and airport_aircraft tables, where the aircraft ID is greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_16l4l_5.png", "TableImg_Jt8rx_4.png"], "original_data_index": 925, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the driver IDs greater than 10 from the driver table, combined with the driver IDs not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2jo80_12.png", "TableImg_R2a9o_5.png"], "original_data_index": 926, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the destination, flight number, airline ID, and departure date, along with the minimum distance, for flights that meet any of these conditions: the price is less than 278.56, the arrival date is 04/12/2005 05:03, the origin is not Los Angeles, or the distance is not 1749; or for flights where the origin is Chicago, or the distance is greater than or equal to 2606 and the flight number is not 76 and the departure date is not 04/12/2005 07:03 and the destination is not Los Angeles, or the airline ID is greater than 3?", "answer": {"columns": ["destination", "flno", "aid", "departure_date", "MIN(distance)"], "index": [0], "data": [["New York", "68", "10", "04/12/2005 09:00", "802"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_9gfue_10.png", "TableImg_Xgv4n_10.png"], "original_data_index": 927, "original_sql": "SELECT destination, flno, aid, departure_date, MIN(distance) FROM flight WHERE \"price\" < 278.56 OR arrival_date = \"04/12/2005 05:03\" OR origin != \"Los Angeles\" OR \"distance\" <> 1749 UNION SELECT destination, flno, aid, departure_date, MIN(distance) FROM flight WHERE origin = \"Chicago\" OR \"distance\" >= 2606 AND \"flno\" <> 76 AND departure_date != \"04/12/2005 07:03\" AND destination != \"Los Angeles\" OR \"aid\" > 3"} {"question": "How many employees have certificates, excluding those with employee ID 567354612, but not including those with employee IDs greater than 552455348?", "answer": {"columns": ["COUNT(eid)"], "index": [0], "data": [["58"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_W68sw_69.png", "TableImg_4wpy2_31.png"], "original_data_index": 923, "original_sql": "SELECT COUNT(eid) FROM certificate WHERE \"eid\" <> 567354612 EXCEPT SELECT COUNT(eid) FROM employee WHERE \"eid\" > 552455348"} {"question": "What are the driver IDs that are greater than or equal to 1, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2w339_12.png", "TableImg_Ujf3y_5.png"], "original_data_index": 924, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that appear in both the driver and school bus tables, where the driver ID is less than or equal to 8 in the driver table and less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_08idf_12.png", "TableImg_49zyy_5.png"], "original_data_index": 930, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the aircraft IDs that are less than 3 in the aircraft table, but not less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ru9p1_5.png", "TableImg_Axtio_4.png"], "original_data_index": 932, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are less than or equal to 5, but not greater than 9, considering only the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lmz6s_12.png", "TableImg_Lcnvc_5.png"], "original_data_index": 931, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are greater than 9, and also include driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9mtnf_12.png", "TableImg_7y342_5.png"], "original_data_index": 933, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 5 from the driver table and including only driver IDs less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Harm7_12.png", "TableImg_Ohbo9_5.png"], "original_data_index": 934, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the final table made, money rank, and best finish for poker players where the final table made is not 42, or the best finish is at least 1, the people ID is less than 6, the earnings are greater than 189233, and the poker player ID is 5, or the money rank is not 154? Also, what are the final table made, money rank, and best finish for poker players where the poker player ID is not 1, or the final table made is less than or equal to 19, or the earnings are not 189233 and the people ID is not 1?", "answer": {"columns": ["Final_Table_Made", "Money_Rank", "Best_Finish"], "index": [0, 1, 2, 3, 4], "data": [["10", "141", "2"], ["19", "58", "2"], ["21", "166", "1"], ["26", "154", "3"], ["42", "68", "1"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Vnzvi_5.png", "TableImg_Jp3nw_5.png"], "original_data_index": 935, "original_sql": "SELECT Final_Table_Made, Money_Rank, Best_Finish FROM poker_player WHERE \"Final_Table_Made\" != 42.0 OR \"Best_Finish\" >= 1.0 AND \"People_ID\" < 6 AND \"Earnings\" > 189233.0 AND \"Poker_Player_ID\" = 5 OR \"Money_Rank\" != 154.0 UNION SELECT Final_Table_Made, Money_Rank, Best_Finish FROM poker_player WHERE \"Poker_Player_ID\" != 1 OR \"Final_Table_Made\" <= 19.0 OR \"Earnings\" != 189233.0 AND \"People_ID\" != 1"} {"question": "What are the maximum page size and maximum DPI for the Xerox Travel Scanner 100, and what are the maximum page size and maximum DPI for all other products, including those with a DPI of 600, a page size other than 216mm x 355mm, dimensions not equal to 300 x 50 x 45, an interface other than USB 2.0, a color pages per minute value other than 30, or a product ID other than 3?", "answer": {"columns": ["max_page_size", "MAX(dpi)"], "index": [0, 1], "data": [["A4", "600"], ["A4", "600"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Abq9o_6.png", "TableImg_Cd439_6.png"], "original_data_index": 936, "original_sql": "SELECT max_page_size, MAX(dpi) FROM product WHERE product = \"Xerox Travel Scanner 100\" UNION ALL SELECT max_page_size, MAX(dpi) FROM product WHERE product <> \"Xerox Travel Scanner 100\" OR \"dpi\" = 600.0 OR max_page_size != \"216mm x 355mm\" OR dimensions <> \"300 x 50 x 45\" AND interface != \"USB 2.0\" OR \"pages_per_minute_color\" <> 30.0 OR \"product_id\" != 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 3, and also the aircraft IDs from airport_aircraft, excluding aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Slzcl_5.png", "TableImg_Tnrho_4.png"], "original_data_index": 937, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are less than or equal to 9 but not equal to 10, considering only those driver IDs that are present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wbpvq_12.png", "TableImg_76ft6_5.png"], "original_data_index": 938, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are equal to 12 in the driver table, but not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_63vxl_12.png", "TableImg_Txyip_5.png"], "original_data_index": 939, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are not equal to 8 but are not present in the school bus table with driver IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eia9i_12.png", "TableImg_Hq12d_5.png"], "original_data_index": 940, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What is the average of the role descriptions for roles that are not \"Editor\", combined with the average of the role descriptions for roles that do not have the code \"PR\"?", "answer": {"columns": ["AVG(role_description)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Hfdp3_4.png", "TableImg_Kz3ib_4.png"], "original_data_index": 941, "original_sql": "SELECT AVG(role_description) FROM Roles WHERE role_description != \"Editor\" UNION ALL SELECT AVG(role_description) FROM Roles WHERE role_code <> \"PR\""} {"question": "What are the aircraft IDs that are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 4 from the aircraft table and aircraft ID 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9tke1_5.png", "TableImg_P76ho_4.png"], "original_data_index": 942, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What is the average store ID for districts where the store ID is at least 1 or the district ID is less than 15, excluding the average store ID for products where the product ID is less than 3 and the store ID is less than 1?", "answer": {"columns": ["AVG(Store_ID)"], "index": [0], "data": [["3"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_N461i_5.png", "TableImg_Kyts0_15.png"], "original_data_index": 928, "original_sql": "SELECT AVG(Store_ID) FROM store_district WHERE \"Store_ID\" >= 1 OR \"District_ID\" < 15 EXCEPT SELECT AVG(Store_ID) FROM store_product WHERE \"Product_ID\" < 3 AND \"Store_ID\" < 1"} {"question": "What are the maximum disk loading, maximum total disk area, maximum gross weight, and aircraft names for aircraft that meet any of these conditions: the aircraft ID is 3 and the maximum gross weight is 123,500 lb (56,000 kg); or the maximum disk loading is not 15 lb/ft\u00b2 (72 kg/m\u00b2) and the total disk area is 8,495 ft\u00b2 (789 m\u00b2); or the aircraft is not Robinson R-22 and the description is not \"Heavy-lift helicopter\"; or the aircraft is not CH-47D Chinook; or the total disk area is not 5,655 ft\u00b2 (526 m\u00b2)?", "answer": {"columns": ["Max_disk_Loading", "MAX(Total_disk_area)", "Max_Gross_Weight", "Aircraft"], "index": [0], "data": [["3.7 lb/ft\u00b2 (18 kg/m\u00b2)", "872 ft\u00b2 (81.1 m\u00b2)", "3,200 lb (1,451 kg)", "Bell 206B3 JetRanger"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_5bo9r_5.png", "TableImg_Gmw18_5.png"], "original_data_index": 929, "original_sql": "SELECT Max_disk_Loading, MAX(Total_disk_area), Max_Gross_Weight, Aircraft FROM aircraft WHERE \"Aircraft_ID\" = 3 AND Max_Gross_Weight = \"123,500 lb (56,000 kg)\" OR Max_disk_Loading != \"15 lb/ft\u00b2 (72 kg/m\u00b2)\" AND Total_disk_area = \"8,495 ft\u00b2 (789 m\u00b2)\" OR Aircraft != \"Robinson R-22\" AND Description <> \"Heavy-lift helicopter\" UNION SELECT Max_disk_Loading, MAX(Total_disk_area), Max_Gross_Weight, Aircraft FROM aircraft WHERE Aircraft != \"CH-47D Chinook\" OR Total_disk_area != \"5,655 ft\u00b2 (526 m\u00b2)\""} {"question": "Which driver IDs are less than 7 but not present in the school bus table with IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X9tpg_12.png", "TableImg_O9m39_5.png"], "original_data_index": 943, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are equal to 12 but not greater than 3, considering the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nj7sv_12.png", "TableImg_0sm7o_5.png"], "original_data_index": 945, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the sum of People IDs for those who have worked for less than 3 years, excluding the sum of People IDs for people who are not Tom Sheehey, or did not graduate from Wisconsin\u2013Stevens Point, are older than 37, have a People ID of 4 or greater, and are from the United States?", "answer": {"columns": ["SUM(People_ID)"], "index": [0], "data": [["8"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_Sbvs9_5.png", "TableImg_1g0mr_7.png"], "original_data_index": 944, "original_sql": "SELECT SUM(People_ID) FROM employment WHERE \"Year_working\" < 3 EXCEPT SELECT SUM(People_ID) FROM people WHERE Name <> \"Tom Sheehey\" OR Graduation_College <> \"Wisconsin\u2013Stevens Point\" AND \"Age\" > 37 AND \"People_ID\" >= 4 AND Nationality = \"United States\""} {"question": "What are the IDs of drivers, excluding driver 10, and the IDs of school bus drivers, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W8my0_12.png", "TableImg_Kw978_5.png"], "original_data_index": 946, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are both less than 4 and equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0ir4c_5.png", "TableImg_7xhkg_4.png"], "original_data_index": 950, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the driver IDs that are less than 2, and also the driver IDs from school buses that are not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Awy0c_12.png", "TableImg_53qip_5.png"], "original_data_index": 947, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs that appear in both the aircraft table and the airport_aircraft table, where the aircraft ID is at least 4 in the aircraft table and at least 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xob8d_5.png", "TableImg_Ic7uc_4.png"], "original_data_index": 948, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Which driver IDs are less than 2, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L2wgl_12.png", "TableImg_Jctt1_5.png"], "original_data_index": 951, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are not equal to 8 but are not present in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2mnqq_12.png", "TableImg_Mtuh2_5.png"], "original_data_index": 953, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the total budget invested percentage, year, budget invested percentage, budgeted amount, school ID, and total budget percentage budgeted for records in the budget table where the total budget invested percentage is less than 2.7, the year is before 2006, the total budget percentage budgeted is not 2.4, and the budget invested percentage is not 42.9, or the school ID is 2 or greater? Also, show the same information for records where the total budget invested percentage is 2.0 and the budget invested percentage is not 42.9, or the budgeted amount is not 3666 and the invested amount is 95542. Return only the records that satisfy both sets of conditions.", "answer": {"columns": ["total_budget_percent_invested", "Year", "Budget_invested_percent", "Budgeted", "School_id", "total_budget_percent_budgeted"], "index": [0, 1, 2, 3], "data": [["2.0", "2000", "159.3", "3666", "2", "2"], ["2.0", "2001", "122.5", "6803", "2", "2"], ["2.0", "2002", "146.9", "6803", "3", "2"], ["2.2", "2004", "127.6", "74849", "4", "2"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Yw8tb_8.png", "TableImg_6y11e_8.png"], "original_data_index": 952, "original_sql": "SELECT total_budget_percent_invested, Year, Budget_invested_percent, Budgeted, School_id, total_budget_percent_budgeted FROM budget WHERE \"total_budget_percent_invested\" < 2.7 AND \"Year\" < 2006 AND \"total_budget_percent_budgeted\" != 2.4 AND Budget_invested_percent != \"42.9\" OR \"School_id\" >= 2 INTERSECT SELECT total_budget_percent_invested, Year, Budget_invested_percent, Budgeted, School_id, total_budget_percent_budgeted FROM budget WHERE \"total_budget_percent_invested\" = 2.0 AND Budget_invested_percent != \"42.9\" OR \"Budgeted\" != 3666 AND \"Invested\" = 95542"} {"question": "What are the aircraft IDs that are not equal to 1, excluding those aircraft IDs that are less than 3 and present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tjv2v_5.png", "TableImg_U9hw6_4.png"], "original_data_index": 955, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the coach IDs of coaches who are not male and not named Joe Fabbri, combined with the coach IDs from player-coach relationships where the starting year isn't 2010, the player ID isn't 3, or the coach ID is greater than 1?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["1"], ["1"], ["2"], ["3"], ["3"], ["5"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_I54lz_5.png", "TableImg_Zv6qg_7.png"], "original_data_index": 954, "original_sql": "SELECT Coach_ID FROM coach WHERE Gender <> \"M\" AND Coach_name <> \"Joe Fabbri\" UNION ALL SELECT Coach_ID FROM player_coach WHERE \"Starting_year\" != 2010 OR \"Player_ID\" != 3 OR \"Coach_ID\" > 1"} {"question": "What are the driver IDs, excluding driver ID 11, that are present in both the driver and school bus tables, where the school bus driver ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8rzp6_12.png", "TableImg_Zg2r1_5.png"], "original_data_index": 949, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs, excluding driver ID 2, that are present in both the driver and school bus tables, where the driver ID is less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cnm2g_12.png", "TableImg_Q5bpu_5.png"], "original_data_index": 956, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are greater than or equal to 1, combined with the driver IDs that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O3v0c_12.png", "TableImg_Hvoto_5.png"], "original_data_index": 957, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs that are not 3 and are in the aircraft table but not in the airport_aircraft table with IDs less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7unit_5.png", "TableImg_84she_4.png"], "original_data_index": 958, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are all the allergy types and allergies, excluding wheat, and also including ragweed, from the Allergy_Type table?", "answer": {"columns": ["AllergyType", "Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["food", "Eggs"], ["food", "Nuts"], ["food", "Milk"], ["food", "Shellfish"], ["food", "Anchovies"], ["food", "Soy"], ["environmental", "Ragweed"], ["environmental", "Tree Pollen"], ["environmental", "Grass Pollen"], ["animal", "Cat"], ["animal", "Dog"], ["animal", "Rodent"], ["animal", "Bee Stings"], ["environmental", "Ragweed"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_65qaw_14.png", "TableImg_Ws10g_14.png"], "original_data_index": 959, "original_sql": "SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy != \"Wheat\" UNION ALL SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy = \"Ragweed\""} {"question": "Which driver IDs are not 8, and which driver ID is 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T2qz8_12.png", "TableImg_C8qup_5.png"], "original_data_index": 963, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs, excluding aircraft ID 3, from the aircraft table, and also the aircraft IDs, excluding aircraft ID 1, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V606z_5.png", "TableImg_Isdv0_4.png"], "original_data_index": 962, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the driver IDs greater than 1, and also any driver IDs from school buses that are not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Btu6l_12.png", "TableImg_89riv_5.png"], "original_data_index": 964, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the district IDs that are not district 14 or are headquartered in Jhang City, but are not headquartered in Hafizabad City, and do not have a city population of 365198.0, and are not district 4?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"], ["13"], ["15"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_Rr7zz_15.png", "TableImg_Lx6hu_15.png"], "original_data_index": 961, "original_sql": "SELECT District_ID FROM district WHERE \"District_ID\" <> 14 OR Headquartered_City = \"Jhang City\" EXCEPT SELECT District_ID FROM district WHERE Headquartered_City = \"Hafizabad City\" AND \"City_Population\" <> 365198.0 AND \"District_ID\" <> 4"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 10 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K6nt4_12.png", "TableImg_Oqycc_5.png"], "original_data_index": 965, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the album IDs that are not 92 and also have a genre ID of 1?", "answer": {"columns": ["id"], "index": [0], "data": [["1"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_1p6do_347.png", "TableImg_Aclqv_25.png"], "original_data_index": 966, "original_sql": "SELECT id FROM albums WHERE \"id\" != 92 INTERSECT SELECT id FROM genres WHERE \"id\" = 1"} {"question": "What driver IDs are present in both the driver table (excluding driver ID 11) and the school bus table (with driver ID 7)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_751qm_12.png", "TableImg_K9n6s_5.png"], "original_data_index": 967, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What driver IDs are both not equal to 6 in the driver table and equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C2tq9_12.png", "TableImg_2tza3_5.png"], "original_data_index": 968, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs, excluding driver ID 5, from the driver table and the driver IDs, excluding driver ID 7, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rxn7m_12.png", "TableImg_J0ddz_5.png"], "original_data_index": 969, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the store IDs and the sum of their product IDs for stores with IDs less than or equal to 5, excluding those where the product ID is less than 6?", "answer": {"columns": ["Store_ID", "SUM(Product_ID)"], "index": [0], "data": [["1", "48"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_C75f6_15.png", "TableImg_V7ghn_15.png"], "original_data_index": 970, "original_sql": "SELECT Store_ID, SUM(Product_ID) FROM store_product WHERE \"Store_ID\" <= 5 EXCEPT SELECT Store_ID, SUM(Product_ID) FROM store_product WHERE \"Product_ID\" < 6"} {"question": "How many companies and their maximum type are there, excluding those where the principal activity is \"Travel agency\" or the ID is less than or equal to 9 or the type is not \"Joint Venture\" and are incorporated in \"Hong Kong\", but not including those with an ID less than 14?", "answer": {"columns": ["COUNT(id)", "MAX(Type)"], "index": [0], "data": [["14", "Subsidiary"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_C80yy_14.png", "TableImg_2u5mx_14.png"], "original_data_index": 972, "original_sql": "SELECT COUNT(id), MAX(Type) FROM operate_company WHERE Principal_activities <> \"Travel agency\" OR \"id\" <= 9 OR Type <> \"Joint Venture\" AND Incorporated_in = \"Hong Kong\" EXCEPT SELECT COUNT(id), MAX(Type) FROM operate_company WHERE \"id\" < 14"} {"question": "What is the total of airport IDs and the corresponding company ID for flights with a velocity of 240 or greater?", "answer": {"columns": ["SUM(T1.id)", "company_id"], "index": [0], "data": [["44", "3"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Jbl3t_9.png", "TableImg_F98gm_13.png"], "original_data_index": 973, "original_sql": "SELECT SUM(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE \"Velocity\" >= 240.0"} {"question": "What are the airport ID, altitude, velocity, pilot, company ID, ID, vehicle flight number, and date for flights that meet any of these conditions: velocity is greater than 240, company ID is greater than or equal to 11, airport ID is greater than or equal to 3, vehicle flight number is not \"M2-F1 #0\", altitude is greater than 0 and the date is not November 8, 1963, or the pilot is not Thompson and the ID is not 2; and also meet these conditions: velocity is greater than 135, altitude is greater than or equal to 3650, company ID is not 5, the date is not September 3, 1963, and the ID is less than 1, or the airport ID is not 8?", "answer": {"columns": ["airport_id", "Altitude", "Velocity", "Pilot", "company_id", "id", "Vehicle_Flight_number", "Date"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2", "3650", "240", "Peterson", "13", "8", "M2-F1 #39", "1964-05-19 00:00:00"], ["2", "3650", "240", "Thompson", "3", "2", "M2-F1 #1", "1963-08-16 00:00:00"], ["2", "3650", "240", "Thompson", "4", "3", "M2-F1 #6", "1963-09-03 00:00:00"], ["3", "3650", "240", "Thompson", "4", "4", "M2-F1 #13", "1963-10-25 00:00:00"], ["4", "3650", "240", "Thompson", "5", "5", "M2-F1 #14", "1963-11-08 00:00:00"], ["4", "3650", "240", "Thompson", "5", "11", "M2-F1 #70", "1965-10-08 00:00:00"], ["4", "3650", "240", "Thompson", "6", "6", "M2-F1 #21", "1964-01-29 00:00:00"], ["5", "3650", "240", "Peterson", "11", "7", "M2-F1 #33", "1964-03-30 00:00:00"], ["6", "3650", "240", "Thompson", "7", "12", "M2-F1 #71", "1966-03-28 00:00:00"], ["6", "3650", "240", "Thompson", "11", "9", "M2-F1 #61", "1965-07-16 00:00:00"], ["9", "3650", "240", "Thompson", "1", "10", "M2-F1 #64", "1965-08-30 00:00:00"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Yq2fg_13.png", "TableImg_Qvziv_13.png"], "original_data_index": 971, "original_sql": "SELECT airport_id, Altitude, Velocity, Pilot, company_id, id, Vehicle_Flight_number, Date FROM flight WHERE \"Velocity\" > 240.0 OR \"company_id\" >= 11 OR \"airport_id\" >= 3 OR Vehicle_Flight_number != \"M2-F1 #0\" OR \"Altitude\" > 0.0 AND Date != \"November 8, 1963\" OR Pilot <> \"Thompson\" AND \"id\" <> 2 INTERSECT SELECT airport_id, Altitude, Velocity, Pilot, company_id, id, Vehicle_Flight_number, Date FROM flight WHERE \"Velocity\" > 135.0 AND \"Altitude\" >= 3650.0 AND \"company_id\" != 5 AND Date != \"September 3, 1963\" AND \"id\" < 1 OR \"airport_id\" != 8"} {"question": "What are the document IDs, excluding document ID 4 or draft number 16 with draft details not equal to \"r\", and also document IDs excluding 20 or with copy number 10?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["1"], ["1"], ["2"], ["2"], ["7"], ["10"], ["12"], ["12"], ["13"], ["13"], ["14"], ["17"], ["20"], ["23"], ["2"], ["4"], ["23"], ["10"], ["2"], ["1"], ["12"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_8xht9_15.png", "TableImg_5f7lr_8.png"], "original_data_index": 974, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" <> 4 OR \"draft_number\" <> 16 AND draft_details != \"r\" UNION ALL SELECT document_id FROM Draft_Copies WHERE \"document_id\" <> 20 OR \"copy_number\" = 10"} {"question": "What are the driver IDs that are both greater than or equal to 3 in the driver table and greater than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bu2vv_12.png", "TableImg_Kw9xa_5.png"], "original_data_index": 975, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs that are both equal to 5 in the aircraft table and greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Claxq_5.png", "TableImg_Izb38_4.png"], "original_data_index": 979, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the club IDs, and for each club, does the description not equal \"Refurbish computers; teach kids and adults about computer basics.\" and the position is \"President\", or the student ID is less than or equal to 1007?", "answer": {"columns": ["ClubID -1", "ClubID -2"], "index": [0, 1], "data": [["1", "1"], ["4", "4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_7w9bz_4.png", "TableImg_Kvuoi_4.png"], "original_data_index": 980, "original_sql": "SELECT T1.ClubID, T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID == T2.ClubID GROUP BY ClubName HAVING ClubDesc <> \"Refurbish computers; teach kids and adults about computer basics.\" AND Position = \"President\" OR StuID <= 1007"} {"question": "Which driver IDs are not equal to 7 but are not present in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X8hrk_12.png", "TableImg_Hpgyw_5.png"], "original_data_index": 981, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the property IDs that have a feature ID greater than 2, or a description of \"odio\", or a property ID not equal to 6, but are not property IDs where the room count is not 3, or oth_feature_2 is not \"None\", or hse_feature_3 is \"None\" and the vendor requested price is 2573.0, or the property name is \"riverside\" and hse_feature_2 is \"None\", or shp_feature_1 is not \"None\" and the property type code is not \"House\" and other_property_details is not \"None\", or fld_feature_3 is \"None\", or shp_feature_3 is \"None\" and oth_feature_1 is not \"None\" and the property address is not \"062 Micaela Court Apt. 707 Margretville, WV 51628-3617\", or hse_feature_1 is \"None\" and apt_feature_3 is not \"None\" and fld_feature_1 is \"None\" and oth_feature_3 is not \"None\" and apt_feature_2 is \"est\" and the property ID is greater than or equal to 8, or shp_feature_2 is not \"None\", or the buyer offered price is greater than or equal to 15.17 and the agreed selling price is not 476919.3 and the date sold is not \"1997-01-07 19:52:45\" and fld_feature_2 is \"None\", or the date on market is \"1978-05-15 10:53:37\", or apt_feature_1 is \"sed\"?", "answer": {"columns": ["property_id"], "index": [0], "data": [["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_4twm3_15.png", "TableImg_Egej3_15.png"], "original_data_index": 982, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"feature_id\" > 2 OR property_feature_description = \"odio\" OR \"property_id\" <> 6 EXCEPT SELECT property_id FROM Properties WHERE \"room_count\" != 3 OR oth_feature_2 <> \"None\" OR hse_feature_3 = \"None\" AND \"vendor_requested_price\" = 2573.0 OR property_name = \"riverside\" AND hse_feature_2 = \"None\" OR shp_feature_1 != \"None\" AND property_type_code <> \"House\" AND other_property_details != \"None\" OR fld_feature_3 = \"None\" OR shp_feature_3 = \"None\" AND oth_feature_1 <> \"None\" AND property_address != \"062 Micaela Court Apt. 707 Margretville, WV 51628-3617\" OR hse_feature_1 = \"None\" AND apt_feature_3 != \"None\" AND fld_feature_1 = \"None\" AND oth_feature_3 != \"None\" AND apt_feature_2 = \"est\" AND \"property_id\" >= 8 OR shp_feature_2 != \"None\" OR \"buyer_offered_price\" >= 15.17 AND \"agreed_selling_price\" != 476919.3 AND date_sold != \"1997-01-07 19:52:45\" AND fld_feature_2 = \"None\" OR date_on_market = \"1978-05-15 10:53:37\" OR apt_feature_1 = \"sed\""} {"question": "What are the driver IDs, excluding driver ID 1, from the driver table, and also the driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xoc8u_12.png", "TableImg_4v5c3_5.png"], "original_data_index": 983, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the draft numbers where the draft number is at least 17 or the copy number is not 10 and the employee ID is less than 1, combined with the draft numbers where the draft number is greater than 9 and the copy number is 4?", "answer": {"columns": ["draft_number"], "index": [0, 1], "data": [["17"], ["20"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_3zcr4_4.png", "TableImg_Tobd5_8.png"], "original_data_index": 984, "original_sql": "SELECT draft_number FROM Circulation_History WHERE \"draft_number\" >= 17 OR \"copy_number\" != 10 AND \"employee_id\" < 1 UNION SELECT draft_number FROM Draft_Copies WHERE \"draft_number\" > 9 AND \"copy_number\" = 4"} {"question": "Which driver IDs are less than 7 but not equal to 4, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vg6wy_12.png", "TableImg_Taiwz_5.png"], "original_data_index": 985, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are greater than 9, and also include driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Geq9t_12.png", "TableImg_5be9o_5.png"], "original_data_index": 986, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the price, number of flights, latest arrival date, distance, destination, sum of departure dates, airline ID, and number of origins for flights to Honolulu with flight numbers less than 2 or flights not originating from Chicago or flights with arrival dates not equal to 04/12/2005 03:18 and distances not equal to 7487? Also, what are the price, number of flights, latest arrival date, distance, destination, sum of departure dates, airline ID, and number of origins for flights where the arrival date is not 04/12/2005 07:05 or the departure date is not 04/12/2005 08:45 or the flight number is greater than or equal to 387 and the origin is Los Angeles and the price is greater than 182.0 or the distance is 2551?", "answer": {"columns": ["price", "COUNT(flno)", "MAX(arrival_date)", "distance", "destination", "SUM(departure_date)", "aid", "COUNT(origin)"], "index": [0, 1], "data": [["202.45", "10", "04/12/2005 12:02", "802", "New York", "40", "10", "10"], ["202.45", "8", "04/12/2005 12:02", "802", "New York", "32", "10", "8"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_C39ju_10.png", "TableImg_Goshu_10.png"], "original_data_index": 987, "original_sql": "SELECT price, COUNT(flno), MAX(arrival_date), distance, destination, SUM(departure_date), aid, COUNT(origin) FROM flight WHERE destination = \"Honolulu\" AND \"flno\" < 2 OR origin <> \"Chicago\" OR arrival_date != \"04/12/2005 03:18\" AND \"distance\" != 7487 UNION ALL SELECT price, COUNT(flno), MAX(arrival_date), distance, destination, SUM(departure_date), aid, COUNT(origin) FROM flight WHERE arrival_date != \"04/12/2005 07:05\" AND departure_date <> \"04/12/2005 08:45\" OR \"flno\" >= 387 AND origin = \"Los Angeles\" AND \"price\" > 182.0 OR \"distance\" = 2551"} {"question": "For each department creation date, how many departments were created? Consider only departments with more than 17347 employees where the count of department names is 1, and departments that are not \"Veterans Affairs\" or have a department ID other than 12, or have exactly 10600 employees, where the count of department names is not 1.", "answer": {"columns": ["Creation", "COUNT(Name)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1789", "2"], ["1849", "1"], ["1870", "1"], ["1889", "1"], ["1903", "1"], ["1947", "1"], ["1953", "1"], ["1966", "1"], ["1977", "1"], ["1989", "1"], ["2002", "1"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_5nebu_15.png", "TableImg_H0z7e_15.png"], "original_data_index": 988, "original_sql": "SELECT Creation, COUNT(Name) FROM department WHERE \"Num_Employees\" > 17347.0 GROUP BY Creation HAVING COUNT(Name) = 1 UNION SELECT Creation, COUNT(Name) FROM department WHERE Name <> \"Veterans Affairs\" AND \"Department_ID\" != 12 OR \"Num_Employees\" = 10600.0 GROUP BY Creation HAVING COUNT(Name) != 1"} {"question": "What are the driver IDs that are both greater than or equal to 2 and also not equal to 4, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aj5g2_12.png", "TableImg_R5aof_5.png"], "original_data_index": 989, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs that are either less than or equal to 3 in the aircraft table or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bbjau_5.png", "TableImg_Mexjh_4.png"], "original_data_index": 990, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are either 1 or less than or equal to 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2y6gm_12.png", "TableImg_79o4u_5.png"], "original_data_index": 991, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the document ID, copy number, and draft number for records in the circulation history where the draft number is greater than 1 or the document ID is not 2, and also for records in the draft copies table where the document ID is greater than 10?", "answer": {"columns": ["document_id", "copy_number", "draft_number"], "index": [0, 1, 2, 3, 4, 5], "data": [["20", "15", "17"], ["1", "5", "2"], ["10", "10", "20"], ["12", "10", "12"], ["20", "15", "17"], ["23", "15", "9"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_Df20v_4.png", "TableImg_Nej10_8.png"], "original_data_index": 977, "original_sql": "SELECT document_id, copy_number, draft_number FROM Circulation_History WHERE \"draft_number\" > 1 OR \"document_id\" != 2 UNION ALL SELECT document_id, copy_number, draft_number FROM Draft_Copies WHERE \"document_id\" > 10"} {"question": "What are the aircraft IDs that are both less than or equal to 5 in the aircraft table and greater than or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vjrlm_5.png", "TableImg_D5lki_4.png"], "original_data_index": 978, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are not 10 but are in the driver table, or are driver ID 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L48v6_12.png", "TableImg_T7bj2_5.png"], "original_data_index": 976, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which employee IDs are in the certificate table but not in the employee table where the employee ID is greater than 556784565 or the salary is less than or equal to 54921, excluding employee ID 242518965?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["11564812"], ["141582651"], ["142519864"], ["269734834"], ["274878974"], ["310454876"], ["355548984"], ["390487451"], ["548977562"], ["550156548"], ["552455318"], ["556784565"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Bj11l_69.png", "TableImg_Jmo62_31.png"], "original_data_index": 992, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" <> 242518965 EXCEPT SELECT eid FROM employee WHERE \"eid\" > 556784565 OR \"salary\" <= 54921"} {"question": "What are the driver IDs that are either 11 or less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z9xa5_12.png", "TableImg_Y68uk_5.png"], "original_data_index": 995, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which club IDs are not from \"Pen and Paper Gaming\" or have an ID greater than or equal to 3, but are not club ID 1 if the student ID is 1010?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Oawu7_4.png", "TableImg_Goqxo_4.png"], "original_data_index": 993, "original_sql": "SELECT ClubID FROM Club WHERE ClubName <> \"Pen and Paper Gaming\" OR \"ClubID\" >= 3 EXCEPT SELECT ClubID FROM Member_of_club WHERE \"ClubID\" = 1 AND \"StuID\" = 1010"} {"question": "What are the driver IDs that are both greater than 3 in the school bus table and also greater than or equal to 10 in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nh8e2_12.png", "TableImg_Bpxem_5.png"], "original_data_index": 994, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs greater than 4, and also the aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bw2f7_5.png", "TableImg_Rlp86_4.png"], "original_data_index": 998, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are equal to 10 in the driver table but not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mmlde_12.png", "TableImg_G9nsb_5.png"], "original_data_index": 997, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are not 2 and also appear in the airport aircraft table with IDs less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8agvq_5.png", "TableImg_Bl8k7_4.png"], "original_data_index": 996, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Which driver IDs are greater than 2 but not equal to 10, considering only the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7wbiu_12.png", "TableImg_Duiq0_5.png"], "original_data_index": 999, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are in either the driver table (excluding ID 12) or the school bus table (with IDs less than 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2qu8l_12.png", "TableImg_O0dse_5.png"], "original_data_index": 1003, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are not equal to 5 and are in the driver table but not in the school bus table where the driver ID is less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xb8r6_12.png", "TableImg_Hu407_5.png"], "original_data_index": 1001, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What is the sum of the ranks and the count of coach IDs for female coaches, and what is the sum of the ranks and the count of coach IDs for male coaches who are not coach ID 3, are in club ID 3 or less, and have a rank of 5 or higher?", "answer": {"columns": ["SUM(Rank)", "COUNT(Coach_ID)"], "index": [0, 1], "data": [["2", "1"], ["5", "1"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Uav6l_5.png", "TableImg_62igv_5.png"], "original_data_index": 1000, "original_sql": "SELECT SUM(Rank), COUNT(Coach_ID) FROM coach WHERE Gender != \"M\" UNION ALL SELECT SUM(Rank), COUNT(Coach_ID) FROM coach WHERE Gender = \"M\" AND \"Coach_ID\" <> 3 AND \"Club_ID\" <= 3 AND \"Rank\" >= 5"} {"question": "What is the average item ID and the rank, grouped by rank, where the user ID is greater than 2, the rank is less than 3, the author ID is greater than 1, the title is \"comb\", or the rating is less than or equal to 6, and after grouping, either the author ID is not 5 or the user ID is less than or equal to 2 and the title is not \"pear\"?", "answer": {"columns": ["AVG(T1.i_id)", "rank"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "1"], ["1", "2"], ["4", "3"], ["5", "4"], ["3", "5"], ["7", "6"], ["7", "7"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_U4yaw_8.png", "TableImg_Vhyrf_7.png"], "original_data_index": 1002, "original_sql": "SELECT AVG(T1.i_id), T2.rank FROM item as T1 JOIN review as T2 ON T1.i_id = T2.i_id WHERE \"u_id\" > 2 OR \"rank\" < 3 OR \"a_id\" > 1 OR title = \"comb\" OR \"rating\" <= 6 GROUP BY rank HAVING a_id <> 5 OR u_id <= 2 AND title <> \"pear\""} {"question": "What are the driver IDs greater than 4 from the driver table, combined with the driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lmnz0_12.png", "TableImg_7182v_5.png"], "original_data_index": 1005, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are associated with school buses, including driver ID 3, and also list any other driver IDs except for driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mzuut_12.png", "TableImg_Qitgn_5.png"], "original_data_index": 1007, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver IDs 4 and below from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G48z1_12.png", "TableImg_Jqpel_5.png"], "original_data_index": 1006, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, from the aircraft table, combined with the aircraft IDs, excluding aircraft ID 5, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H07o1_5.png", "TableImg_0486f_4.png"], "original_data_index": 1004, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs are either 10 or less than 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2d2rh_12.png", "TableImg_Hhtyz_5.png"], "original_data_index": 1009, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are all the document type codes, excluding \"Hard Drive\", and also including those with descriptions that don't contain the letter \"u\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2, 3], "data": [["CD"], ["Paper"], ["CD"], ["Hard Drive"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_4c6si_3.png", "TableImg_I3dhy_3.png"], "original_data_index": 1011, "original_sql": "SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code <> \"Hard Drive\" UNION ALL SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description != \"u\""} {"question": "Which employee IDs are either less than 3 or were not awarded in 2011, or have an ID of 7, or have a bonus greater than 4000?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["2"], ["1"], ["4"], ["7"], ["10"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Lipwg_10.png", "TableImg_Sxd30_6.png"], "original_data_index": 1010, "original_sql": "SELECT Employee_ID FROM employee WHERE \"Employee_ID\" < 3 UNION ALL SELECT Employee_ID FROM evaluation WHERE Year_awarded <> \"2011\" OR Employee_ID = \"7\" OR \"Bonus\" > 4000.0"} {"question": "Which driver IDs are equal to 9 in the driver table, or less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0eyq2_12.png", "TableImg_9sxtv_5.png"], "original_data_index": 1014, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 1, that are in the aircraft table, combined with the aircraft IDs, excluding aircraft ID 3, that are in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zjf9i_5.png", "TableImg_Yed49_4.png"], "original_data_index": 1012, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What is the sum of middle names and the last name for staff members who weren't born on April 27, 1998, at 12:55:05 and don't have the middle name \"Duane\"? Also, what is the sum of middle names and the last name for staff members whose last name is \"Macejkovic\" and whose staff address ID isn't 1 and whose nickname isn't \"ymiller\", or whose first name is \"Ludie\" and middle name is \"Dejon\"?", "answer": {"columns": ["SUM(middle_name)", "last_name"], "index": [0, 1], "data": [["0", "Macejkovic"], ["0", "Sawayn"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Au8y4_15.png", "TableImg_Yzo6j_15.png"], "original_data_index": 1013, "original_sql": "SELECT SUM(middle_name), last_name FROM Staff WHERE date_of_birth != \"1998-04-27 12:55:05\" AND middle_name != \"Duane\" UNION SELECT SUM(middle_name), last_name FROM Staff WHERE last_name = \"Macejkovic\" AND \"staff_address_id\" <> 1 AND nickname != \"ymiller\" OR first_name = \"Ludie\" AND middle_name = \"Dejon\""} {"question": "Which driver IDs are either less than or equal to 6 or not equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qf7ar_12.png", "TableImg_Q3tyf_5.png"], "original_data_index": 1016, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Show me the names, ages, birth states, and head IDs of people from the 'head' table who are not named P\u00e1draig Harrington and have a head ID greater than 5, or were born in California. Also, show me the names, ages, birth states, and head IDs of people from the 'head' table who are not named Jeff Maggert and are at least 50 years old, or were not born in Alabama.", "answer": {"columns": ["name", "age", "born_state", "head_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["Billy Mayfair", "69", "California", "6"], ["Dudley Hart", "52", "California", "4"], ["Franklin Langham", "67", "Connecticut", "10"], ["Jeff Maggert", "53", "Delaware", "5"], ["K. J. Choi", "69", "Alabama", "3"], ["Nick Faldo", "56", "California", "8"], ["P\u00e1draig Harrington", "43", "Connecticut", "9"], ["Sergio Garc\u00eda", "68", "California", "2"], ["Stewart Cink", "50", "Florida", "7"], ["Tiger Woods", "67", "Alabama", "1"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Burhg_10.png", "TableImg_36xzi_10.png"], "original_data_index": 1015, "original_sql": "SELECT name, age, born_state, head_ID FROM head WHERE name <> \"P\u00e1draig Harrington\" AND \"head_ID\" > 5 OR born_state = \"California\" UNION SELECT name, age, born_state, head_ID FROM head WHERE name != \"Jeff Maggert\" AND \"age\" >= 50.0 OR born_state <> \"Alabama\""} {"question": "Which driver IDs are not equal to 2 and are not found in the school bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qdrit_12.png", "TableImg_Ker3c_5.png"], "original_data_index": 1018, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are not equal to 7, but are not found in the school bus table with driver IDs not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_44obk_12.png", "TableImg_W0dcr_5.png"], "original_data_index": 1017, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are equal to 10 in the driver table but not less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9aloj_12.png", "TableImg_Rkbee_5.png"], "original_data_index": 1019, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs, excluding ID 9, are present in both the driver and school bus tables, excluding ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zfwg4_12.png", "TableImg_P2yxo_5.png"], "original_data_index": 1021, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs, excluding driver ID 2, that are present in both the driver and school bus tables, where the school bus driver ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tifrv_12.png", "TableImg_7nrfd_5.png"], "original_data_index": 1020, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs that are either greater than or equal to 1 in the aircraft table, or not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yg4lk_5.png", "TableImg_Lk9cq_4.png"], "original_data_index": 1022, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the names of clubs that satisfy both of these conditions: either their ID is greater than 4 and their name isn't Helsingborgs IF, or their region isn't UK, or their start year is before 2000; and either their start year is 2009, or their region isn't Korea, or their name isn't Halmstads BK?", "answer": {"columns": ["Club_name"], "index": [0, 1, 2, 3, 4, 5], "data": [["AIK"], ["BK H\u00e4cken"], ["Djurg\u00e5rdens IF"], ["Gefle IF"], ["Halmstads BK"], ["Helsingborgs IF"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_K1v8w_6.png", "TableImg_Lkw67_6.png"], "original_data_index": 1008, "original_sql": "SELECT Club_name FROM club WHERE \"Club_ID\" > 4 AND Club_name <> \"Helsingborgs IF\" OR Region <> \"UK\" OR \"Start_year\" < 2000 INTERSECT SELECT Club_name FROM club WHERE \"Start_year\" = 2009 OR Region != \"Korea\" OR Club_name != \"Halmstads BK\""} {"question": "What parties participated in elections where the delegate wasn't James E. Malone Jr. or the number of represented counties wasn't 13 and the district was at least 2 or the first election was in or after 2002 and the committee wasn't Appropriations and the party value was less than 7 and the election ID was no more than 4, and also what parties had a lieutenant governor other than David Paterson and a comptroller named Alan Hevesi?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["1"], ["2"], ["2"], ["3"], ["4"], ["1"], ["7"], ["Democratic"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_2w0aq_8.png", "TableImg_Nmpnd_7.png"], "original_data_index": 1026, "original_sql": "SELECT Party FROM election WHERE Delegate != \"Malone, James E. Jr. James E. Malone, Jr.\" OR Counties_Represented != \"13\" AND \"District\" >= 2 OR \"First_Elected\" >= 2002.0 AND Committee <> \"Appropriations\" AND \"Party\" < 7 AND \"Election_ID\" <= 4 UNION ALL SELECT Party FROM party WHERE Lieutenant_Governor != \"David Paterson\" AND Comptroller = \"Alan Hevesi\""} {"question": "Which driver IDs, excluding driver ID 4, are in the driver table but not in the school bus table (excluding driver ID 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_55m96_12.png", "TableImg_B9y2o_5.png"], "original_data_index": 1027, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T5ip6_12.png", "TableImg_1ql4y_5.png"], "original_data_index": 1028, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are less than 3, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Shm8q_12.png", "TableImg_9hztm_5.png"], "original_data_index": 1029, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the other details from documents that are not overdue, not shipped by UP, not \"z\", not received on December 25, 2014 at 17:22:44, and don't have a receipt number of \"8\", or are of type \"Paper\", or have a document ID greater than 17, excluding any other details found in the employee records where the employee name is not Koby?", "answer": {"columns": ["other_details"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["h"], ["j"], ["m"], ["p"], ["q"], ["w"], ["x"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Hszkd_15.png", "TableImg_Y3ka7_6.png"], "original_data_index": 1030, "original_sql": "SELECT other_details FROM Documents WHERE document_status_code <> \"overdue\" AND shipping_agent_code <> \"UP\" AND other_details <> \"z\" AND receipt_date != \"2014-12-25 17:22:44\" AND receipt_number <> \"8\" OR document_type_code = \"Paper\" OR \"document_id\" > 17 EXCEPT SELECT other_details FROM Employees WHERE employee_name <> \"Koby\""} {"question": "What is the sum of the 'state' values from the 'AREA_CODE_STATE' table where the state is \"NM\" or the area code is not 720, combined with the sum of 'state' values from the 'VOTES' table where the state is \"NY\" or the created date is not \"2018-03-09 19:03:36\" and the phone number is greater than or equal to 7182887233 or the contestant number is greater than 2 and the vote ID is greater than or equal to 3?", "answer": {"columns": ["SUM(state)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Gcj7x_305.png", "TableImg_U2z7y_4.png"], "original_data_index": 1031, "original_sql": "SELECT SUM(state) FROM AREA_CODE_STATE WHERE state = \"NM\" OR \"area_code\" <> 720 UNION ALL SELECT SUM(state) FROM VOTES WHERE state = \"NY\" OR created != \"2018-03-09 19:03:36\" AND \"phone_number\" >= 7182887233 OR \"contestant_number\" > 2 AND \"vote_id\" >= 3"} {"question": "What are the template ID, document ID, description, name, and other details for documents where the template ID is greater than 14 and the description is not \"y\", or the other details are \"None\", or the name is not \"Data base\"? Also, what are the template ID, document ID, description, name, and other details for documents where the other details are \"None\", or the name is \"Data base\" and the template ID is at least 6, or the document ID is at least 80 and the description is not \"f\"?", "answer": {"columns": ["Template_ID", "Document_ID", "Document_Description", "Document_Name", "Other_Details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "33930", "z", "How Google people work", ""], ["4", "801801", "w", "How to read a book", ""], ["6", "3", "u", "Summer Show", ""], ["7", "0", "n", "Introduction of OS", ""], ["8", "3540024", "y", "Palm reading", ""], ["10", "2394", "y", "Customer reviews", ""], ["11", "82", "w", "Data base", ""], ["11", "385906526", "b", "About Korea", ""], ["14", "80", "h", "Welcome to NY", ""], ["14", "3830", "k", "Do not panic", ""], ["20", "76", "y", "Robbin CV", ""], ["21", "651512", "f", "How to write a CV", ""], ["22", "50123", "r", "Learning French", ""], ["25", "1", "y", "Understanding DB", ""], ["25", "16514113", "h", "A history of Arts", ""]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Alcqp_15.png", "TableImg_L3539_15.png"], "original_data_index": 1032, "original_sql": "SELECT Template_ID, Document_ID, Document_Description, Document_Name, Other_Details FROM Documents WHERE \"Template_ID\" > 14 AND Document_Description <> \"y\" OR Other_Details = \"None\" OR Document_Name != \"Data base\" UNION SELECT Template_ID, Document_ID, Document_Description, Document_Name, Other_Details FROM Documents WHERE Other_Details = \"None\" OR Document_Name = \"Data base\" AND \"Template_ID\" >= 6 OR \"Document_ID\" >= 80 AND Document_Description != \"f\""} {"question": "What are the driver IDs less than 9 that are in the driver table but not in the school bus table, excluding those with a driver ID of 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O5nvz_12.png", "TableImg_30a2j_5.png"], "original_data_index": 1033, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are less than 4 but not equal to 10, considering only driver IDs from the driver table and school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kux41_12.png", "TableImg_Rti73_5.png"], "original_data_index": 1034, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and not equal to 3, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0d9cf_5.png", "TableImg_Ugraz_4.png"], "original_data_index": 1025, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the states associated with area codes greater than 210, combined with the states where the contestant number is not 3?", "answer": {"columns": ["state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], "data": [["AK"], ["AL"], ["AR"], ["AZ"], ["CA"], ["CO"], ["CT"], ["DE"], ["FL"], ["GA"], ["HI"], ["IA"], ["IL"], ["IN"], ["KS"], ["KY"], ["LA"], ["MA"], ["MD"], ["MI"], ["MN"], ["MO"], ["MS"], ["MT"], ["NC"], ["ND"], ["NE"], ["NH"], ["NJ"], ["NJ\n"], ["NM"], ["NV"], ["NY"], ["OH"], ["OK"], ["OR"], ["PA"], ["RI"], ["SC"], ["SD"], ["TN"], ["TX"], ["UT"], ["VA"], ["VT"], ["WA"], ["WI"], ["WV"], ["WY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Pe5u7_305.png", "TableImg_K85rj_4.png"], "original_data_index": 1035, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE \"area_code\" > 210 UNION SELECT state FROM VOTES WHERE \"contestant_number\" <> 3"} {"question": "What are the aircraft IDs that are not 4 and are in the aircraft table, but not in the airport_aircraft table with an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ifrjd_5.png", "TableImg_T45kn_4.png"], "original_data_index": 1024, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What is the sum of document IDs for records where the draft number is not 17 and the employee ID is 2, or where the document ID is not 1, excluding the sum of document IDs for records where the document ID is 20 or greater, the copy number is 5 or less, and the draft number is not 17?", "answer": {"columns": ["SUM(document_id)"], "index": [0], "data": [["32"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_0th7p_4.png", "TableImg_Qylqu_4.png"], "original_data_index": 1036, "original_sql": "SELECT SUM(document_id) FROM Circulation_History WHERE \"draft_number\" != 17 AND \"employee_id\" = 2 OR \"document_id\" <> 1 EXCEPT SELECT SUM(document_id) FROM Circulation_History WHERE \"document_id\" >= 20 AND \"copy_number\" <= 5 AND \"draft_number\" <> 17"} {"question": "What are the IDs of drivers who are in both the driver table (excluding driver ID 10) and the school bus table (with driver IDs greater than 7)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fvb1b_12.png", "TableImg_4fl0k_5.png"], "original_data_index": 1037, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are either 1 or 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Agydi_12.png", "TableImg_8zfq2_5.png"], "original_data_index": 1039, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are less than or equal to 5, excluding driver ID 4, considering only driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X0qtv_12.png", "TableImg_Tkifh_5.png"], "original_data_index": 1040, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs, excluding ID 1, that appear in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pn9r3_5.png", "TableImg_3fm92_4.png"], "original_data_index": 1038, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What is the maximum aircraft ID and the corresponding airport ID, based on the aircraft and airport aircraft information?", "answer": {"columns": ["MAX(T1.Aircraft_ID)", "ID"], "index": [0], "data": [["5", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y0dyp_5.png", "TableImg_Jxx05_4.png"], "original_data_index": 1041, "original_sql": "SELECT MAX(T1.Aircraft_ID), T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the driver IDs greater than 1, and also any driver IDs from school buses that are not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6c65u_12.png", "TableImg_P2bmt_5.png"], "original_data_index": 1043, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and greater than 1, considering only those aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jy1gy_5.png", "TableImg_40bq8_4.png"], "original_data_index": 1042, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are either 4 or greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q8jta_12.png", "TableImg_Lpmxu_5.png"], "original_data_index": 1044, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are less than 11, and also the driver IDs that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P7vzv_12.png", "TableImg_0r7gf_5.png"], "original_data_index": 1046, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are less than 3, and also the driver ID that is 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K6ppf_12.png", "TableImg_4o9po_5.png"], "original_data_index": 1047, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "How many stores are not \"City Mall\" or have a store ID less than or equal to 1 and less than 1170 product categories, combined with the number of stores in districts that are not district ID 4 and not store ID 1?", "answer": {"columns": ["COUNT(Store_ID)"], "index": [0, 1], "data": [["3"], ["3"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Woe0x_5.png", "TableImg_Bkqm2_5.png"], "original_data_index": 1045, "original_sql": "SELECT COUNT(Store_ID) FROM store WHERE Type <> \"City Mall\" OR \"Store_ID\" <= 1 AND \"Number_of_product_category\" < 1170.0 UNION ALL SELECT COUNT(Store_ID) FROM store_district WHERE \"District_ID\" <> 4 AND \"Store_ID\" <> 1"} {"question": "What are the aircraft IDs that are less than 1 in the aircraft table, combined with the aircraft IDs less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ygdq6_5.png", "TableImg_Ji5ti_4.png"], "original_data_index": 1050, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Which aircraft IDs are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 5 from both?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ioeh2_5.png", "TableImg_Vn8sj_4.png"], "original_data_index": 1048, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs are not equal to 9, but are not also driver IDs from school buses with IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6n94h_12.png", "TableImg_Hy075_5.png"], "original_data_index": 1051, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the names of users with a user ID of 3 or less, or with a user ID of 2 and a name that isn't Helen?", "answer": {"columns": ["name"], "index": [0, 1, 2], "data": [["Helen"], ["Mark"], ["Terry"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_B0aqj_7.png", "TableImg_75a15_7.png"], "original_data_index": 1049, "original_sql": "SELECT name FROM useracct WHERE \"u_id\" <= 3 UNION SELECT name FROM useracct WHERE name != \"Helen\" AND \"u_id\" = 2"} {"question": "What are the driver IDs that are less than or equal to 9, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eypql_12.png", "TableImg_1m1d7_5.png"], "original_data_index": 1055, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the album IDs greater than 98, or not by artist 51, or not titled \"The Office, Season 2\", along with playlist IDs less than 11?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_Ztprg_347.png", "TableImg_N1bp5_18.png"], "original_data_index": 1053, "original_sql": "SELECT id FROM albums WHERE \"id\" > 98 OR \"artist_id\" <> 51 OR title <> \"The Office, Season 2\" UNION ALL SELECT id FROM playlists WHERE \"id\" < 11"} {"question": "What are the branch IDs that are either branch 5 in any year except 2016, or any branch ID other than 1?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_G8e4h_8.png", "TableImg_B7y5x_8.png"], "original_data_index": 1052, "original_sql": "SELECT Branch_ID FROM membership_register_branch WHERE Register_Year != \"2016\" AND Branch_ID = \"5\" UNION SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID != \"1\""} {"question": "What are the IDs of drivers who are not driver ID 3 and are also driver IDs greater than 4, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1mw9f_12.png", "TableImg_Urnik_5.png"], "original_data_index": 1054, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are greater than 7 but not equal to 3 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q6o2a_12.png", "TableImg_Xytzr_5.png"], "original_data_index": 1058, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the names and IDs of airports that are not in BGO or that don't have the ICAO code EKBI, combined with the names and IDs of operating companies with IDs less than 6 and that are not subsidiaries?", "answer": {"columns": ["name", "id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["Akureyri Airport", "1"], ["Schiphol Airport", "2"], ["Ted Stevens Airport", "3"], ["Baltimore-Washington Airport", "4"], ["El Prat Airport", "5"], ["Bergen Airport", "6"], ["Billund Airport", "7"], ["Logan International Airport", "8"], ["National Airport", "9"], ["Air China", "1"], ["Air China Cargo", "2"], ["Air Hong Kong", "3"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_O2mww_9.png", "TableImg_Trnos_14.png"], "original_data_index": 1059, "original_sql": "SELECT name, id FROM airport WHERE IATA <> \"BGO\" OR ICAO != \"EKBI\" UNION ALL SELECT name, id FROM operate_company WHERE \"id\" < 6 AND Type != \"Subsidiary\""} {"question": "Which driver IDs are less than 4 but not equal to 4, considering only driver IDs from the driver table and excluding those from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iy4z3_12.png", "TableImg_2dnly_5.png"], "original_data_index": 1057, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the different positions in the club, along with the number of club IDs and the sum of student IDs, considering either club IDs not equal to 1 or student IDs greater than 1010 and positions not equal to \"CTO\", or club ID is 4 or student ID is not 1007?", "answer": {"columns": ["Position", "COUNT(ClubID)", "SUM(StuID)"], "index": [0, 1], "data": [["President", "4", "4026"], ["Vice-President", "2", "2015"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_5gd2u_4.png", "TableImg_Wy1eh_4.png"], "original_data_index": 1056, "original_sql": "SELECT Position, COUNT(ClubID), SUM(StuID) FROM Member_of_club WHERE \"ClubID\" <> 1 OR \"StuID\" > 1010 AND Position <> \"CTO\" UNION SELECT Position, COUNT(ClubID), SUM(StuID) FROM Member_of_club WHERE \"ClubID\" = 4 OR \"StuID\" <> 1007"} {"question": "What are the aircraft IDs that are either greater than or equal to 3 in the aircraft table or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_77bwd_5.png", "TableImg_Emlaf_4.png"], "original_data_index": 1060, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Which driver IDs are either 8 or 9 and above?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pot2k_12.png", "TableImg_Bjsmm_5.png"], "original_data_index": 1063, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are less than 10 but not equal to 9, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P2kl8_12.png", "TableImg_Rsygw_5.png"], "original_data_index": 1061, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are both less than or equal to 11 and also not equal to 9, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Akhdi_12.png", "TableImg_2derz_5.png"], "original_data_index": 1062, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are less than 6, excluding driver ID 3, considering only driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_En1rs_12.png", "TableImg_E2c0j_5.png"], "original_data_index": 1064, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs greater than or equal to 2, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vjaz2_12.png", "TableImg_4o05e_5.png"], "original_data_index": 1067, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the aircraft IDs that are greater than or equal to 2 in the aircraft table, but not present in the airport_aircraft table with IDs less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Owmf9_5.png", "TableImg_Ijz1d_4.png"], "original_data_index": 1069, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the book IDs that satisfy either of these conditions: the writer is not Christopher Hinz, the title is not Bloody Mary, the issue number is not 4.0, or the book ID is 9, and also satisfy any of these conditions: the book ID is greater than or equal to 7, the price is less than or equal to 3,000,000 and the publication ID is less than 1 and the publication date is June 2006, or the publisher is Pearson?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["7"], ["9"], ["10"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_08esk_10.png", "TableImg_Ioj51_7.png"], "original_data_index": 1068, "original_sql": "SELECT Book_ID FROM book WHERE Writer != \"Christopher Hinz\" OR Title != \"Bloody Mary\" OR \"Issues\" <> 4.0 OR \"Book_ID\" = 9 INTERSECT SELECT Book_ID FROM publication WHERE \"Book_ID\" >= 7 OR \"Price\" <= 3000000.0 AND \"Publication_ID\" < 1 AND Publication_Date = \"June 2006\" OR Publisher = \"Pearson\""} {"question": "What are the aircraft IDs that are greater than or equal to 4 and also present in the airport aircraft table with IDs greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q8i46_5.png", "TableImg_5vrlz_4.png"], "original_data_index": 1070, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Which driver IDs are less than or equal to 5, but not equal to 9, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D9znt_12.png", "TableImg_82gfu_5.png"], "original_data_index": 1071, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs greater than 7, and also the driver IDs less than 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aci53_12.png", "TableImg_Zr5ws_5.png"], "original_data_index": 1072, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs, where one ID is 2 from the driver table and another ID is 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E25tw_12.png", "TableImg_Mnupd_5.png"], "original_data_index": 1073, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs, excluding driver ID 8, and also the driver IDs from school buses that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ejc7x_12.png", "TableImg_A6wkf_5.png"], "original_data_index": 1074, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the company and people IDs for those who have worked for more than one year, and also for those who have worked for more than one year, or have a people ID less than or equal to 4, or a company ID less than or equal to 11?", "answer": {"columns": ["Company_ID", "People_ID"], "index": [0, 1, 2], "data": [["11", "3"], ["13", "2"], ["17", "7"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_1byzk_5.png", "TableImg_Mq9sy_5.png"], "original_data_index": 1075, "original_sql": "SELECT Company_ID, People_ID FROM employment WHERE \"Year_working\" > 1 INTERSECT SELECT Company_ID, People_ID FROM employment WHERE \"Year_working\" > 1 OR \"People_ID\" <= 4 OR \"Company_ID\" <= 11"} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ueb4f_12.png", "TableImg_06jo9_5.png"], "original_data_index": 1076, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "For each IHSAA class, how many locations and school names are there, but only show results where the number of locations is at least 2 or the number of school names is greater than 2, or where the number of locations is less than 4 and the number of school names is not equal to 2?", "answer": {"columns": ["IHSAA_Class", "COUNT(Location)", "COUNT(School_name)"], "index": [0, 1, 2], "data": [["A", "2", "2"], ["AA", "2", "2"], ["AAA", "4", "4"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Spcoc_8.png", "TableImg_4ftez_8.png"], "original_data_index": 1077, "original_sql": "SELECT IHSAA_Class, COUNT(Location), COUNT(School_name) FROM School GROUP BY IHSAA_Class HAVING COUNT(Location) >= 2 OR COUNT(School_name) > 2 UNION SELECT IHSAA_Class, COUNT(Location), COUNT(School_name) FROM School GROUP BY IHSAA_Class HAVING COUNT(Location) < 4 AND COUNT(School_name) <> 2"} {"question": "What are the shipping agent code, document status code, other details, document type code, document ID, receipt date, and receipt number for documents that satisfy either of these conditions: the document status is not \"overdue\" and the receipt number is not \"8\", or the document ID is greater than 14, or the receipt date is \"1986-12-14 14:18:59\"; and also satisfy either of these conditions: the other details are \"u\", or the receipt date is not \"1974-05-08 00:00:46\"?", "answer": {"columns": ["shipping_agent_code", "document_status_code", "other_details", "document_type_code", "document_id", "receipt_date", "receipt_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["AL", "overdue", "u", "Hard Drive", "25", "1985-11-05 17:59:34", "83"], ["FE", "done", "p", "Paper", "17", "1983-09-26 09:32:56", "55"], ["FE", "working", "b", "Hard Drive", "23", "1999-04-17 14:19:32", "124"], ["FE", "working", "j", "Hard Drive", "24", "2005-09-30 00:10:02", "114"], ["FE", "working", "u", "CD", "14", "2017-07-02 17:39:09", "117"], ["SH", "working", "w", "CD", "7", "1982-09-27 14:52:15", "61"], ["UP", "done", "h", "Paper", "3", "2014-12-25 17:22:44", "93"], ["UP", "overdue", "r", "CD", "15", "1986-12-14 14:18:59", "37"], ["UP", "working", "x", "Paper", "20", "1996-07-27 03:30:40", "189"], ["UP", "working", "y", "CD", "13", "2015-04-03 09:36:19", "79"], ["UP", "working", "z", "CD", "1", "2008-04-21 20:42:25", "19"], ["US", "done", "q", "Paper", "4", "1973-11-05 21:48:53", "80"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_90lt2_15.png", "TableImg_Pdxkl_15.png"], "original_data_index": 1078, "original_sql": "SELECT shipping_agent_code, document_status_code, other_details, document_type_code, document_id, receipt_date, receipt_number FROM Documents WHERE document_status_code != \"overdue\" AND receipt_number != \"8\" OR \"document_id\" > 14 OR receipt_date = \"1986-12-14 14:18:59\" INTERSECT SELECT shipping_agent_code, document_status_code, other_details, document_type_code, document_id, receipt_date, receipt_number FROM Documents WHERE other_details = \"u\" OR receipt_date != \"1974-05-08 00:00:46\""} {"question": "What are the employee IDs that are both equal to \"1\" and have a year awarded not equal to \"2011\" or a bonus less than or equal to 3000?", "answer": {"columns": ["Employee_ID"], "index": [0], "data": [["1"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_C9a4m_6.png", "TableImg_Xwoiu_6.png"], "original_data_index": 1079, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Employee_ID = \"1\" INTERSECT SELECT Employee_ID FROM evaluation WHERE Year_awarded != \"2011\" OR \"Bonus\" <= 3000.0"} {"question": "What are the aircraft IDs that are greater than or equal to 3, but not present in the airport aircraft table with IDs greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_150nw_5.png", "TableImg_Z3e33_4.png"], "original_data_index": 1066, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the ranks from the match results where the club ID is 3, combined with the ranks from players who are not sponsored by Saint Boniface and are not male, or whose name isn't Pat Martin, or whose occupation is retired, or who have at least 5490 votes, or whose rank isn't 1st and player ID is at least 6?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["3"], ["2nd"], ["3rd"], ["1st"], ["2nd"], ["1st"], ["2nd"], ["4th"], ["2nd"], ["3rd"], ["2nd"], ["1st"], ["1st"], ["3rd"], ["3rd"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Kiegz_6.png", "TableImg_F0711_14.png"], "original_data_index": 1065, "original_sql": "SELECT Rank FROM match_result WHERE \"Club_ID\" = 3 UNION ALL SELECT Rank FROM player WHERE Sponsor_name <> \"Saint Boniface\" AND Gender != \"M\" OR Player_name <> \"Pat Martin\" OR Occupation = \"Retired\" OR \"Votes\" >= 5490 OR Rank <> \"1st\" AND \"Player_ID\" >= 6"} {"question": "What car makers are both \"toyota\" and not from country \"6\" with an ID other than 5, and also either \"General Motors\" or not \"bmw\", or with an ID other than 6 or not from country \"4\"?", "answer": {"columns": ["Maker"], "index": [0], "data": [["toyota"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_0yygn_22.png", "TableImg_8b3zw_22.png"], "original_data_index": 1081, "original_sql": "SELECT Maker FROM car_makers WHERE Maker = \"toyota\" AND Country != \"6\" AND \"Id\" <> 5 INTERSECT SELECT Maker FROM car_makers WHERE FullName = \"General Motors\" OR Maker <> \"bmw\" OR \"Id\" <> 6 OR Country <> \"4\""} {"question": "What is the average gender from the coach table where the club ID is 3 or greater, or the gender is male, or the coach ID is greater than 1, combined with the average gender from the player table where the player ID is not 13, or the votes are 5502 or greater, or the gender is male, or the player name is not Ross Eadie?", "answer": {"columns": ["AVG(Gender)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_Seh1d_5.png", "TableImg_Cfd4y_14.png"], "original_data_index": 1080, "original_sql": "SELECT AVG(Gender) FROM coach WHERE \"Club_ID\" >= 3 OR Gender = \"M\" OR \"Coach_ID\" > 1 UNION ALL SELECT AVG(Gender) FROM player WHERE \"Player_ID\" != 13 OR \"Votes\" >= 5502 OR Gender = \"M\" OR Player_name <> \"Ross Eadie\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 11 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A1k5j_12.png", "TableImg_Depje_5.png"], "original_data_index": 1082, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs that are both greater than or equal to 4 and less than or equal to 9, considering only those driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ospqn_12.png", "TableImg_956il_5.png"], "original_data_index": 1083, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the template type codes that are not \"Paper\", but are not \"Book\" and not \"CV\"?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1], "data": [["BK"], ["CV"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_3w7bf_5.png", "TableImg_Oiou0_5.png"], "original_data_index": 1084, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != \"Paper\" EXCEPT SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != \"Book\" AND Template_Type_Code != \"CV\""} {"question": "What are the driver IDs that are either less than or equal to 4 in the driver table or greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Adras_12.png", "TableImg_Fu6qy_5.png"], "original_data_index": 1085, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are equal to 6 but not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Il1q5_12.png", "TableImg_Eu2y2_5.png"], "original_data_index": 1087, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Give me the sponsor name, gender, rank, player ID, and residence of players who are male, sponsored by Elmwood\u2014Transcona, or ranked 1st, or not named Ross Eadie and not a Ministerial Assistant, or have a player ID that is not 4, but exclude those residing outside of Birtle, or are Ross Eadie and have a player ID of 10 or greater, or have 12093 votes.", "answer": {"columns": ["Sponsor_name", "Gender", "Rank", "Player_ID", "Residence"], "index": [0], "data": [["Dauphin\u2014Swan River\u2014Marquette", "M", "2nd", "4", "Birtle"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_At7f3_14.png", "TableImg_7mizf_14.png"], "original_data_index": 1086, "original_sql": "SELECT Sponsor_name, Gender, Rank, Player_ID, Residence FROM player WHERE Gender = \"M\" OR Sponsor_name = \"Elmwood\u2014Transcona\" OR Rank = \"1st\" OR Player_name != \"Ross Eadie\" AND Occupation <> \"Ministerial Assistant\" OR \"Player_ID\" != 4 EXCEPT SELECT Sponsor_name, Gender, Rank, Player_ID, Residence FROM player WHERE Residence != \"Birtle\" OR Player_name = \"Ross Eadie\" AND \"Player_ID\" >= 10 OR \"Votes\" = 12093"} {"question": "Which driver IDs are equal to 12 but not present in the school bus records with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ln58_12.png", "TableImg_Diu1q_5.png"], "original_data_index": 1091, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are less than 8 from the driver table, combined with the driver IDs that are less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7erkm_12.png", "TableImg_I9vup_5.png"], "original_data_index": 1090, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the branch IDs, cities, names, street addresses, membership amounts, and opening years for branches that opened in 2009 and are not on Cecilia Avenue, as well as for branches named Cochrane with a membership amount of 56?", "answer": {"columns": ["Branch_ID", "City", "Name", "Address_road", "membership_amount", "Open_year"], "index": [0, 1, 2], "data": [["2", "London", "Popert", "Oaks Crescent", "11", "2009"], ["4", "Oxford", "Zytogorski", "Abbey Rise", "7", "2009"], ["8", "Oxford", "Brooke Greville", "Glebe Street", "31", "2009"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Rrvsl_8.png", "TableImg_Nlorz_8.png"], "original_data_index": 1088, "original_sql": "SELECT Branch_ID, City, Name, Address_road, membership_amount, Open_year FROM branch WHERE Open_year = \"2009\" AND Address_road <> \"Cecilia Avenue\" UNION ALL SELECT Branch_ID, City, Name, Address_road, membership_amount, Open_year FROM branch WHERE membership_amount = \"56\" AND Name = \"Cochrane\""} {"question": "Which driver IDs are less than 6 but not equal to 10, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S9e2v_12.png", "TableImg_728z6_5.png"], "original_data_index": 1089, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are both less than or equal to 5 in the aircraft table and less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lo971_5.png", "TableImg_Oeon3_4.png"], "original_data_index": 1093, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs that are less than 11, and also the driver IDs from the school bus table that are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Camld_12.png", "TableImg_Pbkq1_5.png"], "original_data_index": 1092, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the club ID, student ID, and position for members who are not in club 1 and have a student ID less than or equal to 1007, or who hold a position other than Vice-President? Also, what are the club ID, student ID, and position for members who are CTO and have a student ID less than or equal to 1008, but are not in club 1?", "answer": {"columns": ["ClubID", "StuID", "Position"], "index": [0, 1, 2, 3], "data": [["1", "1001", "President"], ["1", "1010", "Teaching Coordinator"], ["2", "1008", "CTO"], ["4", "1007", "Vice-President"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_P6y9s_4.png", "TableImg_M8qbv_4.png"], "original_data_index": 1095, "original_sql": "SELECT ClubID, StuID, Position FROM Member_of_club WHERE \"ClubID\" <> 1 AND \"StuID\" <= 1007 OR Position <> \"Vice-President\" UNION SELECT ClubID, StuID, Position FROM Member_of_club WHERE Position = \"CTO\" AND \"StuID\" <= 1008 AND \"ClubID\" != 1"} {"question": "What are the aircraft IDs that appear in the 'aircraft' table with an ID greater than or equal to 2, combined with the aircraft IDs from the 'airport_aircraft' table that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kk40q_5.png", "TableImg_Uvaya_4.png"], "original_data_index": 1097, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the property type codes for \"Shop, Retail Outlet.\" and \"Other, to be determined.\"?", "answer": {"columns": ["property_type_code"], "index": [0, 1], "data": [["Shop"], ["Other"]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_54tfi_5.png", "TableImg_Zsz2y_5.png"], "original_data_index": 1098, "original_sql": "SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description = \"Shop, Retail Outlet.\" AND property_type_code = \"Shop\" UNION ALL SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description = \"Other, to be determined.\""} {"question": "What are the average dimensions, sum of max page sizes, color pages per minute, average DPI, product ID, product name, and sum of interfaces for products where the dimensions are not \"289 x 51 x 38\" or the max page size is not \"216mm x 356mm\" and the product ID is not 6 or the interface is not \"USB 2.0\" or the color pages per minute is 28.0? Also, what are the same statistics for products where the product ID is not 3 and the DPI is greater than 600 and the color pages per minute is less than 3, or the max page size is \"216mm x 356mm\" and the interface is not \"USB 2.0\"?", "answer": {"columns": ["AVG(dimensions)", "SUM(max_page_size)", "pages_per_minute_color", "AVG(dpi)", "product_id", "product", "SUM(interface)"], "index": [0, 1], "data": [["295.1666666667", "432.0", "30.0", "600.0", "1.0", "Fujitsu fi-6130 A4 Series Scanner", "0.0"], ["", "", "", "", "", "", ""]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_18et9_6.png", "TableImg_Zoov2_6.png"], "original_data_index": 1099, "original_sql": "SELECT AVG(dimensions), SUM(max_page_size), pages_per_minute_color, AVG(dpi), product_id, product, SUM(interface) FROM product WHERE dimensions != \"289 x 51 x 38\" OR max_page_size != \"216mm x 356mm\" AND \"product_id\" != 6 OR interface != \"USB 2.0\" OR \"pages_per_minute_color\" = 28.0 UNION ALL SELECT AVG(dimensions), SUM(max_page_size), pages_per_minute_color, AVG(dpi), product_id, product, SUM(interface) FROM product WHERE \"product_id\" <> 3 AND \"dpi\" > 600.0 AND \"pages_per_minute_color\" < 3.0 OR max_page_size = \"216mm x 356mm\" AND interface != \"USB 2.0\""} {"question": "What are the driver IDs that appear in either the driver table with IDs less than or equal to 8 or the school bus table with IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8u4yc_12.png", "TableImg_V616u_5.png"], "original_data_index": 1101, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs that are greater than or equal to 7, or any driver IDs that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_287km_12.png", "TableImg_3rqyu_5.png"], "original_data_index": 1102, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs less than 5 that are not present in the airport_aircraft table with IDs greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H4o6z_5.png", "TableImg_21a0g_4.png"], "original_data_index": 1100, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the minimum and maximum budget invested percentages, the invested and budgeted amounts, and the school ID, considering the conditions specified in the budget table, and combine the results from two different sets of conditions?", "answer": {"columns": ["MIN(total_budget_percent_invested)", "Invested", "MAX(Budget_invested_percent)", "Budgeted", "School_id"], "index": [0], "data": [["2", "85249", "71.3", "119527", "1"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Di2qv_8.png", "TableImg_Yy1ah_8.png"], "original_data_index": 1103, "original_sql": "SELECT MIN(total_budget_percent_invested), Invested, MAX(Budget_invested_percent), Budgeted, School_id FROM budget WHERE \"total_budget_percent_budgeted\" != 2.0 OR \"Budgeted\" <> 61283 OR \"School_id\" >= 3 AND \"Year\" != 2003 UNION SELECT MIN(total_budget_percent_invested), Invested, MAX(Budget_invested_percent), Budgeted, School_id FROM budget WHERE Budget_invested_percent <> \"159.3\" AND \"Invested\" = 8335 OR \"total_budget_percent_budgeted\" != 2.0"} {"question": "Which driver IDs are greater than 3 but not present in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V3r44_12.png", "TableImg_Icr4w_5.png"], "original_data_index": 1094, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the descriptions and codes of document types, excluding those with a description of \"f\" or a code of \"Paper\", and also including all document types that don't have the code \"Hard Drive\"?", "answer": {"columns": ["document_type_description", "document_type_code"], "index": [0, 1, 2], "data": [["b", "CD"], ["f", "Hard Drive"], ["u", "Paper"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_3dqb4_3.png", "TableImg_3zhxd_3.png"], "original_data_index": 1104, "original_sql": "SELECT document_type_description, document_type_code FROM Ref_Document_Types WHERE document_type_description <> \"f\" OR document_type_code != \"Paper\" UNION SELECT document_type_description, document_type_code FROM Ref_Document_Types WHERE document_type_code <> \"Hard Drive\""} {"question": "Which driver IDs are greater than or equal to 12 but are not present in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9k3l5_12.png", "TableImg_4q3bd_5.png"], "original_data_index": 1105, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are either 3 or greater, or less than 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X392h_12.png", "TableImg_D9zgo_5.png"], "original_data_index": 1107, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the sums of Party and Name, the home city, age, and the minimum driver ID, considering drivers older than 45 or with a driver ID other than 2, combined with the same information for drivers who are not Democrats, not named Edwin Vargas, or have a driver ID other than 5, or are older than 37, or live in Manchester?", "answer": {"columns": ["SUM(Party)", "SUM(Name)", "Home_city", "Age", "MIN(Driver_ID)"], "index": [0], "data": [["0", "0", "Hartford", "40", "1"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_T41q1_12.png", "TableImg_Usoiw_12.png"], "original_data_index": 1106, "original_sql": "SELECT SUM(Party), SUM(Name), Home_city, Age, MIN(Driver_ID) FROM driver WHERE \"Age\" >= 46 OR \"Driver_ID\" != 2 UNION SELECT SUM(Party), SUM(Name), Home_city, Age, MIN(Driver_ID) FROM driver WHERE Party != \"Dem\" AND Name <> \"Edwin Vargas\" OR \"Driver_ID\" != 5 OR \"Age\" > 37 OR Home_city = \"Manchester\""} {"question": "What are the driver IDs greater than 6, and also the driver IDs that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K7upz_12.png", "TableImg_Hgo27_5.png"], "original_data_index": 1108, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are less than 7 but not equal to 9, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N3nry_12.png", "TableImg_Vjz3m_5.png"], "original_data_index": 1109, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the IDs of all the pilots with an ID of 8 or higher who have a certificate, excluding those who have flown a flight that wasn't to Honolulu or flight number 76?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5], "data": [["8"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_0s7c9_69.png", "TableImg_Ypll0_10.png"], "original_data_index": 1110, "original_sql": "SELECT aid FROM certificate WHERE \"aid\" >= 8 EXCEPT SELECT aid FROM flight WHERE \"flno\" <> 76 OR destination != \"Honolulu\""} {"question": "What are the driver IDs that are either less than or equal to 10 from the 'driver' table or not equal to 7 from the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3m2ho_12.png", "TableImg_Lz0u2_5.png"], "original_data_index": 1111, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the IDs of airports that are not in Barcelona, have the ICAO code PANC, are in the United States, or don't have the IATA code ANC, and also have flight records where the airport ID isn't 4 or the velocity isn't 240?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["8"], ["9"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Hguig_9.png", "TableImg_L2xsh_13.png"], "original_data_index": 1112, "original_sql": "SELECT id FROM airport WHERE City <> \"Barcelona\" OR ICAO = \"PANC\" OR Country = \"United States\" OR IATA != \"ANC\" INTERSECT SELECT id FROM flight WHERE \"airport_id\" != 4 OR \"Velocity\" != 240.0"} {"question": "What are the driver IDs, excluding driver ID 4, and also the driver IDs greater than 3, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_15pub_12.png", "TableImg_Le7mj_5.png"], "original_data_index": 1114, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs greater than 2 that are not present in the airport_aircraft table with aircraft IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y9ckz_5.png", "TableImg_Okt3k_4.png"], "original_data_index": 1115, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs, where the driver ID is 9 in the driver table or the driver ID is 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9m09y_12.png", "TableImg_K7uy4_5.png"], "original_data_index": 1113, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are not equal to 3, but are not present in the airport_aircraft table with IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A1vtc_5.png", "TableImg_4oafb_4.png"], "original_data_index": 1116, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are both greater than or equal to 4 in the driver table and equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uev4o_12.png", "TableImg_7yhi6_5.png"], "original_data_index": 1120, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are either 4 or not 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_208h6_12.png", "TableImg_8ssr3_5.png"], "original_data_index": 1117, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are greater than or equal to 5 but not present in the school bus table with driver IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X7d05_12.png", "TableImg_R0ixd_5.png"], "original_data_index": 1118, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What is the average DPI, product ID, maximum page size, and color pages per minute, along with the minimum product name, for products where the product ID is less than 4, or the interface isn't USB 2.0, and the product isn't Xerox Travel Scanner 100, and the DPI is at least 600, and the color pages per minute is less than 10? Also, what is the average DPI, product ID, maximum page size, and color pages per minute, along with the minimum product name, for products where the dimensions aren't 280 x 95 x 40, and the color pages per minute is at least 30, and the maximum page size isn't 216mm x 355mm, or the product isn't ScanShell 3000DN, or the interface isn't USB 2.0, or the DPI is greater than 600?", "answer": {"columns": ["AVG(dpi)", "product_id", "max_page_size", "pages_per_minute_color", "MIN(product)"], "index": [0], "data": [["600", "1", "A4", "30", "Fujitsu fi-6130 A4 Series Scanner"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Cgau3_6.png", "TableImg_W03jg_6.png"], "original_data_index": 1119, "original_sql": "SELECT AVG(dpi), product_id, max_page_size, pages_per_minute_color, MIN(product) FROM product WHERE \"product_id\" < 4 OR interface != \"USB 2.0\" AND product <> \"Xerox Travel Scanner 100\" AND \"dpi\" >= 600.0 AND \"pages_per_minute_color\" < 10.0 UNION SELECT AVG(dpi), product_id, max_page_size, pages_per_minute_color, MIN(product) FROM product WHERE dimensions <> \"280 x 95 x 40\" AND \"pages_per_minute_color\" >= 30.0 AND max_page_size <> \"216mm x 355mm\" OR product != \"ScanShell 3000DN\" AND interface <> \"USB 2.0\" OR \"dpi\" > 600.0"} {"question": "What are the aircraft IDs that appear in both the aircraft table with an ID less than or equal to 3 and the airport_aircraft table with an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qogcb_5.png", "TableImg_L23ek_4.png"], "original_data_index": 1121, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the driver IDs greater than 9 who are not assigned to a school bus, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Is84q_12.png", "TableImg_Cghhk_5.png"], "original_data_index": 1123, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are not equal to 9 and are not present in the school bus table, excluding those with a driver ID of 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rmzcr_12.png", "TableImg_3ze2d_5.png"], "original_data_index": 1122, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are either less than or equal to 4 in the driver table or less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X5kjm_12.png", "TableImg_9vgnl_5.png"], "original_data_index": 1126, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that are less than or equal to 4, but not present in the airport aircraft table with IDs less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N1rgl_5.png", "TableImg_Qbx0x_4.png"], "original_data_index": 1127, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What is the maximum value of 'Is_full_time' considering employees who are not in shop 1 or not employee 7 or are part-time, combined with the maximum value of 'Is_full_time' for employees who are not employee 2 and started before 2003 or are not in shop 1 or are not full-time, all from the hiring table?", "answer": {"columns": ["MAX(Is_full_time)"], "index": [0], "data": [["T"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Khuqz_7.png", "TableImg_Nq2hk_7.png"], "original_data_index": 1125, "original_sql": "SELECT MAX(Is_full_time) FROM hiring WHERE \"Shop_ID\" <> 1 OR \"Employee_ID\" <> 7 OR Is_full_time = \"F\" UNION SELECT MAX(Is_full_time) FROM hiring WHERE \"Employee_ID\" != 2 AND Start_from <> \"2003\" OR \"Shop_ID\" <> 1 OR Is_full_time != \"T\""} {"question": "What are the document IDs from the drafts where the draft details aren't \"r\" or the document ID is less than or equal to 4, combined with the document IDs from the documents where the other details aren't \"h\" or the shipping agent code isn't \"SH\" and the receipt date is \"1985-11-05 17:59:34\" and the document ID is greater than or equal to 12?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["1"], ["1"], ["2"], ["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["13"], ["14"], ["17"], ["20"], ["1"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Pjvxa_15.png", "TableImg_19j95_15.png"], "original_data_index": 1124, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details <> \"r\" OR \"document_id\" <= 4 UNION ALL SELECT document_id FROM Documents WHERE other_details != \"h\" OR shipping_agent_code <> \"SH\" AND receipt_date = \"1985-11-05 17:59:34\" AND \"document_id\" >= 12"} {"question": "What are the driver IDs greater than 4 that are present in both the driver and school bus tables, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3lafm_12.png", "TableImg_Zjwi3_5.png"], "original_data_index": 1129, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are greater than 2 but not greater than 9, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jsb8x_12.png", "TableImg_Pasbn_5.png"], "original_data_index": 1128, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What is the sum of 'Start_from' and the maximum 'Is_full_time', grouped by 'Employee_ID', either when 'Shop_ID' is not 6 or 'Start_from' is \"2010\", or when 'Employee_ID' is less than or equal to 1, or 'Start_from' is not \"2003\" and 'Is_full_time' is not \"F\", using data from the 'hiring' table?", "answer": {"columns": ["SUM(Start_from)", "MAX(Is_full_time)", "Employee_ID"], "index": [0, 1], "data": [["8042", "T", "1"], ["12058", "T", "1"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Pi3b5_7.png", "TableImg_Wgbd6_7.png"], "original_data_index": 1132, "original_sql": "SELECT SUM(Start_from), MAX(Is_full_time), Employee_ID FROM hiring WHERE \"Shop_ID\" != 6 OR Start_from = \"2010\" UNION SELECT SUM(Start_from), MAX(Is_full_time), Employee_ID FROM hiring WHERE \"Employee_ID\" <= 1 OR Start_from != \"2003\" AND Is_full_time != \"F\""} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 4 from the driver table and driver IDs 7 and above from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9lj38_12.png", "TableImg_Bgivj_5.png"], "original_data_index": 1131, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the average student ID of students with IDs 1001 or greater, excluding the average student ID of students who are not male, or whose first name isn't Jandy, and also excluding students with advisors numbered 1148 or less and age 26 or less, or students with major codes 600 or less and not living in Boston?", "answer": {"columns": ["AVG(StuID)"], "index": [0], "data": [["1001.6666666667"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_A2zuj_3.png", "TableImg_483or_34.png"], "original_data_index": 1133, "original_sql": "SELECT AVG(StuID) FROM Has_Pet WHERE \"StuID\" >= 1001 EXCEPT SELECT AVG(StuID) FROM Student WHERE Sex != \"M\" OR Fname <> \"Jandy\" AND \"Advisor\" <= 1148 AND \"Age\" <= 26 OR \"Major\" <= 600 AND city_code <> \"BOS\""} {"question": "What are the district IDs where the city area is less than or equal to 25, or the district name is not Gujranwala District, and the district ID is not 9, and the city population is less than or equal to 134936, but not including those district IDs that have a store ID greater than 2 and a district ID less than 4?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["10"], ["11"], ["13"], ["14"], ["15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Sj3lo_15.png", "TableImg_Bgh7z_5.png"], "original_data_index": 1134, "original_sql": "SELECT District_ID FROM district WHERE \"City_Area\" <= 25.0 OR District_name != \"Gujranwala District\" AND \"District_ID\" != 9 AND \"City_Population\" <= 134936.0 EXCEPT SELECT District_ID FROM store_district WHERE \"Store_ID\" > 2 AND \"District_ID\" < 4"} {"question": "What car makers are not Honda and not from country \"2\", or what car makers have a model that isn't \"pontiac\" or a model ID that isn't 14 or a maker ID less than 20?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["amc"], ["chrysler"], ["citroen"], ["fiat"], ["ford"], ["gm"], ["hyundai"], ["kia"], ["mazda"], ["nissan"], ["peugeaut"], ["renault"], ["saab"], ["subaru"], ["toyota"], ["triumph"], ["volvo"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_I0om4_22.png", "TableImg_Cebo7_36.png"], "original_data_index": 1136, "original_sql": "SELECT Maker FROM car_makers WHERE FullName != \"Honda\" AND Country != \"2\" UNION SELECT Maker FROM model_list WHERE Model <> \"pontiac\" OR \"ModelId\" != 14 OR \"Maker\" < 20"} {"question": "What is the average property ID from the 'Other_Property_Features' table where the feature ID is less than 2, combined with the average property ID from the 'Properties' table where the agreed selling price is not 476919.3, or fld_feature_2 is not \"None\", or the property ID is not 3 and fld_feature_1 is \"None\", or the property type code is not \"Apartment\" and apt_feature_3 is \"None\" and hse_feature_1 is \"None\", or hse_feature_3 is not \"None\", or apt_feature_2 is \"est\" and shp_feature_2 is \"None\" and other_property_details is not \"None\", or fld_feature_3 is not \"None\", or the buyer offered price is 8.7122, or hse_feature_2 is not \"None\", or oth_feature_2 is \"None\", or shp_feature_3 is \"None\"?", "answer": {"columns": ["AVG(property_id)"], "index": [0, 1], "data": [[""], ["8.1428571429"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_Ritvy_15.png", "TableImg_1m1zi_15.png"], "original_data_index": 1135, "original_sql": "SELECT AVG(property_id) FROM Other_Property_Features WHERE \"feature_id\" < 2 UNION ALL SELECT AVG(property_id) FROM Properties WHERE \"agreed_selling_price\" != 476919.3 OR fld_feature_2 != \"None\" OR \"property_id\" != 3 AND fld_feature_1 = \"None\" OR property_type_code <> \"Apartment\" AND apt_feature_3 = \"None\" AND hse_feature_1 = \"None\" OR hse_feature_3 <> \"None\" OR apt_feature_2 = \"est\" AND shp_feature_2 = \"None\" AND other_property_details != \"None\" OR fld_feature_3 <> \"None\" OR \"buyer_offered_price\" = 8.7122 OR hse_feature_2 <> \"None\" OR oth_feature_2 = \"None\" OR shp_feature_3 = \"None\""} {"question": "Which aircraft IDs are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ca12t_5.png", "TableImg_C9x0r_4.png"], "original_data_index": 1137, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What driver IDs are present in both the driver table, excluding ID 10, and the school bus table, specifically with ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1rlb4_12.png", "TableImg_7382k_5.png"], "original_data_index": 1138, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What document status descriptions are \"mailed late\" and also either \"mailed late\" or not \"overdue\"?", "answer": {"columns": ["document_status_description"], "index": [0], "data": [["mailed late"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Xq825_3.png", "TableImg_Hq0cz_3.png"], "original_data_index": 1139, "original_sql": "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description = \"mailed late\" INTERSECT SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description = \"mailed late\" OR document_status_code != \"overdue\""} {"question": "What is the minimum number of total passengers and the corresponding airport ID?", "answer": {"columns": ["MIN(T1.Total_Passengers)", "Airport_ID"], "index": [0], "data": [["6267114", "9"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Pezzn_10.png", "TableImg_Ivt8i_4.png"], "original_data_index": 1140, "original_sql": "SELECT MIN(T1.Total_Passengers), T2.Airport_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "What are the aircraft IDs that are either less than or equal to 5, or greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O8oa2_5.png", "TableImg_4uarc_4.png"], "original_data_index": 1141, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs greater than 8, combined with the driver IDs from school buses that are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O0ir9_12.png", "TableImg_Mwhv0_5.png"], "original_data_index": 1142, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 5 or greater, but are not in the airport_aircraft table with an ID of 2 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uvbf4_5.png", "TableImg_Fqw8t_4.png"], "original_data_index": 1143, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the driver IDs greater than 1 who are not driver IDs that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xsqvm_12.png", "TableImg_Gc3se_5.png"], "original_data_index": 1144, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are greater than 7 but not present in the school bus table with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_952en_12.png", "TableImg_Vt1xf_5.png"], "original_data_index": 1145, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are equal to 8, excluding those with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D5scb_12.png", "TableImg_Val2x_5.png"], "original_data_index": 1146, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are 2 or 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vhwkc_12.png", "TableImg_O2drj_5.png"], "original_data_index": 1147, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that are not 7 and are not in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R85c6_12.png", "TableImg_Ynkyk_5.png"], "original_data_index": 1149, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are all the document type codes, either from documents that don't have receipt number \"124\" or have a document ID of 2, or from document types that aren't \"Paper\" or don't have a description of \"b\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["CD"], ["Paper"], ["Paper"], ["Paper"], ["CD"], ["Paper"], ["Hard Drive"], ["CD"], ["CD"], ["CD"], ["Paper"], ["Paper"], ["Hard Drive"], ["Hard Drive"], ["CD"], ["Paper"], ["Hard Drive"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_5fxbm_15.png", "TableImg_8dpj7_3.png"], "original_data_index": 1148, "original_sql": "SELECT document_type_code FROM Documents WHERE receipt_number != \"124\" OR \"document_id\" = 2 UNION ALL SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code <> \"Paper\" OR document_type_description <> \"b\""} {"question": "What are the aircraft IDs that are not equal to 2, but are not also aircraft IDs less than 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D2jrc_5.png", "TableImg_Eg7bx_4.png"], "original_data_index": 1150, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What trust, source user ID, and target user ID values exist where the target user ID is greater than 3, and also where either the source user ID is not 3, the trust value is not 10, or the target user ID is less than 3?", "answer": {"columns": ["trust", "source_u_id", "target_u_id"], "index": [0, 1, 2], "data": [["2", "7", "5"], ["7", "1", "5"], ["8", "2", "4"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_3pgwh_9.png", "TableImg_Dzqpz_9.png"], "original_data_index": 1151, "original_sql": "SELECT trust, source_u_id, target_u_id FROM trust WHERE \"target_u_id\" > 3 INTERSECT SELECT trust, source_u_id, target_u_id FROM trust WHERE \"source_u_id\" <> 3 OR \"trust\" <> 10 OR \"target_u_id\" < 3"} {"question": "What are the aircraft IDs that are either greater than or equal to 2 in the aircraft table or not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zkwu0_5.png", "TableImg_Qa4cd_4.png"], "original_data_index": 1153, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the driver IDs greater than 7, and also the driver IDs from school buses that are not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3xl1v_12.png", "TableImg_6iiea_5.png"], "original_data_index": 1152, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 2, and also the aircraft IDs from the airport aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kvpn9_5.png", "TableImg_Ad5dx_4.png"], "original_data_index": 1154, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the driver IDs greater than 8 from the driver table, combined with the driver IDs greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5nu1x_12.png", "TableImg_J54ph_5.png"], "original_data_index": 1155, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs greater than 6, and also the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J5f21_12.png", "TableImg_Zkbj7_5.png"], "original_data_index": 1156, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs greater than 7 that are present in both the driver and school bus tables, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X7gmg_12.png", "TableImg_84j23_5.png"], "original_data_index": 1157, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs greater than 3 from the driver table, combined with the driver IDs not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xm8ze_12.png", "TableImg_Ugllc_5.png"], "original_data_index": 1161, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What is the maximum home city for drivers who live in Hartford, are Democrats, or are named Matthew Ritter, combined with the maximum home city for drivers who don't live in Hartford and aren't Democrats?", "answer": {"columns": ["MAX(Home_city)"], "index": [0, 1], "data": [["Coventry"], ["Manchester"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_9akb0_12.png", "TableImg_Cqhoc_12.png"], "original_data_index": 1160, "original_sql": "SELECT MAX(Home_city) FROM driver WHERE Home_city = \"Hartford\" OR Party = \"Dem\" OR Name = \"Matthew Ritter\" UNION SELECT MAX(Home_city) FROM driver WHERE Home_city <> \"Hartford\" AND Party <> \"Dem\""} {"question": "What are the driver IDs that are either greater than or equal to 12, or not equal to 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rwypf_12.png", "TableImg_Iwoxt_5.png"], "original_data_index": 1159, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the average city value for employees who are not 43 years old, or live in Bath and are not Steve Borthwick and have an employee ID less than or equal to 7, combined with the average city value for employees named Tim Payne, or are older than 43, or have an employee ID of 3?", "answer": {"columns": ["AVG(City)"], "index": [0], "data": [["0"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Qtki8_10.png", "TableImg_Xs1ta_10.png"], "original_data_index": 1158, "original_sql": "SELECT AVG(City) FROM employee WHERE \"Age\" != 43 OR City = \"Bath\" AND Name != \"Steve Borthwick\" AND \"Employee_ID\" <= 7 UNION SELECT AVG(City) FROM employee WHERE Name = \"Tim Payne\" OR \"Age\" > 43 OR \"Employee_ID\" = 3"} {"question": "What are the driver IDs that are less than 11 and also appear in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Czrgo_12.png", "TableImg_Xw4nt_5.png"], "original_data_index": 1165, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs that are less than 6, and also the driver IDs that are less than or equal to 7, considering both the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5r1fe_12.png", "TableImg_Os2z9_5.png"], "original_data_index": 1163, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are not equal to 9 but are not present in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8d2h3_12.png", "TableImg_39o38_5.png"], "original_data_index": 1162, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the member IDs of members who have a level greater than 4, or whose name isn't Jeremy Jarmon, or whose hometown isn't Louisville, Kentucky, and also the member IDs from the branch register for the year 2017 where the branch ID isn't 2 and the member ID is greater than 2?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["3"], ["6"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_Iudgw_10.png", "TableImg_9tdi1_8.png"], "original_data_index": 1166, "original_sql": "SELECT Member_ID FROM member WHERE \"Level\" > 4 OR Name != \"Jeremy Jarmon\" OR Hometown <> \"Louisville, Kentucky\" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE Branch_ID <> \"2\" AND Register_Year = \"2017\" AND \"Member_ID\" > 2"} {"question": "Which driver IDs are less than or equal to 4 but are not present in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jgakt_12.png", "TableImg_414sp_5.png"], "original_data_index": 1167, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs that are greater than or equal to 1, excluding those driver IDs that are not equal to 7 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Al3b3_12.png", "TableImg_J03mj_5.png"], "original_data_index": 1168, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs, excluding ID 1, that are in the aircraft table, combined with the aircraft IDs, excluding ID 3, that are in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_No1x6_5.png", "TableImg_Eqjb5_4.png"], "original_data_index": 1170, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the aircraft IDs that are equal to 4 in the aircraft table, but not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A8gtj_5.png", "TableImg_5ae1s_4.png"], "original_data_index": 1171, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "How many pets and the minimum student ID are there where the pet ID is 2002 or greater, or the student ID is not 1002, but exclude the count and minimum student ID where the student ID is not 1001 and the pet ID is not 2002?", "answer": {"columns": ["COUNT(PetID)", "MIN(StuID)"], "index": [0], "data": [["3", "1001"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_6rrtd_3.png", "TableImg_O4ltq_3.png"], "original_data_index": 1169, "original_sql": "SELECT COUNT(PetID), MIN(StuID) FROM Has_Pet WHERE \"PetID\" >= 2002 OR \"StuID\" <> 1002 EXCEPT SELECT COUNT(PetID), MIN(StuID) FROM Has_Pet WHERE \"StuID\" <> 1001 AND \"PetID\" <> 2002"} {"question": "What are the IDs of drivers, excluding driver 7, and the IDs of school buses, excluding bus 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ojcsf_12.png", "TableImg_L5lxw_5.png"], "original_data_index": 1172, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the average values of Writer, Issues, and Title, excluding books where Issues is 4.0, Writer is Elaine Lee, or Title is \"The Dome: Ground Zero\", and also what are the average values of Writer, Issues, and Title for books with a title other than \"BrainBanx\" and a Book_ID less than or equal to 6?", "answer": {"columns": ["AVG(Writer)", "AVG(Issues)", "AVG(Title)"], "index": [0, 1], "data": [["0", "6.0", "0"], ["0", "8.8", "0"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_2ibkk_10.png", "TableImg_C5tvb_10.png"], "original_data_index": 1173, "original_sql": "SELECT AVG(Writer), AVG(Issues), AVG(Title) FROM book WHERE \"Issues\" <> 4.0 AND Writer <> \"Elaine Lee\" AND Title <> \"The Dome: Ground Zero\" UNION SELECT AVG(Writer), AVG(Issues), AVG(Title) FROM book WHERE Title != \"BrainBanx\" AND \"Book_ID\" <= 6"} {"question": "What are the aircraft IDs that appear in both the aircraft and airport_aircraft tables, where the aircraft ID is greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_17hxg_5.png", "TableImg_Jni17_4.png"], "original_data_index": 1174, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What car models are both a \"plymouth horizon miser\" or have a MakeId of 32 and are not \"fiat\"?", "answer": {"columns": ["Model"], "index": [0, 1], "data": [["ford"], ["plymouth"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_1uldf_406.png", "TableImg_Uwi8p_36.png"], "original_data_index": 1175, "original_sql": "SELECT Model FROM car_names WHERE Make = \"plymouth horizon miser\" OR \"MakeId\" = 32 INTERSECT SELECT Model FROM model_list WHERE Model != \"fiat\""} {"question": "What is the lowest store ID among stores that have more than 1678 product categories and are not \"Village Stores\", and also among stores where the store ID is less than or equal to 2 or the product ID is less than or equal to 2?", "answer": {"columns": ["MIN(Store_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_Bi4wm_5.png", "TableImg_Prst0_15.png"], "original_data_index": 1176, "original_sql": "SELECT MIN(Store_ID) FROM store WHERE \"Number_of_product_category\" > 1678.0 AND Type <> \"Village Store\" INTERSECT SELECT MIN(Store_ID) FROM store_product WHERE \"Store_ID\" <= 2 OR \"Product_ID\" <= 2"} {"question": "What are the driver IDs greater than 7 from the driver table, combined with the driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ffs9_12.png", "TableImg_Rsu8m_5.png"], "original_data_index": 1177, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs that are both greater than or equal to 5 and not equal to 2, considering only the aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yvtcv_5.png", "TableImg_Jt5oz_4.png"], "original_data_index": 1178, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are greater than 4 in the driver table, or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rqthm_12.png", "TableImg_1iei8_5.png"], "original_data_index": 1180, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are not equal to 1 and exist in the aircraft table but are not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uem34_5.png", "TableImg_Pswcm_4.png"], "original_data_index": 1182, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Which driver IDs are not equal to 12 but are not found in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R829y_12.png", "TableImg_4w8kr_5.png"], "original_data_index": 1181, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs from the driver table that are 8 or less, combined with the driver IDs from the school bus table that are 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sigwy_12.png", "TableImg_Mbmpt_5.png"], "original_data_index": 1179, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, and also the aircraft IDs that are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ojbeq_5.png", "TableImg_3mxwj_4.png"], "original_data_index": 1185, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs are not 7, and which driver ID is 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_90qju_12.png", "TableImg_04ki1_5.png"], "original_data_index": 1183, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs that are not equal to 3, but are not present in the airport_aircraft table with IDs less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Inqtm_5.png", "TableImg_Qbvl4_4.png"], "original_data_index": 1186, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the receipt date, shipping agent code, other details, minimum document status code, receipt number, and average document ID for documents where the receipt number is \"61\", the receipt date is \"2015-04-03 09:36:19\", the shipping agent code is not \"UP\" and the document status code is not \"working\", the other details are \"n\", or the document ID is not 4? Also, what are the same details for documents where the receipt number is not \"83\", the other details are not \"y\", the shipping agent code is not \"FE\", the document ID is not 12, and the document type code is not \"Paper\"?", "answer": {"columns": ["receipt_date", "shipping_agent_code", "other_details", "MIN(document_status_code)", "receipt_number", "AVG(document_id)"], "index": [0], "data": [["1974-05-08 00:00:46", "US", "h", "done", "34", "12.6666666667"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_69ch7_15.png", "TableImg_2yrue_15.png"], "original_data_index": 1184, "original_sql": "SELECT receipt_date, shipping_agent_code, other_details, MIN(document_status_code), receipt_number, AVG(document_id) FROM Documents WHERE receipt_number = \"61\" OR receipt_date = \"2015-04-03 09:36:19\" OR shipping_agent_code != \"UP\" AND document_status_code != \"working\" OR other_details = \"n\" OR \"document_id\" != 4 UNION SELECT receipt_date, shipping_agent_code, other_details, MIN(document_status_code), receipt_number, AVG(document_id) FROM Documents WHERE receipt_number <> \"83\" OR other_details != \"y\" OR shipping_agent_code <> \"FE\" AND \"document_id\" != 12 AND document_type_code <> \"Paper\""} {"question": "What are the aircraft IDs that are both less than or equal to 5 in the aircraft table and less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yznqi_5.png", "TableImg_Lkna6_4.png"], "original_data_index": 1190, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the aircraft IDs that are not equal to 4, but are not present in the airport aircraft table with IDs greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X6ozw_5.png", "TableImg_Jo8vt_4.png"], "original_data_index": 1189, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are not equal to 8 and are not found in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gujfq_12.png", "TableImg_L6uzu_5.png"], "original_data_index": 1188, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the overdue document status codes for documents with \"r\" as other details and a receipt date not equal to \"2017-07-02 17:39:09\", excluding those with a \"done\" status?", "answer": {"columns": ["document_status_code"], "index": [0], "data": [["overdue"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Blce8_15.png", "TableImg_Vc20z_3.png"], "original_data_index": 1187, "original_sql": "SELECT document_status_code FROM Documents WHERE other_details = \"r\" AND receipt_date <> \"2017-07-02 17:39:09\" AND document_status_code = \"overdue\" EXCEPT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code = \"done\""} {"question": "Which driver IDs are greater than 6 but not present in the school bus table with IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5lm23_12.png", "TableImg_Bszvb_5.png"], "original_data_index": 1191, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are in either the driver table (excluding driver ID 9) or the school bus table (with driver IDs 4 or greater)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z6wpa_12.png", "TableImg_13rmz_5.png"], "original_data_index": 1193, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the document IDs of items with a copy number greater than 4 that also have a receipt number that is not \"114\" or a document type code that is not \"CD\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2], "data": [["1"], ["10"], ["20"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Fzqzt_4.png", "TableImg_Xmy6d_15.png"], "original_data_index": 1194, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"copy_number\" > 4 INTERSECT SELECT document_id FROM Documents WHERE receipt_number <> \"114\" OR document_type_code <> \"CD\""} {"question": "Which driver IDs are both equal to 10 and greater than 3, considering the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_50q2d_12.png", "TableImg_Lv1z8_5.png"], "original_data_index": 1196, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the minimum ICAO code, name, city, and IATA code for airports that either have an ICAO code of KBOS and are located in Akureyri, or have a name other than \"El Prat Airport\" and a different IATA code than BWI, or have an ID greater than 6? Also, what is the minimum ICAO code, name, city, and IATA code for airports that are not named \"Baltimore-Washington Airport\"?", "answer": {"columns": ["MIN(ICAO)", "name", "City", "IATA"], "index": [0], "data": [["BIAR", "Akureyri Airport", "Akureyri", "AEY"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Wowyu_9.png", "TableImg_Qbbps_9.png"], "original_data_index": 1197, "original_sql": "SELECT MIN(ICAO), name, City, IATA FROM airport WHERE Country != \"Netherlands\" AND ICAO = \"KBOS\" AND City = \"Akureyri\" OR name != \"El Prat Airport\" AND IATA <> \"BWI\" OR \"id\" > 6 UNION SELECT MIN(ICAO), name, City, IATA FROM airport WHERE name <> \"Baltimore-Washington Airport\""} {"question": "Which driver IDs are not equal to 6 and are present in the driver table but not in the school bus table, where the school bus table only includes driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6sswu_12.png", "TableImg_294ci_5.png"], "original_data_index": 1195, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are either 6 or not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_42qro_12.png", "TableImg_930u0_5.png"], "original_data_index": 1192, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are equal to 1, but not equal to 5, considering the aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X7zwy_5.png", "TableImg_O6tkf_4.png"], "original_data_index": 1198, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the driver IDs greater than 12 from the driver table, combined with the driver IDs from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U2lyx_12.png", "TableImg_Eg4ea_5.png"], "original_data_index": 1200, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and not equal to 1, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sc8uq_5.png", "TableImg_M0qfh_4.png"], "original_data_index": 1199, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the driver IDs, excluding driver ID 4, that are present in both the driver and school bus tables, where the driver ID is less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yogrq_12.png", "TableImg_Vw1id_5.png"], "original_data_index": 1201, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs, excluding ID 3, are present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1hgah_12.png", "TableImg_1h3cg_5.png"], "original_data_index": 1202, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs that are either less than or equal to 3 from the aircraft table, or not equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ofuf4_5.png", "TableImg_Ec10q_4.png"], "original_data_index": 1203, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the driver IDs greater than 9 that are in the driver table but not in the school bus table, where the driver IDs in the school bus table are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wxnn2_12.png", "TableImg_42bz6_5.png"], "original_data_index": 1204, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the IDs of heads who are either not from Florida and are age 68 or less, or whose name isn't Dudley Hart, or are age 68, and are also temporarily acting?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2], "data": [["4"], ["5"], ["6"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Sz0eb_10.png", "TableImg_Pvrtb_5.png"], "original_data_index": 1205, "original_sql": "SELECT head_ID FROM head WHERE \"head_ID\" <= 9 AND born_state != \"Florida\" OR name <> \"Dudley Hart\" OR \"age\" = 68.0 INTERSECT SELECT head_ID FROM management WHERE temporary_acting <> \"No\""} {"question": "What are the aircraft IDs that are greater than 2 and also less than or equal to 5, considering only those aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hhz8o_5.png", "TableImg_Oorc6_4.png"], "original_data_index": 1208, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the aircraft IDs that are either less than or equal to 4 in the aircraft table, or not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_699yd_5.png", "TableImg_Ch2r4_4.png"], "original_data_index": 1207, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the user IDs of reviewers who gave a 5-star rating to article 5 or rated an article over 10, combined with the user IDs of users with IDs less than or equal to 3?", "answer": {"columns": ["u_id"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Nqtb1_7.png", "TableImg_4asuk_7.png"], "original_data_index": 1209, "original_sql": "SELECT u_id FROM review WHERE \"a_id\" = 5 AND \"rank\" = 5 OR \"rating\" > 10 UNION SELECT u_id FROM useracct WHERE \"u_id\" <= 3"} {"question": "What is the average branch ID and sum of member IDs for the year 2016 and member ID 3 in the membership register, excluding the average branch ID and sum of member IDs from purchases where the total pounds is not 232.09 and the branch ID is 6, or the member ID is not 3?", "answer": {"columns": ["AVG(Branch_ID)", "SUM(Member_ID)"], "index": [0], "data": [["", ""]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_4kos3_8.png", "TableImg_Fty8m_8.png"], "original_data_index": 1206, "original_sql": "SELECT AVG(Branch_ID), SUM(Member_ID) FROM membership_register_branch WHERE Register_Year = \"2016\" AND \"Member_ID\" = 3 EXCEPT SELECT AVG(Branch_ID), SUM(Member_ID) FROM purchase WHERE \"Total_pounds\" <> 232.09 AND Branch_ID = \"6\" OR \"Member_ID\" <> 3"} {"question": "What are the aircraft IDs that are greater than or equal to 1 but not present in the airport_aircraft table with IDs less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kbmx2_5.png", "TableImg_L5g3u_4.png"], "original_data_index": 1212, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Which driver IDs, excluding driver 5, are present in both the driver and school bus tables, excluding driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aubau_12.png", "TableImg_Fgwrh_5.png"], "original_data_index": 1213, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are not 6 and are also present in the school bus table with driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1ainm_12.png", "TableImg_Itzd0_5.png"], "original_data_index": 1210, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs, excluding driver ID 10, from the driver table, combined with driver IDs from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wgaat_12.png", "TableImg_0xbtb_5.png"], "original_data_index": 1211, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are equal to 4 but not greater than 4, considering driver information and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S703p_12.png", "TableImg_7pk0e_5.png"], "original_data_index": 1216, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are greater than 10 but not equal to 9, considering only those present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D8r7w_12.png", "TableImg_U6lez_5.png"], "original_data_index": 1214, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs of drivers who are Democrats or named Brandon McGee, along with the driver IDs of school buses with a school ID of 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"], ["10"], ["4"], ["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F3qyo_12.png", "TableImg_Seiv0_5.png"], "original_data_index": 1215, "original_sql": "SELECT Driver_ID FROM driver WHERE Party = \"Dem\" OR Name = \"Brandon McGee\" UNION ALL SELECT Driver_ID FROM school_bus WHERE \"School_ID\" <= 7"} {"question": "What are the aircraft IDs that are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 2 from the aircraft table and aircraft ID 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4xdh7_5.png", "TableImg_Tpm91_4.png"], "original_data_index": 1220, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the IDs of pets that either belong to students with IDs less than or equal to 1002 or have pet IDs greater than or equal to 2001, or weigh 12.0 or less?", "answer": {"columns": ["PetID"], "index": [0, 1, 2], "data": [["2001"], ["2002"], ["2003"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_302pr_3.png", "TableImg_6belf_3.png"], "original_data_index": 1217, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"StuID\" <= 1002 OR \"PetID\" >= 2001 UNION SELECT PetID FROM Pets WHERE \"weight\" <= 12.0"} {"question": "What are the IDs of airports in Iceland or airports not named \"El Prat Airport\" and not having IATA code \"BWI\", that are also IDs of flights where the velocity isn't 240.0, the flight ID isn't 10, or the company ID is less than 9 and the date is October 8, 1965, or the pilot isn't Peterson?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["6"], ["9"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_9505p_9.png", "TableImg_Pg630_13.png"], "original_data_index": 1219, "original_sql": "SELECT id FROM airport WHERE Country = \"Iceland\" OR name != \"El Prat Airport\" AND IATA != \"BWI\" INTERSECT SELECT id FROM flight WHERE \"Velocity\" != 240.0 AND \"id\" != 10 OR \"company_id\" < 9 AND Date = \"October 8, 1965\" OR Pilot != \"Peterson\""} {"question": "What is the maximum customer ID and customer status code for customers who paid via Direct Debit on February 15, 2018, at 4:38:49 PM, and whose phone number is 1-875-045-0806, or whose email is myrl.lind@example.net and became a customer on June 24, 2015, or whose payment amount was less than or equal to 1708.18, or whose first name is Estelle, or whose cell phone number is (630)964-2426, or whose customer address ID is not 13 and date of birth is November 7, 1996?", "answer": {"columns": ["MAX(T1.customer_id)", "customer_status_code"], "index": [0], "data": [["14", "Good Customer"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Xlqwr_15.png", "TableImg_Vwlnd_15.png"], "original_data_index": 1218, "original_sql": "SELECT MAX(T1.customer_id), T2.customer_status_code FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code = \"Direct Debit\" AND datetime_payment = \"2018-02-15 16:38:49\" AND phone_number = \"1-875-045-0806\" OR email_address = \"myrl.lind@example.net\" AND date_became_customer = \"2015-06-24 03:50:04\" AND \"amount_payment\" <= 1708.18 OR first_name = \"Estelle\" OR cell_mobile_phone_number = \"(630)964-2426\" OR \"customer_address_id\" <> 13 AND date_of_birth = \"1996-11-07 05:30:55\""} {"question": "What are the driver IDs that are both less than 11 and present in the school bus records, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Scqbb_12.png", "TableImg_I2p55_5.png"], "original_data_index": 1221, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the IDs of drivers who are not driver ID 3 and also are drivers of school buses, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jdqhd_12.png", "TableImg_8wdb6_5.png"], "original_data_index": 1223, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs that are less than 11 and also greater than 4, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eiy6b_12.png", "TableImg_Eaoxc_5.png"], "original_data_index": 1224, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs, excluding driver ID 1, and also any driver IDs from school buses that are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Heqo6_12.png", "TableImg_V2znv_5.png"], "original_data_index": 1222, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which aircraft IDs are greater than 2 but not equal to 3, considering only the aircraft IDs present in the aircraft table and excluding those in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lckqb_5.png", "TableImg_Kco40_4.png"], "original_data_index": 1228, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the driver IDs, excluding ID 6, from the driver table and the driver IDs, excluding ID 10, from the school bus table, combined into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F2jax_12.png", "TableImg_Hax6b_5.png"], "original_data_index": 1226, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the product numbers, names, and locations of shops not managed by Tommi Kautonen, excluding those with a shop ID other than 8 and managed by Pekka Lyyski, or located in Espoo with 10770 products and not in the Finnair Stadium, and not named HJK?", "answer": {"columns": ["Number_products", "Name", "Location"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3500", "KuPS", "Kuopio"], ["3516", "FC Haka", "Valkeakoski"], ["5000", "FF Jaro", "Jakobstad"], ["6000", "FC Honka", "Espoo"], ["10000", "FC Inter", "Turku"], ["10770", "HJK", "Helsinki"], ["15000", "FC Lahti", "Lahti"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_8mpdr_9.png", "TableImg_Aoo00_9.png"], "original_data_index": 1227, "original_sql": "SELECT Number_products, Name, Location FROM shop WHERE Manager_name != \"Tommi Kautonen\" EXCEPT SELECT Number_products, Name, Location FROM shop WHERE \"Shop_ID\" <> 8 AND Manager_name = \"Pekka Lyyski\" OR Location = \"Espoo\" AND \"Number_products\" = 10770 AND District <> \"Finnair Stadium\" AND Name != \"HJK\""} {"question": "What are the color pages per minute, dimensions, interface, max page size, and product for products where the dimensions are not \"280 x 95 x 40\" or the interface is \"USB 2.0\" or the product ID is greater than or equal to 1, and also for products where the color pages per minute is less than 10.0, the dimensions are \"289 x 51 x 38\", and the interface is \"USB 2.0\" or the product is \"ScanShell 3000DN\"?", "answer": {"columns": ["pages_per_minute_color", "dimensions", "interface", "max_page_size", "product"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["30", "301 x 160 x 158", "USB 2.0", "A4", "Fujitsu fi-6130 A4 Series Scanner"], ["28", "303 x 94 x 60", "USB 2.0", "A4", "Plustek MobileOffice D28 Corporate"], ["4", "289 x 51 x 38", "USB 2.0", "A4", "Xerox Travel Scanner 100"], ["3", "300 x 50 x 45", "USB 2.0", "A4", "ScanShell 3000DN"], ["10", "280 x 95 x 40", "USB 2.0", "216mm x 356mm", "Canon imageFORMULA P-150"], ["36", "298 x 209 x 99", "USB 2.0", "216mm x 355mm", "Canon DR-2080C"], ["4", "289 x 51 x 38", "USB 2.0", "A4", "Xerox Travel Scanner 100"], ["3", "300 x 50 x 45", "USB 2.0", "A4", "ScanShell 3000DN"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Uy46s_6.png", "TableImg_9myue_6.png"], "original_data_index": 1225, "original_sql": "SELECT pages_per_minute_color, dimensions, interface, max_page_size, product FROM product WHERE dimensions <> \"280 x 95 x 40\" OR interface = \"USB 2.0\" OR \"product_id\" >= 1 UNION ALL SELECT pages_per_minute_color, dimensions, interface, max_page_size, product FROM product WHERE \"pages_per_minute_color\" < 10.0 AND dimensions = \"289 x 51 x 38\" AND interface = \"USB 2.0\" OR product = \"ScanShell 3000DN\""} {"question": "What are the aircraft IDs that are either 1 or less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5437p_5.png", "TableImg_Yvx7j_4.png"], "original_data_index": 1231, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What is the sum of the names from the company table where the name is \"Industrial and Commercial Bank of China\", intersected with the sum of names from the people table where the age is less than 30, the name is not \"Tom Sheehey\", and the graduation college is not \"Virginia\"?", "answer": {"columns": ["SUM(Name)"], "index": [0], "data": [["0"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_Lr0gw_19.png", "TableImg_Hjile_7.png"], "original_data_index": 1230, "original_sql": "SELECT SUM(Name) FROM company WHERE Name = \"Industrial and Commercial Bank of China\" INTERSECT SELECT SUM(Name) FROM people WHERE \"Age\" < 30 AND Name != \"Tom Sheehey\" AND Graduation_College <> \"Virginia\""} {"question": "What is the average club ID for clubs that started in a year other than 2009, or have a club ID less than or equal to 2, or are not in Russia and are not named BK H\u00e4cken? Also, what is the average club ID for coaches who are not named Joe Fabbri and do not have a coach ID of 1?", "answer": {"columns": ["AVG(Club_ID)"], "index": [0, 1], "data": [["3.5"], ["2.3333333333"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_08s8u_6.png", "TableImg_Ar95n_5.png"], "original_data_index": 1229, "original_sql": "SELECT AVG(Club_ID) FROM club WHERE \"Start_year\" != 2009 OR \"Club_ID\" <= 2 OR Region != \"Russia\" AND Club_name <> \"BK H\u00e4cken\" UNION ALL SELECT AVG(Club_ID) FROM coach WHERE Coach_name <> \"Joe Fabbri\" AND \"Coach_ID\" <> 1"} {"question": "What are the IDs from the airport and flight tables where the city is Akureyri, the company ID is less than 2, the airport name is not Ted Stevens Airport, the IATA code is BCN, and the vehicle flight number is M2-F1 #61, or the velocity is at least 240.0 and the airport ID is not 3, or the pilot is Thompson and the altitude is at most 3650.0, or the country is Netherlands and the ICAO code is LEBL?", "answer": {"columns": ["id -1", "id -2"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1", "1"], ["9", "9"], ["2", "2"], ["7", "7"], ["6", "6"], ["8", "8"], ["4", "4"], ["5", "5"], ["3", "3"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Uybr1_9.png", "TableImg_74rch_13.png"], "original_data_index": 1232, "original_sql": "SELECT T1.id, T2.id FROM airport as T1 JOIN flight as T2 ON T1.id == T2.id GROUP BY ICAO HAVING City = \"Akureyri\" AND company_id < 2 AND name <> \"Ted Stevens Airport\" AND IATA = \"BCN\" AND Vehicle_Flight_number = \"M2-F1 #61\" OR Velocity >= 240.0 AND airport_id <> 3 OR Pilot = \"Thompson\" AND Altitude <= 3650.0 OR Country = \"Netherlands\" AND ICAO = \"LEBL\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 4 from the driver table and driver IDs 4 and above from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0p9s8_12.png", "TableImg_Hqig9_5.png"], "original_data_index": 1236, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs that are either less than or equal to 12 from the driver table or less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mnire_12.png", "TableImg_Nmb1d_5.png"], "original_data_index": 1234, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are both less than or equal to 11 and also appear in the school bus table with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yoeto_12.png", "TableImg_Lv73c_5.png"], "original_data_index": 1235, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are both greater than or equal to 9 and also not equal to 3, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C448r_12.png", "TableImg_Wtnzt_5.png"], "original_data_index": 1233, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are greater than 5 but not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qudgs_12.png", "TableImg_Yfelp_5.png"], "original_data_index": 1239, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are greater than or equal to 8, but not equal to 7, and are not present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H25lw_12.png", "TableImg_Km0ka_5.png"], "original_data_index": 1240, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the last names, average ages, majors, and city codes of students named Derek with major 600, and also the last names, average ages, majors, and city codes of all students not from PIT?", "answer": {"columns": ["LName", "AVG(Age)", "Major", "city_code"], "index": [0, 1], "data": [["Lee", "17.0", "600", "HOU"], ["Smith", "19.6333333333", "600", "BAL"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Bj6q2_34.png", "TableImg_Bj5zz_34.png"], "original_data_index": 1238, "original_sql": "SELECT LName, AVG(Age), Major, city_code FROM Student WHERE Fname = \"Derek\" AND \"Major\" = 600 UNION ALL SELECT LName, AVG(Age), Major, city_code FROM Student WHERE city_code != \"PIT\""} {"question": "What are the budget amounts in billions for departments, excluding those with a budget of 543.2, that meet at least one of the following conditions: department ID is 5 or less, the name isn't \"Energy\", the ranking is 15 or higher, or the creation year is 1913? Also, exclude any budget amounts that are from departments that don't have a ranking of 1, or have more than 235,000 employees and a name that is not \"Health and Human Services\", and a budget of 21.5 or less.", "answer": {"columns": ["Budget_in_Billions"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["9.96"], ["23.4"], ["44.6"], ["46.2"], ["58.0"], ["59.7"], ["62.8"], ["73.2"], ["77.6"], ["439.3"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_7smd0_15.png", "TableImg_9bhfz_15.png"], "original_data_index": 1237, "original_sql": "SELECT Budget_in_Billions FROM department WHERE \"Department_ID\" <= 5 OR Name <> \"Energy\" OR \"Ranking\" >= 15 OR Creation = \"1913\" GROUP BY Budget_in_Billions HAVING Budget_in_Billions <> 543.2 EXCEPT SELECT Budget_in_Billions FROM department WHERE \"Ranking\" != 1 OR \"Num_Employees\" > 235000.0 AND Name != \"Health and Human Services\" GROUP BY Budget_in_Billions HAVING Budget_in_Billions <= 21.5"} {"question": "What are the aircraft IDs that are equal to 5 in the aircraft table, but not aircraft IDs less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qjk62_5.png", "TableImg_Vxwl2_4.png"], "original_data_index": 1241, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Which driver IDs are both less than or equal to 6 and present in the school bus table, and also equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E7cdh_12.png", "TableImg_Wmlc3_5.png"], "original_data_index": 1242, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the copy number, document ID, and employee ID for circulation history entries where the draft number is 17 or less, and also for entries where the draft number is not 2, or the copy number is not 10, or the employee ID is not 8?", "answer": {"columns": ["copy_number", "document_id", "employee_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["15", "20", "8"], ["5", "1", "1"], ["4", "2", "2"], ["15", "20", "8"], ["5", "1", "1"], ["4", "2", "2"], ["10", "10", "2"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Yfwnj_4.png", "TableImg_Xbkxe_4.png"], "original_data_index": 1244, "original_sql": "SELECT copy_number, document_id, employee_id FROM Circulation_History WHERE \"draft_number\" <= 17 UNION ALL SELECT copy_number, document_id, employee_id FROM Circulation_History WHERE \"draft_number\" != 2 OR \"copy_number\" <> 10 OR \"employee_id\" != 8"} {"question": "What are the aircraft details, including maximum disk loading, description, ID, total disk area, and maximum gross weight, for aircraft that are either a Robinson R-22, or have an ID other than 5, or are described as a heavy-lift helicopter, and also for aircraft that are either a CH-53E Super Stallion, or have an ID of 5 or greater, or have a maximum disk loading different from 2.6 lb/ft\u00b2 (14 kg/m\u00b2), or have a maximum gross weight of 1,370 lb (635 kg), excluding those with a total disk area of 497 ft\u00b2 (46.2 m\u00b2) and not described as a heavy-lift helicopter?", "answer": {"columns": ["Aircraft", "Max_disk_Loading", "Description", "Aircraft_ID", "Total_disk_area", "Max_Gross_Weight"], "index": [0, 1, 2, 3], "data": [["Bell 206B3 JetRanger", "3.7 lb/ft\u00b2 (18 kg/m\u00b2)", "Turboshaft utility helicopter", "2", "872 ft\u00b2 (81.1 m\u00b2)", "3,200 lb (1,451 kg)"], ["CH-47D Chinook", "8.8 lb/ft\u00b2 (43 kg/m\u00b2)", "Tandem rotor helicopter", "3", "5,655 ft\u00b2 (526 m\u00b2)", "50,000 lb (22,680 kg)"], ["CH-53E Super Stallion", "15 lb/ft\u00b2 (72 kg/m\u00b2)", "Heavy-lift helicopter", "5", "4,900 ft\u00b2 (460 m\u00b2)", "73,500 lb (33,300 kg)"], ["Robinson R-22", "2.6 lb/ft\u00b2 (14 kg/m\u00b2)", "Light utility helicopter", "1", "497 ft\u00b2 (46.2 m\u00b2)", "1,370 lb (635 kg)"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Lpaph_5.png", "TableImg_3vts9_5.png"], "original_data_index": 1243, "original_sql": "SELECT Aircraft, Max_disk_Loading, Description, Aircraft_ID, Total_disk_area, Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight != \"73,500 lb (33,300 kg)\" AND Total_disk_area <> \"872 ft\u00b2 (81.1 m\u00b2)\" AND Aircraft = \"Robinson R-22\" OR \"Aircraft_ID\" <> 5 OR Description = \"Heavy-lift helicopter\" INTERSECT SELECT Aircraft, Max_disk_Loading, Description, Aircraft_ID, Total_disk_area, Max_Gross_Weight FROM aircraft WHERE Aircraft = \"CH-53E Super Stallion\" OR \"Aircraft_ID\" >= 5 OR Max_disk_Loading <> \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" AND Description != \"Heavy-lift helicopter\" AND Total_disk_area <> \"497 ft\u00b2 (46.2 m\u00b2)\" OR Max_Gross_Weight = \"1,370 lb (635 kg)\""} {"question": "What are the driver IDs that are either greater than or equal to 3 in the driver table or less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z95nj_12.png", "TableImg_Cmb3z_5.png"], "original_data_index": 1247, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are either less than or equal to 10 from the driver table, or greater than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Smbtr_12.png", "TableImg_154fj_5.png"], "original_data_index": 1246, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs that are not equal to 5, excluding those aircraft IDs that are greater than or equal to 3 and are also present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nov8r_5.png", "TableImg_Lggf2_4.png"], "original_data_index": 1245, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 3 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5y7bt_12.png", "TableImg_Yrxtq_5.png"], "original_data_index": 1248, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "For each city, excluding those where the youngest employee is 29, give me the sum of employee IDs, the number of employees, the minimum age, and the city itself. Then, from the cities where the number of employees isn't 1, or the sum of employee IDs isn't 13, or the youngest employee is under 23, give me the same information. Finally, show only the cities that appear in both of these sets of results.", "answer": {"columns": ["SUM(Employee_ID)", "COUNT(Name)", "MIN(Age)", "City"], "index": [0, 1, 2], "data": [["6", "1", "28", "Sale"], ["8", "3", "23", "Bristol"], ["10", "1", "36", "Leicester"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Jkt4d_10.png", "TableImg_92m1z_10.png"], "original_data_index": 1252, "original_sql": "SELECT SUM(Employee_ID), COUNT(Name), MIN(Age), City FROM employee GROUP BY City HAVING MIN(Age) <> 29 INTERSECT SELECT SUM(Employee_ID), COUNT(Name), MIN(Age), City FROM employee GROUP BY City HAVING COUNT(Name) != 1 OR SUM(Employee_ID) != 13 OR MIN(Age) < 23"} {"question": "What are the IDs of drivers, excluding driver 8, and the IDs of school buses, excluding bus 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fde3g_12.png", "TableImg_O3ohl_5.png"], "original_data_index": 1250, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the document IDs from draft documents with draft number greater than 9 and draft details equal to \"l\", excluding document ID 17, and also the document IDs from mailed documents sent on November 4th, 2010, to an address ID of 7 or less, excluding document ID 23?", "answer": {"columns": ["document_id"], "index": [0, 1], "data": [["20"], ["20"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Vo6xt_15.png", "TableImg_Mzyap_14.png"], "original_data_index": 1251, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"draft_number\" > 9 AND draft_details = \"l\" AND \"document_id\" != 17 UNION ALL SELECT document_id FROM Documents_Mailed WHERE mailing_date = \"2010-11-04 04:00:16\" AND \"mailed_to_address_id\" <= 7 AND \"document_id\" <> 23"} {"question": "What are the school IDs for schools in Walkerton that are not named Triton, don't have the Cavaliers mascot, and are in the AAA IHSAA class, or have enrollment not equal to 379 and are not in the AAA IHSAA football class and don't have school ID 5, or are in Marshall county? Also, what are the school IDs from the endowment table where the school ID is greater than or equal to 2, or the endowment ID is greater than or equal to 9, or the donator name is not \"Com. Dom. En Estados Unidos\" and the amount is greater than 9.51?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["7"], ["8"], ["2"], ["3"], ["3"], ["3"], ["4"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_7gzjc_8.png", "TableImg_5m1b2_11.png"], "original_data_index": 1249, "original_sql": "SELECT School_id FROM School WHERE School_name <> \"Triton\" AND Mascot <> \"Cavaliers\" AND Location = \"Walkerton\" AND IHSAA_Class = \"AAA\" OR \"Enrollment\" <> 379 AND IHSAA_Football_Class != \"AAA\" AND School_id <> \"5\" OR County = \"50 Marshall\" UNION ALL SELECT School_id FROM endowment WHERE \"School_id\" >= 2 OR \"endowment_id\" >= 9 OR donator_name <> \"Com. Dom. En Estados Unidos\" AND \"amount\" > 9.51"} {"question": "What are the driver IDs that are both less than or equal to 12 in the driver table and less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xyk49_12.png", "TableImg_Vnclc_5.png"], "original_data_index": 1256, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs of Matthew Ritter who are not from Hartford and are Democrats, combined with the driver IDs of school buses where the school ID is not 3 and the driver is not full-time, or has worked less than 2 years, or the driver ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["10"], ["7"], ["4"], ["9"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W6i04_12.png", "TableImg_Mwmgw_5.png"], "original_data_index": 1255, "original_sql": "SELECT Driver_ID FROM driver WHERE Name = \"Matthew Ritter\" AND Home_city != \"Hartford\" AND Party = \"Dem\" UNION ALL SELECT Driver_ID FROM school_bus WHERE \"School_ID\" != 3 AND If_full_time <> \"T\" OR \"Years_Working\" < 2 OR \"Driver_ID\" >= 3"} {"question": "Give me the names, head IDs, and birth states of people from the head table where the head ID is greater than 6, or they were born in Florida, and their name is Stewart Cink, and their age is not 69.0, but exclude any information about the person with head ID 2.", "answer": {"columns": ["name", "head_ID", "born_state"], "index": [0, 1, 2, 3], "data": [["Franklin Langham", "10", "Connecticut"], ["Nick Faldo", "8", "California"], ["P\u00e1draig Harrington", "9", "Connecticut"], ["Stewart Cink", "7", "Florida"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_8z32e_10.png", "TableImg_Teiy4_10.png"], "original_data_index": 1253, "original_sql": "SELECT name, head_ID, born_state FROM head WHERE \"head_ID\" > 6 OR born_state = \"Florida\" AND name = \"Stewart Cink\" AND \"age\" <> 69.0 EXCEPT SELECT name, head_ID, born_state FROM head WHERE \"head_ID\" = 2"} {"question": "What are the IDs of drivers who are either not driver ID 1 in the driver table or not driver ID 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ncvfj_12.png", "TableImg_Dc7lo_5.png"], "original_data_index": 1254, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the names of female coaches, excluding those who are not ranked 2, are not male, have the name \"James Wong\", and have a club ID less than 1 and a coach ID greater than 5?", "answer": {"columns": ["Coach_name"], "index": [0], "data": [["Joe Fabbri"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Hl17r_5.png", "TableImg_N3v4k_5.png"], "original_data_index": 1258, "original_sql": "SELECT Coach_name FROM coach WHERE Gender = \"F\" EXCEPT SELECT Coach_name FROM coach WHERE \"Rank\" <> 2 AND Gender != \"M\" AND Coach_name = \"James Wong\" AND \"Club_ID\" < 1 AND \"Coach_ID\" > 5"} {"question": "What are the driver IDs, excluding driver ID 3, and also driver IDs that are 4 or greater, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cbvsj_12.png", "TableImg_Rp2a0_5.png"], "original_data_index": 1259, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs that are not equal to 2, but are not present in the airport aircraft table with an aircraft ID not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7i40v_5.png", "TableImg_Ud98n_4.png"], "original_data_index": 1260, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the driver IDs that are less than 11 from the driver table, combined with the driver IDs that are less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pd0jv_12.png", "TableImg_Luyaa_5.png"], "original_data_index": 1257, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the city areas and district names that satisfy either of these conditions: the district name is Jhang District, the city population is less than 219254, or the district ID is 7 and the headquartered city is not Bhakkar City; and also have a city area greater than or equal to 10?", "answer": {"columns": ["City_Area", "District_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["10", "Chakwal District"], ["10", "Hafizabad District"], ["13", "Bahawalnagar District"], ["15", "Bhakkar District"], ["17", "Khanewal District"], ["20", "Attock District"], ["22", "Dera Ghazi Khan District"], ["22", "Jhelum District"], ["28", "Jhang District"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_2qi04_15.png", "TableImg_Aqyah_15.png"], "original_data_index": 1264, "original_sql": "SELECT City_Area, District_name FROM district WHERE District_name = \"Jhang District\" OR \"City_Population\" < 219254.0 OR \"District_ID\" = 7 AND Headquartered_City <> \"Bhakkar City\" INTERSECT SELECT City_Area, District_name FROM district WHERE \"City_Area\" >= 10.0"} {"question": "What are the aircraft IDs that are either greater than or equal to 5, or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zax8n_5.png", "TableImg_C7e1x_4.png"], "original_data_index": 1263, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the driver IDs that are either less than or equal to 2 in the driver table, or less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ymfgq_12.png", "TableImg_Nmv4x_5.png"], "original_data_index": 1262, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which customer IDs meet at least one of the following conditions: their payment date is not \"2018-02-19 01:49:59\" or their customer ID is 3 or greater; or they became a customer on a date other than \"2015-09-25 13:59:21\" and their first name is Omer, or their customer ID is 11 or less, or their date of birth is not \"1996-05-23 01:21:54\" and their customer address ID is not 2, or their amount outstanding is not 2255.0, or their customer status code is not \"Bad Customer\" and their last name is Spinka?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Kgs0o_15.png", "TableImg_Gi31x_15.png"], "original_data_index": 1261, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"customer_id\" >= 3 OR datetime_payment != \"2018-02-19 01:49:59\" UNION SELECT customer_id FROM Customers WHERE date_became_customer <> \"2015-09-25 13:59:21\" AND first_name = \"Omer\" OR \"customer_id\" <= 11 OR date_of_birth != \"1996-05-23 01:21:54\" AND \"customer_address_id\" != 2 OR \"amount_outstanding\" != 2255.0 OR customer_status_code <> \"Bad Customer\" AND last_name = \"Spinka\""} {"question": "Which driver IDs are less than or equal to 8 but not present in the school bus table with IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oryn7_12.png", "TableImg_A2lya_5.png"], "original_data_index": 1267, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are greater than 8 but not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rfv2k_12.png", "TableImg_Z7hrr_5.png"], "original_data_index": 1266, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that are greater than 2 in the aircraft table, combined with the aircraft IDs that are less than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5x2h1_5.png", "TableImg_1d8f1_4.png"], "original_data_index": 1268, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are not equal to 9 and are not present in the school bus table with driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2shwb_12.png", "TableImg_Gz101_5.png"], "original_data_index": 1265, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs that are both greater than or equal to 2 and less than or equal to 3, considering only aircraft and airport-aircraft data?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2osc4_5.png", "TableImg_1o09t_4.png"], "original_data_index": 1269, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are greater than or equal to 5, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X0pkt_12.png", "TableImg_Ix2y7_5.png"], "original_data_index": 1270, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are not equal to 1 but are not associated with a school bus with a driver ID greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Blmr5_12.png", "TableImg_Tpoh1_5.png"], "original_data_index": 1271, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are greater than 11 but not found in the school bus table with IDs greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Br5ta_12.png", "TableImg_R4ema_5.png"], "original_data_index": 1272, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs, excluding driver ID 11, are in the driver table but not in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9bjlg_12.png", "TableImg_X7pdz_5.png"], "original_data_index": 1275, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the total number of car makers and the horsepower for cars with more than 4 cylinders and not 105 horsepower, or with acceleration greater than or equal to 18.0?", "answer": {"columns": ["SUM(T1.Id)", "Horsepower"], "index": [0], "data": [["234", "130"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Nspha_22.png", "TableImg_Tgtzp_406.png"], "original_data_index": 1274, "original_sql": "SELECT SUM(T1.Id), T2.Horsepower FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE \"Cylinders\" > 4 AND Horsepower <> \"105\" OR \"Accelerate\" >= 18.0"} {"question": "Which driver IDs are equal to 11 but not less than or equal to 9, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7zp3h_12.png", "TableImg_7kovp_5.png"], "original_data_index": 1273, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that are less than 3 in the aircraft table, but not less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O5wuy_5.png", "TableImg_Qz7m8_4.png"], "original_data_index": 1276, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs that are less than 9, and also the driver IDs from school buses that are 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0yzh5_12.png", "TableImg_Ta56y_5.png"], "original_data_index": 1277, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What is the sum of Company IDs for people who worked in the first year, and also the sum of Company IDs for people where the Company ID is not 17 or the People ID is greater than 7, showing the People ID in both cases?", "answer": {"columns": ["SUM(Company_ID)", "People_ID"], "index": [0, 1], "data": [["22", "1"], ["46", "4"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_6b3lf_5.png", "TableImg_Nac4s_5.png"], "original_data_index": 1279, "original_sql": "SELECT SUM(Company_ID), People_ID FROM employment WHERE \"Year_working\" = 1 UNION ALL SELECT SUM(Company_ID), People_ID FROM employment WHERE \"Company_ID\" <> 17 OR \"People_ID\" > 7"} {"question": "Which driver IDs are not equal to 9 but are not present in the school bus table with driver IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tg1m1_12.png", "TableImg_71oi1_5.png"], "original_data_index": 1278, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs greater than 3 that are not also driver IDs from school buses with IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_43qwq_12.png", "TableImg_Pf4tm_5.png"], "original_data_index": 1280, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs greater than 8 that are also present in the school bus table with driver IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_09vdn_12.png", "TableImg_Lkxi9_5.png"], "original_data_index": 1281, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 11) and the school bus table (with driver ID 3)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F6vyd_12.png", "TableImg_Zus35_5.png"], "original_data_index": 1283, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are either greater than or equal to 3 in the aircraft table or less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Maifs_5.png", "TableImg_2xzhz_4.png"], "original_data_index": 1282, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the aircraft IDs that are less than or equal to 2, excluding those aircraft IDs that are greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6tmag_5.png", "TableImg_Wc5pf_4.png"], "original_data_index": 1284, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which aircraft IDs are either 1 or less than or equal to 3, considering both aircraft and airport-aircraft data?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V49qd_5.png", "TableImg_3tmwm_4.png"], "original_data_index": 1285, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the IDs of drivers, excluding driver 6, and the IDs of school bus drivers, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kj990_12.png", "TableImg_We2a8_5.png"], "original_data_index": 1288, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs, excluding ID 1, that are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X6ttl_5.png", "TableImg_89m62_4.png"], "original_data_index": 1289, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the driver IDs that are both less than 12 and also greater than or equal to 4, considering only driver IDs present in both the 'driver' and 'school_bus' tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Irjg8_12.png", "TableImg_B6rbh_5.png"], "original_data_index": 1286, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the shipping agent codes from the Documents table that are not \"FE\" and were not received on \"2015-04-03 09:36:19\", or have a document type other than \"CD\" and a document status other than \"overdue\", or have other details not equal to \"q\" and a document ID less than 13 and a receipt number of \"34\", and also appear in the Ref_Shipping_Agents table with a description other than \"t\", or a code other than \"UP\" and a name of \"UPS\"?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2, 3], "data": [["AL"], ["FE"], ["UP"], ["US"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Exmag_15.png", "TableImg_Ur1jm_5.png"], "original_data_index": 1287, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE shipping_agent_code <> \"FE\" AND receipt_date != \"2015-04-03 09:36:19\" OR document_type_code != \"CD\" AND document_status_code <> \"overdue\" OR other_details != \"q\" AND \"document_id\" < 13 AND receipt_number = \"34\" INTERSECT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description <> \"t\" OR shipping_agent_code != \"UP\" AND shipping_agent_name = \"UPS\""} {"question": "Which employee IDs are present in the certificate table but not associated with employee ID 141582651, and also have a salary of 256481, an ID greater than or equal to 556784565, and a name that isn't William Moore?", "answer": {"columns": ["eid"], "index": [0], "data": [["567354612"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_6uyby_69.png", "TableImg_Em0fz_31.png"], "original_data_index": 1290, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" != 141582651 INTERSECT SELECT eid FROM employee WHERE \"salary\" = 256481 AND \"eid\" >= 556784565 AND name != \"William Moore\""} {"question": "Which aircraft IDs are not equal to 1, and which aircraft IDs are greater than 5, considering both aircraft and airport aircraft data?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eapkd_5.png", "TableImg_Mheaq_4.png"], "original_data_index": 1292, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the aircraft IDs that are less than 3 in the aircraft table, combined with aircraft IDs from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ccd7e_5.png", "TableImg_Jvpiz_4.png"], "original_data_index": 1293, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the different grades offered, excluding those in college, or not from State Elementary School Menteng 01? Also, what are the grades offered excluding those from Occidental College and Jakarta, Indonesia, or where the school ID isn't 5 and the grade isn't 5th-12th grade, or the school isn't private?", "answer": {"columns": ["Grade"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1st-3rd grade"], ["4th grade"], ["5th-12th grade"], ["College"], ["Freshman\u2013Sophomore year"], ["Junior\u2013Senior year"], ["Kindergarten"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_800d9_7.png", "TableImg_0hx50_7.png"], "original_data_index": 1291, "original_sql": "SELECT Grade FROM school WHERE Grade != \"College\" OR School <> \"State Elementary School Menteng 01\" UNION SELECT Grade FROM school WHERE School != \"Occidental College\" AND Location != \"Jakarta, Indonesia\" OR \"School_ID\" <> 5 AND Grade != \"5th-12th grade\" OR Type <> \"Private\""} {"question": "Which driver IDs are greater than 4 and also appear in the school bus table with a driver ID of 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pqwe3_12.png", "TableImg_0i8m6_5.png"], "original_data_index": 1295, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and also greater than 2, considering only those aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S8b4f_5.png", "TableImg_97qfo_4.png"], "original_data_index": 1296, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the driver IDs that are either less than or equal to 11 in the driver table or greater than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5gvbw_12.png", "TableImg_Vjjk9_5.png"], "original_data_index": 1298, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What driver IDs are both equal to 10 in the driver table and greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D9vm0_12.png", "TableImg_Si47l_5.png"], "original_data_index": 1294, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs greater than 7, combined with the driver IDs from school buses that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S2yvk_12.png", "TableImg_5ytcq_5.png"], "original_data_index": 1297, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are not equal to 3 but are not found in the school bus table with IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vr0q1_12.png", "TableImg_02vsh_5.png"], "original_data_index": 1299, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are greater than or equal to 2, excluding those driver IDs that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3fx86_12.png", "TableImg_U167w_5.png"], "original_data_index": 1302, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What car models are from makes with an ID greater than 279 or are named \"amc\", but not models with an ID less than 16 or that aren't \"mercedes\" and have a maker value less than or equal to 19?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3], "data": [[" volkswagen"], ["mercedes"], ["triumph"], ["volvo"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_Fk7o3_406.png", "TableImg_Oskfc_36.png"], "original_data_index": 1300, "original_sql": "SELECT Model FROM car_names WHERE \"MakeId\" > 279 OR Model = \"amc\" EXCEPT SELECT Model FROM model_list WHERE \"ModelId\" < 16 OR Model <> \"mercedes\" AND \"Maker\" <= 19"} {"question": "Which driver IDs are greater than 6, and also include driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C3giw_12.png", "TableImg_Upr12_5.png"], "original_data_index": 1301, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are less than or equal to 6, but not equal to 9, considering only the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xs1ab_12.png", "TableImg_62q94_5.png"], "original_data_index": 1303, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the total sum of document IDs from the Circulation History table where the draft number is not 17 or the employee ID is less than 1, combined with the total sum of document IDs from the Documents Mailed table where the mailing date is not \"1992-11-07 15:03:41\", or the mailed to address ID is not 8, or the document ID is not 2?", "answer": {"columns": ["SUM(document_id)"], "index": [0, 1], "data": [["13"], ["177"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Uvwcv_4.png", "TableImg_Bwah3_14.png"], "original_data_index": 1307, "original_sql": "SELECT SUM(document_id) FROM Circulation_History WHERE \"draft_number\" <> 17 OR \"employee_id\" < 1 UNION ALL SELECT SUM(document_id) FROM Documents_Mailed WHERE mailing_date <> \"1992-11-07 15:03:41\" OR \"mailed_to_address_id\" != 8 OR \"document_id\" <> 2"} {"question": "Which driver IDs are greater than or equal to 6 and are in the driver table but not in the school bus table, where the school bus driver IDs are greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R3vod_12.png", "TableImg_Sx82v_5.png"], "original_data_index": 1306, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ocbg5_12.png", "TableImg_L67en_5.png"], "original_data_index": 1305, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vtzby_12.png", "TableImg_S0dkc_5.png"], "original_data_index": 1304, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the ranks of match results where Big_Silver is at least 11 or Bronze is 8 and Points is 89, excluding the ranks of players who are not Ross C. Martin or whose occupation is not Researcher and have 9506 votes or whose rank is not 1st?", "answer": {"columns": ["Rank"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Ydnc7_6.png", "TableImg_Zw1d2_14.png"], "original_data_index": 1309, "original_sql": "SELECT Rank FROM match_result WHERE \"Big_Silver\" >= 11 OR \"Bronze\" = 8 AND \"Points\" = 89 EXCEPT SELECT Rank FROM player WHERE Player_name != \"Ross C. Martin\" OR Occupation <> \"Researcher\" AND \"Votes\" = 9506 OR Rank <> \"1st\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 11 from the driver table and driver IDs less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gjd6a_12.png", "TableImg_Ojk2o_5.png"], "original_data_index": 1308, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which customer IDs made payments of at least 4610.26 or have a customer ID less than 13 and the payment wasn't on March 12, 2018 at 08:41:47, or had lessons with a price greater than 223.0, at lesson time 9, with a staff ID of 8 or less, or the lesson date wasn't March 12, 2018 at 00:41:59?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_P8lv3_15.png", "TableImg_C06bn_15.png"], "original_data_index": 1310, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"amount_payment\" >= 4610.26 OR \"customer_id\" < 13 AND datetime_payment <> \"2018-03-12 08:41:47\" UNION SELECT customer_id FROM Lessons WHERE \"price\" > 223.0 AND lesson_time = \"9\" AND \"staff_id\" <= 8 OR lesson_date != \"2018-03-12 00:41:59\""} {"question": "What are the driver IDs that are either less than or equal to 7 in the driver table or less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2aolk_12.png", "TableImg_C2wt0_5.png"], "original_data_index": 1311, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the IDs of drivers, excluding driver ID 4, who are also assigned to a school bus, also excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jecl2_12.png", "TableImg_Ol1v1_5.png"], "original_data_index": 1313, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are less than 6 and also appear in the school bus table with IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8ol97_12.png", "TableImg_Gxu1g_5.png"], "original_data_index": 1314, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the IDs of drivers who are not driver ID 2 and also have driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R1s1u_12.png", "TableImg_Y3wx4_5.png"], "original_data_index": 1312, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the IDs of car makers that are not ID 15, or from country 8 and not Volvo, or not subaru, and also have an acceleration not equal to 15.4, or horsepower not equal to 170, or a weight of 3613 and an engine displacement of 225.0, or an MPG of 10, or an ID greater than or equal to 97 and a year not equal to 1973?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Sdv5s_22.png", "TableImg_Vzin5_406.png"], "original_data_index": 1315, "original_sql": "SELECT Id FROM car_makers WHERE \"Id\" != 15 OR Country = \"8\" AND FullName <> \"Volvo\" OR Maker != \"subaru\" INTERSECT SELECT Id FROM cars_data WHERE \"Accelerate\" <> 15.4 AND Horsepower != \"170\" OR \"Weight\" = 3613 AND \"Edispl\" = 225.0 OR MPG = \"10\" OR \"Id\" >= 97 AND \"Year\" != 1973"} {"question": "Which driver IDs are either less than or equal to 3 from the driver table, or not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6h6br_12.png", "TableImg_525db_5.png"], "original_data_index": 1317, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What is the maximum state value from the AREA_CODE_STATE table where the state is MI, combined with the maximum state value from the VOTES table where the state is not NY and either the vote ID is greater than 5, the phone number is not 5112677315, or the contestant number is greater than or equal to 5 and the creation date is March 9, 2018 at 7:03:21 PM?", "answer": {"columns": ["MAX(state)"], "index": [0, 1], "data": [["MI"], ["NY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Qmyjo_305.png", "TableImg_S9gce_4.png"], "original_data_index": 1319, "original_sql": "SELECT MAX(state) FROM AREA_CODE_STATE WHERE state = \"MI\" UNION SELECT MAX(state) FROM VOTES WHERE state != \"NY\" AND \"vote_id\" > 5 OR \"phone_number\" <> 5112677315 OR \"contestant_number\" >= 5 AND created = \"2018-03-09 19:03:21\""} {"question": "What are the driver IDs that are either greater than or equal to 1 in the driver table or less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lhqd9_12.png", "TableImg_Ar7jb_5.png"], "original_data_index": 1318, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the names, descriptions, and types of features that are not described as \"Swimming Pool\" or have a feature ID other than 2 and are not amenities, combined with features that are not amenities?", "answer": {"columns": ["feature_name", "feature_description", "feature_type_code"], "index": [0, 1], "data": [["AirCon", "Air Conditioning.", "Amenity"], ["BurglarAlarm", "Burglar Alarm", "Security"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_5jru7_3.png", "TableImg_Hnmk3_3.png"], "original_data_index": 1316, "original_sql": "SELECT feature_name, feature_description, feature_type_code FROM Other_Available_Features WHERE feature_description != \"Swimming Pool.\" OR \"feature_id\" <> 2 AND feature_type_code <> \"Amenity\" UNION SELECT feature_name, feature_description, feature_type_code FROM Other_Available_Features WHERE feature_type_code != \"Amenity\""} {"question": "Which driver IDs are less than or equal to 5, but not greater than 3, considering only the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_11o9p_12.png", "TableImg_Sp0mg_5.png"], "original_data_index": 1323, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs greater than 2, and also any aircraft IDs that are not 3, considering both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pl45d_5.png", "TableImg_Rtl3h_4.png"], "original_data_index": 1320, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs, excluding driver ID 4, are present in the driver table, and which driver IDs, excluding driver ID 9, are present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L1k2z_12.png", "TableImg_Ub95u_5.png"], "original_data_index": 1321, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the car models that are not \"plymouth\" or have a \"MakeId\" of 324, combined with the models where the \"ModelId\" is 12 or the model is not \"renault\" and the \"Maker\" is not 8?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], "data": [[" volkswagen"], ["amc"], ["audi"], ["bmw"], ["buick"], ["cadillac"], ["capri"], ["chevrolet"], ["chrysler"], ["citroen"], ["datsun"], ["dodge"], ["fiat"], ["ford"], ["hi"], ["honda"], ["hyundai"], ["jeep"], ["kia"], ["mazda"], ["mercedes"], ["mercedes-benz"], ["mercury"], ["nissan"], ["oldsmobile"], ["opel"], ["peugeot"], ["plymouth"], ["pontiac"], ["renault"], ["saab"], ["scion"], ["subaru"], ["toyota"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_Cdw2f_406.png", "TableImg_9muev_36.png"], "original_data_index": 1322, "original_sql": "SELECT Model FROM car_names WHERE Model <> \"plymouth\" OR \"MakeId\" = 324 UNION SELECT Model FROM model_list WHERE \"ModelId\" = 12 OR Model <> \"renault\" AND \"Maker\" != 8"} {"question": "Which driver IDs are not equal to 1 but are not present in the school bus table with a driver ID of 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T492j_12.png", "TableImg_Kb561_5.png"], "original_data_index": 1325, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which club IDs are associated with male coaches with club IDs greater than 3, or with match results where the gold medal count isn't 5 or the big silver medal count isn't 6 and the rank isn't 4?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Xg51m_5.png", "TableImg_Xqlrh_6.png"], "original_data_index": 1324, "original_sql": "SELECT Club_ID FROM coach WHERE Gender = \"M\" AND \"Club_ID\" > 3 UNION ALL SELECT Club_ID FROM match_result WHERE \"Gold\" <> 5 OR \"Big_Silver\" <> 6 AND \"Rank\" != 4"} {"question": "What are the driver IDs that are less than 7 and also appear in the school bus table with driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ke25q_12.png", "TableImg_Lve5c_5.png"], "original_data_index": 1326, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the aircraft IDs that are either greater than or equal to 4 in the aircraft table, or less than or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Suzh0_5.png", "TableImg_7tbxh_4.png"], "original_data_index": 1327, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the driver IDs that are both equal to 10 in the driver table and not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7qsyg_12.png", "TableImg_Hrfks_5.png"], "original_data_index": 1328, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 2 from the driver table and including only driver IDs up to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_07xlf_12.png", "TableImg_0p4jr_5.png"], "original_data_index": 1329, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs that are not 2 and also appear in the airport aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sd2s1_5.png", "TableImg_Zskea_4.png"], "original_data_index": 1332, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "How many versions are there for each template ID where the version number is greater than 5 and the template ID is not 10, or the effective date from is not \"1986-12-09 14:51:36\" and the effective date to is \"1980-05-07 12:15:47\", excluding the cases where the effective date from is not \"2002-03-02 14:39:49\"?", "answer": {"columns": ["COUNT(Version_Number)", "Template_ID"], "index": [0], "data": [["10", "1"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_Phcr7_20.png", "TableImg_I9zbf_20.png"], "original_data_index": 1330, "original_sql": "SELECT COUNT(Version_Number), Template_ID FROM Templates WHERE \"Version_Number\" > 5 AND \"Template_ID\" != 10 OR Date_Effective_From != \"1986-12-09 14:51:36\" AND Date_Effective_To = \"1980-05-07 12:15:47\" EXCEPT SELECT COUNT(Version_Number), Template_ID FROM Templates WHERE Date_Effective_From != \"2002-03-02 14:39:49\""} {"question": "Which player IDs belong to players ranked 1st, are female, don't live in Winnipeg, have a player ID greater than 4, aren't researchers, or have 4914 votes, and also which player IDs are from coaches who started in or after 2010 or have a coach ID of 3 or less?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["1"], ["2"], ["3"], ["4"], ["6"], ["10"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_Jjp7z_14.png", "TableImg_5apt1_7.png"], "original_data_index": 1331, "original_sql": "SELECT Player_ID FROM player WHERE Rank = \"1st\" OR Gender = \"F\" OR Residence != \"Winnipeg\" OR \"Player_ID\" > 4 OR Occupation != \"Researcher\" OR \"Votes\" = 4914 UNION ALL SELECT Player_ID FROM player_coach WHERE \"Starting_year\" >= 2010 OR \"Coach_ID\" <= 3"} {"question": "What are the driver IDs, excluding driver ID 4, that are present in both the driver and school bus tables, where the driver ID is less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3i4h8_12.png", "TableImg_Blg32_5.png"], "original_data_index": 1334, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the student IDs of students with IDs less than 1002 and pet IDs less than 2002, along with the student IDs of students who are not 20 years old?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "data": [["1001"], ["1001"], ["1002"], ["1003"], ["1005"], ["1006"], ["1007"], ["1009"], ["1010"], ["1011"], ["1014"], ["1015"], ["1016"], ["1017"], ["1019"], ["1020"], ["1021"], ["1022"], ["1024"], ["1025"], ["1026"], ["1027"], ["1029"], ["1030"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_R0mvc_3.png", "TableImg_N4nfi_34.png"], "original_data_index": 1333, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" < 1002 AND \"PetID\" < 2002 UNION ALL SELECT StuID FROM Student WHERE \"Age\" <> 20"} {"question": "What are the driver IDs that appear in both the driver and school bus tables, where the driver ID is at least 1 in the driver table and at most 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S026b_12.png", "TableImg_1j2p9_5.png"], "original_data_index": 1336, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs, excluding driver ID 6, and also driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_23zhx_12.png", "TableImg_4jna2_5.png"], "original_data_index": 1335, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are present in both the driver table (excluding driver ID 1) and the school bus table (with driver IDs less than 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tbesz_12.png", "TableImg_4y2e7_5.png"], "original_data_index": 1340, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the student IDs and ages of male students who are also either not named Jones, over 19 years old, or have a major less than 520?", "answer": {"columns": ["StuID", "Age"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["1004", "20"], ["1005", "26"], ["1006", "18"], ["1009", "19"], ["1010", "17"], ["1011", "22"], ["1012", "20"], ["1014", "18"], ["1016", "17"], ["1017", "27"], ["1018", "20"], ["1019", "18"], ["1020", "22"], ["1021", "19"], ["1022", "17"], ["1023", "20"], ["1025", "18"], ["1026", "19"], ["1027", "18"], ["1028", "20"], ["1029", "17"], ["1032", "20"], ["1033", "18"], ["1034", "18"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_B3icv_34.png", "TableImg_We07v_34.png"], "original_data_index": 1338, "original_sql": "SELECT StuID, Age FROM Student WHERE Sex = \"M\" INTERSECT SELECT StuID, Age FROM Student WHERE LName <> \"Jones\" AND \"Age\" > 19 OR Sex = \"M\" OR \"Major\" < 520"} {"question": "Which driver IDs are either less than or equal to 11 from the driver table or not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rxc8y_12.png", "TableImg_R1kj5_5.png"], "original_data_index": 1337, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 11 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yav8d_12.png", "TableImg_Lffmj_5.png"], "original_data_index": 1339, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are less than 6 but not equal to 10, considering only driver IDs from the driver table and excluding those from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Srcei_12.png", "TableImg_M29la_5.png"], "original_data_index": 1343, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are greater than or equal to 1 but not equal to 9, considering only those IDs present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kzyrw_12.png", "TableImg_M2fhf_5.png"], "original_data_index": 1344, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are greater than 3 and also less than 7, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gamjt_12.png", "TableImg_42tvo_5.png"], "original_data_index": 1342, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the minimum city population, the headquartered city, the average city area, and the district name for districts where the district ID is greater than 1 or the district name is Faisalabad District, and the city population is 134936.0, the headquartered city is Attock City, and the city area is less than 147.0? Also, what is the minimum city population, the headquartered city, the average city area, and the district name for districts where the city population is less than 94620.0, the district ID is 12, and the city area is not 25.0?", "answer": {"columns": ["MIN(City_Population)", "Headquartered_City", "AVG(City_Area)", "District_name"], "index": [0, 1], "data": [["89380.0", "Bhakkar City", "32.2857142857", "Bhakkar District"], ["", "", "", ""]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_J7d1j_15.png", "TableImg_80fsd_15.png"], "original_data_index": 1341, "original_sql": "SELECT MIN(City_Population), Headquartered_City, AVG(City_Area), District_name FROM district WHERE \"District_ID\" > 1 OR District_name = \"Faisalabad District\" AND \"City_Population\" = 134936.0 AND Headquartered_City = \"Attock City\" AND \"City_Area\" < 147.0 UNION ALL SELECT MIN(City_Population), Headquartered_City, AVG(City_Area), District_name FROM district WHERE \"City_Population\" < 94620.0 AND \"District_ID\" = 12 AND \"City_Area\" != 25.0"} {"question": "Which driver IDs are either less than or equal to 6 in the driver table or greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jozwj_12.png", "TableImg_Okdd6_5.png"], "original_data_index": 1345, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are less than 10 from the driver table, combined with the driver IDs that are not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A88vk_12.png", "TableImg_Ttw23_5.png"], "original_data_index": 1347, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are not equal to 4 and are not in the school bus table with IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1lbv6_12.png", "TableImg_Kwu2m_5.png"], "original_data_index": 1348, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the draft numbers and document IDs from the Document Drafts table where the draft details aren't \"k\" and the draft number is 4 or greater, combined with the draft numbers and document IDs from the Draft Copies table where the draft number is less than 2?", "answer": {"columns": ["draft_number", "document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["8", "2"], ["9", "4"], ["10", "7"], ["11", "12"], ["12", "12"], ["4", "13"], ["16", "13"], ["14", "14"], ["19", "17"], ["17", "20"], ["9", "23"], ["1", "2"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_Xw7i5_15.png", "TableImg_N90s6_8.png"], "original_data_index": 1346, "original_sql": "SELECT draft_number, document_id FROM Document_Drafts WHERE draft_details != \"k\" AND \"draft_number\" >= 4 UNION ALL SELECT draft_number, document_id FROM Draft_Copies WHERE \"draft_number\" < 2"} {"question": "Which driver IDs are equal to 6, or are driver IDs from school buses less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qczgv_12.png", "TableImg_0dcyz_5.png"], "original_data_index": 1352, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs, excluding driver ID 11, from the driver table, combined with the driver IDs greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E3o1b_12.png", "TableImg_4myqx_5.png"], "original_data_index": 1350, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the school IDs for schools that are either AAA football class, or have a mascot that isn't Trojans and don't have an enrollment of 852 or have a school name that isn't Triton, combined with the school IDs from budgets where the invested amount is over 85249, or the total budget percent budgeted is at least 2.0 and the budget invested percent isn't 146.9, or the budgeted amount is over 113531?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_S9px7_8.png", "TableImg_29ri9_8.png"], "original_data_index": 1349, "original_sql": "SELECT School_id FROM School WHERE IHSAA_Football_Class = \"AAA\" OR Mascot <> \"Trojans\" AND \"Enrollment\" != 852 OR School_name != \"Triton\" UNION SELECT School_id FROM budget WHERE \"Invested\" > 85249 OR \"total_budget_percent_budgeted\" >= 2.0 AND Budget_invested_percent != \"146.9\" OR \"Budgeted\" > 113531"} {"question": "Give me the creation date, phone number, and vote ID for all votes that were not from New York and were not created at \"2018-03-09 19:03:40\", along with the creation date, phone number, and vote ID for votes that were not created at \"2018-03-09 19:03:36\", or had a phone number greater than or equal to 7182887233, or had a vote ID less than 3, or were not from New Jersey and did not have a contestant number of 2.", "answer": {"columns": ["created", "phone_number", "vote_id"], "index": [0, 1, 2, 3, 4], "data": [["2018-03-09 19:03:39", "6209222712", "3"], ["2018-03-09 19:03:21", "7182887233", "1"], ["2018-03-09 19:03:36", "7148407040", "2"], ["2018-03-09 19:03:39", "6209222712", "3"], ["2018-03-09 19:03:40", "5112677315", "5"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_26c1s_4.png", "TableImg_V4rtw_4.png"], "original_data_index": 1353, "original_sql": "SELECT created, phone_number, vote_id FROM VOTES WHERE state != \"NY\" AND created != \"2018-03-09 19:03:40\" UNION ALL SELECT created, phone_number, vote_id FROM VOTES WHERE created <> \"2018-03-09 19:03:36\" OR \"phone_number\" >= 7182887233 OR \"vote_id\" < 3 OR state != \"NJ \" AND \"contestant_number\" != 2"} {"question": "What are the different document status codes for documents received on November 5, 1985, at 5:59:34 PM, or those that are not of type \"CD\", or those that don't have a \"working\" status, or have a receipt number other than \"189\", or are not shipped by \"AL\" and have a document ID greater than or equal to 25? Also, what are the document status codes that are not \"overdue\"? Combine these two sets of document status codes.", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2], "data": [["done"], ["overdue"], ["working"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Noxni_15.png", "TableImg_K9i7v_3.png"], "original_data_index": 1354, "original_sql": "SELECT document_status_code FROM Documents WHERE receipt_date = \"1985-11-05 17:59:34\" OR document_type_code != \"CD\" OR document_status_code != \"working\" OR receipt_number <> \"189\" OR shipping_agent_code <> \"AL\" AND \"document_id\" >= 25 UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> \"overdue\""} {"question": "What are the driver IDs greater than 10, excluding those driver IDs that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T8f8z_12.png", "TableImg_8mwob_5.png"], "original_data_index": 1355, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the document IDs that either don't have a receipt number of \"117\" or were mailed to an address other than ID 8?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"], ["4"], ["4"], ["7"], ["10"], ["12"], ["12"], ["13"], ["14"], ["20"], ["20"], ["24"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Apcf9_15.png", "TableImg_1ch5h_14.png"], "original_data_index": 1357, "original_sql": "SELECT document_id FROM Documents WHERE receipt_number != \"117\" UNION ALL SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <> 8"} {"question": "Which driver IDs are greater than 9 but not equal to 10, considering only those IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I1hq4_12.png", "TableImg_Zpfpy_5.png"], "original_data_index": 1356, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 3 from the driver table and including driver IDs up to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ct6p_12.png", "TableImg_Dtfeo_5.png"], "original_data_index": 1351, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are less than or equal to 8, and also include driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A8vkz_12.png", "TableImg_Jwmts_5.png"], "original_data_index": 1360, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which aircraft IDs are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eamwp_5.png", "TableImg_Oqfmt_4.png"], "original_data_index": 1358, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the aircraft IDs greater than 3 that are not present in the airport aircraft table, excluding those with an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_428v6_5.png", "TableImg_P0kiv_4.png"], "original_data_index": 1359, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 4, and with all driver IDs being greater than or equal to 1?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ffatr_12.png", "TableImg_E00ca_5.png"], "original_data_index": 1361, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that are less than or equal to 4, excluding those aircraft IDs that are not equal to 2, considering only the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jovtw_5.png", "TableImg_4uu83_4.png"], "original_data_index": 1364, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the names of aircraft with an ID greater than 16 and a distance of 4103 or less that are SAAB 340, combined with the names of employees who are not Elizabeth Taylor or whose salary is not 227489?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "data": [["James Smith"], ["Mary Johnson"], ["John Williams"], ["Lisa Walker"], ["Larry West"], ["Karen Scott"], ["Lawrence Sperry"], ["Michael Miller"], ["Patricia Jones"], ["Robert Brown"], ["Angela Martinez"], ["Joseph Thompson"], ["Linda Davis"], ["Richard Jackson"], ["William Ward"], ["Chad Stewart"], ["Betty Adams"], ["George Wright"], ["Michael Miller"], ["Dorthy Lewis"], ["Barbara Wilson"], ["William Moore"], ["Haywood Kelly"], ["Elizabeth Taylor"], ["David Anderson"], ["Jennifer Thomas"], ["Donald King"], ["Mark Young"], ["Eric Cooper"], ["William Jones"], ["Milo Brooks"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Wxfrs_16.png", "TableImg_Rlg0b_31.png"], "original_data_index": 1363, "original_sql": "SELECT name FROM aircraft WHERE \"aid\" > 16 AND \"distance\" <= 4103 AND name = \"SAAB 340\" UNION ALL SELECT name FROM employee WHERE name <> \"Elizabeth Taylor\" OR \"salary\" <> 227489"} {"question": "What are the aircraft IDs that are less than 1 in the aircraft table, combined with the aircraft IDs that are less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0us3q_5.png", "TableImg_2gq3t_4.png"], "original_data_index": 1366, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the names of Lockheed L1011 aircraft with a distance of at least 2605, and also the names of employees who don't earn $114323 and aren't named Karen Scott, or whose employee ID is greater than 159542516?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "data": [["Angela Martinez"], ["Barbara Wilson"], ["Betty Adams"], ["Chad Stewart"], ["David Anderson"], ["Donald King"], ["Dorthy Lewis"], ["Elizabeth Taylor"], ["Eric Cooper"], ["George Wright"], ["Haywood Kelly"], ["James Smith"], ["Jennifer Thomas"], ["John Williams"], ["Joseph Thompson"], ["Karen Scott"], ["Larry West"], ["Lawrence Sperry"], ["Linda Davis"], ["Lisa Walker"], ["Lockheed L1011"], ["Mark Young"], ["Mary Johnson"], ["Michael Miller"], ["Milo Brooks"], ["Patricia Jones"], ["Richard Jackson"], ["Robert Brown"], ["William Jones"], ["William Moore"], ["William Ward"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Odyfz_16.png", "TableImg_Liuth_31.png"], "original_data_index": 1367, "original_sql": "SELECT name FROM aircraft WHERE \"distance\" >= 2605 AND name = \"Lockheed L1011\" UNION SELECT name FROM employee WHERE \"salary\" != 114323 AND name != \"Karen Scott\" OR \"eid\" > 159542516"} {"question": "Give me the people's IDs, birth dates, heights, and nationalities of people born on August 8, 1986, who are not 182.0 tall or are not Russian, excluding those born on August 16, 1982, who are taller than 193.0 and are not Bulgarian.", "answer": {"columns": ["People_ID", "Birth_Date", "Height", "Nationality"], "index": [0, 1], "data": [["2", "August 16, 1982", "182", "Bulgaria"], ["5", "August 8, 1986", "196", "Russia"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Q9znx_7.png", "TableImg_Bx6ec_7.png"], "original_data_index": 1365, "original_sql": "SELECT People_ID, Birth_Date, Height, Nationality FROM people WHERE Birth_Date = \"August 8, 1986\" AND \"Height\" != 182.0 OR Nationality != \"Russia\" AND \"People_ID\" <> 7 EXCEPT SELECT People_ID, Birth_Date, Height, Nationality FROM people WHERE Birth_Date = \"August 16, 1982\" AND \"Height\" > 193.0 AND Nationality <> \"Bulgaria\""} {"question": "What are the driver IDs greater than or equal to 5, excluding driver ID 4, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4lbyw_12.png", "TableImg_Jg488_5.png"], "original_data_index": 1370, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs less than 4, and also what are the aircraft IDs that are not 2, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Csjfo_5.png", "TableImg_Ssftc_4.png"], "original_data_index": 1368, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the other details from documents where the receipt date is not \"1985-11-05 17:59:34\", or the shipping agent code is \"UP\" and the document status code is \"working\" and the document ID is less than or equal to 10, excluding the other details from employees where the employee ID is 8, or the role code is not \"MG\" and the employee name is not \"Clemens\", or the other details are not \"v\"?", "answer": {"columns": ["other_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["j"], ["m"], ["n"], ["p"], ["q"], ["r"], ["w"], ["x"], ["y"], ["z"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Xwaqm_15.png", "TableImg_Fgjde_6.png"], "original_data_index": 1369, "original_sql": "SELECT other_details FROM Documents WHERE receipt_date <> \"1985-11-05 17:59:34\" OR shipping_agent_code = \"UP\" AND document_status_code = \"working\" AND \"document_id\" <= 10 EXCEPT SELECT other_details FROM Employees WHERE \"employee_id\" = 8 OR role_code != \"MG\" AND employee_name <> \"Clemens\" OR other_details != \"v\""} {"question": "What are the names of donors and the amounts they donated, along with the highest endowment ID, where the donation amount is less than or equal to 9.83, and also where the donation amount is less than or equal to 8.33 and the school ID is not 3?", "answer": {"columns": ["donator_name", "amount", "MAX(endowment_id)"], "index": [0], "data": [["Peravia", "8.33", "11"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_Ni97e_11.png", "TableImg_Z2p23_11.png"], "original_data_index": 1371, "original_sql": "SELECT donator_name, amount, MAX(endowment_id) FROM endowment WHERE \"amount\" <= 9.83 INTERSECT SELECT donator_name, amount, MAX(endowment_id) FROM endowment WHERE \"amount\" <= 8.33 AND \"School_id\" <> 3"} {"question": "How many property feature descriptions are there where the feature ID is 3 or less and not \"earum\", combined with the count of property feature descriptions where the property ID is greater than 15?", "answer": {"columns": ["COUNT(property_feature_description)"], "index": [0, 1], "data": [["0"], ["11"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Aqjq0_15.png", "TableImg_Tdrux_15.png"], "original_data_index": 1362, "original_sql": "SELECT COUNT(property_feature_description) FROM Other_Property_Features WHERE \"feature_id\" <= 3 AND property_feature_description <> \"earum\" UNION SELECT COUNT(property_feature_description) FROM Other_Property_Features WHERE \"property_id\" > 15"} {"question": "Which driver IDs are greater than or equal to 9, but not present in the school bus table with driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pi8b1_12.png", "TableImg_3z067_5.png"], "original_data_index": 1375, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are less than 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vty5h_5.png", "TableImg_Cbc2r_4.png"], "original_data_index": 1376, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the aircraft IDs, excluding aircraft ID 5, and also the aircraft IDs that are 5 or less, considering both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M8iru_5.png", "TableImg_Aey8f_4.png"], "original_data_index": 1377, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the driver IDs that are greater than or equal to 4, but not including any driver IDs that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Krieo_12.png", "TableImg_W8x7s_5.png"], "original_data_index": 1378, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are less than or equal to 2, or the driver IDs that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7xdbb_12.png", "TableImg_N2r8v_5.png"], "original_data_index": 1379, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What is the sum of Club IDs and the student IDs for clubs where the president is not in \"Hopkins Student Enterprises\", grouped by club name, and where the club description is not \"Refurbish computers; teach kids and adults about computer basics.\" or the number of students is less than or equal to 1007?", "answer": {"columns": ["SUM(T1.ClubID)", "StuID"], "index": [0], "data": [["1", "1001"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Y32hu_4.png", "TableImg_8efm9_4.png"], "original_data_index": 1380, "original_sql": "SELECT SUM(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE Position = \"President\" AND ClubName <> \"Hopkins Student Enterprises\" GROUP BY ClubName HAVING ClubDesc <> \"Refurbish computers; teach kids and adults about computer basics.\" OR Position = \"President\" AND COUNT(StuID) <= 1007"} {"question": "What are the driver IDs greater than or equal to 7, excluding those that are not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_54g1z_12.png", "TableImg_2jz3l_5.png"], "original_data_index": 1381, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the IDs of drivers, excluding driver 8, and the IDs of school bus drivers, excluding driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Az020_12.png", "TableImg_Beiwi_5.png"], "original_data_index": 1382, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What is the average age of employees and the year they were awarded, specifically for the year 2015 in Sale, or for any employee whose name is not Jason Hobson, grouped by city, excluding results where the name is Matt Stevens?", "answer": {"columns": ["AVG(T1.Age)", "Year_awarded"], "index": [0, 1, 2], "data": [["29", "2015"], ["23", "2011"], ["36", "2016"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Qwrtw_10.png", "TableImg_F5yt1_6.png"], "original_data_index": 1383, "original_sql": "SELECT AVG(T1.Age), T2.Year_awarded FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE Year_awarded = \"2015\" AND City = \"Sale\" OR Name <> \"Jason Hobson\" GROUP BY City HAVING Name <> \"Matt Stevens\""} {"question": "Which driver IDs are greater than 5, and also include driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nkh08_12.png", "TableImg_Q13hz_5.png"], "original_data_index": 1384, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are less than or equal to 1, excluding those driver IDs that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sifk0_12.png", "TableImg_7oxkh_5.png"], "original_data_index": 1385, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs, excluding driver ID 2, and also the driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P5ow6_12.png", "TableImg_Ultqp_5.png"], "original_data_index": 1386, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the aircraft IDs that appear in both the aircraft table with an ID greater than 2 and the airport_aircraft table with an ID of 5 or more?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1lcq4_5.png", "TableImg_Trz02_4.png"], "original_data_index": 1387, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the draft numbers and document IDs from the Document Drafts table where the draft details aren't \"w\" and the document ID is 17, or the draft number is greater than 0? Also, what are the draft numbers and document IDs from the Draft Copies table where the document ID is 2 or greater? Combine all these results.", "answer": {"columns": ["draft_number", "document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["2", "1"], ["1", "2"], ["8", "2"], ["9", "4"], ["10", "7"], ["20", "10"], ["11", "12"], ["12", "12"], ["4", "13"], ["16", "13"], ["14", "14"], ["19", "17"], ["17", "20"], ["9", "23"], ["1", "2"], ["8", "2"], ["9", "4"], ["20", "10"], ["12", "12"], ["17", "20"], ["9", "23"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_X75s1_15.png", "TableImg_6zfp3_8.png"], "original_data_index": 1374, "original_sql": "SELECT draft_number, document_id FROM Document_Drafts WHERE draft_details <> \"w\" AND \"document_id\" = 17 OR \"draft_number\" > 0 UNION ALL SELECT draft_number, document_id FROM Draft_Copies WHERE \"document_id\" >= 2"} {"question": "What are the driver IDs that are less than 4, considering both drivers and school buses, and combining the results?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fk1wz_12.png", "TableImg_Yw3le_5.png"], "original_data_index": 1372, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the aircraft IDs that are greater than or equal to 2, but not present in the airport aircraft table with IDs less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Da9gt_5.png", "TableImg_Heba3_4.png"], "original_data_index": 1390, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the aircraft IDs that are greater than or equal to 1 in the aircraft table, but not present in the airport_aircraft table with IDs greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A2lkd_5.png", "TableImg_Bpb2g_4.png"], "original_data_index": 1391, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 8 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U5g7w_12.png", "TableImg_Zq7my_5.png"], "original_data_index": 1392, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs greater than 2, and also the driver IDs from school buses that are 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_36pjx_12.png", "TableImg_Lps73_5.png"], "original_data_index": 1394, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are both less than 5 in the driver table and less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_If42c_12.png", "TableImg_Gbyyw_5.png"], "original_data_index": 1395, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs greater than 6 that are present in both the driver and school bus tables, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Icppu_12.png", "TableImg_6hszo_5.png"], "original_data_index": 1396, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are not equal to 3, but are not present in the airport aircraft table with IDs less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I19jc_5.png", "TableImg_Pociu_4.png"], "original_data_index": 1397, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the driver IDs that are less than 7 from the driver table, combined with the driver IDs that are less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ceiw1_12.png", "TableImg_J9574_5.png"], "original_data_index": 1398, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which aircraft have an ID of 3 and are listed in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_De37p_5.png", "TableImg_Ylxrn_4.png"], "original_data_index": 1399, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "How many budgeted items and years are there, along with the budget invested percentage and total budget invested percentage, where the total budget invested percentage is at least 2.7? Also, how many budgeted items and years are there, along with the budget invested percentage and total budget invested percentage, where the year is not 2003 or the school ID is at least 4 and the budgeted amount is 113531 and the invested amount is not 5840 and the total budget invested percentage is less than or equal to 2.0?", "answer": {"columns": ["COUNT(Budgeted)", "COUNT(Year)", "Budget_invested_percent", "total_budget_percent_invested"], "index": [0, 1], "data": [["2", "2", "228.8", "2.7"], ["7", "7", "42.9", "2.0"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_A5tsm_8.png", "TableImg_4jaj3_8.png"], "original_data_index": 1400, "original_sql": "SELECT COUNT(Budgeted), COUNT(Year), Budget_invested_percent, total_budget_percent_invested FROM budget WHERE \"total_budget_percent_invested\" >= 2.7 UNION ALL SELECT COUNT(Budgeted), COUNT(Year), Budget_invested_percent, total_budget_percent_invested FROM budget WHERE \"Year\" <> 2003 OR \"School_id\" >= 4 AND \"Budgeted\" = 113531 AND \"Invested\" <> 5840 AND \"total_budget_percent_invested\" <= 2.0"} {"question": "Which driver IDs are both less than or equal to 3 and also less than 10, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uzdnu_12.png", "TableImg_Ksl0y_5.png"], "original_data_index": 1401, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are less than or equal to 6, excluding those driver IDs that are less than or equal to 3 and are also associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0em2y_12.png", "TableImg_Ixqlt_5.png"], "original_data_index": 1393, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the employee IDs of employees who are not George Chuter, are under 32 years old, and not employee ID 5, and also started working sometime other than 2009 and are not assigned to shop ID 6 or have an employee ID of 3 or greater?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["4"], ["6"], ["7"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Hl6bd_10.png", "TableImg_K9z7k_7.png"], "original_data_index": 1403, "original_sql": "SELECT Employee_ID FROM employee WHERE Name <> \"George Chuter\" AND \"Age\" < 32 AND \"Employee_ID\" != 5 INTERSECT SELECT Employee_ID FROM hiring WHERE Start_from != \"2009\" AND \"Shop_ID\" != 6 OR \"Employee_ID\" >= 3"} {"question": "What are the property IDs from the 'Other_Property_Features' table where the property ID is 4, combined with the property IDs from the 'Properties' table where the sale date was November 7, 1997, or the shp_feature_3 is not \"None\", and the room count is not 5, and the hse_feature_1 is not \"None\", or the hse_feature_3 is not \"None\", or the agreed selling price is 0.0 and the property address is \"60845 Else Highway Apt. 826 South Dougfort, CO 43200-4258\" and the oth_feature_1 is not \"None\", or the oth_feature_2 is not \"None\" and the shp_feature_1 is not \"None\", or the buyer offered price is not 2449185.2, or the property ID is greater than 3?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["4"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_O7uaz_15.png", "TableImg_A8a5l_15.png"], "original_data_index": 1402, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"property_id\" = 4 UNION ALL SELECT property_id FROM Properties WHERE date_sold = \"1997-11-07 20:22:05\" OR shp_feature_3 != \"None\" AND \"room_count\" != 5 AND hse_feature_1 <> \"None\" OR hse_feature_3 != \"None\" OR \"agreed_selling_price\" = 0.0 AND property_address = \"60845 Else Highway Apt. 826 South Dougfort, CO 43200-4258\" AND oth_feature_1 != \"None\" OR oth_feature_2 != \"None\" AND shp_feature_1 <> \"None\" OR \"buyer_offered_price\" != 2449185.2 OR \"property_id\" > 3"} {"question": "Which driver IDs are either 8 or not 7, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R6oyx_12.png", "TableImg_Wrctf_5.png"], "original_data_index": 1388, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the IDs of airports that are not EHAM, combined with the IDs of flights where the velocity is 240 or the flight number is not M2-F1 #13 and the altitude is at least 3650 and the airport ID is 2?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_21u0e_9.png", "TableImg_D06wa_13.png"], "original_data_index": 1389, "original_sql": "SELECT id FROM airport WHERE ICAO <> \"EHAM\" UNION SELECT id FROM flight WHERE \"Velocity\" = 240.0 OR Vehicle_Flight_number <> \"M2-F1 #13\" AND \"Altitude\" >= 3650.0 AND \"airport_id\" = 2"} {"question": "Which driver IDs are greater than 3 and also appear in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jl92p_12.png", "TableImg_Aejg7_5.png"], "original_data_index": 1407, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs that are both equal to 9 and less than 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4cpmi_12.png", "TableImg_Cc49i_5.png"], "original_data_index": 1404, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are either less than or equal to 3 from the driver table, or greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A27t9_12.png", "TableImg_Takh5_5.png"], "original_data_index": 1406, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs that are not equal to 5, but are not present in the airport aircraft table with IDs greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tx5su_5.png", "TableImg_0ciyq_4.png"], "original_data_index": 1405, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "How many employees have an ID greater than 3 or are in the ED role, and how many roles are MG?", "answer": {"columns": ["COUNT(role_code)"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_Qityz_6.png", "TableImg_D7krq_4.png"], "original_data_index": 1408, "original_sql": "SELECT COUNT(role_code) FROM Employees WHERE \"employee_id\" > 3 OR role_code = \"ED\" UNION SELECT COUNT(role_code) FROM Roles WHERE role_code = \"MG\""} {"question": "What are the driver IDs that are less than 10, and also the driver IDs that are 4 or less, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wjqbp_12.png", "TableImg_Y1pu0_5.png"], "original_data_index": 1409, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 10 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N2giv_12.png", "TableImg_Pe1rp_5.png"], "original_data_index": 1411, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What is the count of students and clubs, and the average position, for members where the club ID is at least 1 and the student ID is no more than 1010, combined with the count of students and clubs, and the average position, for members where the club ID is no more than 2 and the position is CTO?", "answer": {"columns": ["COUNT(StuID)", "AVG(Position)", "COUNT(ClubID)"], "index": [0, 1], "data": [["1", "0", "1"], ["4", "0", "4"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_56cjt_4.png", "TableImg_Om08h_4.png"], "original_data_index": 1410, "original_sql": "SELECT COUNT(StuID), AVG(Position), COUNT(ClubID) FROM Member_of_club WHERE \"ClubID\" >= 1 AND \"StuID\" <= 1010 UNION SELECT COUNT(StuID), AVG(Position), COUNT(ClubID) FROM Member_of_club WHERE \"ClubID\" <= 2 AND Position = \"CTO\""} {"question": "What are the aircraft IDs that are greater than or equal to 1 in the aircraft table, but not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gyicq_5.png", "TableImg_4phdu_4.png"], "original_data_index": 1414, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs that are 3 or less, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nkw57_12.png", "TableImg_6ra2g_5.png"], "original_data_index": 1413, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Trjas_12.png", "TableImg_Vnolg_5.png"], "original_data_index": 1412, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are associated with either a driver or a school bus, excluding driver ID 1 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X52k7_12.png", "TableImg_Mz1hu_5.png"], "original_data_index": 1417, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs, excluding driver ID 11, from the driver table and also the driver IDs, greater than or equal to 9, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gl3bi_12.png", "TableImg_Wwstk_5.png"], "original_data_index": 1418, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are less than 5, and also driver ID 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_66kpu_12.png", "TableImg_Hn1q4_5.png"], "original_data_index": 1416, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What is the maximum coach name and the sum of coach IDs for female coaches who are not rank 2, combined with the maximum coach name and the sum of coach IDs for coaches named Smith Brown, or those with a club ID less than or equal to 1, or those who are not male, or those with a rank greater than 4?", "answer": {"columns": ["MAX(Coach_name)", "Gender", "SUM(Coach_ID)"], "index": [0, 1], "data": [["", "", ""], ["Smith Brown", "M", "7.0"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Exqc1_5.png", "TableImg_Zetpd_5.png"], "original_data_index": 1415, "original_sql": "SELECT MAX(Coach_name), Gender, SUM(Coach_ID) FROM coach WHERE Gender <> \"M\" AND \"Rank\" != 2 UNION ALL SELECT MAX(Coach_name), Gender, SUM(Coach_ID) FROM coach WHERE \"Coach_ID\" != 1 AND Coach_name = \"Smith Brown\" AND \"Club_ID\" <= 1 OR Gender <> \"M\" OR \"Rank\" > 4"} {"question": "Which driver IDs are greater than 10 but not present in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ks6b_12.png", "TableImg_Kor5o_5.png"], "original_data_index": 1420, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the IDs of drivers, excluding driver ID 3, who are either drivers or assigned to a school bus, but not driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_26fwt_12.png", "TableImg_5q93t_5.png"], "original_data_index": 1421, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the highest customer ID from payments where the payment amount is at least 6970.98, the payment method isn't Credit Card, and the payment time isn't 2018-02-15 16:38:49, combined with the highest customer ID from lessons where the lesson time isn't 5 and the lesson ID is less than 15?", "answer": {"columns": ["MAX(customer_id)"], "index": [0], "data": [["11"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_A23yh_15.png", "TableImg_Thohf_15.png"], "original_data_index": 1423, "original_sql": "SELECT MAX(customer_id) FROM Customer_Payments WHERE \"amount_payment\" >= 6970.98 AND payment_method_code != \"Credit Card\" AND datetime_payment <> \"2018-02-15 16:38:49\" UNION SELECT MAX(customer_id) FROM Lessons WHERE lesson_time != \"5\" AND \"lesson_id\" < 15"} {"question": "What are the driver IDs that are less than or equal to 5, combined with the driver IDs that are not equal to 4, considering both the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3y1wo_12.png", "TableImg_Uaa7r_5.png"], "original_data_index": 1422, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are either 1 or not 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mog0t_12.png", "TableImg_Kuf9t_5.png"], "original_data_index": 1424, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the first names of customers with IDs greater than 8, excluding those whose first names appear in the staff records for employees born on November 16, 2000, and who did not leave the staff on March 9, 2018?", "answer": {"columns": ["first_name"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Dameon"], ["Estelle"], ["Leif"], ["Omer"], ["Ray"], ["Rylan"], ["Sigrid"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_Ftqd6_15.png", "TableImg_Oq9w3_15.png"], "original_data_index": 1425, "original_sql": "SELECT first_name FROM Customers WHERE \"customer_id\" > 8 EXCEPT SELECT first_name FROM Staff WHERE date_of_birth = \"2000-11-16 06:55:12\" AND date_left_staff <> \"2018-03-09 05:08:35\""} {"question": "What are the driver IDs that are either greater than or equal to 2 in the driver table or greater than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yieoa_12.png", "TableImg_C45pb_5.png"], "original_data_index": 1426, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are greater than 6, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dphmp_12.png", "TableImg_E0une_5.png"], "original_data_index": 1427, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the student IDs of students who have allergies other than cats, combined with the student IDs of students who are not male, or whose first name is Paul, or whose major is greater than 600, or whose city code is BOS and advisor is greater than or equal to 9172 and age is not 20, or whose last name is Schwartz?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67], "data": [["1002"], ["1002"], ["1003"], ["1004"], ["1005"], ["1005"], ["1006"], ["1007"], ["1007"], ["1007"], ["1007"], ["1007"], ["1007"], ["1007"], ["1007"], ["1009"], ["1010"], ["1010"], ["1010"], ["1010"], ["1010"], ["1010"], ["1010"], ["1010"], ["1011"], ["1012"], ["1013"], ["1014"], ["1015"], ["1015"], ["1016"], ["1016"], ["1017"], ["1018"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1022"], ["1023"], ["1023"], ["1024"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1029"], ["1029"], ["1030"], ["1031"], ["1031"], ["1031"], ["1001"], ["1002"], ["1003"], ["1005"], ["1007"], ["1008"], ["1015"], ["1016"], ["1024"], ["1027"], ["1030"], ["1031"], ["1035"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Siyg4_59.png", "TableImg_O5x1r_34.png"], "original_data_index": 1428, "original_sql": "SELECT StuID FROM Has_Allergy WHERE Allergy <> \"Cat\" UNION ALL SELECT StuID FROM Student WHERE Sex != \"M\" OR \"StuID\" != 1007 AND Fname = \"Paul\" OR \"Major\" > 600 OR city_code = \"BOS\" AND \"Advisor\" >= 9172 AND \"Age\" <> 20 OR LName = \"Schwartz\""} {"question": "Which driver IDs are less than 6 but not greater than or equal to 10, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1i126_12.png", "TableImg_6vgdh_5.png"], "original_data_index": 1429, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the aircraft IDs that are either 4 or greater, or less than 2, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ne8qa_5.png", "TableImg_36fy8_4.png"], "original_data_index": 1430, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs that are present in both the driver table (excluding driver ID 4) and the school bus table (where the driver ID is greater than 4)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_72xux_12.png", "TableImg_Dabwj_5.png"], "original_data_index": 1431, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs, excluding driver 12, are present in both the driver and school bus records, and also excluding driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cgfny_12.png", "TableImg_Pnelr_5.png"], "original_data_index": 1432, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are less than 3, and also the driver IDs that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_49vgt_12.png", "TableImg_Dm31v_5.png"], "original_data_index": 1433, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs, excluding driver 11, from the driver table and the driver IDs, excluding driver 10, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_91d78_12.png", "TableImg_2nd8r_5.png"], "original_data_index": 1435, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which parties participated in election ID 8, or where the first elected year wasn't 1994, or the district wasn't 2, or the party wasn't 1 and the delegate was Guzzone, Guy Guy Guzzone, excluding those from the Economic Matters committee and counties represented as 12.2 12B? Also, which parties are \"Independence\", or where the comptroller isn't Alan Hevesi, or where the US Senator isn't Charles Schumer and the Governor is Peter Vallone and the Lieutenant Governor is Sandra Frankel, or where the Attorney General isn't Eliot Spitzer?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["1"], ["2"], ["2"], ["4"], ["1"], ["7"], ["Democratic"], ["Liberal"], ["Independence"], ["Democratic"], ["Independence"], ["Working Families"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_J7qam_8.png", "TableImg_C7fif_7.png"], "original_data_index": 1434, "original_sql": "SELECT Party FROM election WHERE Committee != \"Economic Matters\" AND Counties_Represented != \"12.2 12B\" AND \"Election_ID\" = 8 OR \"First_Elected\" <> 1994.0 OR \"District\" <> 2 OR \"Party\" != 1 AND Delegate = \"Guzzone, Guy Guy Guzzone\" UNION ALL SELECT Party FROM party WHERE Party = \"Independence\" OR Comptroller != \"Alan Hevesi\" OR US_Senate != \"Charles Schumer\" AND Governor = \"Peter Vallone\" AND Lieutenant_Governor = \"Sandra Frankel\" AND \"Party_ID\" = 4 OR Attorney_General <> \"Eliot Spitzer\""} {"question": "Give me the vehicle IDs and details for all vehicles that are cars or have a vehicle ID other than 1, excluding those that are trucks.", "answer": {"columns": ["vehicle_id", "vehicle_details"], "index": [0], "data": [["3", "Car"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Olee1_3.png", "TableImg_Zw6pb_3.png"], "original_data_index": 1436, "original_sql": "SELECT vehicle_id, vehicle_details FROM Vehicles WHERE vehicle_details = \"Car\" OR \"vehicle_id\" != 1 EXCEPT SELECT vehicle_id, vehicle_details FROM Vehicles WHERE vehicle_details = \"Truck\""} {"question": "What are the driver IDs greater than 4, and also the driver ID 3, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8sshg_12.png", "TableImg_Qrcie_5.png"], "original_data_index": 1440, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are greater than or equal to 8, but not present in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_41oqm_12.png", "TableImg_C8b2k_5.png"], "original_data_index": 1441, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are both less than or equal to 11 and also not equal to 3, considering only those driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J9lks_12.png", "TableImg_R2a6v_5.png"], "original_data_index": 1442, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are either less than or equal to 4 in the driver table or greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z8kh0_12.png", "TableImg_7u22s_5.png"], "original_data_index": 1443, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the average values of the template type code and description for template types that are not \"Advertisement\" and have the code \"CV\", combined with the average values of the template type code and description for template types that are not \"Presentation\"?", "answer": {"columns": ["AVG(Template_Type_Code)", "AVG(Template_Type_Description)"], "index": [0, 1], "data": [["0", "0"], ["0", "0"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Efxxx_5.png", "TableImg_B0zm8_5.png"], "original_data_index": 1444, "original_sql": "SELECT AVG(Template_Type_Code), AVG(Template_Type_Description) FROM Ref_Template_Types WHERE Template_Type_Description <> \"Advertisement\" AND Template_Type_Code = \"CV\" UNION ALL SELECT AVG(Template_Type_Code), AVG(Template_Type_Description) FROM Ref_Template_Types WHERE Template_Type_Description != \"Presentation\""} {"question": "What are the IDs of all aircraft, from both the aircraft and airport_aircraft tables, excluding aircraft with ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zxn0d_5.png", "TableImg_Nbg87_4.png"], "original_data_index": 1445, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the driver IDs that are greater than or equal to 6, but not present in the school bus table with driver IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xw7xm_12.png", "TableImg_Z15q8_5.png"], "original_data_index": 1446, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the IDs of drivers, excluding driver 2, and also the IDs of school bus drivers, excluding driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X854b_12.png", "TableImg_4y5jt_5.png"], "original_data_index": 1447, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs, excluding driver ID 8, that are also driver IDs from school buses with IDs of 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Repz3_12.png", "TableImg_1axpv_5.png"], "original_data_index": 1448, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are not 1 and are in the driver table, but not in the school bus table with IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E95dx_12.png", "TableImg_Tbhpm_5.png"], "original_data_index": 1438, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs less than 8 from the driver table, combined with the driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_337ze_12.png", "TableImg_2e8h5_5.png"], "original_data_index": 1437, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the birth dates, maximum nationalities, average heights, and names of people who were born on August 8, 1986, are not named Roman Bragin, are not from Russia, and are at least 182cm tall, combined with the birth dates, maximum nationalities, average heights, and names of people with a People_ID greater than 5?", "answer": {"columns": ["Birth_Date", "MAX(Nationality)", "AVG(Height)", "Name"], "index": [0, 1], "data": [["", "", "", ""], ["July 14, 1983", "Russia", "199.5", "Maksim Botin"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Biz66_7.png", "TableImg_Fv18s_7.png"], "original_data_index": 1449, "original_sql": "SELECT Birth_Date, MAX(Nationality), AVG(Height), Name FROM people WHERE Name <> \"Roman Bragin\" AND Nationality <> \"Russia\" AND Birth_Date = \"August 8, 1986\" AND \"Height\" >= 182.0 UNION ALL SELECT Birth_Date, MAX(Nationality), AVG(Height), Name FROM people WHERE \"People_ID\" > 5"} {"question": "What are the distances from the aircraft that are not Boeing 777-300 or have a distance greater than 2605, combined with the distances from flights that are not flight number 33 or have a destination other than Los Angeles, or a departure date other than 04/12/2005 07:03 and a price greater than 235.98, or an arrival date of 04/12/2005 07:05, or an aid other than 5?", "answer": {"columns": ["distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["30"], ["520"], ["802"], ["1251"], ["1502"], ["1504"], ["1530"], ["1749"], ["1805"], ["2128"], ["2308"], ["2551"], ["2605"], ["2606"], ["3383"], ["4010"], ["4103"], ["5478"], ["6441"], ["6475"], ["6900"], ["7120"], ["7487"], ["8430"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_Rifcz_16.png", "TableImg_Apk85_10.png"], "original_data_index": 1439, "original_sql": "SELECT distance FROM aircraft WHERE name != \"Boeing 777-300\" OR \"distance\" > 2605 UNION SELECT distance FROM flight WHERE \"flno\" != 33 OR destination != \"Los Angeles\" AND departure_date != \"04/12/2005 07:03\" AND \"price\" > 235.98 OR arrival_date = \"04/12/2005 07:05\" OR \"aid\" != 5"} {"question": "What is the average of 'Other_Details' and the minimum 'Document_ID' for documents that aren't described as \"h\", have other details that aren't \"None\", and don't have a Document ID of 801801, excluding the average of 'Other_Details' and the minimum 'Document_ID' from paragraphs where the Document ID is 80 or greater?", "answer": {"columns": ["AVG(Other_Details)", "MIN(Document_ID)"], "index": [0], "data": [["", ""]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_Z9yg0_15.png", "TableImg_Dn8a5_15.png"], "original_data_index": 1450, "original_sql": "SELECT AVG(Other_Details), MIN(Document_ID) FROM Documents WHERE Document_Description != \"h\" AND Other_Details != \"None\" AND \"Document_ID\" != 801801 EXCEPT SELECT AVG(Other_Details), MIN(Document_ID) FROM Paragraphs WHERE \"Document_ID\" >= 80"} {"question": "Which driver IDs are less than 7 but are not present in the school bus table with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5n1eh_12.png", "TableImg_878z7_5.png"], "original_data_index": 1452, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What is the average age of employees from Wasps or named Lee Mears or who are 43 years old and have an employee ID of 8 or greater, excluding the average age of employees from Bristol or who are not 23 years old or not named George Chuter and whose employee ID is not 2?", "answer": {"columns": ["AVG(Age)"], "index": [0], "data": [["32.6666666667"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Zaqqq_10.png", "TableImg_J9bsu_10.png"], "original_data_index": 1451, "original_sql": "SELECT AVG(Age) FROM employee WHERE City = \"Wasps\" OR Name = \"Lee Mears\" OR \"Age\" = 43 AND \"Employee_ID\" >= 8 EXCEPT SELECT AVG(Age) FROM employee WHERE City = \"Bristol\" OR \"Age\" <> 23 OR Name != \"George Chuter\" AND \"Employee_ID\" != 2"} {"question": "What are the driver IDs that are either greater than or equal to 3 in the driver table or greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J96qd_12.png", "TableImg_Axdiw_5.png"], "original_data_index": 1454, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are either 8 or less than or equal to 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Omhzf_12.png", "TableImg_Fyz0r_5.png"], "original_data_index": 1456, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the largest document IDs from the drafts where the ID isn't 7 or the draft details are \"r\", combined with the largest document IDs from mailed documents where the mailing date isn't \"1973-02-21 10:17:01\" and the ID is less than 4?", "answer": {"columns": ["MAX(document_id)"], "index": [0, 1], "data": [["2"], ["23"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_C1lwg_15.png", "TableImg_Luzyg_14.png"], "original_data_index": 1455, "original_sql": "SELECT MAX(document_id) FROM Document_Drafts WHERE \"document_id\" != 7 OR draft_details = \"r\" UNION SELECT MAX(document_id) FROM Documents_Mailed WHERE mailing_date != \"1973-02-21 10:17:01\" AND \"document_id\" < 4"} {"question": "What are the market values in billions for companies that meet the following criteria: their sales are 147.3 billion and assets are not 1313.9 billion, or their headquarters is not in Netherlands, or their profits are less than 10.3 billion and market value is greater than 180.0 billion and industry is not oil and gas and name is not PetroChina, or their company ID is not 18.0; but exclude those companies with profits less than or equal to 31.7 billion?", "answer": {"columns": ["Market_Value_in_Billion"], "index": [0], "data": [["407.4"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_C2xz7_19.png", "TableImg_Wl2o0_19.png"], "original_data_index": 1453, "original_sql": "SELECT Market_Value_in_Billion FROM company WHERE \"Sales_in_Billion\" = 147.3 AND \"Assets_in_Billion\" <> 1313.9 OR Headquarters != \"Netherlands\" OR \"Profits_in_Billion\" < 10.3 AND \"Market_Value_in_Billion\" > 180.0 AND Industry != \"Oil and gas\" AND Name <> \"PetroChina\" OR \"Company_ID\" != 18.0 EXCEPT SELECT Market_Value_in_Billion FROM company WHERE \"Profits_in_Billion\" <= 31.7"} {"question": "Which driver IDs are both equal to 9 and greater than 3, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B29et_12.png", "TableImg_Zu17b_5.png"], "original_data_index": 1460, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are greater than or equal to 4, excluding those driver IDs that are exactly 4, based on the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_248mk_12.png", "TableImg_51g0f_5.png"], "original_data_index": 1458, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the model, model ID, and maker for models that are \"triumph\" or have a maker less than or equal to 13 or a model ID greater than or equal to 27, but not including those that are \"datsun\" or have a maker greater than or equal to 6 or a model ID not equal to 19?", "answer": {"columns": ["Model", "ModelId", "Maker"], "index": [0], "data": [["mercury", "19", "5"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_T757e_36.png", "TableImg_Tjwod_36.png"], "original_data_index": 1459, "original_sql": "SELECT Model, ModelId, Maker FROM model_list WHERE Model = \"triumph\" OR \"Maker\" <= 13 OR \"ModelId\" >= 27 EXCEPT SELECT Model, ModelId, Maker FROM model_list WHERE Model = \"datsun\" OR \"Maker\" >= 6 OR \"ModelId\" <> 19"} {"question": "What are the document type codes from the 'Documents' table that are not \"CD\", or have other details not equal to \"w\", or have a receipt number not equal to \"79\", or have a shipping agent code of \"AL\", or have a document status code not equal to \"working\" and a receipt date not equal to \"1973-11-05 21:48:53\", along with the document type codes from the 'Ref_Document_Types' table where the description is \"b\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2], "data": [["CD"], ["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_01ui0_15.png", "TableImg_Y48wv_3.png"], "original_data_index": 1457, "original_sql": "SELECT document_type_code FROM Documents WHERE document_type_code <> \"CD\" OR other_details != \"w\" OR receipt_number <> \"79\" OR shipping_agent_code = \"AL\" OR document_status_code != \"working\" AND receipt_date <> \"1973-11-05 21:48:53\" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description = \"b\""} {"question": "Which driver IDs are not equal to 12 but are not present in the school bus table where the driver ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T5ucw_12.png", "TableImg_S6b5i_5.png"], "original_data_index": 1461, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are greater than or equal to 7 but are not present in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jzgue_12.png", "TableImg_M793i_5.png"], "original_data_index": 1463, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and also less than 3, considering only the aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fsua4_5.png", "TableImg_Xew70_4.png"], "original_data_index": 1464, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs that are not 5, but are not also driver IDs that are 3 or less, considering drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jag1o_12.png", "TableImg_Izfb6_5.png"], "original_data_index": 1462, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs, excluding driver ID 2, and also driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A4szh_12.png", "TableImg_Lowbf_5.png"], "original_data_index": 1468, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the book IDs of books written by Garth Ennis, combined with the book IDs from all publications except publication ID 7?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_S1c0g_10.png", "TableImg_Hlur3_7.png"], "original_data_index": 1466, "original_sql": "SELECT Book_ID FROM book WHERE Writer = \"Garth Ennis\" UNION SELECT Book_ID FROM publication WHERE \"Publication_ID\" != 7"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 5 or greater, or in the airport_aircraft table with an ID greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A1pd4_5.png", "TableImg_2ozlb_4.png"], "original_data_index": 1465, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the driver IDs less than 11, excluding those driver IDs that are also present in the school bus table and are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D08qa_12.png", "TableImg_Eh7vr_5.png"], "original_data_index": 1467, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs that are either less than or equal to 1, or greater than or equal to 2, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wezpi_5.png", "TableImg_Kgu4x_4.png"], "original_data_index": 1469, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the driver IDs that appear in both the driver and school bus tables, where the driver ID is no more than 10 in the driver table and no more than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Js4gl_12.png", "TableImg_Srgma_5.png"], "original_data_index": 1472, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the IDs of coaches who are not named Jameson Tomas, excluding those whose IDs are also in the player_coach table with a starting year after 2012, coach ID less than 1, and player ID equal to 1?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_Q3tjx_5.png", "TableImg_Ptnep_7.png"], "original_data_index": 1471, "original_sql": "SELECT Coach_ID FROM coach WHERE Coach_name <> \"Jameson Tomas\" EXCEPT SELECT Coach_ID FROM player_coach WHERE \"Starting_year\" > 2012 AND \"Coach_ID\" < 1 AND \"Player_ID\" = 1"} {"question": "What are the document status codes that are not \"mailed\", but are not \"overdue\"?", "answer": {"columns": ["document_status_code"], "index": [0], "data": [["overdue"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_9pg10_3.png", "TableImg_I6mh0_3.png"], "original_data_index": 1474, "original_sql": "SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> \"mailed\" EXCEPT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code <> \"overdue\""} {"question": "What is the average company ID for companies where sales are at most 470.2 billion, or profits are at most 20.5 billion, or market value is not 294.7 billion, or the company name is not HSBC, excluding the average company ID from the employment table where the company ID is greater than 13 and the people ID is greater than 1?", "answer": {"columns": ["AVG(Company_ID)"], "index": [0], "data": [["10"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_4assc_19.png", "TableImg_Yl1em_5.png"], "original_data_index": 1473, "original_sql": "SELECT AVG(Company_ID) FROM company WHERE \"Sales_in_Billion\" <= 470.2 AND \"Company_ID\" > 11.0 OR \"Profits_in_Billion\" <= 20.5 OR \"Market_Value_in_Billion\" != 294.7 OR Name != \"HSBC\" EXCEPT SELECT AVG(Company_ID) FROM employment WHERE \"Company_ID\" > 13 AND \"People_ID\" > 1"} {"question": "Which driver IDs are greater than 11 but not present in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Chxc6_12.png", "TableImg_0cnm1_5.png"], "original_data_index": 1475, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs, excluding ID 5, from the aircraft table, and also the aircraft IDs, excluding ID 3, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fiuaw_5.png", "TableImg_H6t09_4.png"], "original_data_index": 1476, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the driver IDs that appear in both the driver and school bus tables, where the driver ID is less than or equal to 3 in the driver table and less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zgx5i_12.png", "TableImg_46h17_5.png"], "original_data_index": 1477, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 6 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qlozt_12.png", "TableImg_Oj7r6_5.png"], "original_data_index": 1478, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the template type codes that are not \"Presentation\", combined with the template type codes from templates where the version number is 5 or greater, or template details are not empty, or the effective to date is not a specific date, or the template type code is \"PP\", or the effective from date is not a specific date?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3, 4], "data": [["AD"], ["BK"], ["CV"], ["PP"], ["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_Bmmxy_5.png", "TableImg_Iouyk_20.png"], "original_data_index": 1479, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != \"Presentation\" UNION SELECT Template_Type_Code FROM Templates WHERE \"Version_Number\" >= 5 OR Template_Details != \"\" AND Date_Effective_To != \"1974-09-14 06:34:39\" OR Template_Type_Code = \"PP\" OR Date_Effective_From != \"2005-11-12 07:09:48\""} {"question": "What are the aircraft IDs where the total disk area is not \"8,495 ft\u00b2 (789 m\u00b2)\" or the maximum disk loading is not \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" or the maximum gross weight is \"123,500 lb (56,000 kg)\", excluding any aircraft IDs found in the airport_aircraft table with an Airport ID greater than or equal to 9 or an Aircraft ID greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S0h31_5.png", "TableImg_Rqsox_4.png"], "original_data_index": 1480, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Total_disk_area != \"8,495 ft\u00b2 (789 m\u00b2)\" OR Max_disk_Loading != \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" OR Max_Gross_Weight = \"123,500 lb (56,000 kg)\" EXCEPT SELECT Aircraft_ID FROM airport_aircraft WHERE \"Airport_ID\" >= 9 OR \"Aircraft_ID\" >= 1"} {"question": "What are the driver IDs, excluding driver ID 8, and also the driver IDs greater than 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Flgmt_12.png", "TableImg_8didr_5.png"], "original_data_index": 1470, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the contestant number of Jessie Alloway, excluding any contestant numbers that have votes from NY on March 9, 2018 at 7:03:36 PM, or where the contestant number is less than 3, or where the vote ID is 1?", "answer": {"columns": ["contestant_number"], "index": [0], "data": [["4"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_Gd0xb_11.png", "TableImg_7yis3_4.png"], "original_data_index": 1484, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = \"Jessie Alloway\" EXCEPT SELECT contestant_number FROM VOTES WHERE state = \"NY\" AND created = \"2018-03-09 19:03:36\" OR \"contestant_number\" < 3 OR \"vote_id\" = 1"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 2 from the driver table and driver IDs less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xcf21_12.png", "TableImg_My7un_5.png"], "original_data_index": 1485, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs, excluding driver 11, are present in both the driver and school bus records, where the school bus driver IDs are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ufg2_12.png", "TableImg_Xe04t_5.png"], "original_data_index": 1486, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are greater than 11 but not present in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F4wtr_12.png", "TableImg_Ad10j_5.png"], "original_data_index": 1487, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs that are greater than or equal to 8 and also not equal to 10, considering only those driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5lhz7_12.png", "TableImg_Qeiln_5.png"], "original_data_index": 1488, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What is the paragraph text, average paragraph ID, and document ID for paragraphs where the text is \"Ireland\", or the document ID is greater than or equal to 2394, or the paragraph ID is not 9, combined with the paragraph text, average paragraph ID, and document ID for the paragraph with paragraph ID 946335436?", "answer": {"columns": ["Paragraph_Text", "AVG(Paragraph_ID)", "Document_ID"], "index": [0, 1], "data": [["Korea", "280520763.4285714", "2394"], ["Papua New Guinea", "946335436.0", "3540024"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_Ezybo_15.png", "TableImg_Qyvu9_15.png"], "original_data_index": 1489, "original_sql": "SELECT Paragraph_Text, AVG(Paragraph_ID), Document_ID FROM Paragraphs WHERE Paragraph_Text = \"Ireland\" OR \"Document_ID\" >= 2394 OR \"Paragraph_ID\" <> 9 UNION ALL SELECT Paragraph_Text, AVG(Paragraph_ID), Document_ID FROM Paragraphs WHERE \"Paragraph_ID\" = 946335436"} {"question": "What are the driver IDs that are less than or equal to 12, excluding those driver IDs greater than 10 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eh1vx_12.png", "TableImg_2i292_5.png"], "original_data_index": 1481, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs that are either less than or equal to 4 in the aircraft table or less than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Siwkc_5.png", "TableImg_Zmaz4_4.png"], "original_data_index": 1483, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are all the draft numbers, either where the copy number is not 10, or where the draft number is greater than 20 or the copy number is not 10 and the employee ID is 2?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2], "data": [["1"], ["2"], ["17"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Ovg9y_4.png", "TableImg_H2qcv_4.png"], "original_data_index": 1482, "original_sql": "SELECT draft_number FROM Circulation_History WHERE \"copy_number\" != 10 UNION SELECT draft_number FROM Circulation_History WHERE \"draft_number\" > 20 OR \"copy_number\" != 10 AND \"employee_id\" = 2"} {"question": "Which driver IDs are both greater than or equal to 3 in the driver table and equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8gl3u_12.png", "TableImg_Unqub_5.png"], "original_data_index": 1490, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are less than 5 but not present in the school bus table with IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_87zb4_12.png", "TableImg_Etmns_5.png"], "original_data_index": 1491, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs greater than 6, and also the driver IDs from school buses that are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ku59u_12.png", "TableImg_Eraoj_5.png"], "original_data_index": 1493, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are both less than or equal to 4 and also not equal to 7, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nwx52_12.png", "TableImg_Sdvjp_5.png"], "original_data_index": 1492, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the IDs of airports in Iceland, excluding those with IATA code AMS and the airport named Schiphol Airport, where the ID is 1? Then, exclude any airport IDs that are not AMS and have an ID greater than or equal to 8, but only if the ID is also greater than or equal to 9.", "answer": {"columns": ["id"], "index": [0], "data": [["1"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Isor5_9.png", "TableImg_383qr_9.png"], "original_data_index": 1494, "original_sql": "SELECT id FROM airport WHERE Country = \"Iceland\" AND IATA != \"AMS\" AND name <> \"Schiphol Airport\" GROUP BY id HAVING id = 1 EXCEPT SELECT id FROM airport WHERE IATA <> \"AMS\" AND \"id\" >= 8 GROUP BY id HAVING id >= 9"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 9, but only considering driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H526z_12.png", "TableImg_1fzjm_5.png"], "original_data_index": 1495, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs, excluding driver ID 9, are in the driver table but not in the school bus table, also excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oz469_12.png", "TableImg_5biho_5.png"], "original_data_index": 1496, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the IDs of drivers, excluding driver ID 5, and also the IDs of school bus drivers, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zlyao_12.png", "TableImg_Gmxwx_5.png"], "original_data_index": 1498, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the feature IDs and the sum of property feature descriptions where the description is \"modi\" or the property ID is less than or equal to 3, excluding those feature IDs and sums where the feature ID is not 4 and the description is not \"ad\"?", "answer": {"columns": ["feature_id", "SUM(property_feature_description)"], "index": [0], "data": [["2", "0"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_5a0b0_15.png", "TableImg_Idxtm_15.png"], "original_data_index": 1499, "original_sql": "SELECT feature_id, SUM(property_feature_description) FROM Other_Property_Features WHERE property_feature_description = \"modi\" OR \"property_id\" <= 3 EXCEPT SELECT feature_id, SUM(property_feature_description) FROM Other_Property_Features WHERE \"feature_id\" <> 4 AND property_feature_description <> \"ad\""} {"question": "Which driver IDs are not 8, and which driver ID is 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6zoqt_12.png", "TableImg_To9yo_5.png"], "original_data_index": 1500, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "For each company, how many headquarters, industries, and sales records are there, and what is the sum of their market value? Show me this information for companies where the number of sales records is at most 1 or the total market value is at most 407.4 billion, or where the number of sales records is less than 1, the number of headquarters is greater than 1, or the total market value is at most 227.6 billion.", "answer": {"columns": ["COUNT(Headquarters)", "Company_ID", "COUNT(Industry)", "SUM(Market_Value_in_Billion)", "COUNT(Sales_in_Billion)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1", "1", "1", "407.4", "1"], ["1", "2", "1", "170.1", "1"], ["1", "3", "1", "213.7", "1"], ["1", "4", "1", "227.6", "1"], ["1", "5", "1", "237.4", "1"], ["1", "6", "1", "164.3", "1"], ["1", "7", "1", "294.7", "1"], ["1", "8", "1", "202.2", "1"], ["1", "9", "1", "178.7", "1"], ["1", "10", "1", "180.0", "1"], ["1", "11", "1", "147.4", "1"], ["1", "12", "1", "218.0", "1"], ["1", "13", "1", "201.9", "1"], ["1", "14", "1", "107.5", "1"], ["1", "15", "1", "159.8", "1"], ["1", "16", "1", "208.4", "1"], ["1", "17", "1", "79.5", "1"], ["1", "18", "1", "132.4", "1"], ["1", "19", "1", "154.8", "1"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_3rs3m_19.png", "TableImg_Razcl_19.png"], "original_data_index": 1497, "original_sql": "SELECT COUNT(Headquarters), Company_ID, COUNT(Industry), SUM(Market_Value_in_Billion), COUNT(Sales_in_Billion) FROM company GROUP BY Company_ID HAVING COUNT(Sales_in_Billion) <= 1 OR SUM(Market_Value_in_Billion) <= 407.4 UNION SELECT COUNT(Headquarters), Company_ID, COUNT(Industry), SUM(Market_Value_in_Billion), COUNT(Sales_in_Billion) FROM company GROUP BY Company_ID HAVING COUNT(Sales_in_Billion) < 1 OR COUNT(Headquarters) > 1 OR SUM(Market_Value_in_Billion) <= 227.6"} {"question": "What are the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ya8ot_5.png", "TableImg_Ur1sx_4.png"], "original_data_index": 1501, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the aircraft IDs that are either 5 or greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7w7dv_5.png", "TableImg_On1py_4.png"], "original_data_index": 1505, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs, excluding ID 10, are associated with drivers, and which driver IDs, less than 3, are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9od16_12.png", "TableImg_Bd850_5.png"], "original_data_index": 1502, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs greater than 7 who are in the driver table but not in the school bus table, considering only driver IDs greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wdwy2_12.png", "TableImg_Bep6j_5.png"], "original_data_index": 1503, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the highest customer ID from the Customer_Payments table where the customer ID is greater than 12 and the payment method is not \"Credit Card\", combined with the highest customer ID from the Customers table where the amount outstanding is not 9443.0 and the customer ID is not 3, considering various other conditions related to customer status, first name, date of becoming a customer, cell phone number, email address, customer address ID, last name, phone number, and date of birth?", "answer": {"columns": ["MAX(customer_id)"], "index": [0, 1], "data": [["14"], ["15"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_6juzg_15.png", "TableImg_Xmbky_15.png"], "original_data_index": 1504, "original_sql": "SELECT MAX(customer_id) FROM Customer_Payments WHERE \"customer_id\" > 12 AND payment_method_code <> \"Credit Card\" UNION ALL SELECT MAX(customer_id) FROM Customers WHERE \"amount_outstanding\" <> 9443.0 AND \"customer_id\" <> 3 AND customer_status_code <> \"Bad Customer\" OR first_name <> \"Carole\" AND date_became_customer = \"2016-05-13 07:38:23\" OR cell_mobile_phone_number = \"1-387-258-1016x96963\" AND email_address <> \"mariela28@example.org\" OR \"customer_address_id\" >= 1 AND last_name != \"Kohler\" OR phone_number != \"(729)396-4354x3576\" OR date_of_birth = \"1993-03-08 08:48:42\""} {"question": "What are the driver IDs, excluding driver ID 1, and also driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O1x2h_12.png", "TableImg_Ian8u_5.png"], "original_data_index": 1508, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are less than 4 but not greater than 3, considering only the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2fh23_12.png", "TableImg_Rpmyp_5.png"], "original_data_index": 1507, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs that are not equal to 5, but are not present in the airport_aircraft table with IDs greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5t1vn_5.png", "TableImg_2njc9_4.png"], "original_data_index": 1506, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "How many pets have a PetID other than 2001, and how many pets weigh at least 12.0?", "answer": {"columns": ["COUNT(PetID)"], "index": [0, 1], "data": [["2"], ["2"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Owmoq_3.png", "TableImg_2n5ju_3.png"], "original_data_index": 1512, "original_sql": "SELECT COUNT(PetID) FROM Has_Pet WHERE \"PetID\" <> 2001 UNION ALL SELECT COUNT(PetID) FROM Pets WHERE \"weight\" >= 12.0"} {"question": "Which aircraft have an ID of 3 and are listed in both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vh6u5_5.png", "TableImg_U8k36_4.png"], "original_data_index": 1510, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the aircraft IDs that are less than 5 in the aircraft table, combined with the aircraft IDs that are less than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kzsoi_5.png", "TableImg_9scsp_4.png"], "original_data_index": 1511, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M19l4_12.png", "TableImg_Gcf16_5.png"], "original_data_index": 1509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are both less than or equal to 4 and also appear in the school bus table with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uoeqj_12.png", "TableImg_R8mo5_5.png"], "original_data_index": 1516, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the aircraft IDs that are greater than 1 and also appear in the airport aircraft table, excluding those with an ID of 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B33v8_5.png", "TableImg_Eeh9z_4.png"], "original_data_index": 1515, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the driver IDs, excluding driver ID 3, and also any driver IDs greater than 3, that are found in either the driver or school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zq70p_12.png", "TableImg_Czreq_5.png"], "original_data_index": 1517, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the album IDs that are not 249 and also appear in the employee IDs where the employee is from Canada or has a first name other than Laura and a birth date not equal to July 1, 1973, and a state not equal to AB and a hire date of January 2, 2004, or has an email that is not jane@chinookcorp.com and does not report to employee ID 2 or has a postal code that is not T2P 5M5 or has a phone number that is not +1 (403) 467-3351 and a fax number that is not +1 (780) 428-3457 and an employee ID less than or equal to 1 and a title that is not General Manager?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_Aaunp_347.png", "TableImg_Tai96_8.png"], "original_data_index": 1513, "original_sql": "SELECT id FROM albums WHERE \"id\" != 249 INTERSECT SELECT id FROM employees WHERE country = \"Canada\" OR first_name <> \"Laura\" AND birth_date != \"1973-07-01 00:00:00\" AND state <> \"AB\" AND hire_date = \"2004-01-02 00:00:00\" OR email <> \"jane@chinookcorp.com\" AND \"reports_to\" != 2.0 OR postal_code != \"T2P 5M5\" OR phone <> \"+1 (403) 467-3351\" AND fax <> \"+1 (780) 428-3457\" AND \"id\" <= 1 AND title != \"General Manager\""} {"question": "What are the driver IDs that are 4 or greater, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0acfs_12.png", "TableImg_Mtg91_5.png"], "original_data_index": 1518, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs that are not 1 and are in the aircraft table, but not in the airport_aircraft table with an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9erho_5.png", "TableImg_Aziyr_4.png"], "original_data_index": 1519, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are less than or equal to 3, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F0zt3_12.png", "TableImg_Hvpd1_5.png"], "original_data_index": 1520, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are less than or equal to 10 but not present in the school bus table with IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7csk1_12.png", "TableImg_8fgn7_5.png"], "original_data_index": 1521, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the average school names, locations, minimum mascots, counties, minimum enrollments, counts of football classes, and maximum IHSAA classes for schools that either have an enrollment of at least 605 and are not school ID \"2\", or are not located in Bremen?", "answer": {"columns": ["AVG(School_name)", "Location", "MIN(Mascot)", "County", "MIN(Enrollment)", "COUNT(IHSAA_Football_Class)", "MAX(IHSAA_Class)"], "index": [0, 1], "data": [["0", "Walkerton", "Cavaliers", "71 St. Joseph", "287", "7", "AAA"], ["0", "Walkerton", "Cougars", "71 St. Joseph", "605", "3", "AAA"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_42ziy_8.png", "TableImg_Lnpfs_8.png"], "original_data_index": 1522, "original_sql": "SELECT AVG(School_name), Location, MIN(Mascot), County, MIN(Enrollment), COUNT(IHSAA_Football_Class), MAX(IHSAA_Class) FROM School WHERE School_id <> \"2\" AND \"Enrollment\" >= 605 UNION SELECT AVG(School_name), Location, MIN(Mascot), County, MIN(Enrollment), COUNT(IHSAA_Football_Class), MAX(IHSAA_Class) FROM School WHERE Location <> \"Bremen\""} {"question": "What are the driver IDs greater than 9 from the driver table, combined with the driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_56u1c_12.png", "TableImg_Reyh8_5.png"], "original_data_index": 1524, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the user IDs and the maximum names for users in the useracct table, excluding those named Mark or Rosie, and also excluding user ID 6?", "answer": {"columns": ["u_id", "MAX(name)"], "index": [0, 1], "data": [["3", "Terry"], ["3", "Terry"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_E6ahr_7.png", "TableImg_P1yoy_7.png"], "original_data_index": 1525, "original_sql": "SELECT u_id, MAX(name) FROM useracct WHERE name != \"Mark\" AND \"u_id\" != 6 UNION ALL SELECT u_id, MAX(name) FROM useracct WHERE name != \"Rosie\""} {"question": "What are the effective dates, template details, and template type codes for templates with a version number greater than 9 and a date effective from not equal to April 5, 2012, or with template details not empty, or with a date effective to not equal to May 2, 1992? Also, what are the effective dates, template details, and template type codes for templates with a template ID greater than 22 and a template type code not equal to PP?", "answer": {"columns": ["Date_Effective_To", "Date_Effective_From", "Template_Details", "Template_Type_Code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1973-01-12 14:13:34", "2008-08-01 13:57:26", "", "PP"], ["1974-09-14 06:34:39", "1999-06-21 11:10:30", "", "AD"], ["1975-07-16 04:52:10", "1993-10-07 02:33:04", "", "PPT"], ["1976-10-28 10:08:50", "1983-07-16 21:16:16", "", "BK"], ["1979-11-04 08:58:39", "1975-10-20 02:28:58", "", "AD"], ["1980-05-07 12:15:47", "2012-04-05 07:11:42", "", "CV"], ["1989-11-24 19:06:06", "2005-02-20 00:31:34", "", "PP"], ["1993-03-24 14:30:23", "1986-12-09 14:51:36", "", "CV"], ["1994-12-07 13:26:23", "1997-04-17 08:29:44", "", "BK"], ["1995-09-19 22:27:48", "1996-02-04 11:27:24", "", "BK"], ["1998-05-12 12:51:29", "1984-08-07 13:36:26", "", "PP"], ["1999-07-08 03:31:04", "2010-09-24 01:15:11", "", "PP"], ["2000-10-22 11:57:12", "1979-12-24 10:28:16", "", "BK"], ["2001-04-18 09:29:52", "2002-03-02 14:39:49", "", "BK"], ["2006-02-06 23:52:04", "1979-10-20 21:23:20", "", "PP"], ["2007-06-06 06:18:53", "2003-06-05 04:03:45", "", "PPT"], ["2008-01-05 14:19:28", "2005-11-12 07:09:48", "", "PP"], ["2008-08-08 18:36:43", "1986-11-14 12:20:18", "", "BK"], ["2015-09-06 01:08:44", "2002-08-25 13:26:23", "", "AD"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_Sbbxr_20.png", "TableImg_Fgykm_20.png"], "original_data_index": 1523, "original_sql": "SELECT Date_Effective_To, Date_Effective_From, Template_Details, Template_Type_Code FROM Templates WHERE \"Version_Number\" > 9 AND Date_Effective_From != \"2012-04-05 07:11:42\" OR Template_Details != \"\" OR Date_Effective_To <> \"1992-05-02 20:06:11\" UNION SELECT Date_Effective_To, Date_Effective_From, Template_Details, Template_Type_Code FROM Templates WHERE \"Template_ID\" > 22 AND Template_Type_Code != \"PP\""} {"question": "Which driver IDs are less than or equal to 11, excluding driver ID 3, considering only the driver IDs present in the driver table and school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_773ki_12.png", "TableImg_Ded3b_5.png"], "original_data_index": 1526, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the item IDs, ranks, and ratings from the reviews where the rank is not 5 or the item ID is not 7, and also where the rank is not 1 and the item ID is greater than 7, or the author ID is greater than 2, or the rating is less than or equal to 10?", "answer": {"columns": ["i_id", "rank", "rating"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "1", "10"], ["1", "2", "5"], ["3", "5", "5"], ["4", "3", "7"], ["5", "4", "7"], ["7", "6", "6"], ["7", "7", "10"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Ubqmf_7.png", "TableImg_Pumk6_7.png"], "original_data_index": 1527, "original_sql": "SELECT i_id, rank, rating FROM review WHERE \"rank\" <> 5 OR \"i_id\" <> 7 INTERSECT SELECT i_id, rank, rating FROM review WHERE \"rank\" != 1 AND \"i_id\" > 7 OR \"a_id\" > 2 OR \"rating\" <= 10"} {"question": "What are the aircraft IDs that are less than 4 and present in both the aircraft and airport aircraft tables, where the aircraft ID is also less than 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yhkld_5.png", "TableImg_Nomzu_4.png"], "original_data_index": 1529, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the IDs of documents that are not \"Hard Drive\" type, don't have \"x\" as other details, and aren't in \"working\" status, along with the IDs of draft copies where the copy number is 10 or less, or the document ID is not 10 and the draft number is not 1?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["10"], ["12"], ["15"], ["17"], ["20"], ["23"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Y59xv_15.png", "TableImg_O9p4h_8.png"], "original_data_index": 1528, "original_sql": "SELECT document_id FROM Documents WHERE document_type_code <> \"Hard Drive\" AND other_details <> \"x\" AND document_status_code != \"working\" UNION SELECT document_id FROM Draft_Copies WHERE \"copy_number\" <= 10 OR \"document_id\" != 10 AND \"draft_number\" != 1"} {"question": "Which driver IDs, excluding driver ID 1, are associated with drivers, and which driver IDs, excluding driver ID 3, are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_46sm9_12.png", "TableImg_Xfx8o_5.png"], "original_data_index": 1532, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the aircraft IDs that are less than or equal to 1, excluding those aircraft IDs that are greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Exunp_5.png", "TableImg_Fi5nk_4.png"], "original_data_index": 1533, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the aircraft IDs that are less than 2 in the aircraft table, combined with the aircraft IDs that are greater than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7daar_5.png", "TableImg_A6vnl_4.png"], "original_data_index": 1531, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the aircraft IDs that are both less than or equal to 4 and also greater than 2, considering only those aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7emhd_5.png", "TableImg_Nqhi5_4.png"], "original_data_index": 1530, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the driver IDs that appear in both the driver and school bus tables, where the driver ID is no more than 5 in the driver table and no more than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zx3mx_12.png", "TableImg_Mxr3u_5.png"], "original_data_index": 1537, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the Model IDs and Makers of models where the Model ID is less than 4, the model is \"mazda\", or the Maker is greater than 4, and also where the Maker is not 3?", "answer": {"columns": ["ModelId", "Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["1", "1"], ["2", "2"], ["6", "5"], ["8", "6"], ["9", "7"], ["10", "8"], ["11", "6"], ["12", "9"], ["13", "5"], ["14", "10"], ["15", "11"], ["16", "12"], ["17", "13"], ["18", "13"], ["19", "5"], ["20", "8"], ["22", "14"], ["23", "15"], ["24", "6"], ["26", "16"], ["27", "17"], ["28", "18"], ["29", "19"], ["30", "20"], ["32", "21"], ["33", "22"], ["34", "23"], ["35", "6"], ["36", "19"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_X3sf4_36.png", "TableImg_Xy5gb_36.png"], "original_data_index": 1535, "original_sql": "SELECT ModelId, Maker FROM model_list WHERE \"ModelId\" < 4 OR Model = \"mazda\" OR \"Maker\" > 4 INTERSECT SELECT ModelId, Maker FROM model_list WHERE \"Maker\" != 3"} {"question": "What are the document type codes for documents with an ID of 17 or higher, excluding those shipped by US agents, with a receipt number other than 8 and other details not equal to \"h\", and also the document type codes from document types that are not described as \"f\" or have a code other than \"Hard Drive\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2], "data": [["CD"], ["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_U8rg4_15.png", "TableImg_G7h98_3.png"], "original_data_index": 1536, "original_sql": "SELECT document_type_code FROM Documents WHERE \"document_id\" >= 17 AND shipping_agent_code != \"US\" AND receipt_number <> \"8\" AND other_details <> \"h\" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description != \"f\" OR document_type_code != \"Hard Drive\""} {"question": "What are the names, IDs, and distances of aircraft that are not an Airbus A340-300 and also not a Boeing 737-800?", "answer": {"columns": ["name", "aid", "distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Airbus A319", "14", "1805"], ["Airbus A320", "13", "2605"], ["Boeing 727", "15", "1504"], ["Boeing 747-400", "1", "8430"], ["Boeing 757-300", "10", "4010"], ["Boeing 767-400ER", "12", "6475"], ["Boeing 777-300", "11", "6441"], ["British Aerospace Jetstream 41", "4", "1502"], ["Embraer ERJ-145", "5", "1530"], ["Lockheed L1011", "9", "6900"], ["Piper Archer III", "7", "520"], ["SAAB 340", "6", "2128"], ["Schwitzer 2-33", "16", "30"], ["Tupolev 154", "8", "4103"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_4px6o_16.png", "TableImg_Lf8s8_16.png"], "original_data_index": 1534, "original_sql": "SELECT name, aid, distance FROM aircraft WHERE name != \"Airbus A340-300\" INTERSECT SELECT name, aid, distance FROM aircraft WHERE name != \"Boeing 737-800\""} {"question": "What are the driver IDs that are either greater than or equal to 2 in the driver table or not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Msw97_12.png", "TableImg_Hdwgi_5.png"], "original_data_index": 1538, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are either less than or equal to 1, or not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ubofu_5.png", "TableImg_Aisji_4.png"], "original_data_index": 1539, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, and also including aircraft IDs less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_W63qj_5.png", "TableImg_4wrpx_4.png"], "original_data_index": 1541, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the driver IDs that are equal to 5, excluding those driver IDs that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z1acs_12.png", "TableImg_Ygcu1_5.png"], "original_data_index": 1540, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are equal to 8 but not greater than 9, considering only driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J3mop_12.png", "TableImg_Vvhiw_5.png"], "original_data_index": 1542, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the aircraft IDs that are either aircraft ID 5 or airport aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_09gg6_5.png", "TableImg_Zrjv0_4.png"], "original_data_index": 1545, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What is the average name from the employee table where the age is greater than 29, and what is the average name from the shop table where the number of products is at least 10000 or the shop ID is 2?", "answer": {"columns": ["AVG(Name)"], "index": [0], "data": [["0"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_Dwf4w_10.png", "TableImg_2xeju_9.png"], "original_data_index": 1544, "original_sql": "SELECT AVG(Name) FROM employee WHERE \"Age\" > 29 INTERSECT SELECT AVG(Name) FROM shop WHERE \"Number_products\" >= 10000 OR \"Shop_ID\" = 2"} {"question": "What are the driver IDs that are either less than or equal to 5 in the driver table or less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H1v0c_12.png", "TableImg_T0p1x_5.png"], "original_data_index": 1546, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the document IDs that meet any of these conditions: the receipt date isn't \"2005-09-30 00:10:02\", the document status isn't \"working\", the receipt number isn't \"34\", the document ID is less than 10, or the shipping agent code isn't \"FE\", but are not in the list of document IDs where the mailed to address ID isn't 0 or the document ID isn't 12?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["15"], ["17"], ["25"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_0h41v_15.png", "TableImg_6jlmm_14.png"], "original_data_index": 1543, "original_sql": "SELECT document_id FROM Documents WHERE receipt_date <> \"2005-09-30 00:10:02\" AND document_status_code <> \"working\" OR receipt_number <> \"34\" OR \"document_id\" < 10 OR shipping_agent_code <> \"FE\" EXCEPT SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <> 0 OR \"document_id\" <> 12"} {"question": "What are the names of aircraft that are not Piper Archer III or have a distance not equal to 7120 and aid not equal to 7, combined with the names of employees whose employee ID is less than 248965255 or are not named Haywood Kelly?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44], "data": [["Boeing 747-400"], ["Boeing 737-800"], ["Airbus A340-300"], ["British Aerospace Jetstream 41"], ["Embraer ERJ-145"], ["SAAB 340"], ["Tupolev 154"], ["Schwitzer 2-33"], ["Lockheed L1011"], ["Boeing 757-300"], ["Boeing 777-300"], ["Boeing 767-400ER"], ["Airbus A320"], ["Airbus A319"], ["Boeing 727"], ["James Smith"], ["Mary Johnson"], ["John Williams"], ["Lisa Walker"], ["Larry West"], ["Karen Scott"], ["Lawrence Sperry"], ["Michael Miller"], ["Patricia Jones"], ["Robert Brown"], ["Angela Martinez"], ["Joseph Thompson"], ["Linda Davis"], ["Richard Jackson"], ["William Ward"], ["Chad Stewart"], ["Betty Adams"], ["George Wright"], ["Michael Miller"], ["Dorthy Lewis"], ["Barbara Wilson"], ["William Moore"], ["Elizabeth Taylor"], ["David Anderson"], ["Jennifer Thomas"], ["Donald King"], ["Mark Young"], ["Eric Cooper"], ["William Jones"], ["Milo Brooks"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Jiy9k_16.png", "TableImg_Gqbt6_31.png"], "original_data_index": 1549, "original_sql": "SELECT name FROM aircraft WHERE name != \"Piper Archer III\" OR \"distance\" != 7120 AND \"aid\" <> 7 UNION ALL SELECT name FROM employee WHERE \"eid\" < 248965255 OR name != \"Haywood Kelly\""} {"question": "How many template types are described as \"Paper\", and how many templates have an ID less than or equal to 23 and a version number less than or equal to 0, or have an effective end date of November 4, 1979?", "answer": {"columns": ["COUNT(Template_Type_Code)"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_L8nfz_5.png", "TableImg_Tcckm_20.png"], "original_data_index": 1550, "original_sql": "SELECT COUNT(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Description = \"Paper\" UNION ALL SELECT COUNT(Template_Type_Code) FROM Templates WHERE \"Template_ID\" <= 23 AND \"Version_Number\" <= 0 OR Date_Effective_To = \"1979-11-04 08:58:39\""} {"question": "What are the employee IDs of employees who don't live in Wasps, combined with the employee IDs of employees whose awards weren't in 2011 or had a bonus less than or equal to 2900 and an employee ID of 1?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["9"], ["10"], ["1"], ["10"], ["2"], ["4"], ["7"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_De5lb_10.png", "TableImg_Asyw3_6.png"], "original_data_index": 1551, "original_sql": "SELECT Employee_ID FROM employee WHERE City <> \"Wasps\" UNION SELECT Employee_ID FROM evaluation WHERE Year_awarded != \"2011\" OR \"Bonus\" <= 2900.0 AND Employee_ID = \"1\""} {"question": "What are the aircraft IDs that are 3, but not 1, based on the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U6wd8_5.png", "TableImg_Ufxzq_4.png"], "original_data_index": 1552, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the driver IDs that are both greater than or equal to 2 in the driver table and less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S49nr_12.png", "TableImg_7fj13_5.png"], "original_data_index": 1554, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the minimum other details, average receipt number, sum of document type codes, and receipt date for documents that are not \"working\" or not \"CD\", excluding those where the document status is not \"done\", or the other details are not \"y\" and the receipt date is not \"1973-11-05 21:48:53\", the shipping agent code is not \"UP\", the receipt number is not \"114\", and the document ID is at least 23?", "answer": {"columns": ["MIN(other_details)", "shipping_agent_code", "AVG(receipt_number)", "SUM(document_type_code)", "receipt_date"], "index": [0], "data": [["b", "FE", "80.5454545455", "0", "1999-04-17 14:19:32"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_7j9xd_15.png", "TableImg_W4iyl_15.png"], "original_data_index": 1553, "original_sql": "SELECT MIN(other_details), shipping_agent_code, AVG(receipt_number), SUM(document_type_code), receipt_date FROM Documents WHERE document_status_code <> \"working\" OR document_type_code <> \"CD\" EXCEPT SELECT MIN(other_details), shipping_agent_code, AVG(receipt_number), SUM(document_type_code), receipt_date FROM Documents WHERE document_status_code != \"done\" OR other_details != \"y\" AND receipt_date <> \"1973-11-05 21:48:53\" AND shipping_agent_code <> \"UP\" AND receipt_number <> \"114\" AND \"document_id\" >= 23"} {"question": "Which driver IDs are not 12 and are in the driver table but not in the school bus table, where the school bus driver IDs are 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rjmr4_12.png", "TableImg_2lxbw_5.png"], "original_data_index": 1555, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the aircraft IDs that are either less than or equal to 2 in the aircraft table or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G7jcz_5.png", "TableImg_Gpux8_4.png"], "original_data_index": 1556, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the IDs of airports that are not in Norway or are named \"National Airport\", and also the IDs of operating companies that are not incorporated in Hong Kong or are a subsidiary and don't provide catering services?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Rr4op_9.png", "TableImg_9r21t_14.png"], "original_data_index": 1557, "original_sql": "SELECT id FROM airport WHERE Country != \"Norway\" OR name = \"National Airport\" INTERSECT SELECT id FROM operate_company WHERE Incorporated_in <> \"Hong Kong\" OR Type = \"Subsidiary\" AND Principal_activities <> \"Catering services\""} {"question": "What are the driver IDs that are 6 or greater, but not driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Anys0_12.png", "TableImg_O0xdt_5.png"], "original_data_index": 1558, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the largest document IDs from the Circulation History table where the copy number is no more than 4, the employee ID is greater than 1, and the draft number is less than 17, combined with the largest document IDs where the document ID is not 2, the draft number is not 20, the employee ID is not 2, and the copy number is 15?", "answer": {"columns": ["MAX(document_id)"], "index": [0, 1], "data": [["2"], ["20"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Qf3ff_4.png", "TableImg_Rmcio_4.png"], "original_data_index": 1559, "original_sql": "SELECT MAX(document_id) FROM Circulation_History WHERE \"copy_number\" <= 4 AND \"employee_id\" > 1 AND \"draft_number\" < 17 UNION SELECT MAX(document_id) FROM Circulation_History WHERE \"document_id\" != 2 AND \"draft_number\" <> 20 AND \"employee_id\" <> 2 AND \"copy_number\" = 15"} {"question": "Which driver IDs are less than or equal to 11 but not present in the school bus table with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_946m9_12.png", "TableImg_Xmevc_5.png"], "original_data_index": 1560, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nzb8v_12.png", "TableImg_E8ue4_5.png"], "original_data_index": 1561, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are either less than or equal to 12 in the driver table or less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eckv0_12.png", "TableImg_Gx9dq_5.png"], "original_data_index": 1547, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are less than 7 from the driver table, combined with the driver IDs that are less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Igk9m_12.png", "TableImg_Slwee_5.png"], "original_data_index": 1548, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are less than or equal to 8, and which driver ID is 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ds4k5_12.png", "TableImg_M4ah2_5.png"], "original_data_index": 1564, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs that are either less than or equal to 1, or not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8d60d_5.png", "TableImg_C2qdl_4.png"], "original_data_index": 1562, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs are present in both the driver table (excluding ID 10) and the school bus table (with IDs less than 7)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bb35y_12.png", "TableImg_Cfl8p_5.png"], "original_data_index": 1565, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What driver IDs are present in both the driver table (excluding driver ID 12) and the school bus table (with driver ID 3)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3mms5_12.png", "TableImg_Heybm_5.png"], "original_data_index": 1563, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that are less than 4, excluding those that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7vk0c_12.png", "TableImg_83zcr_5.png"], "original_data_index": 1566, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 2 or greater, but are not aircraft ID 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mhfro_5.png", "TableImg_Rli5e_4.png"], "original_data_index": 1567, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the aircraft IDs that appear in both the aircraft table, with an ID greater than 1, and the airport_aircraft table, with an ID equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xyf89_5.png", "TableImg_Ungqb_4.png"], "original_data_index": 1568, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What is the sum of area codes and the corresponding phone numbers, excluding votes created on \"2018-03-09 19:03:21\", grouped by the creation date, where the vote ID is no more than 5 and the contestant number is at least 3?", "answer": {"columns": ["SUM(T1.area_code)", "phone_number"], "index": [0, 1], "data": [["8487", "7148407040"], ["22684", "6209222712"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_2ww8i_305.png", "TableImg_F2chq_4.png"], "original_data_index": 1569, "original_sql": "SELECT SUM(T1.area_code), T2.phone_number FROM AREA_CODE_STATE as T1 JOIN VOTES as T2 ON T1.state = T2.state WHERE created <> \"2018-03-09 19:03:21\" GROUP BY created HAVING vote_id <= 5 AND contestant_number >= 3"} {"question": "What are the aircraft IDs that are greater than 2 and also present in the airport aircraft table, excluding aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Obatb_5.png", "TableImg_Deavv_4.png"], "original_data_index": 1571, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the driver IDs that are either less than or equal to 2, or not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1h6oj_12.png", "TableImg_1xrj7_5.png"], "original_data_index": 1573, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are either less than or equal to 11 from the driver table or less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_751es_12.png", "TableImg_756am_5.png"], "original_data_index": 1570, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the sales in billions and people IDs for companies, grouped by assets in billions, where the assets are less than or equal to 2039.1, or the headquarters is in the USA, or profits are over 11.1 billion, or the year worked is less than 1, or the company is Wells Fargo and the industry is Banking, or the market value is 107.5 billion and sales are less than or equal to 143.7 billion?", "answer": {"columns": ["Sales_in_Billion", "People_ID"], "index": [0, 1, 2, 3, 4], "data": [["375.5", "3"], ["117.6", "1"], ["310.1", "4"], ["221.9", "7"], ["68.7", "2"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_3uc58_19.png", "TableImg_Dw7yx_5.png"], "original_data_index": 1572, "original_sql": "SELECT T1.Sales_in_Billion, T2.People_ID FROM company as T1 JOIN employment as T2 ON T1.Company_ID == T2.Company_ID GROUP BY Assets_in_Billion HAVING Assets_in_Billion <= 2039.1 OR Headquarters = \"USA\" OR Profits_in_Billion > 11.1 OR Year_working < 1 OR Name = \"Wells Fargo\" AND Industry = \"Banking\" OR Market_Value_in_Billion = 107.5 AND Sales_in_Billion <= 143.7"} {"question": "What are the descriptions of the aircraft and the corresponding airport IDs?", "answer": {"columns": ["Description", "Airport_ID"], "index": [0, 1, 2, 3], "data": [["Turboshaft utility helicopter", "1"], ["Light utility helicopter", "2"], ["Heavy-lift helicopter", "6"], ["Tandem rotor helicopter", "9"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rso8j_5.png", "TableImg_6zaft_4.png"], "original_data_index": 1575, "original_sql": "SELECT T1.Description, T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the aircraft IDs that are equal to 3 in the aircraft table but not equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N5fcy_5.png", "TableImg_9mz07_4.png"], "original_data_index": 1577, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which employee IDs are associated with George Chuter, are under 30 years old, or have an ID of 5, and also include all employee IDs from the hiring table except for employee ID 6?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["1"], ["2"], ["3"], ["4"], ["5"], ["7"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_B8n2h_10.png", "TableImg_Jd6va_7.png"], "original_data_index": 1574, "original_sql": "SELECT Employee_ID FROM employee WHERE Name = \"George Chuter\" OR \"Age\" < 30 OR \"Employee_ID\" = 5 UNION ALL SELECT Employee_ID FROM hiring WHERE \"Employee_ID\" <> 6"} {"question": "What are the driver IDs that are not 5 and are present in the driver table but not in the school bus table, where the school bus driver IDs are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_72m80_12.png", "TableImg_0cnqg_5.png"], "original_data_index": 1576, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are either 10 or less than 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V7cb8_12.png", "TableImg_8dqcp_5.png"], "original_data_index": 1580, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are equal to 6, excluding those driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_59ppy_12.png", "TableImg_1dl23_5.png"], "original_data_index": 1579, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are greater than or equal to 12 but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J7ybl_12.png", "TableImg_88fsr_5.png"], "original_data_index": 1578, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the aircraft IDs that are equal to 2 in the aircraft table, but not aircraft IDs less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_452fq_5.png", "TableImg_Nk781_4.png"], "original_data_index": 1583, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What is the sum of employee IDs from the circulation history where the copy number is at least 10, the document ID is not 10, and the draft number is 2, combined with the sum of employee IDs from the Employees table where the role code is MG, the other details are not v, or the employee name is Haley, or the employee ID is greater than 5?", "answer": {"columns": ["SUM(employee_id)"], "index": [0, 1], "data": [[""], ["18.0"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_4vh65_4.png", "TableImg_N0i08_6.png"], "original_data_index": 1582, "original_sql": "SELECT SUM(employee_id) FROM Circulation_History WHERE \"copy_number\" >= 10 AND \"document_id\" <> 10 AND \"draft_number\" = 2 UNION ALL SELECT SUM(employee_id) FROM Employees WHERE role_code = \"MG\" AND other_details != \"v\" OR employee_name = \"Haley\" OR \"employee_id\" > 5"} {"question": "What is the maximum disk loading, the count of maximum gross weights, and the minimum aircraft ID for aircraft where the disk loading is not \"15 lb/ft\u00b2 (72 kg/m\u00b2)\" or the maximum gross weight is \"1,370 lb (635 kg)\" and the aircraft ID is greater than 5, combined with the results for aircraft where the aircraft ID is less than or equal to 2, or the aircraft is a \"Robinson R-22\", or the maximum gross weight is \"73,500 lb (33,300 kg)\" and the total disk area is \"497 ft\u00b2 (46.2 m\u00b2)\"?", "answer": {"columns": ["MAX(Max_disk_Loading)", "COUNT(Max_Gross_Weight)", "MIN(Aircraft_ID)"], "index": [0, 1], "data": [["3.7 lb/ft\u00b2 (18 kg/m\u00b2)", "2", "1"], ["8.8 lb/ft\u00b2 (43 kg/m\u00b2)", "4", "1"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Cuajt_5.png", "TableImg_4ijtg_5.png"], "original_data_index": 1584, "original_sql": "SELECT MAX(Max_disk_Loading), COUNT(Max_Gross_Weight), MIN(Aircraft_ID) FROM aircraft WHERE Max_disk_Loading <> \"15 lb/ft\u00b2 (72 kg/m\u00b2)\" OR Max_Gross_Weight = \"1,370 lb (635 kg)\" AND \"Aircraft_ID\" > 5 UNION SELECT MAX(Max_disk_Loading), COUNT(Max_Gross_Weight), MIN(Aircraft_ID) FROM aircraft WHERE \"Aircraft_ID\" <= 2 OR Aircraft = \"Robinson R-22\" OR Max_Gross_Weight = \"73,500 lb (33,300 kg)\" AND Total_disk_area = \"497 ft\u00b2 (46.2 m\u00b2)\""} {"question": "What are the driver IDs that are either equal to 10 in the driver table or less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gkuw5_12.png", "TableImg_Nu28p_5.png"], "original_data_index": 1581, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the flight details, including flight number, company ID, airport ID, date, ID, velocity, and pilot, for flights that meet any of the following criteria: the date is not October 25, 1963, and the altitude is 3650.0; or the ID is less than or equal to 5 and the velocity is less than or equal to 240.0; or the flight number is M2-F1 #1 and the company ID is greater than or equal to 5; or the altitude is less than or equal to 3650.0; or the airport ID is 9; or the flight number is not M2-F1 #0 and the velocity is greater than or equal to 240.0; or the ID is 12 and the pilot is not Thompson; or the company ID is not 6; or the date is not March 30, 1964?", "answer": {"columns": ["Vehicle_Flight_number", "company_id", "airport_id", "Date", "id", "Velocity", "Pilot"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["M2-F1 #0", "2", "1", "1963-03-01 00:00:00", "1", "135", "Thompson"], ["M2-F1 #1", "3", "2", "1963-08-16 00:00:00", "2", "240", "Thompson"], ["M2-F1 #13", "4", "3", "1963-10-25 00:00:00", "4", "240", "Thompson"], ["M2-F1 #14", "5", "4", "1963-11-08 00:00:00", "5", "240", "Thompson"], ["M2-F1 #21", "6", "4", "1964-01-29 00:00:00", "6", "240", "Thompson"], ["M2-F1 #33", "11", "5", "1964-03-30 00:00:00", "7", "240", "Peterson"], ["M2-F1 #39", "13", "2", "1964-05-19 00:00:00", "8", "240", "Peterson"], ["M2-F1 #6", "4", "2", "1963-09-03 00:00:00", "3", "240", "Thompson"], ["M2-F1 #61", "11", "6", "1965-07-16 00:00:00", "9", "240", "Thompson"], ["M2-F1 #64", "1", "9", "1965-08-30 00:00:00", "10", "240", "Thompson"], ["M2-F1 #70", "5", "4", "1965-10-08 00:00:00", "11", "240", "Thompson"], ["M2-F1 #71", "7", "6", "1966-03-28 00:00:00", "12", "240", "Thompson"], ["M2-F1 #73", "9", "8", "1966-08-04 00:00:00", "13", "240", "Peterson"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_K4rmc_13.png", "TableImg_5k7c9_13.png"], "original_data_index": 1588, "original_sql": "SELECT Vehicle_Flight_number, company_id, airport_id, Date, id, Velocity, Pilot FROM flight WHERE Date <> \"October 25, 1963\" AND \"Altitude\" = 3650.0 OR \"id\" <= 5 AND \"Velocity\" <= 240.0 OR Vehicle_Flight_number = \"M2-F1 #1\" AND \"company_id\" >= 5 UNION SELECT Vehicle_Flight_number, company_id, airport_id, Date, id, Velocity, Pilot FROM flight WHERE \"Altitude\" <= 3650.0 OR \"airport_id\" = 9 OR Vehicle_Flight_number != \"M2-F1 #0\" AND \"Velocity\" >= 240.0 OR \"id\" = 12 AND Pilot <> \"Thompson\" OR \"company_id\" != 6 OR Date != \"March 30, 1964\""} {"question": "How many flights occurred on May 19, 1964 with flight number M2-F1 #33, or where the airport ID is greater than 6, or the flight ID is not 1, or the altitude is less than 3650.0, the company ID is less than 4, the velocity is not 240.0, and the pilot is not Thompson? Also, how many operate companies have an ID of 6 and a group equity shareholding of 60.0, or principal activities of Laundry, or are not incorporated in Taiwan?", "answer": {"columns": ["COUNT(id)"], "index": [0, 1], "data": [["12"], ["14"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_Tbmo7_13.png", "TableImg_59te8_14.png"], "original_data_index": 1589, "original_sql": "SELECT COUNT(id) FROM flight WHERE Date = \"May 19, 1964\" AND Vehicle_Flight_number = \"M2-F1 #33\" OR \"airport_id\" > 6 OR \"id\" != 1 OR \"Altitude\" < 3650.0 AND \"company_id\" < 4 AND \"Velocity\" <> 240.0 AND Pilot != \"Thompson\" UNION ALL SELECT COUNT(id) FROM operate_company WHERE \"id\" = 6 AND \"Group_Equity_Shareholding\" = 60.0 OR Principal_activities = \"Laundry\" OR Incorporated_in != \"Taiwan\""} {"question": "What are the driver IDs, excluding driver ID 9, and also driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y7hh3_12.png", "TableImg_J023a_5.png"], "original_data_index": 1590, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that are either 5 or 9, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["5"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H0ur8_12.png", "TableImg_V3zck_5.png"], "original_data_index": 1591, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the user IDs, article IDs, ranks, and item IDs from the reviews where the item ID is 1, combined with the user IDs, article IDs, ranks, and item IDs from the reviews where the item ID is not 1 or the rank is not 1 and the user ID is greater than 2?", "answer": {"columns": ["u_id", "a_id", "rank", "i_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "1", "1", "1"], ["1", "3", "3", "4"], ["1", "6", "5", "3"], ["2", "2", "2", "1"], ["2", "4", "7", "7"], ["2", "5", "4", "5"], ["2", "7", "6", "7"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_9pwva_7.png", "TableImg_Ogg7k_7.png"], "original_data_index": 1592, "original_sql": "SELECT u_id, a_id, rank, i_id FROM review WHERE \"i_id\" = 1 UNION SELECT u_id, a_id, rank, i_id FROM review WHERE \"i_id\" <> 1 OR \"rank\" != 1 AND \"u_id\" > 2"} {"question": "What are the aircraft IDs that are both less than or equal to 5 and present in both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lxlji_5.png", "TableImg_Dw4j7_4.png"], "original_data_index": 1593, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the driver IDs that are both less than or equal to 7 and also greater than 3, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cpe27_12.png", "TableImg_I551z_5.png"], "original_data_index": 1594, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs greater than 9, and also the driver IDs less than or equal to 7, from the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Un91d_12.png", "TableImg_Vojsv_5.png"], "original_data_index": 1595, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the pet and student IDs where the student ID is less than or equal to 1002 or the pet ID is 2003, combined with the pet and student IDs where the student ID is not 1001 or the pet ID is not 2003, from the pet ownership records?", "answer": {"columns": ["PetID", "StuID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2001", "1001"], ["2002", "1002"], ["2003", "1002"], ["2001", "1001"], ["2002", "1002"], ["2003", "1002"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Zkk6m_3.png", "TableImg_5jrka_3.png"], "original_data_index": 1596, "original_sql": "SELECT PetID, StuID FROM Has_Pet WHERE \"StuID\" <= 1002 OR \"PetID\" = 2003 UNION ALL SELECT PetID, StuID FROM Has_Pet WHERE \"StuID\" != 1001 OR \"PetID\" != 2003"} {"question": "Which contestant numbers are less than 3 and also appear in votes from New York that were not created at a specific time, where the contestant number is also less than 3?", "answer": {"columns": ["contestant_number"], "index": [0], "data": [["2"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_Ipdnr_11.png", "TableImg_O1xp8_4.png"], "original_data_index": 1597, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE \"contestant_number\" < 3 INTERSECT SELECT contestant_number FROM VOTES WHERE \"contestant_number\" < 3 AND created != \"2018-03-09 19:03:36\" AND state = \"NY\""} {"question": "What are the document IDs from the circulation history where the draft number is at least 17, or the copy number is 5 and the document ID is not 2, or the employee ID is less than or equal to 8? Also, what are the document IDs from the documents mailed table where the mailing address ID isn't 3, the document ID is 7, and the mailing date is January 14, 1982 at 5:50:54 AM? Combine both sets of document IDs.", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3], "data": [["20"], ["1"], ["2"], ["10"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Eh1ag_4.png", "TableImg_Htm96_14.png"], "original_data_index": 1598, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"draft_number\" >= 17 OR \"copy_number\" = 5 AND \"document_id\" != 2 OR \"employee_id\" <= 8 UNION ALL SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" != 3 AND \"document_id\" = 7 AND mailing_date = \"1982-01-14 05:50:54\""} {"question": "What are the aircraft IDs that are greater than or equal to 1, but not equal to 2, based on the aircraft table and excluding those found in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Oy55b_5.png", "TableImg_Oxxa1_4.png"], "original_data_index": 1585, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are greater than or equal to 3, but not found in the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xmor2_12.png", "TableImg_Tnlef_5.png"], "original_data_index": 1586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are less than or equal to 6, excluding driver ID 3, considering only those present in the driver table and not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xm47n_12.png", "TableImg_0el6i_5.png"], "original_data_index": 1587, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 1, and also the aircraft IDs that are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Buhqw_5.png", "TableImg_Zpq1g_4.png"], "original_data_index": 1599, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are not 9, and which driver IDs are 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gjpmt_12.png", "TableImg_U8yzw_5.png"], "original_data_index": 1600, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the document IDs that are mailed and have an ID of 10 or less, but are not draft copies with a draft number less than 8?", "answer": {"columns": ["document_id"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_I4y1o_14.png", "TableImg_Dmnwz_8.png"], "original_data_index": 1602, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"document_id\" <= 10 EXCEPT SELECT document_id FROM Draft_Copies WHERE \"draft_number\" < 8"} {"question": "Which driver IDs are equal to 4, or greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_62l9d_12.png", "TableImg_F69ee_5.png"], "original_data_index": 1601, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are present in both the driver table (with IDs 4 or greater) and the school bus table (with IDs greater than 9)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ibyim_12.png", "TableImg_1kd2g_5.png"], "original_data_index": 1603, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are not 8, and which driver ID is 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eh32a_12.png", "TableImg_Jr2ux_5.png"], "original_data_index": 1604, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are greater than 9, and also include driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B7ul0_12.png", "TableImg_7h5xq_5.png"], "original_data_index": 1606, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are 7 or greater, but not driver IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A38rx_12.png", "TableImg_07z9f_5.png"], "original_data_index": 1605, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are both equal to 10 in the driver table and greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ro6mu_12.png", "TableImg_896if_5.png"], "original_data_index": 1610, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are present in both the driver and school bus tables, where the driver ID is at least 8 in the driver table and at least 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zwmym_12.png", "TableImg_F26r3_5.png"], "original_data_index": 1609, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are not equal to 1, and which driver IDs are equal to 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6o30k_12.png", "TableImg_Wnyjc_5.png"], "original_data_index": 1608, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the other details and document IDs for paragraphs with IDs less than or equal to 7, and also for paragraphs that don't have document ID 16514113 and don't have paragraph ID 608931827?", "answer": {"columns": ["Other_Details", "Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["", "2394"], ["", "2394"], ["", "3"], ["", "50123"], ["", "651512"], ["", "33930"], ["", "385906526"], ["", "80"], ["", "3830"], ["", "651512"], ["", "2394"], ["", "2394"], ["", "3540024"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_M913u_15.png", "TableImg_V3nub_15.png"], "original_data_index": 1607, "original_sql": "SELECT Other_Details, Document_ID FROM Paragraphs WHERE \"Paragraph_ID\" <= 7 UNION ALL SELECT Other_Details, Document_ID FROM Paragraphs WHERE \"Document_ID\" != 16514113 AND \"Paragraph_ID\" != 608931827"} {"question": "What is the maximum gender of coaches who are not male, have Coach ID 4 and Club ID 1, or whose name is James Wong and rank is less than 4? Also, what is the maximum gender of players with Player ID greater than 13, or with votes greater than or equal to 12285, and who are not named Judy Wasylycia-Leis and are parliamentarians?", "answer": {"columns": ["MAX(Gender)"], "index": [0, 1], "data": [[""], ["M"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_Nw3pw_5.png", "TableImg_Ml9iu_14.png"], "original_data_index": 1612, "original_sql": "SELECT MAX(Gender) FROM coach WHERE Gender <> \"M\" AND \"Coach_ID\" = 4 AND \"Club_ID\" = 1 OR Coach_name = \"James Wong\" AND \"Rank\" < 4 UNION ALL SELECT MAX(Gender) FROM player WHERE \"Player_ID\" > 13 OR \"Votes\" >= 12285 AND Player_name != \"Judy Wasylycia-Leis\" AND Occupation = \"Parliamentarian\""} {"question": "Which driver IDs are not equal to 4 and are present in the driver table but not in the school bus table, where the school bus driver IDs are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kcr92_12.png", "TableImg_Alfra_5.png"], "original_data_index": 1614, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are not equal to 5 but are not present in the school bus table with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5tpdz_12.png", "TableImg_Zygkl_5.png"], "original_data_index": 1613, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, where the driver ID is greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z6u0b_12.png", "TableImg_Bv45h_5.png"], "original_data_index": 1611, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the IDs of drivers who are either 35 or younger, or not driver ID 1, and also drive a school bus for school ID 1?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I4mom_12.png", "TableImg_I36e5_5.png"], "original_data_index": 1616, "original_sql": "SELECT Driver_ID FROM driver WHERE \"Age\" <= 35 OR \"Driver_ID\" != 1 INTERSECT SELECT Driver_ID FROM school_bus WHERE \"School_ID\" = 1"} {"question": "Which driver IDs, excluding driver ID 10, are found in the driver table, and which driver IDs, starting from 3, are found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xahww_12.png", "TableImg_Spme3_5.png"], "original_data_index": 1615, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs that are both aircraft ID 3 and not aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tgxz0_5.png", "TableImg_Yhd66_4.png"], "original_data_index": 1618, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs, excluding driver 12, are present in both the driver and school bus tables, but not driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_834g5_12.png", "TableImg_Uzvw4_5.png"], "original_data_index": 1617, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft names and corresponding airport aircraft IDs?", "answer": {"columns": ["Aircraft", "ID"], "index": [0, 1, 2, 3], "data": [["CH-53E Super Stallion", "1"], ["Robinson R-22", "2"], ["Bell 206B3 JetRanger", "3"], ["CH-47D Chinook", "4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dj5x3_5.png", "TableImg_M7z76_4.png"], "original_data_index": 1621, "original_sql": "SELECT T1.Aircraft, T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the aircraft IDs, excluding aircraft ID 2, from the aircraft table, and also aircraft IDs greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pxf10_5.png", "TableImg_W38cj_4.png"], "original_data_index": 1622, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the names of branches called \"Alexandre\" and the names of members who don't have the card number \"SLB51\"?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["Alexandre"], ["Jeremy Jarmon"], ["Myron Pryor"], ["Corey Peters"], ["Ventrell Jenkins"], ["Braxton Kelley"], ["Micah Johnson"], ["Trevard Lindley"], ["David Jones"], ["Matt Lentz"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_6mswe_8.png", "TableImg_Axiav_10.png"], "original_data_index": 1620, "original_sql": "SELECT Name FROM branch WHERE Name = \"Alexandre\" UNION ALL SELECT Name FROM member WHERE Card_Number <> \"SLB51\""} {"question": "Which driver IDs are less than 10 but not present in the school bus table with driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hozn1_12.png", "TableImg_Ckzlw_5.png"], "original_data_index": 1619, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs that are less than 1, and also the aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pu7yj_5.png", "TableImg_Vgduc_4.png"], "original_data_index": 1624, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the states, excluding Illinois, from the area code data, combined with the states from the votes data where the creation time isn't \"2018-03-09 19:03:36\" or the vote ID isn't 1 and the phone number is 6209222712 or the contestant number is less than 3 or the state isn't New York?", "answer": {"columns": ["state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292], "data": [["NJ"], ["DC"], ["CT"], ["AL"], ["WA"], ["ME"], ["ID"], ["CA"], ["TX"], ["NY"], ["CA"], ["TX"], ["PA"], ["OH"], ["MN"], ["IN"], ["LA"], ["MS"], ["GA"], ["MI"], ["OH"], ["VA"], ["FL"], ["MD"], ["MI"], ["AL"], ["NC"], ["WA"], ["TX"], ["AL"], ["IN"], ["WI"], ["PA"], ["MI"], ["KY"], ["VA"], ["MI"], ["TX"], ["OH"], ["MD"], ["DE"], ["CO"], ["WV"], ["FL"], ["WY"], ["NE"], ["CA"], ["MI"], ["MO"], ["NY"], ["KS"], ["IN"], ["LA"], ["IA"], ["MN"], ["FL"], ["CA"], ["TX"], ["OH"], ["AL"], ["NC"], ["LA"], ["MA"], ["CA"], ["NY"], ["MA"], ["FL"], ["WA"], ["TX"], ["CA"], ["OH"], ["UT"], ["FL"], ["RI"], ["NE"], ["GA"], ["OK"], ["MT"], ["FL"], ["CA"], ["TX"], ["MD"], ["PA"], ["MA"], ["WI"], ["CA"], ["MO"], ["OH"], ["TN"], ["CA"], ["WA"], ["TX"], ["TX"], ["VA"], ["UT"], ["OH"], ["CA"], ["MD"], ["TX"], ["GA"], ["CT"], ["GA"], ["AR"], ["AZ"], ["PA"], ["AR"], ["KY"], ["OR"], ["LA"], ["NM"], ["MN"], ["MA"], ["WA"], ["CA"], ["TX"], ["OH"], ["IA"], ["NY"], ["MI"], ["NY"], ["AZ"], ["CA"], ["VA"], ["OR"], ["NJ"], ["MO"], ["CA"], ["FL"], ["CA"], ["WA"], ["OH"], ["PA"], ["VA"], ["MO"], ["IN"], ["NM"], ["OK"], ["NY"], ["MI"], ["MS"], ["AZ"], ["NH"], ["SD"], ["KY"], ["NY"], ["WI"], ["NJ"], ["PA"], ["MN"], ["OH"], ["TN"], ["MI"], ["MA"], ["CA"], ["KS"], ["AZ"], ["CA"], ["CA"], ["CA"], ["NY"], ["MO"], ["IA"], ["NY"], ["CA"], ["MN"], ["MO"], ["CA"], ["MS"], ["CA"], ["GA"], ["MI"], ["TX"], ["FL"], ["ND"], ["NV"], ["VA"], ["NC"], ["GA"], ["CA"], ["IA"], ["TX"], ["CA"], ["WI"], ["NY"], ["PA"], ["NY"], ["CO"], ["CO"], ["PA"], ["FL"], ["TN"], ["NJ"], ["MI"], ["TX"], ["OH"], ["CA"], ["FL"], ["VA"], ["CA"], ["GA"], ["MN"], ["CA"], ["IN"], ["MS"], ["GA"], ["FL"], ["MA"], ["NV"], ["MA"], ["KS"], ["FL"], ["UT"], ["VT"], ["SC"], ["VA"], ["CA"], ["TX"], ["HI"], ["MI"], ["IN"], ["FL"], ["PA"], ["MO"], ["TX"], ["CA"], ["NC"], ["TX"], ["CA"], ["TX"], ["PA"], ["SC"], ["NY"], ["NJ"], ["FL"], ["NJ"], ["MA"], ["CA"], ["KY"], ["CT"], ["NJ"], ["FL"], ["SC"], ["TN"], ["AR"], ["PA"], ["TN"], ["TX"], ["FL"], ["MI"], ["AK"], ["NJ"], ["CA"], ["NC"], ["GA"], ["KS"], ["NY"], ["TX"], ["CA"], ["NY"], ["OK"], ["NC"], ["WI"], ["CA"], ["FL"], ["AZ"], ["TN"], ["CA"], ["TX"], ["OH"], ["TX"], ["FL"], ["MI"], ["CA"], ["CA"], ["MN"], ["FL"], ["TX"], ["NM"], ["CT"], ["CO"], ["OR"], ["TX"], ["NJ"], ["MO"], ["MA"], ["TX"], ["NC"], ["NC"], ["LA"], ["MI"], ["NY"], ["CA"], ["NJ\n"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_6yb6x_305.png", "TableImg_Yfk46_4.png"], "original_data_index": 1623, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE state != \"IL\" AND \"area_code\" <> 563 UNION ALL SELECT state FROM VOTES WHERE created != \"2018-03-09 19:03:36\" OR \"vote_id\" <> 1 AND \"phone_number\" = 6209222712 OR \"contestant_number\" < 3 OR state != \"NY\""} {"question": "How many companies have a market value less than or equal to 213.7 billion, or are named \"Industrial and Commercial Bank of China\", or have profits not equal to 20.1 billion, or are in an industry other than \"Conglomerate\" and have assets of 1563.9 billion and an average year working less than or equal to 1, or have a people ID greater than 3, or have sales of 447.0 billion, or have headquarters not in \"China\", and for each of these conditions, what are the corresponding people IDs?", "answer": {"columns": ["COUNT(T1.Market_Value_in_Billion)", "People_ID"], "index": [0], "data": [["5", "3"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_F0a4v_19.png", "TableImg_E4xt7_5.png"], "original_data_index": 1625, "original_sql": "SELECT COUNT(T1.Market_Value_in_Billion), T2.People_ID FROM company as T1 JOIN employment as T2 ON T1.Company_ID = T2.Company_ID WHERE Market_Value_in_Billion <= 213.7 OR Name = \"Industrial and Commercial Bank of China\" OR Profits_in_Billion <> 20.1 OR Industry <> \"Conglomerate\" AND Assets_in_Billion = 1563.9 AND AVG(Year_working) <= 1 OR People_ID > 3 OR COUNT(Sales_in_Billion) = 447.0 OR Headquarters <> \"China\""} {"question": "What are the driver IDs that are either less than or equal to 12 from the driver table or greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jcgzr_12.png", "TableImg_Jd4x7_5.png"], "original_data_index": 1628, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs that are both greater than 7 in the school bus table and at least 10 in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_60myw_12.png", "TableImg_8o62s_5.png"], "original_data_index": 1629, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are greater than 9, combined with the driver IDs from school buses that are 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B18u4_12.png", "TableImg_Bfxse_5.png"], "original_data_index": 1627, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs that are greater than 2 and also appear in the school bus table with driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_70nr2_12.png", "TableImg_Dv0tx_5.png"], "original_data_index": 1626, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the IDs of employees who are not named Erling and do not have the role code PR?", "answer": {"columns": ["employee_id"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["7"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_M5pfx_6.png", "TableImg_49ipq_6.png"], "original_data_index": 1630, "original_sql": "SELECT employee_id FROM Employees WHERE employee_name <> \"Erling\" INTERSECT SELECT employee_id FROM Employees WHERE role_code <> \"PR\""} {"question": "How many employees are not named Steve Borthwick, or don't live in Bristol, or have an employee ID greater than or equal to 1? Also, how many evaluations have a bonus less than or equal to 3200, and don't belong to employee ID 1, or weren't awarded in 2016?", "answer": {"columns": ["COUNT(Employee_ID)"], "index": [0, 1], "data": [["10"], ["4"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Wyb55_10.png", "TableImg_Fsl41_6.png"], "original_data_index": 1631, "original_sql": "SELECT COUNT(Employee_ID) FROM employee WHERE Name <> \"Steve Borthwick\" OR City != \"Bristol\" OR \"Employee_ID\" >= 1 UNION ALL SELECT COUNT(Employee_ID) FROM evaluation WHERE \"Bonus\" <= 3200.0 AND Employee_ID != \"1\" OR Year_awarded != \"2016\""} {"question": "What are the aircraft IDs that are either greater than or equal to 3 in the aircraft table or less than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9c2ud_5.png", "TableImg_Iuz7f_4.png"], "original_data_index": 1633, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are greater than 2 but not equal to 9, considering only those present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rppt2_12.png", "TableImg_7hkz7_5.png"], "original_data_index": 1635, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are either greater than or equal to 4 in the aircraft table, or less than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wv9l3_5.png", "TableImg_Nyxkg_4.png"], "original_data_index": 1632, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the school IDs of schools that meet at least one of these criteria: not located in \"46 LaPorte 71 St. Joseph\", are in IHSAA Class \"AA\", or are not in IHSAA Football Class \"AAA\", or are not in \"Bourbon\", and are not named \"Glenn\", and have ID \"1\", and have enrollment not equal to 605, excluding any school IDs where the school ID is less than or equal to 3 or the endowment ID is greater than 6?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_Tteni_8.png", "TableImg_Tx6g8_11.png"], "original_data_index": 1634, "original_sql": "SELECT School_id FROM School WHERE County != \"46 LaPorte 71 St. Joseph\" OR IHSAA_Class = \"AA\" OR IHSAA_Football_Class <> \"AAA\" OR Location != \"Bourbon\" AND School_name != \"Glenn\" AND School_id = \"1\" AND \"Enrollment\" <> 605 EXCEPT SELECT School_id FROM endowment WHERE \"School_id\" <= 3 OR \"endowment_id\" > 6"} {"question": "What are the aircraft IDs that are not 4 and also have an ID of 5 or greater, considering aircraft and airport information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P8cjq_5.png", "TableImg_Mhs7h_4.png"], "original_data_index": 1639, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "How many documents don't have a description of \"y\", or have a document ID greater than 16514113, or don't have the name \"How Google people work\" and have other details as \"None\", minus the number of templates where the effective date isn't \"1979-10-20 21:23:20\", or the version number is greater than 0 and the template details aren't empty, or the effective end date isn't \"1973-01-12 14:13:34\"?", "answer": {"columns": ["COUNT(Template_ID)"], "index": [0], "data": [["11"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Jwlg6_15.png", "TableImg_Vfqyx_20.png"], "original_data_index": 1638, "original_sql": "SELECT COUNT(Template_ID) FROM Documents WHERE Document_Description != \"y\" OR \"Document_ID\" > 16514113 OR Document_Name != \"How Google people work\" AND Other_Details = \"None\" EXCEPT SELECT COUNT(Template_ID) FROM Templates WHERE Date_Effective_From <> \"1979-10-20 21:23:20\" OR \"Version_Number\" > 0 AND Template_Details <> \"\" OR Date_Effective_To != \"1973-01-12 14:13:34\""} {"question": "Which driver IDs are less than 3, and which driver ID is 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_63r7b_12.png", "TableImg_Ti8gk_5.png"], "original_data_index": 1637, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are either 1 or less than or equal to 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1gwk5_12.png", "TableImg_Gfu1z_5.png"], "original_data_index": 1636, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the IDs of albums that don't belong to artist 262, combined with the IDs of media types that aren't \"Protected AAC audio file\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_Y2i2z_347.png", "TableImg_6w2q5_5.png"], "original_data_index": 1641, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" != 262 UNION SELECT id FROM media_types WHERE name != \"Protected AAC audio file\""} {"question": "What are the lesson status codes, dates, and staff IDs for lessons where the vehicle ID is not 3, the staff ID is greater than 11, and the price is less than or equal to 277, or the lesson date is not \"2018-03-08 16:05:05\", or the lesson status is not \"Cancelled\" and the customer ID is 8? Also, what are the lesson status codes, dates, and staff IDs for lessons where the lesson date is not \"2018-03-08 16:05:05\" and the lesson ID is not 9, or the lesson status is not \"Cancelled\"?", "answer": {"columns": ["lesson_status_code", "lesson_date", "staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Cancelled", "2018-02-26 02:36:35", "5"], ["Cancelled", "2018-02-28 10:55:36", "8"], ["Cancelled", "2018-03-03 15:10:16", "11"], ["Cancelled", "2018-03-04 06:55:46", "15"], ["Cancelled", "2018-03-06 21:48:51", "8"], ["Cancelled", "2018-03-07 11:53:32", "11"], ["Cancelled", "2018-03-07 16:12:36", "14"], ["Cancelled", "2018-03-16 07:08:52", "12"], ["Completed", "2018-03-05 18:05:31", "12"], ["Completed", "2018-03-05 20:05:33", "4"], ["Completed", "2018-03-07 22:03:49", "4"], ["Completed", "2018-03-12 00:41:59", "3"], ["Completed", "2018-03-17 19:02:07", "1"], ["Completed", "2018-03-21 06:48:45", "8"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Ptdlh_15.png", "TableImg_Qzhz6_15.png"], "original_data_index": 1640, "original_sql": "SELECT lesson_status_code, lesson_date, staff_id FROM Lessons WHERE \"vehicle_id\" != 3 AND \"staff_id\" > 11 AND \"price\" <= 277.0 OR lesson_date <> \"2018-03-08 16:05:05\" OR lesson_status_code <> \"Cancelled\" AND \"customer_id\" = 8 UNION SELECT lesson_status_code, lesson_date, staff_id FROM Lessons WHERE lesson_date != \"2018-03-08 16:05:05\" AND \"lesson_id\" <> 9 OR lesson_status_code != \"Cancelled\""} {"question": "Which driver IDs are not equal to 1 but are not also driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R7oo0_12.png", "TableImg_Kpd4v_5.png"], "original_data_index": 1643, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which branch IDs and member IDs are in the membership register but not in the purchase records, where the member ID is at least 6 and the branch ID isn't 8, and also where the branch ID isn't 6 or the member ID is less than 3?", "answer": {"columns": ["Branch_ID", "Member_ID"], "index": [0, 1], "data": [["2", "7"], ["6", "6"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_S543s_8.png", "TableImg_Xbhq1_8.png"], "original_data_index": 1644, "original_sql": "SELECT Branch_ID, Member_ID FROM membership_register_branch WHERE \"Member_ID\" >= 6 AND Branch_ID != \"8\" EXCEPT SELECT Branch_ID, Member_ID FROM purchase WHERE Branch_ID != \"6\" OR \"Member_ID\" < 3"} {"question": "What are the descriptions of document types that are not \"CD\"?", "answer": {"columns": ["document_type_description"], "index": [0, 1], "data": [["f"], ["u"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Smrag_3.png", "TableImg_954ed_3.png"], "original_data_index": 1642, "original_sql": "SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code != \"CD\" INTERSECT SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code <> \"CD\""} {"question": "Give me the city code, first name, last name, sex, advisor, student ID, major, and age for students who meet at least one of the following conditions: their student ID is 1014, their age is not 18, their first name is not Mark, or their last name is not Apap. Also, give me the same information for students who meet at least one of these conditions: their major is less than or equal to 100 and their first name is not Eric and their city code is not SFO, or their sex is not M and their last name is not Simms, or their age is greater than 22, or their advisor is greater than or equal to 1148, or their student ID is greater than or equal to 1003. Only include students who satisfy both sets of conditions.", "answer": {"columns": ["city_code", "Fname", "LName", "Sex", "Advisor", "StuID", "Major", "Age"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["ATL", "Eric", "Brown", "M", "8772", "1032", "550", "20"], ["BAL", "Andy", "Schultz", "M", "1148", "1006", "600", "18"], ["BAL", "Jandy", "Nelson", "F", "9172", "1008", "600", "20"], ["BAL", "Linda", "Smith", "F", "1121", "1001", "600", "18"], ["BAL", "Stacy", "Prater", "F", "7271", "1024", "540", "18"], ["BOS", "Eric", "Epp", "M", "5718", "1034", "50", "18"], ["CHI", "Dinesh", "Kumar", "M", "8423", "1004", "600", "20"], ["DAL", "Charles", "Norris", "M", "8741", "1014", "600", "18"], ["DET", "Mark", "Schwartz", "M", "2192", "1016", "600", "17"], ["HKG", "Eric", "Pang", "M", "7134", "1026", "520", "19"], ["HKG", "Susan", "Lee", "F", "8721", "1015", "600", "16"], ["HKG", "Tracy", "Kim", "F", "7712", "1002", "600", "19"], ["HOU", "Derek", "Lee", "M", "2192", "1010", "600", "17"], ["LON", "Bruce", "Wilson", "M", "1148", "1017", "600", "27"], ["LOS", "Paul", "Brody", "M", "8723", "1027", "520", "18"], ["NAR", "William", "Simms", "M", "8772", "1033", "550", "18"], ["NYC", "David", "Shieber", "M", "8722", "1023", "520", "20"], ["NYC", "George", "Andreou", "M", "8722", "1021", "520", "19"], ["NYC", "Ian", "Thornton", "M", "7271", "1020", "520", "22"], ["PEK", "Jun", "Han", "M", "2311", "1029", "100", "17"], ["PHL", "David", "Adams", "M", "1148", "1011", "600", "22"], ["PHL", "Michael", "Woods", "M", "8722", "1022", "540", "17"], ["PHL", "Sarah", "Smith", "F", "8772", "1031", "550", "20"], ["PIT", "Lisa", "Apap", "F", "8918", "1007", "600", "18"], ["PIT", "Mark", "Goldman", "M", "7134", "1025", "520", "18"], ["PIT", "Michael", "Leighton", "M", "1121", "1018", "600", "20"], ["PIT", "Steven", "Davis", "M", "7723", "1012", "600", "20"], ["ROC", "Eric", "Rugh", "M", "2311", "1028", "550", "20"], ["SFO", "Lisa", "Cheng", "F", "2311", "1030", "550", "21"], ["WAS", "Arthur", "Pang", "M", "2192", "1019", "600", "18"], ["WAS", "Sarah", "Schmidt", "F", "5718", "1035", "50", "26"], ["WAS", "Shiela", "Jones", "F", "7792", "1003", "600", "21"], ["YYZ", "Eric", "Tai", "M", "2192", "1009", "600", "19"], ["YYZ", "Paul", "Gompers", "M", "1121", "1005", "600", "26"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_J0w65_34.png", "TableImg_Tgmhr_34.png"], "original_data_index": 1645, "original_sql": "SELECT city_code, Fname, LName, Sex, Advisor, StuID, Major, Age FROM Student WHERE \"StuID\" = 1014 OR \"Age\" <> 18 OR Fname != \"Mark\" OR LName != \"Apap\" INTERSECT SELECT city_code, Fname, LName, Sex, Advisor, StuID, Major, Age FROM Student WHERE \"Major\" <= 100 AND Fname <> \"Eric\" AND city_code != \"SFO\" OR Sex != \"M\" AND LName != \"Simms\" OR \"Age\" > 22 OR \"Advisor\" >= 1148 OR \"StuID\" >= 1003"} {"question": "Which driver IDs are less than 3, or any driver IDs from school buses that are not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6oga7_12.png", "TableImg_7jbjc_5.png"], "original_data_index": 1647, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are greater than or equal to 3 and also not equal to 9, considering only those driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0e88x_12.png", "TableImg_Esnya_5.png"], "original_data_index": 1646, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs greater than 1 from the driver table, combined with the driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5imet_12.png", "TableImg_Vhgou_5.png"], "original_data_index": 1648, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the date, total velocity, minimum airport ID, maximum company ID, pilot, total altitude, average vehicle flight number, and minimum ID for flights, excluding those where the pilot is Thompson or the vehicle flight number is not M2-F1 #6 and the airport ID is less than 9, but including flights where the pilot is not Peterson and the vehicle flight number is not M2-F1 #61 and the ID is less than 10 or the velocity is less than 240.0 and the date is not October 25, 1963 or the airport ID is not 9?", "answer": {"columns": ["Date", "SUM(Velocity)", "MIN(airport_id)", "MAX(company_id)", "Pilot", "SUM(Altitude)", "AVG(Vehicle_Flight_number)", "MIN(id)"], "index": [0], "data": [["1963-03-01 00:00:00", "2535", "1", "13", "Thompson", "36500", "0", "1"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_A03uk_13.png", "TableImg_V158j_13.png"], "original_data_index": 1649, "original_sql": "SELECT Date, SUM(Velocity), MIN(airport_id), MAX(company_id), Pilot, SUM(Altitude), AVG(Vehicle_Flight_number), MIN(id) FROM flight WHERE Pilot <> \"Thompson\" OR Vehicle_Flight_number != \"M2-F1 #6\" AND \"airport_id\" < 9 EXCEPT SELECT Date, SUM(Velocity), MIN(airport_id), MAX(company_id), Pilot, SUM(Altitude), AVG(Vehicle_Flight_number), MIN(id) FROM flight WHERE Pilot != \"Peterson\" AND Vehicle_Flight_number != \"M2-F1 #61\" AND \"id\" >= 10 OR \"Velocity\" >= 240.0 AND Date != \"October 25, 1963\" OR \"airport_id\" = 9"} {"question": "What are the aircraft IDs that are less than 5, and also the aircraft IDs less than 3, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Btoh8_5.png", "TableImg_L7k2s_4.png"], "original_data_index": 1652, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the employee IDs that received an award in a year other than 2018, but did not start working in 2011?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["10"], ["2"], ["4"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_1rlkw_6.png", "TableImg_Ej77h_7.png"], "original_data_index": 1653, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Year_awarded != \"2018\" EXCEPT SELECT Employee_ID FROM hiring WHERE Start_from != \"2011\""} {"question": "Which driver IDs, excluding driver ID 6, are in the driver table, and which driver IDs greater than 3 are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tdaob_12.png", "TableImg_Yj88w_5.png"], "original_data_index": 1650, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the email addresses, customer IDs, outstanding amounts, and dates of birth, along with the sum of cell phone numbers, for customers who meet any of the following criteria: their cell phone number is not \"1-197-686-2849x8761\" or their date of birth is not \"1998-12-15 13:24:40\" and their customer address ID is greater than 13 or their customer status is \"Good Customer\" and their outstanding amount is less than 5494.0 or their first name is not \"Estelle\" or their customer ID is less than 4; or who meet any of these other criteria: their date of becoming a customer is not \"2017-11-25 01:42:26\" and their customer status is not \"Bad Customer\" or their first name is not \"Ray\" or their email address is not \"asha.kilback@example.org\" and their phone number is not \"753.921.0871\" or their customer ID is not 12 and their customer address ID is greater than 8 and their date of birth is not \"1993-03-08 08:48:42\" and their last name is not \"Tromp\" or their outstanding amount is not 9500.0 or their cell phone number is \"861-638-9797\"?", "answer": {"columns": ["email_address", "customer_id", "amount_outstanding", "date_of_birth", "SUM(cell_mobile_phone_number)"], "index": [0, 1], "data": [["everette.goyette@example.org", "1", "255", "1998-12-15 13:24:40", "659137933.83"], ["everette.goyette@example.org", "1", "255", "1998-12-15 13:24:40", "659137933.83"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_Gfy4j_15.png", "TableImg_6fueq_15.png"], "original_data_index": 1651, "original_sql": "SELECT email_address, customer_id, amount_outstanding, date_of_birth, SUM(cell_mobile_phone_number) FROM Customers WHERE cell_mobile_phone_number <> \"1-197-686-2849x8761\" OR date_of_birth <> \"1998-12-15 13:24:40\" AND \"customer_address_id\" > 13 OR customer_status_code = \"Good Customer\" AND \"amount_outstanding\" < 5494.0 OR first_name <> \"Estelle\" OR \"customer_id\" < 4 UNION ALL SELECT email_address, customer_id, amount_outstanding, date_of_birth, SUM(cell_mobile_phone_number) FROM Customers WHERE date_became_customer <> \"2017-11-25 01:42:26\" AND customer_status_code <> \"Bad Customer\" OR first_name != \"Ray\" OR email_address <> \"asha.kilback@example.org\" AND phone_number != \"753.921.0871\" OR \"customer_id\" <> 12 AND \"customer_address_id\" > 8 AND date_of_birth != \"1993-03-08 08:48:42\" AND last_name != \"Tromp\" OR \"amount_outstanding\" <> 9500.0 OR cell_mobile_phone_number = \"861-638-9797\""} {"question": "What are the aircraft IDs that are not equal to 3, but are not present in the airport aircraft table with IDs greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xd0zf_5.png", "TableImg_Idcyp_4.png"], "original_data_index": 1655, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the driver IDs that are greater than or equal to 4, and also the driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Koktw_12.png", "TableImg_B13i8_5.png"], "original_data_index": 1657, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are not equal to 7, but are not found in the school bus table with a driver ID of 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_741r7_12.png", "TableImg_Cgint_5.png"], "original_data_index": 1654, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the positions, student IDs, and club IDs for members in club 2 who are not Vice-Presidents, and also for members whose student ID is 1001, or whose position is not President, or whose club ID is 1 or greater?", "answer": {"columns": ["Position", "StuID", "ClubID"], "index": [0, 1, 2, 3], "data": [["CTO", "1008", "2"], ["President", "1001", "1"], ["Teaching Coordinator", "1010", "1"], ["Vice-President", "1007", "4"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_Culml_4.png", "TableImg_Vz41w_4.png"], "original_data_index": 1656, "original_sql": "SELECT Position, StuID, ClubID FROM Member_of_club WHERE \"ClubID\" = 2 AND Position <> \"Vice-President\" UNION SELECT Position, StuID, ClubID FROM Member_of_club WHERE \"StuID\" = 1001 OR Position <> \"President\" OR \"ClubID\" >= 1"} {"question": "Which coach IDs are associated with James Wong, excluding those with rank 4 or ID 1, or are linked to players with player IDs less than 2 or coach ID 5 and a starting year from 2012 onwards?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["1"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_1zne7_5.png", "TableImg_U6jwd_7.png"], "original_data_index": 1660, "original_sql": "SELECT Coach_ID FROM coach WHERE \"Rank\" != 4 AND \"Coach_ID\" <> 1 AND Coach_name = \"James Wong\" OR \"Club_ID\" <> 1 UNION ALL SELECT Coach_ID FROM player_coach WHERE \"Player_ID\" < 2 OR \"Coach_ID\" = 5 AND \"Starting_year\" >= 2012"} {"question": "What are the aircraft IDs that are less than 1, and what is the aircraft ID equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_54myi_5.png", "TableImg_89jte_4.png"], "original_data_index": 1661, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the aircraft IDs that are not 5 and also have an ID greater than 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aqztr_5.png", "TableImg_80lne_4.png"], "original_data_index": 1658, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the club IDs of clubs named \"Helsingborgs IF\" or located in \"USA\", combined with the club IDs from match results where \"Gold\" is not 6, or \"Bronze\" is at least 10 and \"Big_Silver\" is no more than 9 and \"Small_Silver\" is not 16 and the club ID is not 3 and points are 102 or the rank is at least 1?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_E36f2_6.png", "TableImg_46p2l_6.png"], "original_data_index": 1659, "original_sql": "SELECT Club_ID FROM club WHERE Club_name = \"Helsingborgs IF\" OR Region = \"USA\" UNION SELECT Club_ID FROM match_result WHERE \"Gold\" <> 6 OR \"Bronze\" >= 10 AND \"Big_Silver\" <= 9 AND \"Small_Silver\" <> 16 AND \"Club_ID\" != 3 AND \"Points\" = 102 OR \"Rank\" >= 1"} {"question": "Which driver IDs are not equal to 3, but are not also driver IDs for school buses with driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L1kom_12.png", "TableImg_1zvo8_5.png"], "original_data_index": 1662, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the county IDs where the population is not 79000 or the zip code is D09 and the county ID is not 4, excluding any county IDs where the county ID is greater than 1 or the zip code is D09 and the county name is Colony?", "answer": {"columns": ["County_Id"], "index": [0], "data": [["1"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_Ml75z_5.png", "TableImg_Ohuaz_5.png"], "original_data_index": 1663, "original_sql": "SELECT County_Id FROM county WHERE \"Population\" != 79000.0 OR Zip_code = \"D09\" AND \"County_Id\" <> 4 EXCEPT SELECT County_Id FROM county WHERE \"County_Id\" > 1 OR Zip_code = \"D09\" AND County_name = \"Colony\""} {"question": "Which driver IDs are equal to 2 but not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kg96j_12.png", "TableImg_Zoyby_5.png"], "original_data_index": 1664, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are equal to 4 in the driver table but not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uu1pr_12.png", "TableImg_23fo8_5.png"], "original_data_index": 1665, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 1 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wmbii_12.png", "TableImg_Uacnz_5.png"], "original_data_index": 1666, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the populations of counties that have a population of at least 90,000, or a population greater than 21,000 and a county ID less than 5?", "answer": {"columns": ["Population"], "index": [0, 1, 2], "data": [["79000"], ["87200"], ["90000"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_Fmuzi_5.png", "TableImg_X319q_5.png"], "original_data_index": 1667, "original_sql": "SELECT Population FROM county WHERE \"Population\" >= 90000.0 UNION SELECT Population FROM county WHERE \"Population\" > 21000.0 AND \"County_Id\" < 5"} {"question": "Which driver IDs, excluding driver ID 1, are found in the driver table, and which driver IDs, excluding driver ID 10, are found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q1dy4_12.png", "TableImg_7pud4_5.png"], "original_data_index": 1671, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are both greater than or equal to 1 and less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ha403_5.png", "TableImg_Vl6xv_4.png"], "original_data_index": 1668, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 8 from the driver table and driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_08sa2_12.png", "TableImg_S3n3n_5.png"], "original_data_index": 1669, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs that are less than or equal to 5, excluding those aircraft IDs that are not equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G1fyt_5.png", "TableImg_4o39x_4.png"], "original_data_index": 1670, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the driver IDs, excluding driver 9, that are present in both the driver and school bus tables, where the school bus driver ID is 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Buz1p_12.png", "TableImg_Tu8gq_5.png"], "original_data_index": 1674, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are less than or equal to 5, but not equal to 9, considering only driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Roftp_12.png", "TableImg_U5hrm_5.png"], "original_data_index": 1675, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are less than 4, and also driver ID 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y0ty9_12.png", "TableImg_Ej3nn_5.png"], "original_data_index": 1673, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are either greater than or equal to 5 in the driver table, or are not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D85yk_12.png", "TableImg_Ggs1v_5.png"], "original_data_index": 1672, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the IDs of pets belonging to student 1002, and also the IDs of pets that are 2 years old or younger?", "answer": {"columns": ["PetID"], "index": [0, 1, 2, 3], "data": [["2002"], ["2003"], ["2002"], ["2003"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Yvwkm_3.png", "TableImg_P5oab_3.png"], "original_data_index": 1678, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"StuID\" = 1002 UNION ALL SELECT PetID FROM Pets WHERE \"pet_age\" <= 2"} {"question": "What are the driver IDs that are greater than or equal to 1 in the driver table, but not present in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L888e_12.png", "TableImg_8i46m_5.png"], "original_data_index": 1676, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are either less than or equal to 3 or not equal to 7, considering both the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6l0kp_12.png", "TableImg_47v49_5.png"], "original_data_index": 1677, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the IDs of people who graduated from Iowa and are not named David Butler, or have an ID less than or equal to 2, or are 27 or older, but exclude the IDs of people who are not ID 4 and did not graduate from Virginia, or are not named Darryl Kennedy?", "answer": {"columns": ["People_ID"], "index": [0], "data": [["4"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_9giz3_7.png", "TableImg_Y08bs_7.png"], "original_data_index": 1679, "original_sql": "SELECT People_ID FROM people WHERE Graduation_College = \"Iowa\" AND Name <> \"David Butler\" OR \"People_ID\" <= 2 OR \"Age\" >= 27 EXCEPT SELECT People_ID FROM people WHERE \"People_ID\" <> 4 AND Graduation_College <> \"Virginia\" OR Name != \"Darryl Kennedy\""} {"question": "Which driver IDs are less than 5 but not greater than or equal to 7, considering only driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8333a_12.png", "TableImg_Gkvjt_5.png"], "original_data_index": 1682, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are less than 2 but not equal to 3, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8xal2_12.png", "TableImg_4f1in_5.png"], "original_data_index": 1681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the sums of School IDs, the school names, sums of counties, IHSAA football classes, enrollments, IHSAA classes, and sums of locations for schools that either have a school ID of \"5\" and a mascot that isn't \"Lancers\", or are located in Bourbon and aren't in class \"A\", excluding schools not located in Walkerton?", "answer": {"columns": ["SUM(School_id)", "School_name", "SUM(County)", "IHSAA_Football_Class", "Enrollment", "IHSAA_Class", "SUM(Location)"], "index": [0], "data": [["5", "Knox Community", "75", "AAA", "620", "AAA", "0"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Agb05_8.png", "TableImg_Hhn7e_8.png"], "original_data_index": 1680, "original_sql": "SELECT SUM(School_id), School_name, SUM(County), IHSAA_Football_Class, Enrollment, IHSAA_Class, SUM(Location) FROM School WHERE Mascot <> \"Lancers\" AND School_id = \"5\" OR IHSAA_Class <> \"A\" AND Location = \"Bourbon\" EXCEPT SELECT SUM(School_id), School_name, SUM(County), IHSAA_Football_Class, Enrollment, IHSAA_Class, SUM(Location) FROM School WHERE Location <> \"Walkerton\""} {"question": "What are the employee IDs of employees who don't live in Bristol, combined with the employee IDs of those who weren't awarded in 2016?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["1"], ["2"], ["4"], ["7"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_1ta4a_10.png", "TableImg_0stse_6.png"], "original_data_index": 1683, "original_sql": "SELECT Employee_ID FROM employee WHERE City != \"Bristol\" UNION ALL SELECT Employee_ID FROM evaluation WHERE Year_awarded != \"2016\""} {"question": "What are the driver IDs that are 7 or greater, excluding those driver IDs that are greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xt3ah_12.png", "TableImg_Rw8zc_5.png"], "original_data_index": 1684, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are greater than or equal to 2, excluding those driver IDs that are not equal to 3, considering only the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_562l7_12.png", "TableImg_Agoj6_5.png"], "original_data_index": 1685, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the highest Club ID from clubs outside of France, combined with the highest Club ID from match results where certain silver, gold, bronze, points, rank, or club ID conditions are met?", "answer": {"columns": ["MAX(Club_ID)"], "index": [0, 1], "data": [["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_Lyzmy_6.png", "TableImg_Vojjw_6.png"], "original_data_index": 1686, "original_sql": "SELECT MAX(Club_ID) FROM club WHERE Region != \"France\" UNION SELECT MAX(Club_ID) FROM match_result WHERE \"Big_Silver\" > 7 OR \"Small_Silver\" <> 6 AND \"Gold\" < 12 OR \"Bronze\" < 8 AND \"Points\" >= 66 OR \"Rank\" > 6 OR \"Club_ID\" >= 3"} {"question": "What are the driver IDs, excluding driver ID 11, that are present in both the driver and school bus tables, where the school bus driver ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1be7o_12.png", "TableImg_Edowb_5.png"], "original_data_index": 1687, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and present in the airport_aircraft table with IDs less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lf9wz_5.png", "TableImg_2xww0_4.png"], "original_data_index": 1690, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are all the template type codes that are not \"PPT\" or have a description other than \"CV\", combined with the template type codes from templates where the effective dates are not the specified dates?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], "data": [["PPT"], ["CV"], ["AD"], ["PP"], ["BK"], ["PP"], ["PP"], ["BK"], ["PPT"], ["PPT"], ["BK"], ["BK"], ["PPT"], ["BK"], ["AD"], ["CV"], ["CV"], ["PP"], ["AD"], ["BK"], ["AD"], ["PP"], ["BK"], ["PP"], ["PP"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_3i34o_5.png", "TableImg_6iafq_20.png"], "original_data_index": 1688, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != \"PPT\" OR Template_Type_Description != \"CV\" UNION ALL SELECT Template_Type_Code FROM Templates WHERE Date_Effective_To <> \"1975-07-16 04:52:10\" OR Date_Effective_From != \"1996-02-04 11:27:24\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4dop5_12.png", "TableImg_8l03c_5.png"], "original_data_index": 1689, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What is the maximum driver ID and years working for drivers, considering drivers not from Manchester, or with school ID 1, or older than 46 and with more than 8 years of experience, or belonging to the Dem party named Douglas McCrory, or full-time drivers? Group the results by home city, excluding those from Bethel, with more than 6 years of experience, and a count of ages not equal to 36, or not belonging to the Dem party, or not full-time, or named Tim Larson with a school ID greater than or equal to 1?", "answer": {"columns": ["MAX(T1.Driver_ID)", "Years_Working"], "index": [0, 1], "data": [["10", "10"], ["7", "8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fisc9_12.png", "TableImg_Bctxr_5.png"], "original_data_index": 1691, "original_sql": "SELECT MAX(T1.Driver_ID), T2.Years_Working FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city <> \"Manchester\" OR \"School_ID\" = 1 OR \"Age\" > 46 AND \"Years_Working\" > 8 OR Party = \"Dem\" AND Name = \"Douglas McCrory\" OR If_full_time = \"T\" GROUP BY Home_city HAVING Home_city <> \"Bethel\" AND Years_Working > 6 AND COUNT(Age) <> 36 OR Party <> \"Dem\" OR If_full_time <> \"T\" OR Name = \"Tim Larson\" AND School_ID >= 1"} {"question": "What are the club IDs that are either from clubs with an ID of 2 or higher or have a description other than \"Venture capital fund for student business.\", combined with the club IDs from members of clubs with an ID greater than 4 or a position that is not \"CTO\"?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["1"], ["4"], ["1"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_E71bk_4.png", "TableImg_Ywvkh_4.png"], "original_data_index": 1692, "original_sql": "SELECT ClubID FROM Club WHERE \"ClubID\" >= 2 OR ClubDesc <> \"Venture capital fund for student business.\" UNION ALL SELECT ClubID FROM Member_of_club WHERE \"ClubID\" > 4 OR Position <> \"CTO\""} {"question": "What are the IDs of drivers, excluding driver ID 2, and the IDs of school bus drivers, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jhz7l_12.png", "TableImg_5egen_5.png"], "original_data_index": 1694, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the player IDs and starting years for players where the starting year is after 2013 or the coach ID is less than 3 and the player ID is less than 6, and also for players where the player ID is greater than 3 and the starting year is after 2012 or the coach ID is not 1?", "answer": {"columns": ["Player_ID", "Starting_year"], "index": [0], "data": [["4", "2013"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_Mrrdf_7.png", "TableImg_Ubbox_7.png"], "original_data_index": 1693, "original_sql": "SELECT Player_ID, Starting_year FROM player_coach WHERE \"Starting_year\" > 2013 OR \"Coach_ID\" < 3 AND \"Player_ID\" < 6 INTERSECT SELECT Player_ID, Starting_year FROM player_coach WHERE \"Player_ID\" > 3 AND \"Starting_year\" > 2012 OR \"Coach_ID\" <> 1"} {"question": "Which driver IDs are present in both the driver and school bus tables, where the driver ID is greater than 1 in the driver table and greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1kyja_12.png", "TableImg_8103j_5.png"], "original_data_index": 1698, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are greater than 9 but not present in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0frqe_12.png", "TableImg_G86ny_5.png"], "original_data_index": 1695, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the sum of employee IDs and the bonus, excluding employees where the maximum age is not 28?", "answer": {"columns": ["SUM(T1.Employee_ID)", "Bonus"], "index": [0], "data": [["25", "3000"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_29l29_10.png", "TableImg_Xezhd_6.png"], "original_data_index": 1696, "original_sql": "SELECT SUM(T1.Employee_ID), T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE MAX(Age) <> 28"} {"question": "What are the driver IDs that are either less than or equal to 10 from the driver table, or not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q6hiv_12.png", "TableImg_Y1m0b_5.png"], "original_data_index": 1697, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are less than 5 and also appear in the airport aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bb9aw_5.png", "TableImg_3kjpx_4.png"], "original_data_index": 1699, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the item IDs of items with ID 3, and also the item IDs of reviews with a rating greater than 7 or a user ID greater than 2?", "answer": {"columns": ["i_id"], "index": [0, 1, 2], "data": [["3"], ["1"], ["7"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_S2gsj_8.png", "TableImg_Hv9c3_7.png"], "original_data_index": 1700, "original_sql": "SELECT i_id FROM item WHERE \"i_id\" = 3 UNION ALL SELECT i_id FROM review WHERE \"rating\" > 7 OR \"u_id\" > 2"} {"question": "What are the driver IDs that are either less than or equal to 9 in the driver table or greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ii82s_12.png", "TableImg_6e6ds_5.png"], "original_data_index": 1701, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 5, and also the aircraft IDs that are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tk3k9_5.png", "TableImg_Aoijk_4.png"], "original_data_index": 1705, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the aircraft IDs that are equal to 4, but not equal to 5, considering only aircraft IDs from the aircraft table and excluding those from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1r2nx_5.png", "TableImg_B61bz_4.png"], "original_data_index": 1702, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the aircraft IDs greater than 2, and also any aircraft IDs that are not 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Woft9_5.png", "TableImg_9beo2_4.png"], "original_data_index": 1703, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the driver IDs greater than 12 from the driver table, combined with the driver IDs less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z0pn1_12.png", "TableImg_Kn1zd_5.png"], "original_data_index": 1704, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are either less than or equal to 10 from the driver table, or greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1no7t_12.png", "TableImg_So7zu_5.png"], "original_data_index": 1707, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 1 from the driver table and driver IDs 10 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Utru4_12.png", "TableImg_Y5gew_5.png"], "original_data_index": 1708, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the sum of advisors, the count of first names, the age, major, last name, and the sum of student IDs for students named Jones where the advisor value is greater than 7792, the first name is not Lisa, and the age is 20 or older, or the sex is not male, or the student ID is less than 1029, excluding those students named Mark where the city code is not PIT, the advisor is 7723, and the age is 19, or the student ID is less than 1025, or the sex is female?", "answer": {"columns": ["SUM(Advisor)", "COUNT(Fname)", "Age", "Major", "LName", "SUM(StuID)"], "index": [0], "data": [["165588", "30", "18", "600", "Smith", "30489"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Nq2d0_34.png", "TableImg_5g278_34.png"], "original_data_index": 1706, "original_sql": "SELECT SUM(Advisor), COUNT(Fname), Age, Major, LName, SUM(StuID) FROM Student WHERE LName = \"Jones\" AND \"Advisor\" > 7792 AND Fname <> \"Lisa\" AND \"Age\" >= 20 OR Sex != \"M\" OR \"StuID\" < 1029 EXCEPT SELECT SUM(Advisor), COUNT(Fname), Age, Major, LName, SUM(StuID) FROM Student WHERE Fname = \"Mark\" AND city_code != \"PIT\" AND \"Advisor\" = 7723 AND \"Age\" = 19 OR \"StuID\" < 1025 OR Sex = \"F\""} {"question": "What are the driver IDs that are greater than or equal to 7, and also the driver IDs from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iqjf0_12.png", "TableImg_B9g7d_5.png"], "original_data_index": 1709, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are greater than 10 but not found in the school bus table with IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Itzwd_12.png", "TableImg_3b85u_5.png"], "original_data_index": 1711, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are either 5 or not 7, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wbc8g_12.png", "TableImg_U47zw_5.png"], "original_data_index": 1712, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the book IDs, titles, and issues for books written by Elaine Lee or those with issues not equal to 1.0, and also for books with a book ID less than or equal to 9, a title that isn't \"BrainBanx\", a writer other than Howard Chaykin, and more than 6 issues?", "answer": {"columns": ["Book_ID", "Title", "Issues"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1", "The Black Lamb", "6"], ["2", "Bloody Mary", "4"], ["3", "Bloody Mary : Lady Liberty", "4"], ["4", "BrainBanx", "6"], ["5", "Cyberella", "12"], ["6", "Dead Corps", "4"], ["8", "Gemini Blood", "9"], ["9", "Michael Moorcock's Multiverse", "12"], ["10", "Sheva's War", "5"], ["8", "Gemini Blood", "9"], ["9", "Michael Moorcock's Multiverse", "12"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_Hjs90_10.png", "TableImg_N1qs8_10.png"], "original_data_index": 1710, "original_sql": "SELECT Book_ID, Title, Issues FROM book WHERE Writer = \"Elaine Lee\" OR \"Issues\" != 1.0 UNION ALL SELECT Book_ID, Title, Issues FROM book WHERE \"Book_ID\" <= 9 AND Title <> \"BrainBanx\" AND Writer <> \"Howard Chaykin\" AND \"Issues\" > 6.0"} {"question": "What are the driver IDs that are not 6 and are also driver IDs of school buses with ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R9diy_12.png", "TableImg_A808c_5.png"], "original_data_index": 1713, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are either 11 or not 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4x479_12.png", "TableImg_I543p_5.png"], "original_data_index": 1714, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 2 from the driver table and driver IDs less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J5mtw_12.png", "TableImg_C1abx_5.png"], "original_data_index": 1715, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs that are less than 7, and also the driver IDs from school buses that are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T3fn9_12.png", "TableImg_B4rgl_5.png"], "original_data_index": 1716, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the details for properties that meet a complex set of criteria, including specific dates, feature values, prices, and property types, and also share the same details as properties where 'apt_feature_2' is not 'eos'?", "answer": {"columns": ["date_sold", "fld_feature_1", "buyer_offered_price", "property_type_code", "oth_feature_2", "property_id", "other_property_details", "fld_feature_3", "shp_feature_2", "property_address", "hse_feature_2", "vendor_requested_price", "shp_feature_3", "oth_feature_1", "apt_feature_1", "apt_feature_2", "agreed_selling_price", "shp_feature_1", "date_on_market", "room_count", "property_name", "apt_feature_3", "oth_feature_3", "hse_feature_3", "hse_feature_1", "fld_feature_2"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1971-04-14 03:23:49", "", "3520911.5258", "Apartment", "", "9", "", "", "", "107 Roob Courts\nErdmanburgh, IA 42926-0873", "", "2219.6778", "", "", "enim", "sit", "3344706.5755", "", "1978-05-15 10:53:37", "5", "longacre", "", "", "", "", ""], ["1973-02-24 02:56:06", "", "0.0", "Other", "", "13", "", "", "", "60845 Else Highway Apt. 826\nSouth Dougfort, CO 43200-4258", "", "2198735.095", "", "", "fuga", "aut", "44132.4621", "", "2000-08-07 06:59:14", "2", "chelsea", "", "", "", "", ""], ["1979-05-13 16:58:06", "", "1.6800000000000002", "House", "", "1", "", "", "", "4745 Emerson Stravenue Suite 829\nSouth Garret, IN 16772-5682", "", "372652.2909", "", "", "aut", "suscipit", "4201.8", "", "1991-06-21 23:52:10", "7", "park", "", "", "", "", ""], ["1980-07-08 16:13:17", "", "2.0", "Apartment", "", "12", "", "", "", "743 Ephraim Greens\nAnniemouth, HI 47084-3853", "", "305.0", "", "", "qui", "autem", "456840888.16", "", "2016-05-24 09:57:45", "5", "ten tower", "", "", "", "", ""], ["1981-06-26 21:28:28", "", "11375259.502", "Other", "", "3", "", "", "", "062 Micaela Court Apt. 707\nMargretville, WV 51628-3617", "", "1337.0", "", "", "ut", "et", "5.0", "", "1986-11-26 04:12:18", "8", "prism", "", "", "", "", ""], ["1984-02-01 19:54:54", "", "27537286.0", "Apartment", "", "15", "", "", "", "986 Hagenes Drives\nDraketon, UT 83411-3393", "", "331.0", "", "", "aut", "iusto", "2574.0", "", "1993-08-04 10:49:04", "3", "parc coliseum", "", "", "", "", ""], ["1990-11-14 19:16:38", "", "8.7122", "House", "", "2", "", "", "", "098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537", "", "661536468.4429", "", "", "est", "est", "21769471.8328", "", "1990-05-25 23:01:51", "1", "the cole", "", "", "", "", ""], ["1995-01-31 11:18:42", "", "0.0", "Shop", "", "6", "", "", "", "6837 Darien Views Apt. 475\nSouth Maraview, KS 77770", "", "2573.0", "", "", "sed", "culpa", "476919.3", "", "1994-02-14 02:27:13", "9", "high line", "", "", "", "", ""], ["1997-01-07 19:52:45", "", "1.5509", "Apartment", "", "10", "", "", "", "084 Lakin Vista Apt. 394\nFishertown, MA 16876", "", "77172926.3", "", "", "consequatur", "vero", "244353758.1824", "", "2003-12-25 16:13:19", "9", "renoir", "", "", "", "", ""], ["1997-11-07 20:22:05", "", "13991131.434", "Other", "", "11", "", "", "", "2088 Bashirian Fork Suite 337\nFaustinoport, MT 16771-9320", "", "6713620.9", "", "", "et", "est", "170766.472", "", "1981-08-23 05:40:38", "2", "murray hill", "", "", "", "", ""], ["1998-09-15 05:26:22", "", "296733.0", "Shop", "", "7", "", "", "", "092 Paucek Highway Apt. 772\nEast Erika, IA 61358", "", "150045.7568", "", "", "quos", "est", "2794972.2495", "", "1996-09-16 22:04:27", "8", "avalon", "", "", "", "", ""], ["2001-11-09 04:37:33", "", "0.0", "Apartment", "", "8", "", "", "", "24365 Ulices Run\nHomenicktown, MD 88485-6198", "", "13.4715", "", "", "fuga", "odio", "0.0", "", "1976-06-10 20:25:38", "9", "vogue", "", "", "", "", ""], ["2003-02-27 18:17:11", "", "15.17", "Field", "", "4", "", "", "", "49578 Ayden Mountains\nNew Russellhaven, UT 46626", "", "192374065.8", "", "", "nesciunt", "adipisci", "4514.807", "", "2017-09-14 15:49:23", "6", "riverside", "", "", "", "", ""], ["2012-08-19 07:36:57", "", "10.1067", "Apartment", "", "5", "", "", "", "2765 Schulist Stream\nLindmouth, UT 03391-3817", "", "983.8596", "", "", "quo", "sequi", "1.0012", "", "2016-05-06 16:53:39", "5", "parc east", "", "", "", "", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Fke2a_15.png", "TableImg_20l7w_15.png"], "original_data_index": 1717, "original_sql": "SELECT date_sold, fld_feature_1, buyer_offered_price, property_type_code, oth_feature_2, property_id, other_property_details, fld_feature_3, shp_feature_2, property_address, hse_feature_2, vendor_requested_price, shp_feature_3, oth_feature_1, apt_feature_1, apt_feature_2, agreed_selling_price, shp_feature_1, date_on_market, room_count, property_name, apt_feature_3, oth_feature_3, hse_feature_3, hse_feature_1, fld_feature_2 FROM Properties WHERE date_sold != \"1973-02-24 02:56:06\" AND oth_feature_3 <> \"None\" OR shp_feature_2 != \"None\" OR hse_feature_1 != \"None\" OR date_on_market = \"2016-05-24 09:57:45\" OR apt_feature_1 != \"enim\" AND hse_feature_3 <> \"None\" OR \"vendor_requested_price\" != 983.8596 AND shp_feature_3 <> \"None\" AND property_name <> \"longacre\" AND apt_feature_2 <> \"et\" OR other_property_details != \"None\" OR oth_feature_1 != \"None\" AND apt_feature_3 <> \"None\" AND fld_feature_2 = \"None\" OR \"room_count\" <> 2 OR \"buyer_offered_price\" = 8.7122 AND hse_feature_2 != \"None\" OR property_address <> \"6837 Darien Views Apt. 475 South Maraview, KS 77770\" AND fld_feature_1 = \"None\" OR shp_feature_1 = \"None\" AND \"property_id\" = 8 OR \"agreed_selling_price\" <= 4514.807 OR property_type_code != \"Apartment\" OR oth_feature_2 <> \"None\" OR fld_feature_3 != \"None\" INTERSECT SELECT date_sold, fld_feature_1, buyer_offered_price, property_type_code, oth_feature_2, property_id, other_property_details, fld_feature_3, shp_feature_2, property_address, hse_feature_2, vendor_requested_price, shp_feature_3, oth_feature_1, apt_feature_1, apt_feature_2, agreed_selling_price, shp_feature_1, date_on_market, room_count, property_name, apt_feature_3, oth_feature_3, hse_feature_3, hse_feature_1, fld_feature_2 FROM Properties WHERE apt_feature_2 != \"eos\""} {"question": "What are the IDs of drivers who are in both the driver table (with driver IDs greater than 4) and the school bus table (with driver IDs not equal to 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Im8r6_12.png", "TableImg_8u0eb_5.png"], "original_data_index": 1719, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the store IDs of stores that have more than 793 product categories and are not ranked 3, along with the store IDs from the store_product table where the product ID is 2 or greater, or the store ID is 1?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["3"], ["4"], ["1"], ["1"], ["1"], ["1"], ["1"], ["3"], ["2"], ["3"], ["2"], ["5"], ["5"], ["5"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_2bzem_5.png", "TableImg_Yg7u0_15.png"], "original_data_index": 1721, "original_sql": "SELECT Store_ID FROM store WHERE \"Number_of_product_category\" > 793.0 AND \"Ranking\" <> 3 UNION ALL SELECT Store_ID FROM store_product WHERE \"Product_ID\" >= 2 OR \"Store_ID\" = 1"} {"question": "What are the aircraft IDs greater than 5, combined with aircraft IDs from airport-aircraft that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1dgh0_5.png", "TableImg_Drlbj_4.png"], "original_data_index": 1723, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the other details and descriptions for documents named \"A history of Arts\" that are not described as \"b\" and have an ID less than 3830, combined with the other details and descriptions for documents with an ID greater than 50123 or described as \"b\" and have a template ID greater or equal to 25?", "answer": {"columns": ["Other_Details", "Document_Description"], "index": [0, 1, 2, 3, 4], "data": [["", "b"], ["", "f"], ["", "h"], ["", "w"], ["", "y"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Dzx1y_15.png", "TableImg_B1kp9_15.png"], "original_data_index": 1722, "original_sql": "SELECT Other_Details, Document_Description FROM Documents WHERE Document_Name = \"A history of Arts\" AND Document_Description != \"b\" AND \"Document_ID\" < 3830 UNION SELECT Other_Details, Document_Description FROM Documents WHERE \"Document_ID\" > 50123 OR Document_Description = \"b\" AND \"Template_ID\" >= 25"} {"question": "Which driver IDs are greater than or equal to 9, but not found in the school bus table with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jusgb_12.png", "TableImg_0y2q5_5.png"], "original_data_index": 1724, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are not equal to 9, but are not driver IDs from school buses with driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fu4hm_12.png", "TableImg_Kgbek_5.png"], "original_data_index": 1718, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs, excluding driver ID 7, and also the driver IDs from school buses that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Injp6_12.png", "TableImg_4jdoz_5.png"], "original_data_index": 1725, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are either less than or equal to 9 in the driver table or less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qd567_12.png", "TableImg_61r4g_5.png"], "original_data_index": 1720, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are not equal to 10 and are in the driver table but not in the school bus table, where the school bus driver IDs are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4gnko_12.png", "TableImg_X73sz_5.png"], "original_data_index": 1726, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What is the highest shop ID for shops that are not full-time or didn't start in 2003, combined with the highest shop ID for shops not managed by Job Dragtsma?", "answer": {"columns": ["MAX(Shop_ID)"], "index": [0, 1], "data": [["8"], ["9"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_0ccf4_7.png", "TableImg_Pr0mp_9.png"], "original_data_index": 1727, "original_sql": "SELECT MAX(Shop_ID) FROM hiring WHERE Is_full_time = \"F\" OR Start_from != \"2003\" UNION SELECT MAX(Shop_ID) FROM shop WHERE Manager_name != \"Job Dragtsma\""} {"question": "What are the driver IDs that are either 3 or greater than 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0g7os_12.png", "TableImg_0wtu7_5.png"], "original_data_index": 1728, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs greater than 3 that are not in the list of aircraft IDs that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ztbad_5.png", "TableImg_69x5h_4.png"], "original_data_index": 1729, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, from the aircraft table, and also aircraft IDs greater than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gz21q_5.png", "TableImg_Owlwa_4.png"], "original_data_index": 1730, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What is the sum of enrollments and the budget invested percentage for schools where the budget invested percentage is 122.5 or the total budget percentage budgeted is greater than 2.0?", "answer": {"columns": ["SUM(T1.Enrollment)", "Budget_invested_percent"], "index": [0], "data": [["", ""]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_9qfqi_8.png", "TableImg_8m6bf_8.png"], "original_data_index": 1732, "original_sql": "SELECT SUM(T1.Enrollment), T2.Budget_invested_percent FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE Budget_invested_percent = \"122.5\" OR total_budget_percent_budgeted > 2.0"} {"question": "What are the maximum ranks and club IDs from the coach table where the gender is not male, or the coach's name is Robert Chen, and the rank is greater than 2, or the coach ID is greater than or equal to 2, but not including the maximum ranks and club IDs from the match result table where small silver is less than 9, or bronze is not 8, and big silver is not 6, or points are less than 102, or rank is greater than 3, or club ID is less than 6 and gold is less than 6?", "answer": {"columns": ["MAX(Rank)", "Club_ID"], "index": [0], "data": [["5", "1"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Agyqx_5.png", "TableImg_Lc9ex_6.png"], "original_data_index": 1731, "original_sql": "SELECT MAX(Rank), Club_ID FROM coach WHERE Gender != \"M\" OR Coach_name = \"Robert Chen\" AND \"Rank\" > 2 OR \"Coach_ID\" >= 2 EXCEPT SELECT MAX(Rank), Club_ID FROM match_result WHERE \"Small_Silver\" < 9 OR \"Bronze\" != 8 AND \"Big_Silver\" != 6 OR \"Points\" < 102 OR \"Rank\" > 3 OR \"Club_ID\" < 6 AND \"Gold\" < 6"} {"question": "What are the IDs of drivers who are either not driver ID 3 in the school bus table or have a driver ID greater than 1 in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bqh4n_12.png", "TableImg_Ojjbq_5.png"], "original_data_index": 1733, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the names and user IDs of users where the user ID is less than 6 and the name isn't Helen, combined with the names and user IDs of all users except those with a user ID of 6?", "answer": {"columns": ["name", "u_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["Emily", "7"], ["Helen", "1"], ["Mark", "2"], ["Nancy", "4"], ["Rosie", "5"], ["Terry", "3"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_Pizfm_7.png", "TableImg_Ob9kq_7.png"], "original_data_index": 1734, "original_sql": "SELECT name, u_id FROM useracct WHERE \"u_id\" < 6 AND name != \"Helen\" UNION SELECT name, u_id FROM useracct WHERE \"u_id\" != 6"} {"question": "Which driver IDs are not equal to 7 but are not present in the school bus table with driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H1eon_12.png", "TableImg_Gzibd_5.png"], "original_data_index": 1735, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs that are both less than or equal to 10 and also equal to 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C04j9_12.png", "TableImg_Uklt9_5.png"], "original_data_index": 1736, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which store IDs meet either of the following conditions: their area size is less than or equal to 179.84, their ranking is at least 1, their ID is not 3, their type is not \"City Mall\", and their name is not \"Blackville\"; or their store ID is greater than or equal to 2 in the store_district table?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_9atwk_5.png", "TableImg_3xi4d_5.png"], "original_data_index": 1737, "original_sql": "SELECT Store_ID FROM store WHERE \"Area_size\" <= 179.84 OR \"Ranking\" >= 1 AND \"Store_ID\" <> 3 AND Type <> \"City Mall\" AND Store_Name != \"Blackville\" UNION ALL SELECT Store_ID FROM store_district WHERE \"Store_ID\" >= 2"} {"question": "What are the document IDs from the draft documents that don't have \"p\" as draft details, combined with the document IDs from the documents that don't have \"q\" as other details, and also don't have a receipt number of \"55\" and aren't of document type \"CD\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["1"], ["1"], ["2"], ["2"], ["4"], ["7"], ["10"], ["12"], ["12"], ["13"], ["14"], ["17"], ["20"], ["23"], ["2"], ["3"], ["10"], ["12"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Ik4hx_15.png", "TableImg_Va210_15.png"], "original_data_index": 1738, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details <> \"p\" UNION ALL SELECT document_id FROM Documents WHERE other_details <> \"q\" AND receipt_number != \"55\" AND document_type_code != \"CD\""} {"question": "How many aircraft are associated with each airport?", "answer": {"columns": ["COUNT(T1.Aircraft_ID)", "ID"], "index": [0], "data": [["4", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qfimu_5.png", "TableImg_Septr_4.png"], "original_data_index": 1739, "original_sql": "SELECT COUNT(T1.Aircraft_ID), T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the driver IDs less than 4 that are in the driver table but not in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vjsc6_12.png", "TableImg_J3rkq_5.png"], "original_data_index": 1742, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are greater than 3 and also greater than or equal to 9, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_20pq1_12.png", "TableImg_Ii2zm_5.png"], "original_data_index": 1740, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs greater than 3 that are not present in the airport_aircraft table with aircraft IDs greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T3xth_5.png", "TableImg_1p01o_4.png"], "original_data_index": 1741, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which driver IDs are either less than or equal to 4, or greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sb3hd_12.png", "TableImg_B3nk2_5.png"], "original_data_index": 1745, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What is the maximum branch ID and the level for branches on Glebe Street that weren't opened in 2009?", "answer": {"columns": ["MAX(T1.Branch_ID)", "Level"], "index": [0], "data": [["", ""]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_Tii8a_8.png", "TableImg_2r9c7_10.png"], "original_data_index": 1743, "original_sql": "SELECT MAX(T1.Branch_ID), T2.Level FROM branch as T1 JOIN member as T2 ON T1.Name = T2.Name WHERE Open_year <> \"2009\" AND Address_road = \"Glebe Street\""} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs less than 9, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A51oi_12.png", "TableImg_Av618_5.png"], "original_data_index": 1746, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What is the sum of the 'Creation' values from the 'department' table where 'Creation' is '1977' or 'Ranking' is not 10, combined with the sum of 'Creation' where 'Name' is 'Labor' or 'Ranking' is 3 or 'Creation' is not '2002' and 'Budget_in_Billions' is 6.2 and 'Department_ID' is less than or equal to 11 or 'Num_Employees' is less than or equal to 10600?", "answer": {"columns": ["SUM(Creation)"], "index": [0, 1], "data": [["9707"], ["26815"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Qpump_15.png", "TableImg_Crlfc_15.png"], "original_data_index": 1744, "original_sql": "SELECT SUM(Creation) FROM department WHERE Creation = \"1977\" OR \"Ranking\" <> 10 UNION SELECT SUM(Creation) FROM department WHERE Name = \"Labor\" OR \"Ranking\" = 3 OR Creation <> \"2002\" AND \"Budget_in_Billions\" = 6.2 AND \"Department_ID\" <= 11 OR \"Num_Employees\" <= 10600.0"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 10 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7hj7o_12.png", "TableImg_Xw3xi_5.png"], "original_data_index": 1747, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs that are both greater than or equal to 2 and less than or equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fh20h_12.png", "TableImg_8k48b_5.png"], "original_data_index": 1750, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 2 or greater, combined with the aircraft IDs from the airport_aircraft table that have an ID less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7rfpd_5.png", "TableImg_Ehz41_4.png"], "original_data_index": 1749, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the club IDs of clubs that started in or before 2011, or have a club ID greater than 4 and the name \"Halmstads BK\", or are located in the \"USA\", along with the club IDs of male coaches ranked 1 or higher who are associated with club ID 3?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_0hpuq_6.png", "TableImg_Vhz6j_5.png"], "original_data_index": 1748, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" <= 2011 OR \"Club_ID\" > 4 AND Club_name = \"Halmstads BK\" OR Region = \"USA\" UNION SELECT Club_ID FROM coach WHERE Gender = \"M\" AND \"Rank\" >= 1 AND \"Club_ID\" = 3"} {"question": "What are the IDs of drivers who are in both the driver and school bus tables, excluding driver ID 10, and whose driver ID is at least 2?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ye46p_12.png", "TableImg_Leb08_5.png"], "original_data_index": 1751, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs, excluding driver ID 11, from the driver table, combined with driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tj8vb_12.png", "TableImg_Nffwj_5.png"], "original_data_index": 1752, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are greater than 4 but not present in the school bus table with IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kmhwl_12.png", "TableImg_7rdbf_5.png"], "original_data_index": 1753, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs that are not 4, but are not present in the airport aircraft table with an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1ycre_5.png", "TableImg_4fi4a_4.png"], "original_data_index": 1754, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Which driver IDs are not equal to 12 but are not present in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rnces_12.png", "TableImg_Fwwa2_5.png"], "original_data_index": 1755, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs that are either less than or equal to 7 from the driver table or not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K7k3j_12.png", "TableImg_1byfd_5.png"], "original_data_index": 1759, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What is the country with the highest alphabetical value for addresses in West Virginia that are not on \"00704 Zoe Alley\", and also what is the country with the highest alphabetical value for addresses in Georgia that are not in \"Port Jackelinemouth\", or for addresses with an ID less than 15 that are not in the USA?", "answer": {"columns": ["MAX(country)"], "index": [0, 1], "data": [["USA"], ["USA"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_B4aeh_15.png", "TableImg_Iwg8g_15.png"], "original_data_index": 1758, "original_sql": "SELECT MAX(country) FROM Addresses WHERE line_1_number_building <> \"00704 Zoe Alley\" AND state_province_county = \"WestVirginia\" UNION ALL SELECT MAX(country) FROM Addresses WHERE city <> \"Port Jackelinemouth\" AND state_province_county = \"Georgia\" OR \"address_id\" < 15 AND country != \"USA\""} {"question": "What is the sum of album IDs where the title isn't \"Grieg: Peer Gynt Suites & Sibelius: Pell\u00e9as et M\u00e9lisande\", or the ID isn't 136, or the artist ID is less than 110, combined with the sum of media type IDs where the ID isn't 4 and the name is \"AAC audio file\"?", "answer": {"columns": ["SUM(id)"], "index": [0, 1], "data": [["60378"], ["5"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_D101h_347.png", "TableImg_5ei5a_5.png"], "original_data_index": 1756, "original_sql": "SELECT SUM(id) FROM albums WHERE title <> \"Grieg: Peer Gynt Suites & Sibelius: Pell\u00e9as et M\u00e9lisande\" OR \"id\" != 136 OR \"artist_id\" < 110 UNION ALL SELECT SUM(id) FROM media_types WHERE \"id\" != 4 AND name = \"AAC audio file\""} {"question": "What states are in area code 757 or not California, but not states from votes where the phone number is 5112677315 or greater, or the creation date isn't '2018-03-09 19:03:36', or the contestant number is 3 or greater, or the state is New York and the vote ID is greater than 2?", "answer": {"columns": ["state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], "data": [["AK"], ["AL"], ["AR"], ["AZ"], ["CO"], ["CT"], ["DC"], ["DE"], ["FL"], ["GA"], ["HI"], ["IA"], ["ID"], ["IL"], ["IN"], ["KS"], ["KY"], ["LA"], ["MA"], ["MD"], ["ME"], ["MI"], ["MN"], ["MO"], ["MS"], ["MT"], ["NC"], ["ND"], ["NE"], ["NH"], ["NJ"], ["NM"], ["NV"], ["OH"], ["OK"], ["OR"], ["PA"], ["RI"], ["SC"], ["SD"], ["TN"], ["TX"], ["UT"], ["VA"], ["VT"], ["WA"], ["WI"], ["WV"], ["WY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Wuutp_305.png", "TableImg_5c82b_4.png"], "original_data_index": 1757, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE \"area_code\" = 757 OR state <> \"CA\" EXCEPT SELECT state FROM VOTES WHERE \"phone_number\" >= 5112677315 OR created != \"2018-03-09 19:03:36\" OR \"contestant_number\" >= 3 OR state = \"NY\" AND \"vote_id\" > 2"} {"question": "Which driver IDs are either greater than or equal to 7 in the driver table or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_58bv1_12.png", "TableImg_Piti6_5.png"], "original_data_index": 1760, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs, excluding driver ID 3, and also the driver IDs from school buses that are 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D4rov_12.png", "TableImg_Ceeax_5.png"], "original_data_index": 1762, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which club IDs are in the club table but not named \"Gefle IF\" and also have match results where \"Big_Silver\" is at least 12 and \"Points\" are at most 89, or the rank isn't 4, or the club ID is greater than 1?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_1xr8f_6.png", "TableImg_7j1z0_6.png"], "original_data_index": 1763, "original_sql": "SELECT Club_ID FROM club WHERE Club_name <> \"Gefle IF\" INTERSECT SELECT Club_ID FROM match_result WHERE \"Big_Silver\" >= 12 AND \"Points\" <= 89 OR \"Rank\" != 4 OR \"Club_ID\" > 1"} {"question": "What is the longest paragraph text and the number of documents for paragraphs that are not \"Papua New Guinea\" or have a Document ID greater than 3830, combined with the longest paragraph text and the number of documents for paragraphs that are not \"Korea\" or have other details that are not \"None\" or have a Document ID of 50123?", "answer": {"columns": ["MAX(Paragraph_Text)", "COUNT(Document_ID)"], "index": [0, 1], "data": [["Ukraine", "15"], ["Ukraine", "13"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_Liq4k_15.png", "TableImg_567fs_15.png"], "original_data_index": 1761, "original_sql": "SELECT MAX(Paragraph_Text), COUNT(Document_ID) FROM Paragraphs WHERE Paragraph_Text != \"Papua New Guinea\" OR \"Document_ID\" > 3830 UNION ALL SELECT MAX(Paragraph_Text), COUNT(Document_ID) FROM Paragraphs WHERE Paragraph_Text != \"Korea\" OR Other_Details != \"None\" OR \"Document_ID\" = 50123"} {"question": "Which driver IDs are both less than or equal to 5 and are also driver ID 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ai33m_12.png", "TableImg_Wk0tc_5.png"], "original_data_index": 1767, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that are both less than or equal to 9 and also greater than 3, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bxjdb_12.png", "TableImg_Lsna1_5.png"], "original_data_index": 1764, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the rank, gold, minimum big silver, small silver, count of club IDs, minimum bronze, and average points for club 2 where small silver isn't 16 and points are at least 168, and also for results where the rank is greater than 3 or the small silver is less than or equal to 6, or the club ID is not 2?", "answer": {"columns": ["Rank", "Gold", "MIN(Big_Silver)", "Small_Silver", "COUNT(Club_ID)", "MIN(Bronze)", "AVG(Points)"], "index": [0, 1], "data": [["", "", "", "", "0", "", ""], ["6.0", "6.0", "6.0", "6.0", "5", "6.0", "101.8"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Wxal1_6.png", "TableImg_51px8_6.png"], "original_data_index": 1766, "original_sql": "SELECT Rank, Gold, MIN(Big_Silver), Small_Silver, COUNT(Club_ID), MIN(Bronze), AVG(Points) FROM match_result WHERE \"Small_Silver\" != 16 AND \"Points\" >= 168 AND \"Club_ID\" = 2 UNION SELECT Rank, Gold, MIN(Big_Silver), Small_Silver, COUNT(Club_ID), MIN(Bronze), AVG(Points) FROM match_result WHERE \"Rank\" > 3 AND \"Small_Silver\" <= 6 OR \"Club_ID\" != 2"} {"question": "What are the driver IDs that are greater than or equal to 2, but not driver IDs greater than 10, considering driver IDs from the 'driver' table and excluding those from the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dqrsw_12.png", "TableImg_5y1qm_5.png"], "original_data_index": 1765, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What feature type codes are associated with features that are not feature ID 2 or are named \"AirCon\" but not \"Security\" and also have feature type names that are not \"Securiyt, eg Burglar Alarm.\"?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Amenity"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_5ej4l_3.png", "TableImg_Kl7u3_2.png"], "original_data_index": 1768, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE \"feature_id\" <> 2 OR feature_type_code != \"Security\" AND feature_name = \"AirCon\" INTERSECT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> \"Securiyt, eg Burglar Alarm.\""} {"question": "What are the aircraft IDs of aircraft with a distance of at least 6475, excluding those aircraft IDs that are 11 or less?", "answer": {"columns": ["aid"], "index": [0], "data": [["12"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_V00lt_16.png", "TableImg_Z0axo_69.png"], "original_data_index": 1769, "original_sql": "SELECT aid FROM aircraft WHERE \"distance\" >= 6475 EXCEPT SELECT aid FROM certificate WHERE \"aid\" <= 11"} {"question": "What are the driver IDs, where one driver ID is 5 and another is 7, considering the driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["5"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bki1e_12.png", "TableImg_Xhvsp_5.png"], "original_data_index": 1770, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs, excluding driver ID 11, and also the driver IDs that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K15dq_12.png", "TableImg_Swugq_5.png"], "original_data_index": 1771, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the IDs of heads who are 69 or younger, excluding those in management where the department ID is greater than 11 and not temporarily acting, or whose head ID is 10 or less?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["7"], ["8"], ["9"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Yhgai_10.png", "TableImg_Zqsxy_5.png"], "original_data_index": 1772, "original_sql": "SELECT head_ID FROM head WHERE \"age\" <= 69.0 EXCEPT SELECT head_ID FROM management WHERE \"department_ID\" > 11 AND temporary_acting = \"No\" OR \"head_ID\" <= 10"} {"question": "What are the IDs of drivers who are not driver ID 3, and also the IDs of school buses that are not driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xdxwq_12.png", "TableImg_Y1wbq_5.png"], "original_data_index": 1776, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are not equal to 4 and are in the driver table but not in the school bus table where the driver ID is 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Plzvx_12.png", "TableImg_Tlpl2_5.png"], "original_data_index": 1774, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the IDs of car makers where the ID is 13 or greater, combined with the IDs of car makers where the country is not \"2\" or the maker is not \"ford\"?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "data": [["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_Unnyp_22.png", "TableImg_Ffu0w_22.png"], "original_data_index": 1773, "original_sql": "SELECT Id FROM car_makers WHERE \"Id\" >= 13 UNION ALL SELECT Id FROM car_makers WHERE Country != \"2\" OR Maker <> \"ford\""} {"question": "What are the employee IDs of people who don't work at shop 6 and started in 2009, combined with the employee IDs of those who are not full-time and didn't start in 2010?", "answer": {"columns": ["Employee_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Pr9l1_7.png", "TableImg_Ti6r6_7.png"], "original_data_index": 1775, "original_sql": "SELECT Employee_ID FROM hiring WHERE \"Shop_ID\" <> 6 AND Start_from = \"2009\" UNION SELECT Employee_ID FROM hiring WHERE Is_full_time != \"T\" AND Start_from != \"2010\""} {"question": "Which driver IDs are either 8 from the driver table or 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U72cx_12.png", "TableImg_7kuaw_5.png"], "original_data_index": 1780, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the names and user IDs of users who are not named \"Roxi\" and also have a user ID greater than 3 or are named \"Mark\"?", "answer": {"columns": ["name", "u_id"], "index": [0, 1, 2, 3], "data": [["Emily", "7"], ["Mark", "2"], ["Nancy", "4"], ["Rosie", "5"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_C0gmt_7.png", "TableImg_V0qw7_7.png"], "original_data_index": 1777, "original_sql": "SELECT name, u_id FROM useracct WHERE name != \"Roxi\" INTERSECT SELECT name, u_id FROM useracct WHERE \"u_id\" > 3 OR name = \"Mark\""} {"question": "What are the student IDs of students who have pets, excluding student ID 1002, and also the student IDs of students aged 16 or younger?", "answer": {"columns": ["StuID"], "index": [0, 1], "data": [["1001"], ["1015"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_Wk4hs_3.png", "TableImg_Qnmfy_34.png"], "original_data_index": 1778, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" != 1002 UNION ALL SELECT StuID FROM Student WHERE \"Age\" <= 16"} {"question": "For each country, give me the count of airport names, the count of IATA codes, the count of cities, and the minimum airport ID, but only consider airports where the ID is greater than 6, or the IATA code isn't \"AEY\" and the ICAO code isn't \"BIAR\", or the country isn't \"Netherlands\". Group the results by country, and only include countries where the minimum ID is less than 1 and the count of IATA codes is greater than 1, or the count of airport names isn't 1. Also, for airports where the name isn't \"El Prat Airport\", the city is \"Bergen\", and the IATA code isn't \"BOS\", give me the same information grouped by country, but only include countries where the count of airport names isn't 1, or the count of IATA codes isn't 1 and the count of cities is greater than 1. Combine these two sets of results.", "answer": {"columns": ["COUNT(name)", "COUNT(IATA)", "COUNT(City)", "MIN(id)", "Country"], "index": [0], "data": [["3", "3", "3", "3", "United States"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_05x3t_9.png", "TableImg_Rbybc_9.png"], "original_data_index": 1779, "original_sql": "SELECT COUNT(name), COUNT(IATA), COUNT(City), MIN(id), Country FROM airport WHERE \"id\" > 6 OR IATA != \"AEY\" AND ICAO <> \"BIAR\" OR Country <> \"Netherlands\" GROUP BY Country HAVING MIN(id) < 1 AND COUNT(IATA) > 1 OR COUNT(name) != 1 UNION SELECT COUNT(name), COUNT(IATA), COUNT(City), MIN(id), Country FROM airport WHERE name != \"El Prat Airport\" AND City = \"Bergen\" AND IATA != \"BOS\" GROUP BY Country HAVING COUNT(name) != 1 OR COUNT(IATA) != 1 AND COUNT(City) > 1"} {"question": "Which driver IDs are greater than 4 in the driver table, or are greater than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kd60c_12.png", "TableImg_68yh5_5.png"], "original_data_index": 1782, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the IDs of drivers who are not driver ID 3 and are not assigned to school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wqglb_12.png", "TableImg_Sdvo2_5.png"], "original_data_index": 1781, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are present in both the driver table (excluding driver ID 1) and the school bus table (specifically driver ID 4)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6sbq7_12.png", "TableImg_X4qia_5.png"], "original_data_index": 1783, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs that are either greater than or equal to 1 in the aircraft table or not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4l479_5.png", "TableImg_Ow9sh_4.png"], "original_data_index": 1785, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the aircraft IDs, excluding aircraft ID 3, and also aircraft IDs less than 2, considering both aircraft and airport-aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tkm8j_5.png", "TableImg_Klqik_4.png"], "original_data_index": 1786, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the aircraft IDs, excluding ID 5, from the aircraft table, combined with the aircraft IDs, excluding ID 1, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F11ag_5.png", "TableImg_Altnn_4.png"], "original_data_index": 1787, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are not equal to 2 and are not found in the school bus table with IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0dih2_12.png", "TableImg_T6uqe_5.png"], "original_data_index": 1788, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs, greater than 4, are found in either the driver or school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Udg44_12.png", "TableImg_Kwv4m_5.png"], "original_data_index": 1789, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs greater than 3 or less than 3, considering both the aircraft and airport-aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zv7lv_5.png", "TableImg_Ua2sb_4.png"], "original_data_index": 1790, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the IDs of drivers, excluding driver 8, and also the IDs of drivers with an ID greater than 3, considering both driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K0tlg_12.png", "TableImg_Wngnn_5.png"], "original_data_index": 1784, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are less than 7 from the driver table, combined with the driver IDs that are less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mlmko_12.png", "TableImg_5hhhr_5.png"], "original_data_index": 1793, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs that are either greater than or equal to 5 in the aircraft table or less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8p9h6_5.png", "TableImg_Yotek_4.png"], "original_data_index": 1791, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What is the average driver ID, along with the driver ID, for drivers in the driver table and school bus table who are under 52 years old, grouped by years working, where the school ID is greater than 7 and they are full-time, or are affiliated with the Republican party, or are not 40 years old, or have worked less than 6 years and live in Hartford?", "answer": {"columns": ["AVG(T1.Driver_ID)", "Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["9", "9"], ["3", "3"], ["4", "4"], ["7", "7"], ["10", "10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Onb2t_12.png", "TableImg_Kg6ug_5.png"], "original_data_index": 1794, "original_sql": "SELECT AVG(T1.Driver_ID), T2.Driver_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE \"Age\" < 52 GROUP BY Years_Working HAVING School_ID > 7 AND If_full_time = \"T\" OR Party = \"Rep\" OR Age <> 40 OR Years_Working < 6 AND Home_city = \"Hartford\""} {"question": "What are the enrollment numbers and the percentage of the total budget that was budgeted, grouped by enrollment, where the percentage of the total budget invested is less than 2.7, or the percentage of the total budget budgeted is greater than or equal to 1.3 and the county is \"46 LaPorte 71 St. Joseph\", or the enrollment is not 601, or the mascot is not \"Lancers\", or the location is not \"Bourbon\", or the IHSAA class is not \"A\", or the school name is not \"Culver Community\", or the budgeted amount is less than 74849?", "answer": {"columns": ["Enrollment", "total_budget_percent_budgeted"], "index": [0, 1, 2, 3, 4], "data": [["287", "2.0"], ["495", "2.4"], ["601", "2.0"], ["605", "2.0"], ["620", "1.3"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_Riom5_8.png", "TableImg_Pc99g_8.png"], "original_data_index": 1792, "original_sql": "SELECT T1.Enrollment, T2.total_budget_percent_budgeted FROM School as T1 JOIN budget as T2 ON T1.School_id == T2.School_id GROUP BY Enrollment HAVING total_budget_percent_invested < 2.7 OR total_budget_percent_budgeted >= 1.3 AND County = \"46 LaPorte 71 St. Joseph\" OR Enrollment <> 601 OR Mascot <> \"Lancers\" OR Location <> \"Bourbon\" OR IHSAA_Class <> \"A\" OR School_name <> \"Culver Community\" OR Budgeted < 74849"} {"question": "Which driver IDs, excluding ID 8, are present in both the driver and school bus tables, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kn01i_12.png", "TableImg_Kdkx8_5.png"], "original_data_index": 1798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are greater than 11 but not found in the school bus records with IDs of 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Musus_12.png", "TableImg_Gar27_5.png"], "original_data_index": 1795, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs that are less than 3, and also the aircraft IDs that are not 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4kvnu_5.png", "TableImg_6iatm_4.png"], "original_data_index": 1796, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 8 from the driver table and driver IDs less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Evhde_12.png", "TableImg_Wh100_5.png"], "original_data_index": 1797, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What aircraft IDs appear in both the aircraft table with an ID greater than 1 and the airport_aircraft table with an ID count of at least 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jfe5b_5.png", "TableImg_Gb8qb_4.png"], "original_data_index": 1800, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the aircraft IDs that are both greater than or equal to 2 in the aircraft table and equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6fvw4_5.png", "TableImg_Bhgjw_4.png"], "original_data_index": 1802, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the driver IDs greater than 8 that are present in both the driver and school bus tables, excluding driver ID 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y2qx9_12.png", "TableImg_Yxufd_5.png"], "original_data_index": 1799, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs that are either greater than or equal to 5 in the driver table or not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Akv70_12.png", "TableImg_D5fgp_5.png"], "original_data_index": 1801, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that appear in either the aircraft table with an ID of 3 or greater, or in the airport_aircraft table with an ID of 1 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wd25r_5.png", "TableImg_7tpak_4.png"], "original_data_index": 1806, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the names and heights of people who are not born on August 16, 1982, or are Russian, and also have a People ID greater than 1?", "answer": {"columns": ["Name", "Height"], "index": [0, 1, 2, 3, 4], "data": [["Maksim Botin", "194"], ["Roman Bragin", "187"], ["Semen Poltavskiy", "205"], ["Sergey Grankin", "193"], ["Yevgeni Sivozhelez", "196"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_4wuyl_7.png", "TableImg_Y69oh_7.png"], "original_data_index": 1804, "original_sql": "SELECT Name, Height FROM people WHERE Birth_Date <> \"August 16, 1982\" AND \"Height\" != 193.0 OR Nationality = \"Russia\" INTERSECT SELECT Name, Height FROM people WHERE \"People_ID\" > 1"} {"question": "What are the driver IDs, excluding driver ID 4, that are present in both the driver and school bus tables, where the driver ID is less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4cvb9_12.png", "TableImg_E4non_5.png"], "original_data_index": 1803, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 2 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ylqsn_12.png", "TableImg_K0gyt_5.png"], "original_data_index": 1805, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are greater than 6 and also appear in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lwbmo_12.png", "TableImg_O0vy8_5.png"], "original_data_index": 1807, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are equal to 4 in the aircraft table, but not aircraft IDs greater than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Anhdp_5.png", "TableImg_1qdp9_4.png"], "original_data_index": 1808, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the ages and department IDs, but only for those departments where the temporary acting status isn't \"Yes\", or the birth state is Delaware, or the age is 69, or the name isn't \"Dudley Hart\", or the department ID is 7?", "answer": {"columns": ["age", "department_ID"], "index": [0, 1, 2], "data": [["53", "2"], ["69", "7"], ["67", "11"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Lou2v_10.png", "TableImg_Li5yz_5.png"], "original_data_index": 1810, "original_sql": "SELECT T1.age, T2.department_ID FROM head as T1 JOIN management as T2 ON T1.head_ID == T2.head_ID GROUP BY department_ID HAVING temporary_acting <> \"Yes\" OR born_state = \"Delaware\" OR age = 69.0 OR name <> \"Dudley Hart\" OR department_ID = 7"} {"question": "What is the highest document ID from the Circulation History table where the document ID is not 2 or the copy number is 15 or greater and the employee ID is less than 1, combined with the highest document ID from the Documents Mailed table where the mailing date is not \"1992-11-07 15:03:41\" or the document ID is 23 or greater?", "answer": {"columns": ["MAX(document_id)"], "index": [0, 1], "data": [["20"], ["24"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Gv00i_4.png", "TableImg_2tmz3_14.png"], "original_data_index": 1811, "original_sql": "SELECT MAX(document_id) FROM Circulation_History WHERE \"document_id\" != 2 OR \"copy_number\" >= 15 AND \"employee_id\" < 1 UNION ALL SELECT MAX(document_id) FROM Documents_Mailed WHERE mailing_date <> \"1992-11-07 15:03:41\" OR \"document_id\" >= 23"} {"question": "What are the distances for SAAB 340 aircraft with an aid less than or equal to 15, excluding distances from flights to Los Angeles, flights arriving on April 12, 2005 at 09:40, flights not originating from Los Angeles, flights with a price not equal to 220.98, and flights departing on a date other than April 12, 2005 at 08:32 and a distance greater than 802?", "answer": {"columns": ["distance"], "index": [0], "data": [["2128"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_T0tp7_16.png", "TableImg_66ess_10.png"], "original_data_index": 1812, "original_sql": "SELECT distance FROM aircraft WHERE name = \"SAAB 340\" AND \"aid\" <= 15 EXCEPT SELECT distance FROM flight WHERE destination = \"Los Angeles\" OR arrival_date = \"04/12/2005 09:40\" OR origin != \"Los Angeles\" OR \"price\" != 220.98 OR departure_date <> \"04/12/2005 08:32\" AND \"distance\" > 802"} {"question": "What are the driver IDs greater than 3 that are in the driver table but not in the school bus table, where the driver IDs in the school bus table are greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q9pl8_12.png", "TableImg_Fsqin_5.png"], "original_data_index": 1813, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs that appear in both the aircraft table (with IDs no greater than 4) and the airport_aircraft table (with IDs no greater than 3)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vzy08_5.png", "TableImg_Nfttn_4.png"], "original_data_index": 1814, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs that are either 6 or less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lztip_12.png", "TableImg_7rz3e_5.png"], "original_data_index": 1815, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the IDs of books written by Dave Gibbons that don't have 4 issues, and also published by Springer Nature, or have a book ID other than 5, or a price of 2,000,000?", "answer": {"columns": ["Book_ID"], "index": [0], "data": [["7"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_2fl0a_10.png", "TableImg_Hfxho_7.png"], "original_data_index": 1816, "original_sql": "SELECT Book_ID FROM book WHERE Writer = \"Dave Gibbons\" AND \"Issues\" != 4.0 INTERSECT SELECT Book_ID FROM publication WHERE Publisher = \"Springer Nature\" OR \"Book_ID\" != 5 OR \"Price\" = 2000000.0"} {"question": "What are the year awarded, bonus, and employee ID for evaluations not from 2018, and also for evaluations where the bonus is less than 3200 and the employee ID is not 1?", "answer": {"columns": ["Year_awarded", "Bonus", "Employee_ID"], "index": [0, 1, 2, 3, 4], "data": [["2011", "3000", "1"], ["2015", "3200", "2"], ["2016", "2900", "1"], ["2016", "4000", "10"], ["2017", "3200", "4"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_J7lq7_6.png", "TableImg_Actt5_6.png"], "original_data_index": 1817, "original_sql": "SELECT Year_awarded, Bonus, Employee_ID FROM evaluation WHERE Year_awarded <> \"2018\" UNION SELECT Year_awarded, Bonus, Employee_ID FROM evaluation WHERE \"Bonus\" < 3200.0 AND Employee_ID != \"1\""} {"question": "What are the aircraft IDs that are either less than or equal to 4, or not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Blzyl_5.png", "TableImg_K782l_4.png"], "original_data_index": 1818, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the driver IDs greater than 4, and also any driver IDs from school buses that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N19ar_12.png", "TableImg_Rd7zb_5.png"], "original_data_index": 1819, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs greater than 5, and also what are the driver IDs from school buses that are 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ybi8_12.png", "TableImg_Ydg3x_5.png"], "original_data_index": 1820, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs, excluding driver ID 12, and also the driver IDs from school buses that are 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hgj50_12.png", "TableImg_8snbg_5.png"], "original_data_index": 1821, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are either 11 or greater, or less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ku1re_12.png", "TableImg_Cnez7_5.png"], "original_data_index": 1822, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the minimum city area and the store ID for districts where the city population is not 530438, or the store ID is less than or equal to 1, and the city area is not 22, and the district name is not \"Chiniot District\"?", "answer": {"columns": ["MIN(T1.City_Area)", "Store_ID"], "index": [0], "data": [["10", "3"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_888hx_15.png", "TableImg_Fy7iv_5.png"], "original_data_index": 1823, "original_sql": "SELECT MIN(T1.City_Area), T2.Store_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE \"City_Population\" <> 530438.0 OR \"Store_ID\" <= 1 AND \"City_Area\" <> 22.0 AND District_name <> \"Chiniot District\""} {"question": "What are the driver IDs that are less than 3, and also the driver IDs that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gj945_12.png", "TableImg_Zxueq_5.png"], "original_data_index": 1826, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What driver IDs are both equal to 3 in the driver table and not equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B5kmi_12.png", "TableImg_1r8cl_5.png"], "original_data_index": 1824, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are less than or equal to 4 but not present in the airport aircraft table with IDs greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R8cuv_5.png", "TableImg_4afqj_4.png"], "original_data_index": 1827, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the driver IDs that are greater than or equal to 4, excluding those driver IDs that are greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B4v0d_12.png", "TableImg_Sk6nr_5.png"], "original_data_index": 1825, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are both less than or equal to 8 and also not equal to 9, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R8yvr_12.png", "TableImg_Temm0_5.png"], "original_data_index": 1829, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs, excluding driver 8, that are present in both the driver and school bus tables, where the school bus driver ID is 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ego43_12.png", "TableImg_0b4vk_5.png"], "original_data_index": 1828, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs that are less than 5, but not equal to 2, considering only aircraft IDs?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0znt1_5.png", "TableImg_Lo91z_4.png"], "original_data_index": 1830, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the driver IDs greater than 7 from the driver table, combined with the driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qyuve_12.png", "TableImg_Svcw0_5.png"], "original_data_index": 1833, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that are not equal to 2, but are not present in the airport_aircraft table with IDs greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mtj21_5.png", "TableImg_2fuau_4.png"], "original_data_index": 1831, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the IHSAA class, school ID, and school name for schools that meet the following criteria: They are not class AAA and are not named LaVille, or their location is not New Carlisle, or their mascot is Lions and their county is not Starke, or their school ID is not 4; and also meet these criteria: their school ID is not 7, or their name is not Knox Community, or their enrollment is not 605, or their location is not Elkhart and their mascot is Jimmies and their football class is not A and their class is not AAA?", "answer": {"columns": ["IHSAA_Class", "School_id", "School_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["A", "2", "Culver Community"], ["A", "8", "Triton"], ["AA", "1", "Bremen"], ["AA", "6", "LaVille"], ["AAA", "3", "Glenn"], ["AAA", "4", "Jimtown"], ["AAA", "5", "Knox Community"], ["AAA", "7", "New Prairie 1"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_G2xvj_8.png", "TableImg_Snt39_8.png"], "original_data_index": 1832, "original_sql": "SELECT IHSAA_Class, School_id, School_name FROM School WHERE IHSAA_Class <> \"AAA\" AND School_name <> \"LaVille\" OR Location <> \"New Carlisle\" OR Mascot = \"Lions\" AND County <> \"75 Starke\" OR School_id <> \"4\" INTERSECT SELECT IHSAA_Class, School_id, School_name FROM School WHERE School_id != \"7\" OR School_name != \"Knox Community\" AND \"Enrollment\" != 605 OR County != \"50 Marshall\" OR Location <> \"Elkhart\" AND Mascot = \"Jimmies\" AND IHSAA_Football_Class <> \"A\" AND IHSAA_Class != \"AAA\""} {"question": "What are the shipping agent codes and names for all agents except those with code \"AL\" or description \"t\", and also for the agent with code \"FE\" but not named \"UPS\"?", "answer": {"columns": ["shipping_agent_code", "shipping_agent_name"], "index": [0, 1, 2, 3, 4, 5], "data": [["UP", "UPS"], ["US", "USPS"], ["AL", "Airline"], ["FE", "Fedex"], ["SH", "Ship"], ["FE", "Fedex"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Gkayr_5.png", "TableImg_A2kh4_5.png"], "original_data_index": 1835, "original_sql": "SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code != \"AL\" OR shipping_agent_description != \"t\" UNION ALL SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"FE\" AND shipping_agent_name <> \"UPS\""} {"question": "For each country, what is the minimum city and the sum of the building numbers, considering addresses in Lake Elaina, or those not in Idaho, or those with building number \"9260 Streich Mountain\" and zip code \"63768\", or those with an address ID less than 5? Also, for addresses in West Edmondview with an address ID greater than 3, what is the same information?", "answer": {"columns": ["country", "MIN(city)", "SUM(line_1_number_building)"], "index": [0, 1], "data": [["USA", "Buckridgehaven", "194072"], ["USA", "West Edmondview", "9260"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Btmux_15.png", "TableImg_5qy4s_15.png"], "original_data_index": 1834, "original_sql": "SELECT country, MIN(city), SUM(line_1_number_building) FROM Addresses WHERE city = \"Lake Elaina\" OR state_province_county <> \"Idaho\" OR line_1_number_building = \"9260 Streich Mountain\" AND zip_postcode = \"63768\" OR \"address_id\" < 5 UNION ALL SELECT country, MIN(city), SUM(line_1_number_building) FROM Addresses WHERE city = \"West Edmondview\" AND \"address_id\" > 3"} {"question": "What are the driver IDs that are either greater than or equal to 1 in the driver table or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iwa46_12.png", "TableImg_Ggnvh_5.png"], "original_data_index": 1836, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs greater than 3 that are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_W1h0i_5.png", "TableImg_T3amg_4.png"], "original_data_index": 1837, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Which driver IDs are not equal to 5, but are not in the school bus table with a driver ID of 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E8ejw_12.png", "TableImg_Y54uy_5.png"], "original_data_index": 1838, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are equal to 5, or are less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q3sgj_12.png", "TableImg_Xls21_5.png"], "original_data_index": 1839, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are greater than 1 and also appear in the school bus table with IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0k9dw_12.png", "TableImg_2g4ke_5.png"], "original_data_index": 1840, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are both less than 12 in the driver table and less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9jss2_12.png", "TableImg_Bpph8_5.png"], "original_data_index": 1841, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs that are less than or equal to 12, but not driver IDs less than or equal to 4, considering driver information and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0fyqm_12.png", "TableImg_R6q4b_5.png"], "original_data_index": 1843, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the student IDs of students who belong to a club with an ID greater than 4 and a student ID of 1010 or higher, or who hold a position other than \"Teaching Coordinator\"? Also, what are the student IDs of students who live in a city other than \"WAS\", or have an advisor ID less than 5718, or have a last name other than \"Smith\", or have a major code less than 520 and are 21 years old or younger?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], "data": [["1001"], ["1007"], ["1008"], ["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_I5gnd_4.png", "TableImg_Sy1az_34.png"], "original_data_index": 1842, "original_sql": "SELECT StuID FROM Member_of_club WHERE \"ClubID\" > 4 AND \"StuID\" >= 1010 OR Position != \"Teaching Coordinator\" UNION ALL SELECT StuID FROM Student WHERE city_code <> \"WAS\" OR \"Advisor\" < 5718 OR LName <> \"Smith\" OR \"Major\" < 520 AND \"Age\" <= 21"} {"question": "What are the aircraft IDs that are either less than or equal to 2 or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7a7up_5.png", "TableImg_F9vm3_4.png"], "original_data_index": 1846, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the aircraft IDs greater than 1 in the aircraft table, combined with the aircraft IDs less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yjaxx_5.png", "TableImg_P21o7_4.png"], "original_data_index": 1847, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 3 from the driver table and driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C238h_12.png", "TableImg_6j53p_5.png"], "original_data_index": 1845, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What is the highest document ID from the Circulation History table where the employee ID is no more than 1, the draft number is 1, and the copy number is 15, combined with the highest document ID from the Documents Mailed table where the mailing date is May 22, 1999, or the document ID is greater than or equal to 12 and the mailed to address ID is less than 5?", "answer": {"columns": ["MAX(document_id)"], "index": [0, 1], "data": [[""], ["24.0"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Xlc6a_4.png", "TableImg_Pe92c_14.png"], "original_data_index": 1844, "original_sql": "SELECT MAX(document_id) FROM Circulation_History WHERE \"employee_id\" <= 1 AND \"draft_number\" = 1 AND \"copy_number\" = 15 UNION SELECT MAX(document_id) FROM Documents_Mailed WHERE mailing_date = \"1999-05-22 23:21:07\" OR \"document_id\" >= 12 AND \"mailed_to_address_id\" < 5"} {"question": "Which driver IDs, up to 8, are in the driver table but not in the school bus table (up to ID 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B5kyi_12.png", "TableImg_Goull_5.png"], "original_data_index": 1850, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are either less than or equal to 5 in the driver table or less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N6n8b_12.png", "TableImg_9ezvl_5.png"], "original_data_index": 1848, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nry8v_12.png", "TableImg_68nk9_5.png"], "original_data_index": 1849, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are greater than or equal to 9, but not found in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tl4td_12.png", "TableImg_Eys3n_5.png"], "original_data_index": 1851, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are less than 3 and appear in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K08pj_5.png", "TableImg_Dpz2r_4.png"], "original_data_index": 1853, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 9 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y4211_12.png", "TableImg_W1des_5.png"], "original_data_index": 1852, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 2, from the aircraft table, and also aircraft IDs greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Oml1c_5.png", "TableImg_Rwgc6_4.png"], "original_data_index": 1855, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the driver IDs that are greater than or equal to 6 in the driver table, combined with the driver IDs that are greater than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Efaps_12.png", "TableImg_Lqdqz_5.png"], "original_data_index": 1854, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs that are greater than or equal to 3, excluding those aircraft IDs that are not equal to 5 and are present in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sr1ew_5.png", "TableImg_486tk_4.png"], "original_data_index": 1857, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are less than or equal to 8 but not equal to 4, considering only the driver IDs present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ly4td_12.png", "TableImg_Trpuk_5.png"], "original_data_index": 1859, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are not 1 and are in the driver table, but not in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lf9ji_12.png", "TableImg_498tf_5.png"], "original_data_index": 1856, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the feature and property IDs for properties with an ID greater than 14 or a feature description of \"autem\" and a feature ID less than 4, along with the feature and property IDs for property 14?", "answer": {"columns": ["feature_id", "property_id"], "index": [0, 1, 2], "data": [["2", "13"], ["3", "15"], ["4", "14"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_8wwmm_15.png", "TableImg_Pjdyq_15.png"], "original_data_index": 1858, "original_sql": "SELECT feature_id, property_id FROM Other_Property_Features WHERE \"property_id\" > 14 OR property_feature_description = \"autem\" AND \"feature_id\" < 4 UNION SELECT feature_id, property_id FROM Other_Property_Features WHERE \"property_id\" = 14"} {"question": "Which driver IDs are greater than or equal to 7 and are in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cbd5j_12.png", "TableImg_Gmywr_5.png"], "original_data_index": 1861, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs, excluding ID 1, that are present in both the aircraft and airport_aircraft tables, excluding ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kw81o_5.png", "TableImg_Cvu71_4.png"], "original_data_index": 1860, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the mascots of schools that are either Knox Community, not in Marshall County, or don't have an enrollment of 316? Also, what are the mascots of schools that are not Trojans and have an enrollment of 605, or are not in the AAA IHSAA class, or are not LaVille and have a school ID other than 1, or are not located in Knox, or are in Marshall County and not in the AAA IHSAA football class?", "answer": {"columns": ["Mascot"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Lions"], ["Cavaliers"], ["Falcons"], ["Jimmies"], ["Redskins"], ["Lancers"], ["Cougars"], ["Lions"], ["Cavaliers"], ["Falcons"], ["Jimmies"], ["Redskins"], ["Lancers"], ["Cougars"], ["Trojans"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_94th9_8.png", "TableImg_Xzn0e_8.png"], "original_data_index": 1862, "original_sql": "SELECT Mascot FROM School WHERE School_name = \"Knox Community\" OR County != \"50 Marshall\" OR \"Enrollment\" != 316 UNION ALL SELECT Mascot FROM School WHERE Mascot != \"Trojans\" AND \"Enrollment\" = 605 OR IHSAA_Class != \"AAA\" OR School_name <> \"LaVille\" AND School_id != \"1\" OR Location <> \"Knox\" OR County = \"50 Marshall\" AND IHSAA_Football_Class != \"AAA\""} {"question": "What are the driver IDs that are less than 7 and also greater than 3, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pyr8l_12.png", "TableImg_Pq0k2_5.png"], "original_data_index": 1863, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 8 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3759g_12.png", "TableImg_P50pl_5.png"], "original_data_index": 1865, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the school types, names, grades, and IDs of schools that have 1st-3rd grade and also have any grade other than 4th grade?", "answer": {"columns": ["Type", "School", "Grade", "School_ID"], "index": [0], "data": [["Private Catholic", "St. Francis Assisi", "1st-3rd grade", "2"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_40eo6_7.png", "TableImg_3s6fr_7.png"], "original_data_index": 1867, "original_sql": "SELECT Type, School, Grade, School_ID FROM school WHERE Grade = \"1st-3rd grade\" INTERSECT SELECT Type, School, Grade, School_ID FROM school WHERE Grade <> \"4th grade\""} {"question": "Which driver IDs are not equal to 9, but are not found in the school bus table with driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Trkm0_12.png", "TableImg_27ftw_5.png"], "original_data_index": 1866, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs that are not 3 and also appear in the airport_aircraft table with an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2nxz7_5.png", "TableImg_1buhi_4.png"], "original_data_index": 1868, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the IDs of drivers, excluding driver ID 3, and the IDs of school bus drivers, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kmat5_12.png", "TableImg_Xl38f_5.png"], "original_data_index": 1870, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the IDs of staff members who meet all of the following conditions: either their lesson time is 2, or their lesson date is not March 21, 2018, or their staff ID is greater than or equal to 4, or their lesson status is not \"Cancelled\"; and also meet all of the following conditions: their first name is not Rebekah, or their staff address ID is not 7, or their date of birth is August 10, 2015, or their nickname is \"bogisich.geovany\" and their date left staff is not March 9, 2018, or their date joined staff is not April 27, 2017 and their middle name is not Liam, and their staff ID is greater than 6?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["3"], ["5"], ["8"], ["11"], ["12"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Zoqb3_15.png", "TableImg_2jnfk_15.png"], "original_data_index": 1869, "original_sql": "SELECT staff_id FROM Lessons WHERE lesson_time = \"2\" OR lesson_date <> \"2018-03-21 06:48:45\" AND \"staff_id\" >= 4 OR lesson_status_code <> \"Cancelled\" INTERSECT SELECT staff_id FROM Staff WHERE first_name <> \"Rebekah\" AND \"staff_address_id\" != 7 OR date_of_birth = \"2015-08-10 11:37:39\" OR nickname = \"bogisich.geovany\" AND date_left_staff != \"2018-03-09 05:08:35\" OR date_joined_staff != \"2017-04-27 03:21:26\" AND middle_name <> \"Liam\" AND \"staff_id\" > 6"} {"question": "Which driver IDs, excluding driver ID 5, are present in both the driver and school bus tables, where the driver ID is greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S8gpm_12.png", "TableImg_3srgt_5.png"], "original_data_index": 1871, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the smallest album ID that is 188 or greater, and what is the smallest playlist ID for playlists that are not named \"Audiobooks\" and have an ID greater than 6?", "answer": {"columns": ["MIN(id)"], "index": [0, 1], "data": [["7"], ["188"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_0rnzm_347.png", "TableImg_Xi7rt_18.png"], "original_data_index": 1873, "original_sql": "SELECT MIN(id) FROM albums WHERE \"id\" >= 188 UNION SELECT MIN(id) FROM playlists WHERE name <> \"Audiobooks\" AND \"id\" > 6"} {"question": "What are the aircraft IDs greater than 3, excluding those aircraft IDs that are equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y58j4_5.png", "TableImg_S0f3v_4.png"], "original_data_index": 1872, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the aircraft IDs that are less than 2 and also appear in the airport aircraft table with IDs no greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O2cyj_12.png", "TableImg_1685l_5.png"], "original_data_index": 1874, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the employee IDs, bonuses, and years awarded, either for employees who received a bonus other than in 2016 and a bonus of 4000, or for employee 10, or for employees who are not employee 7, or who received a bonus in 2011?", "answer": {"columns": ["Employee_ID", "Bonus", "Year_awarded"], "index": [0, 1, 2, 3, 4], "data": [["1", "2900", "2016"], ["1", "3000", "2011"], ["10", "4000", "2016"], ["2", "3200", "2015"], ["4", "3200", "2017"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_Flsa6_6.png", "TableImg_Tf992_6.png"], "original_data_index": 1875, "original_sql": "SELECT Employee_ID, Bonus, Year_awarded FROM evaluation WHERE Year_awarded != \"2016\" AND \"Bonus\" = 4000.0 OR Employee_ID = \"10\" UNION SELECT Employee_ID, Bonus, Year_awarded FROM evaluation WHERE Employee_ID <> \"7\" OR Year_awarded = \"2011\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ea01w_12.png", "TableImg_Eitfv_5.png"], "original_data_index": 1876, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the branch IDs of branches not in Oxford, combined with the branch IDs from purchases that are not from branch 2 and not in the year 2018?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["7"], ["1"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Ul6u9_8.png", "TableImg_4xmt0_8.png"], "original_data_index": 1877, "original_sql": "SELECT Branch_ID FROM branch WHERE City != \"Oxford\" UNION ALL SELECT Branch_ID FROM purchase WHERE Branch_ID != \"2\" AND Year != \"2018\""} {"question": "What are the aircraft IDs that are either 3 or greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pjdfe_5.png", "TableImg_0oa07_4.png"], "original_data_index": 1879, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs, excluding driver ID 2, that are present in both the driver and school bus tables, where the driver ID is less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5rcsu_12.png", "TableImg_T8iv0_5.png"], "original_data_index": 1878, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the student IDs of students who either have a pet with an ID less than 2002 or have a student ID less than or equal to 1002, and also the student IDs of students whose advisor ID is greater than 2192, are not male, and whose last name is not Epp and first name is not Sarah, or whose student ID is not 1027?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "data": [["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_L6ilo_3.png", "TableImg_N5k0f_34.png"], "original_data_index": 1880, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"PetID\" < 2002 OR \"StuID\" <= 1002 UNION SELECT StuID FROM Student WHERE \"Advisor\" > 2192 AND Sex <> \"M\" AND LName != \"Epp\" AND Fname != \"Sarah\" OR \"StuID\" != 1027"} {"question": "What are the aircraft IDs that are greater than or equal to 3, excluding those aircraft IDs that are less than 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B35hf_5.png", "TableImg_Kcjfy_4.png"], "original_data_index": 1881, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs, excluding ID 1, are present in both the driver and school bus tables, excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oey5b_12.png", "TableImg_A4mjq_5.png"], "original_data_index": 1882, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are both greater than or equal to 9 in the driver table and greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X6qkm_12.png", "TableImg_Apgoe_5.png"], "original_data_index": 1883, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the document and draft numbers for entries where the document ID is greater than 10 or the copy number is less than 5, and also where the document ID is less than 4 and the copy number is no more than 10, or the draft number is 8?", "answer": {"columns": ["document_id", "draft_number"], "index": [0], "data": [["2", "1"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_P7fir_8.png", "TableImg_Ebgkx_8.png"], "original_data_index": 1884, "original_sql": "SELECT document_id, draft_number FROM Draft_Copies WHERE \"document_id\" > 10 OR \"copy_number\" < 5 INTERSECT SELECT document_id, draft_number FROM Draft_Copies WHERE \"document_id\" < 4 AND \"copy_number\" <= 10 OR \"draft_number\" = 8"} {"question": "What are the aircraft IDs greater than 1 that are not in the list of aircraft IDs that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dhjdx_5.png", "TableImg_La3cw_4.png"], "original_data_index": 1885, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the driver IDs that are either less than or equal to 5 from the driver table or less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Owczq_12.png", "TableImg_Qcqci_5.png"], "original_data_index": 1887, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are greater than or equal to 5, excluding those driver IDs that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Taydo_12.png", "TableImg_1o9i2_5.png"], "original_data_index": 1888, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the aircraft IDs that are not equal to 5 and are present in the aircraft table but not in the airport_aircraft table, where the airport_aircraft table only includes aircraft IDs greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A2fwc_5.png", "TableImg_Omy8d_4.png"], "original_data_index": 1886, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are not equal to 5 and are not present in the school bus table with driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Orm4g_12.png", "TableImg_Vqnin_5.png"], "original_data_index": 1891, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the property type codes for properties that meet a complex set of criteria, excluding those property type codes that are not \"Shop\"?", "answer": {"columns": ["property_type_code"], "index": [0], "data": [["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Jekcj_15.png", "TableImg_6u79s_5.png"], "original_data_index": 1892, "original_sql": "SELECT property_type_code FROM Properties WHERE other_property_details != \"None\" AND \"agreed_selling_price\" > 4514.807 AND hse_feature_3 = \"None\" AND \"room_count\" != 7 AND fld_feature_1 != \"None\" AND oth_feature_1 != \"None\" OR property_type_code <> \"Shop\" AND property_address != \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" OR date_on_market <> \"1990-05-25 23:01:51\" AND apt_feature_1 <> \"aut\" OR apt_feature_3 != \"None\" OR oth_feature_3 != \"None\" AND hse_feature_1 != \"None\" OR shp_feature_1 = \"None\" OR shp_feature_3 = \"None\" EXCEPT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> \"Shop\""} {"question": "What are the store IDs that meet all of the following conditions: the number of product categories is 1170, the store name isn't Miramichi, the store ID is greater than 2, or the ranking is not 9, or the area size is at least 28.74, or the store type is Village Store, and also have a store ID that is not 2?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_0y6jx_5.png", "TableImg_H0ql2_5.png"], "original_data_index": 1889, "original_sql": "SELECT Store_ID FROM store WHERE \"Number_of_product_category\" = 1170.0 AND Store_Name != \"Miramichi\" AND \"Store_ID\" > 2 OR \"Ranking\" <> 9 OR \"Area_size\" >= 28.74 OR Type = \"Village Store\" INTERSECT SELECT Store_ID FROM store_district WHERE \"Store_ID\" != 2"} {"question": "How many people from Bulgaria, or those who made a final table not equal to 26.0, or those with a best finish of 1.0, or those with a money rank not equal to 68.0, or those not born on April 17, 1987, and with poker player ID 1 and height less than 196.0, are there, grouped by their best finish, where their earnings are 104871.0, or their height is less than 196.0 and their best finish is less than 3.0, or their nationality is not Russia and they were not born on April 17, 1987 and their name is not Maksim Botin, or their final table made is not 42.0 and their poker player ID is greater than or equal to 1?", "answer": {"columns": ["COUNT(T1.People_ID)", "Poker_Player_ID"], "index": [0, 1], "data": [["2", "2"], ["1", "5"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Rcvzy_7.png", "TableImg_Ts57m_5.png"], "original_data_index": 1890, "original_sql": "SELECT COUNT(T1.People_ID), T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID = T2.People_ID WHERE Nationality = \"Bulgaria\" OR \"Final_Table_Made\" <> 26.0 OR \"Best_Finish\" = 1.0 OR \"Money_Rank\" <> 68.0 OR Birth_Date <> \"April 17, 1987\" AND \"Poker_Player_ID\" = 1 AND \"Height\" < 196.0 GROUP BY Best_Finish HAVING Earnings = 104871.0 OR Height < 196.0 AND Best_Finish < 3.0 OR Nationality <> \"Russia\" AND Birth_Date <> \"April 17, 1987\" AND Name <> \"Maksim Botin\" OR Final_Table_Made <> 42.0 AND Poker_Player_ID >= 1"} {"question": "What are the driver IDs that are less than 4 and also appear in the school bus table with IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P55zo_12.png", "TableImg_H4iyg_5.png"], "original_data_index": 1895, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the IDs of drivers who have an ID of 5 or greater and also are assigned to a school bus, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lw3wh_12.png", "TableImg_9va3i_5.png"], "original_data_index": 1894, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs, excluding driver ID 11, from the driver table, and also the driver IDs greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ugknp_12.png", "TableImg_Zherq_5.png"], "original_data_index": 1893, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are less than 4 or greater than 9, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ecs9_12.png", "TableImg_Fq0hq_5.png"], "original_data_index": 1899, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are either 10 or not 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yodxo_12.png", "TableImg_Euhtg_5.png"], "original_data_index": 1898, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs, excluding driver ID 1, are in the driver table, and which driver IDs, starting from 9, are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wn59r_12.png", "TableImg_G4jnv_5.png"], "original_data_index": 1897, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the majors, last names, first names, student IDs, ages, city codes, sexes, and advisors of students who either have a major code of 600 or higher and an advisor other than 7792, or a last name of Schwartz, or a sex other than male, or a city code other than BAL, and a first name of Sarah and an age of 17, and also have an advisor less than 2311 and a city code other than WAS?", "answer": {"columns": ["Major", "LName", "Fname", "StuID", "Age", "city_code", "Sex", "Advisor"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["600", "Adams", "David", "1011", "22", "PHL", "M", "1148"], ["600", "Gompers", "Paul", "1005", "26", "YYZ", "M", "1121"], ["600", "Lee", "Derek", "1010", "17", "HOU", "M", "2192"], ["600", "Leighton", "Michael", "1018", "20", "PIT", "M", "1121"], ["600", "Schultz", "Andy", "1006", "18", "BAL", "M", "1148"], ["600", "Schwartz", "Mark", "1016", "17", "DET", "M", "2192"], ["600", "Smith", "Linda", "1001", "18", "BAL", "F", "1121"], ["600", "Tai", "Eric", "1009", "19", "YYZ", "M", "2192"], ["600", "Wilson", "Bruce", "1017", "27", "LON", "M", "1148"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_6e5rv_34.png", "TableImg_08lu0_34.png"], "original_data_index": 1896, "original_sql": "SELECT Major, LName, Fname, StuID, Age, city_code, Sex, Advisor FROM Student WHERE \"Major\" >= 600 AND \"Advisor\" <> 7792 OR LName = \"Schwartz\" OR Sex <> \"M\" OR city_code <> \"BAL\" AND Fname = \"Sarah\" AND \"Age\" = 17 INTERSECT SELECT Major, LName, Fname, StuID, Age, city_code, Sex, Advisor FROM Student WHERE \"Advisor\" < 2311 AND city_code <> \"WAS\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 10 from the driver table and driver IDs 4 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hgw9b_12.png", "TableImg_61j29_5.png"], "original_data_index": 1900, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs and names of all aircraft, excluding the \"British Aerospace Jetstream 41\", and also those with an ID greater than 4, or not named \"British Aerospace Jetstream 41\"?", "answer": {"columns": ["aid", "name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "Boeing 747-400"], ["2", "Boeing 737-800"], ["3", "Airbus A340-300"], ["5", "Embraer ERJ-145"], ["6", "SAAB 340"], ["7", "Piper Archer III"], ["8", "Tupolev 154"], ["9", "Lockheed L1011"], ["10", "Boeing 757-300"], ["11", "Boeing 777-300"], ["12", "Boeing 767-400ER"], ["13", "Airbus A320"], ["14", "Airbus A319"], ["15", "Boeing 727"], ["16", "Schwitzer 2-33"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Bd5lf_16.png", "TableImg_Dinyu_16.png"], "original_data_index": 1901, "original_sql": "SELECT aid, name FROM aircraft WHERE name != \"British Aerospace Jetstream 41\" UNION SELECT aid, name FROM aircraft WHERE \"aid\" > 4 OR name <> \"British Aerospace Jetstream 41\""} {"question": "Which driver IDs are less than or equal to 4, but not equal to 3, and are present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pkzh3_12.png", "TableImg_Ig1l9_5.png"], "original_data_index": 1903, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the IDs of all the things that are either certificate with ID 4 or flights that didn't originate in Los Angeles and went to Honolulu, or flights that departed on April 12, 2005 at 7:03 AM, or flights where the distance wasn't 2551 and the price was 780.99 and the flight number was greater than or equal to 2 and the arrival date wasn't April 12, 2005 at 8:45 AM?", "answer": {"columns": ["aid"], "index": [0, 1, 2], "data": [["4"], ["6"], ["9"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Lg8by_69.png", "TableImg_Bz4fw_10.png"], "original_data_index": 1902, "original_sql": "SELECT aid FROM certificate WHERE \"aid\" = 4 UNION SELECT aid FROM flight WHERE origin <> \"Los Angeles\" AND destination = \"Honolulu\" OR departure_date = \"04/12/2005 07:03\" OR \"distance\" <> 2551 AND \"price\" = 780.99 AND \"flno\" >= 2 AND arrival_date != \"04/12/2005 08:45\""} {"question": "What are the vehicle IDs that are not equal to 2 or are trucks, but exclude any vehicle IDs that are not trucks?", "answer": {"columns": ["vehicle_id"], "index": [0], "data": [["2"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_35tk9_3.png", "TableImg_69eqb_3.png"], "original_data_index": 1905, "original_sql": "SELECT vehicle_id FROM Vehicles WHERE \"vehicle_id\" != 2 OR vehicle_details = \"Truck\" EXCEPT SELECT vehicle_id FROM Vehicles WHERE vehicle_details <> \"Truck\""} {"question": "What are the aircraft IDs, excluding ID 5, that are either in the aircraft table or the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ncro0_5.png", "TableImg_W9bgw_4.png"], "original_data_index": 1907, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the driver IDs of drivers with ID 9 or school buses with ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dovtx_12.png", "TableImg_5yy7x_5.png"], "original_data_index": 1906, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the property type descriptions and codes that are either \"Field, Meadow.\" or not \"Apartment\", and also not \"Other, to be determined.\"?", "answer": {"columns": ["property_type_description", "property_type_code"], "index": [0, 1, 2], "data": [["Field, Meadow.", "Field"], ["House, Bungalow, etc.", "House"], ["Shop, Retail Outlet.", "Shop"]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Dd1dy_5.png", "TableImg_829os_5.png"], "original_data_index": 1904, "original_sql": "SELECT property_type_description, property_type_code FROM Ref_Property_Types WHERE property_type_description = \"Field, Meadow.\" OR property_type_code <> \"Apartment\" INTERSECT SELECT property_type_description, property_type_code FROM Ref_Property_Types WHERE property_type_description <> \"Other, to be determined.\""} {"question": "What are the aircraft IDs that are less than 5, and also any aircraft IDs that are not equal to 1, considering data from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sy50z_5.png", "TableImg_Bmkc4_4.png"], "original_data_index": 1908, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the driver IDs, excluding driver ID 12, from the driver table, combined with the driver IDs, up to and including 9, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ytm4_12.png", "TableImg_F5dua_5.png"], "original_data_index": 1911, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 5 from the driver table and including only driver IDs greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqtce_12.png", "TableImg_Squbb_5.png"], "original_data_index": 1909, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the student IDs of students who either have a pet with ID 2001 or higher, or have a student ID of 1001 or lower, but are not students majoring in 100, are not female, and have a last name of Lee, or are not student ID 1003 and do not live in NYC?", "answer": {"columns": ["StuID"], "index": [0, 1], "data": [["1001"], ["1002"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_Jjy27_3.png", "TableImg_679lt_34.png"], "original_data_index": 1910, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"PetID\" >= 2001 OR \"StuID\" <= 1001 EXCEPT SELECT StuID FROM Student WHERE \"Major\" = 100 AND Sex <> \"F\" AND LName = \"Lee\" OR \"StuID\" != 1003 AND city_code = \"NYC\""} {"question": "What are the aircraft IDs that are greater than or equal to 1, or any aircraft IDs that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fpkxh_5.png", "TableImg_30nwb_4.png"], "original_data_index": 1913, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs are less than 12 but not equal to 3, considering only driver IDs from the 'driver' table and excluding those from the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ye6mw_12.png", "TableImg_1v4ex_5.png"], "original_data_index": 1915, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are less than or equal to 7 but not found in the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zctwm_12.png", "TableImg_Mx8qw_5.png"], "original_data_index": 1914, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs that are not equal to 2, but are not present in the airport_aircraft table with IDs greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ldeen_5.png", "TableImg_R0m9o_4.png"], "original_data_index": 1912, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the driver IDs that are either less than or equal to 4 in the driver table or less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ypnq8_12.png", "TableImg_Qk2ay_5.png"], "original_data_index": 1916, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are equal to 5, or are present in the school bus table but not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_88cd8_12.png", "TableImg_85rlw_5.png"], "original_data_index": 1919, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are equal to 1 but not equal to 5 in the aircraft and airport_aircraft tables respectively?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qa3kc_5.png", "TableImg_Rjgr6_4.png"], "original_data_index": 1918, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the vehicle IDs from lessons that were not cancelled and had a staff ID greater than 11, or that occurred on a date other than February 26, 2018, at 2:36:35 AM and had a lesson ID of 3 or more, excluding any vehicle IDs from vehicles that are not vans and have a vehicle ID of 3?", "answer": {"columns": ["vehicle_id"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_Bf6ap_15.png", "TableImg_Yl1n3_3.png"], "original_data_index": 1917, "original_sql": "SELECT vehicle_id FROM Lessons WHERE lesson_status_code != \"Cancelled\" AND \"staff_id\" > 11 OR lesson_date <> \"2018-02-26 02:36:35\" AND \"lesson_id\" >= 3 EXCEPT SELECT vehicle_id FROM Vehicles WHERE vehicle_details <> \"Van\" AND \"vehicle_id\" = 3"} {"question": "Which driver IDs are less than or equal to 1, and which driver ID is 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K9v5h_12.png", "TableImg_Bl98t_5.png"], "original_data_index": 1921, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are not 5 and are also present in the school bus table with a driver ID of 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D0cbo_12.png", "TableImg_Mwnwv_5.png"], "original_data_index": 1922, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are both equal to 9 in the driver table and greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fopwy_12.png", "TableImg_H30zv_5.png"], "original_data_index": 1920, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the shipping agent codes and names for agents whose description is \"g\" or name is \"Ship\" or code is not \"AL\", and also for agents whose code is not \"AL\" or name is \"USPS\"?", "answer": {"columns": ["shipping_agent_code", "shipping_agent_name"], "index": [0, 1, 2, 3], "data": [["FE", "Fedex"], ["SH", "Ship"], ["UP", "UPS"], ["US", "USPS"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_N5ymk_5.png", "TableImg_Sgrc4_5.png"], "original_data_index": 1923, "original_sql": "SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_description = \"g\" OR shipping_agent_name = \"Ship\" OR shipping_agent_code <> \"AL\" UNION SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code <> \"AL\" OR shipping_agent_name = \"USPS\""} {"question": "What are the driver IDs, excluding ID 8, from the driver table and the driver IDs, excluding ID 4, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4p795_12.png", "TableImg_Xrhxs_5.png"], "original_data_index": 1925, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs greater than 5, and also any aircraft IDs that are not equal to 5, considering information from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1duxl_5.png", "TableImg_Hnnbh_4.png"], "original_data_index": 1926, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which school IDs meet these criteria: either the school is not in Los Angeles, California, or it doesn't serve 1st-3rd grade, or the school ID is greater than 6 and the school is not private; and also, the school has a bus with a driver ID other than 3, or the bus is full-time, or the school ID is 3 or less?", "answer": {"columns": ["School_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["5"], ["7"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_Ddp6a_7.png", "TableImg_5rxfn_5.png"], "original_data_index": 1924, "original_sql": "SELECT School_ID FROM school WHERE Location <> \"Los Angeles, California\" OR Grade <> \"1st-3rd grade\" OR \"School_ID\" > 6 AND Type <> \"Private\" INTERSECT SELECT School_ID FROM school_bus WHERE \"Driver_ID\" <> 3 OR If_full_time = \"T\" OR \"School_ID\" <= 3"} {"question": "What are the driver IDs that are 8 or greater, excluding those driver IDs that are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mcilq_12.png", "TableImg_0c685_5.png"], "original_data_index": 1927, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are less than 7 but not found in the school bus table with IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9tmvr_12.png", "TableImg_Fb65b_5.png"], "original_data_index": 1931, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are greater than 3 and also appear in the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A4f33_12.png", "TableImg_1eooa_5.png"], "original_data_index": 1928, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the aircraft IDs that are either greater than or equal to 5 in the aircraft table or not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_83ivx_5.png", "TableImg_Xc7xm_4.png"], "original_data_index": 1929, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What is the average People ID for people who are 196cm tall, or not from Russia, or have a People ID of 4 or greater? Also, what is the average People ID for poker players whose best finish was greater than 3, and who are not People ID 7, or whose earnings were less than 476090 and Poker Player ID is less than 1 and Money Rank is 141?", "answer": {"columns": ["AVG(People_ID)"], "index": [0, 1], "data": [["4.8"], [""]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_4h5vv_7.png", "TableImg_337gx_5.png"], "original_data_index": 1930, "original_sql": "SELECT AVG(People_ID) FROM people WHERE \"Height\" = 196.0 OR Nationality != \"Russia\" OR \"People_ID\" >= 4 UNION ALL SELECT AVG(People_ID) FROM poker_player WHERE \"Best_Finish\" > 3.0 AND \"People_ID\" != 7 OR \"Earnings\" < 476090.0 AND \"Poker_Player_ID\" < 1 AND \"Money_Rank\" = 141.0"} {"question": "What are the driver IDs that are both greater than or equal to 8 and also equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1djxx_12.png", "TableImg_Gswej_5.png"], "original_data_index": 1935, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are less than 10 and also appear in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Viayi_12.png", "TableImg_Ytnr2_5.png"], "original_data_index": 1932, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs from the driver table, where the ID is 1 or greater, combined with the driver IDs from the school bus table, where the ID is 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G2oe5_12.png", "TableImg_Oe504_5.png"], "original_data_index": 1933, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the aircraft IDs that are both less than or equal to 4 and not equal to 5, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sl06o_5.png", "TableImg_X6fhm_4.png"], "original_data_index": 1934, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the aircraft IDs that are either equal to 3 in the aircraft table or less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_13961_5.png", "TableImg_Sgbs6_4.png"], "original_data_index": 1936, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the property type descriptions and codes, excluding \"House, Bungalow, etc.\"?", "answer": {"columns": ["property_type_description", "property_type_code"], "index": [0, 1, 2, 3], "data": [["Apartment, Flat, Condo, etc.", "Apartment"], ["Field, Meadow.", "Field"], ["Other, to be determined.", "Other"], ["Shop, Retail Outlet.", "Shop"]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Xlopi_5.png", "TableImg_Ptm6c_5.png"], "original_data_index": 1938, "original_sql": "SELECT property_type_description, property_type_code FROM Ref_Property_Types WHERE property_type_description <> \"House, Bungalow, etc.\" INTERSECT SELECT property_type_description, property_type_code FROM Ref_Property_Types WHERE property_type_description <> \"House, Bungalow, etc.\""} {"question": "How many features are associated with each property, excluding those described as \"odio\" or named \"Pool\", but including those described as \"Swimming Pool.\"?", "answer": {"columns": ["COUNT(T1.feature_id)", "property_id"], "index": [0], "data": [["15", "15"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_O4l3i_3.png", "TableImg_Nja25_15.png"], "original_data_index": 1939, "original_sql": "SELECT COUNT(T1.feature_id), T2.property_id FROM Other_Available_Features as T1 JOIN Other_Property_Features as T2 ON T1.feature_id = T2.feature_id WHERE property_feature_description <> \"odio\" OR feature_name <> \"Pool\" OR feature_description = \"Swimming Pool.\""} {"question": "What is the average draft number for each document, considering drafts up to number 8 from the Document_Drafts table, and also considering all draft numbers except 8 from the Draft_Copies table?", "answer": {"columns": ["document_id", "AVG(draft_number)"], "index": [0, 1], "data": [["1", "3"], ["4", "10"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_1u8bu_15.png", "TableImg_7njdd_8.png"], "original_data_index": 1937, "original_sql": "SELECT document_id, AVG(draft_number) FROM Document_Drafts WHERE \"draft_number\" <= 8 UNION ALL SELECT document_id, AVG(draft_number) FROM Draft_Copies WHERE \"draft_number\" <> 8"} {"question": "Which driver IDs are either less than or equal to 5, or equal to 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lv51x_12.png", "TableImg_Eodvg_5.png"], "original_data_index": 1941, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which company IDs don't belong to companies named \"Total\", or not headquartered in Germany, or not in the \"Oil and gas\" industry and have sales over 143.7 billion, or have a market value not equal to 107.5 billion, or profits not equal to 14.2 billion, but are not associated with people with ID 1 in the employment records?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["16"], ["17"], ["18"], ["19"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Qrc1k_19.png", "TableImg_V6f0x_5.png"], "original_data_index": 1942, "original_sql": "SELECT Company_ID FROM company WHERE Name <> \"Total\" OR Headquarters <> \"Germany\" OR Industry != \"Oil and gas\" AND \"Sales_in_Billion\" > 143.7 OR \"Market_Value_in_Billion\" <> 107.5 OR \"Profits_in_Billion\" <> 14.2 EXCEPT SELECT Company_ID FROM employment WHERE \"People_ID\" = 1"} {"question": "What are the IDs of drivers, excluding driver ID 2, and also the IDs of school bus drivers, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X5g44_12.png", "TableImg_Kf7b3_5.png"], "original_data_index": 1943, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the property IDs that either have a feature other than feature ID 2 or have an apartment feature 3 that is not \"None\" and feature 2 is \"None\" or feature 3 is \"None\" and have at least 2 rooms and a vendor price that is not 661536468.4429 or have an other feature 3 that is not \"None\"?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["6"], ["9"], ["11"], ["12"], ["14"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_A6qmr_15.png", "TableImg_H933p_15.png"], "original_data_index": 1940, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"feature_id\" != 2 UNION SELECT property_id FROM Properties WHERE apt_feature_3 <> \"None\" AND fld_feature_2 = \"None\" OR fld_feature_3 = \"None\" AND \"room_count\" >= 2 AND \"vendor_requested_price\" <> 661536468.4429 OR oth_feature_3 <> \"None\""} {"question": "What are the driver IDs, excluding driver ID 1, from the driver table, combined with driver IDs up to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Belq0_12.png", "TableImg_Urifk_5.png"], "original_data_index": 1946, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs that are both greater than or equal to 1 in the driver table and greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6auhn_12.png", "TableImg_M9wqx_5.png"], "original_data_index": 1945, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs that are both less than or equal to 9 in the driver table and equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I1819_12.png", "TableImg_8ahf6_5.png"], "original_data_index": 1944, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are from drivers who are at least 52 years old or not Democrats and not driver ID 6 and not from East Hartford, or from school buses with school ID 7 or not full-time?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["6"], ["8"], ["12"], ["10"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A8cmm_12.png", "TableImg_Ii5xb_5.png"], "original_data_index": 1947, "original_sql": "SELECT Driver_ID FROM driver WHERE \"Age\" >= 52 OR Party != \"Dem\" AND \"Driver_ID\" != 6 AND Home_city <> \"East Hartford\" UNION ALL SELECT Driver_ID FROM school_bus WHERE \"School_ID\" = 7 OR If_full_time != \"T\""} {"question": "What are the aircraft IDs that are either 3 or greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fwqbk_5.png", "TableImg_Dfi1a_4.png"], "original_data_index": 1951, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the driver IDs greater than 5 from the driver table, combined with the driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ztt1k_12.png", "TableImg_Ukuvf_5.png"], "original_data_index": 1950, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs greater than 3 that are not present in the airport aircraft table, excluding those with an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xbfi4_5.png", "TableImg_Hks94_4.png"], "original_data_index": 1948, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the aircraft IDs that are not 4, but are not present in the airport_aircraft table with an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qpp3l_5.png", "TableImg_Bqhd3_4.png"], "original_data_index": 1949, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are present in both the driver table and the school bus table, excluding driver ID 3, and where the driver ID is less than 6?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ntcgn_12.png", "TableImg_Ry4e5_5.png"], "original_data_index": 1955, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are less than 12, and also the driver IDs from school buses that are 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8oai0_12.png", "TableImg_Qi3hd_5.png"], "original_data_index": 1952, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are not equal to 5, but are not found in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5t9dn_12.png", "TableImg_Xnvna_5.png"], "original_data_index": 1953, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the maximum profits, the count of headquarters, the sum of company IDs, the count of industries, the count of assets, the average market value, the count of company names, and the sales for each sales value, considering companies where the market value is over 294.7 billion, the headquarters is in the UK, the sales are not 82.6 billion, or the industry is Conglomerate and the company ID is not 7, grouped by sales, excluding groups where the sum of company IDs is 14, the count of headquarters is greater than 1, the count of company names is less than 1 and the maximum profit is at least 16.2, the count of industries is not more than 1, or the count of assets is less than 1? Also, what are the same statistics for companies with a company ID of 17 or more, grouped by sales, but only including groups where the average market value is less than 132.4 billion and the count of industries is not more than 1?", "answer": {"columns": ["MAX(Profits_in_Billion)", "COUNT(Headquarters)", "SUM(Company_ID)", "COUNT(Industry)", "COUNT(Assets_in_Billion)", "AVG(Market_Value_in_Billion)", "COUNT(Name)", "Sales_in_Billion"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["10.3", "1", "8", "1", "1", "202.2", "1", "143.7"], ["11.1", "1", "14", "1", "1", "107.5", "1", "102.6"], ["14.2", "1", "3", "1", "1", "213.7", "1", "147.3"], ["14.4", "1", "19", "1", "1", "154.8", "1", "62.4"], ["15.7", "1", "16", "1", "1", "208.4", "1", "447.0"], ["15.9", "1", "9", "1", "1", "178.7", "1", "87.6"], ["15.9", "1", "18", "1", "1", "132.4", "1", "216.2"], ["16.2", "1", "6", "1", "1", "164.3", "1", "102.0"], ["19.0", "1", "2", "1", "1", "170.1", "1", "110.8"], ["20.1", "1", "10", "1", "1", "180.0", "1", "145.9"], ["20.5", "1", "13", "1", "1", "201.9", "1", "68.7"], ["20.6", "1", "7", "1", "1", "294.7", "1", "310.1"], ["21.5", "1", "17", "1", "1", "79.5", "1", "221.9"], ["25.7", "1", "11", "1", "1", "147.4", "1", "375.5"], ["26.9", "1", "12", "1", "1", "218.0", "1", "236.3"], ["30.9", "1", "4", "1", "1", "227.6", "1", "470.2"], ["31.7", "1", "15", "1", "1", "159.8", "1", "117.6"], ["41.1", "1", "1", "1", "1", "407.4", "1", "433.5"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Dpt6u_19.png", "TableImg_S1g6c_19.png"], "original_data_index": 1954, "original_sql": "SELECT MAX(Profits_in_Billion), COUNT(Headquarters), SUM(Company_ID), COUNT(Industry), COUNT(Assets_in_Billion), AVG(Market_Value_in_Billion), COUNT(Name), Sales_in_Billion FROM company WHERE \"Market_Value_in_Billion\" > 294.7 OR Headquarters = \"UK\" OR \"Sales_in_Billion\" <> 82.6 OR Industry = \"Conglomerate\" AND \"Company_ID\" <> 7.0 GROUP BY Sales_in_Billion HAVING SUM(Company_ID) != 14.0 OR COUNT(Headquarters) > 1 OR COUNT(Name) < 1 AND MAX(Profits_in_Billion) >= 16.2 OR COUNT(Industry) <= 1 OR COUNT(Assets_in_Billion) < 1 UNION SELECT MAX(Profits_in_Billion), COUNT(Headquarters), SUM(Company_ID), COUNT(Industry), COUNT(Assets_in_Billion), AVG(Market_Value_in_Billion), COUNT(Name), Sales_in_Billion FROM company WHERE \"Company_ID\" >= 17.0 GROUP BY Sales_in_Billion HAVING AVG(Market_Value_in_Billion) < 132.4 AND COUNT(Industry) <= 1"} {"question": "What are the aircraft IDs that are either ID 5 or any ID other than 2, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mamwq_5.png", "TableImg_Vccto_4.png"], "original_data_index": 1956, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are less than or equal to 8 but not equal to 3, considering only driver IDs present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Geyjr_12.png", "TableImg_2sgrr_5.png"], "original_data_index": 1958, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are less than or equal to 8 and are in the driver table but not in the school bus table, where the driver IDs in the school bus table are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_010e7_12.png", "TableImg_1v77a_5.png"], "original_data_index": 1957, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the aircraft IDs that are not 5 and are in the aircraft table, but not in the airport_aircraft table with an ID of 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0o8dn_5.png", "TableImg_Wznoi_4.png"], "original_data_index": 1962, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the member IDs, registration years, and branch IDs for members in branch 4 for the year 2016, excluding member ID 2, and also for members in branch 6?", "answer": {"columns": ["Member_ID", "Register_Year", "Branch_ID"], "index": [0], "data": [["6", "2017", "6"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Wcmaj_8.png", "TableImg_M89a7_8.png"], "original_data_index": 1959, "original_sql": "SELECT Member_ID, Register_Year, Branch_ID FROM membership_register_branch WHERE Branch_ID = \"4\" AND Register_Year = \"2016\" AND \"Member_ID\" != 2 UNION ALL SELECT Member_ID, Register_Year, Branch_ID FROM membership_register_branch WHERE Branch_ID = \"6\""} {"question": "What are the age, ID, minimum weight, and type of pets that either have an ID less than or equal to 2003, weigh less than 9.3, or are dogs, but exclude those that are not dogs?", "answer": {"columns": ["pet_age", "PetID", "MIN(weight)", "PetType"], "index": [0], "data": [["1", "2003", "9.3", "dog"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_Rpav0_3.png", "TableImg_M7ohd_3.png"], "original_data_index": 1960, "original_sql": "SELECT pet_age, PetID, MIN(weight), PetType FROM Pets WHERE \"PetID\" <= 2003 OR \"weight\" < 9.3 OR PetType = \"dog\" EXCEPT SELECT pet_age, PetID, MIN(weight), PetType FROM Pets WHERE PetType != \"dog\""} {"question": "What is the maximum store ID from the store table where the store ID is not 3, the area size is 28.74, or the type is not \"Village Store\", or the ranking is at least 2, or the store name is not \"Rogersville\" and the number of product categories is not 17811? Also, what is the maximum store ID from the store_product table where the product ID is not 1 and the store ID is less than or equal to 5? Then, show only the store IDs that appear in both of these results.", "answer": {"columns": ["MAX(Store_ID)"], "index": [0], "data": [["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_Rxr9q_5.png", "TableImg_E787g_15.png"], "original_data_index": 1961, "original_sql": "SELECT MAX(Store_ID) FROM store WHERE \"Store_ID\" <> 3 AND \"Area_size\" = 28.74 OR Type != \"Village Store\" OR \"Ranking\" >= 2 OR Store_Name <> \"Rogersville\" AND \"Number_of_product_category\" <> 17811.0 INTERSECT SELECT MAX(Store_ID) FROM store_product WHERE \"Product_ID\" <> 1 AND \"Store_ID\" <= 5"} {"question": "Which driver IDs are less than or equal to 4, excluding those that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rbd7c_12.png", "TableImg_Bzy5r_5.png"], "original_data_index": 1963, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs, excluding driver ID 7, and also the driver IDs greater than 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0vnf9_12.png", "TableImg_Bom9f_5.png"], "original_data_index": 1964, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs, excluding driver ID 11, from the driver table, and also the driver IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zgctg_12.png", "TableImg_87obs_5.png"], "original_data_index": 1965, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What is the smallest percentage of the budget budgeted, excluding values equal to 2.0, for schools with an ID of 4 or higher, and also the smallest percentage of the budget budgeted, excluding values equal to 2.4, for budgets where the budgeted amount is 4979 or less, the invested amount is less than 146102, the year is 2001 or earlier, the school ID is greater than 3, or the budget invested percentage is not 71.3, or the total budget invested percentage is not 2.0?", "answer": {"columns": ["MIN(total_budget_percent_budgeted)"], "index": [0], "data": [["1.3"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Dci07_8.png", "TableImg_87i88_8.png"], "original_data_index": 1966, "original_sql": "SELECT MIN(total_budget_percent_budgeted) FROM budget WHERE \"total_budget_percent_budgeted\" <> 2.0 AND \"School_id\" >= 4 INTERSECT SELECT MIN(total_budget_percent_budgeted) FROM budget WHERE \"total_budget_percent_budgeted\" <> 2.4 AND \"Budgeted\" <= 4979 AND \"Invested\" < 146102 AND \"Year\" <= 2001 AND \"School_id\" > 3 OR Budget_invested_percent != \"71.3\" OR \"total_budget_percent_invested\" <> 2.0"} {"question": "What are the aircraft IDs greater than 3 that are not in the airport aircraft list except for aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G0q6n_5.png", "TableImg_H99pl_4.png"], "original_data_index": 1967, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the ages and head IDs, grouped by age, where the age is not 69 and the name is Dudley Hart, or the department ID is 15, or the born state is not Connecticut, or the temporary acting status is not Yes?", "answer": {"columns": ["age", "head_ID"], "index": [0, 1, 2, 3], "data": [["52", "4"], ["53", "5"], ["67", "10"], ["69", "6"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_6ysak_10.png", "TableImg_9iax9_5.png"], "original_data_index": 1968, "original_sql": "SELECT T1.age, T2.head_ID FROM head as T1 JOIN management as T2 ON T1.head_ID == T2.head_ID GROUP BY age HAVING age <> 69.0 AND name = \"Dudley Hart\" OR department_ID = 15 OR born_state <> \"Connecticut\" OR temporary_acting <> \"Yes\""} {"question": "What are the club details, including ID, location, description, and name, for clubs that are not the \"Tennis Club\" or have the description \"Venture capital fund for student business.\" or have a ClubID greater than or equal to 2 and are not located in \"HHH\", excluding those that are not \"Bootup Baltimore\" or do not have the description \"Refurbish computers; teach kids and adults about computer basics.\"?", "answer": {"columns": ["ClubID", "ClubLocation", "ClubDesc", "ClubName"], "index": [0], "data": [["1", "AKW", "Refurbish computers; teach kids and adults about computer basics.", "Bootup Baltimore"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Ljgx3_4.png", "TableImg_W4yf8_4.png"], "original_data_index": 1969, "original_sql": "SELECT ClubID, ClubLocation, ClubDesc, ClubName FROM Club WHERE ClubName != \"Tennis Club\" OR ClubDesc = \"Venture capital fund for student business.\" OR \"ClubID\" >= 2 AND ClubLocation != \"HHH\" EXCEPT SELECT ClubID, ClubLocation, ClubDesc, ClubName FROM Club WHERE ClubName <> \"Bootup Baltimore\" OR ClubDesc <> \"Refurbish computers; teach kids and adults about computer basics.\""} {"question": "What states have area code 339, but are not states where votes were cast for a contestant other than number 3, or where the state is not NY, or vote ID is not 2, or the phone number is less than 6209222712, or the vote was not created on March 9, 2018 at 7:03:39 PM?", "answer": {"columns": ["state"], "index": [0], "data": [["MA"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Lyho8_305.png", "TableImg_Ipl5q_4.png"], "original_data_index": 1970, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE \"area_code\" = 339 EXCEPT SELECT state FROM VOTES WHERE \"contestant_number\" <> 3 AND state <> \"NY\" AND \"vote_id\" = 2 AND \"phone_number\" >= 6209222712 OR created <> \"2018-03-09 19:03:39\""} {"question": "What are the descriptions and codes of all document types, excluding those with the code \"CD\"?", "answer": {"columns": ["document_type_description", "document_type_code"], "index": [0, 1], "data": [["f", "Hard Drive"], ["u", "Paper"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Lmqej_3.png", "TableImg_Evr2y_3.png"], "original_data_index": 1971, "original_sql": "SELECT document_type_description, document_type_code FROM Ref_Document_Types WHERE document_type_code != \"CD\" UNION SELECT document_type_description, document_type_code FROM Ref_Document_Types WHERE document_type_code <> \"CD\""} {"question": "What are the driver IDs that are less than 10, and also the driver IDs from school buses that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4d5t9_12.png", "TableImg_M40j3_5.png"], "original_data_index": 1974, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are present in either the driver table or the school bus table, excluding driver ID 6 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Swes6_12.png", "TableImg_3hu8g_5.png"], "original_data_index": 1973, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs that are less than 2, and also the aircraft IDs that are less than or equal to 2, considering both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L4esr_5.png", "TableImg_Xoc6c_4.png"], "original_data_index": 1972, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the aircraft IDs that appear in both the aircraft table and the airport_aircraft table, where the aircraft ID is greater than 2 in the aircraft table and greater than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dj2v4_5.png", "TableImg_Yjddq_4.png"], "original_data_index": 1978, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "How many donors are there in the endowment table where the amount is not 9.83, and also how many donors are there where the amount is not 9.83, or the donor's name is not Santiago, or the endowment ID is greater than or equal to 1?", "answer": {"columns": ["COUNT(donator_name)"], "index": [0, 1], "data": [["10"], ["11"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_Mk2yo_11.png", "TableImg_5jn9w_11.png"], "original_data_index": 1976, "original_sql": "SELECT COUNT(donator_name) FROM endowment WHERE \"amount\" != 9.83 UNION ALL SELECT COUNT(donator_name) FROM endowment WHERE \"amount\" <> 9.83 OR donator_name != \"Santiago\" OR \"endowment_id\" >= 1"} {"question": "What are the customer IDs, payment method codes, payment dates and times, and payment amounts for payments that were made via direct debit or not equal to 8180.26, and also for payments where the amount was greater than 4773.16, or the customer ID was not 3, and the payment date and time was not 2018-03-12 13:31:36?", "answer": {"columns": ["customer_id", "payment_method_code", "datetime_payment", "amount_payment"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1", "Direct Debit", "2018-03-18 13:48:13", "9886.62"], ["2", "Direct Debit", "2018-02-24 10:07:05", "8180.26"], ["2", "Direct Debit", "2018-03-20 21:38:41", "1708.18"], ["4", "Direct Debit", "2018-02-03 15:04:36", "6311.37"], ["6", "Direct Debit", "2018-02-19 09:06:29", "5475.26"], ["6", "Direct Debit", "2018-03-12 08:41:47", "4032.33"], ["7", "Direct Debit", "2018-02-15 16:38:49", "4773.16"], ["10", "Direct Debit", "2018-02-01 06:15:31", "6782.84"], ["11", "Direct Debit", "2018-02-05 18:44:46", "9570.93"], ["12", "Credit Card", "2018-03-06 21:36:41", "9414.74"], ["13", "Credit Card", "2018-02-21 05:28:49", "7440.34"], ["14", "Credit Card", "2018-02-19 01:49:59", "3073.98"], ["14", "Credit Card", "2018-03-12 13:31:36", "6970.98"], ["14", "Direct Debit", "2018-02-27 20:08:53", "4610.26"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_V39qd_15.png", "TableImg_Tl5lt_15.png"], "original_data_index": 1977, "original_sql": "SELECT customer_id, payment_method_code, datetime_payment, amount_payment FROM Customer_Payments WHERE payment_method_code = \"Direct Debit\" OR \"amount_payment\" != 8180.26 INTERSECT SELECT customer_id, payment_method_code, datetime_payment, amount_payment FROM Customer_Payments WHERE \"amount_payment\" > 4773.16 OR \"customer_id\" != 3 AND datetime_payment != \"2018-03-12 13:31:36\""} {"question": "What are the invested amounts, the count of total budget percentages budgeted, the sum of budget invested percentages, and the sum of total budget percentages invested, considering either a budgeted value greater than or equal to 3666, or a total budget percentage budgeted not equal to 2.4 and a total budget percentage invested not equal to 2.2, or a year greater than 2004; and also considering a total budget percentage invested not equal to 2.0, or a school ID greater than 2 and a year greater than 2006, all from the budget table?", "answer": {"columns": ["Invested", "COUNT(total_budget_percent_budgeted)", "SUM(Budget_invested_percent)", "SUM(total_budget_percent_invested)"], "index": [0, 1], "data": [["2134", "8", "1127.9", "17.8"], ["85249", "4", "656.3", "9.8"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_R1xzl_8.png", "TableImg_Wqzu2_8.png"], "original_data_index": 1975, "original_sql": "SELECT Invested, COUNT(total_budget_percent_budgeted), SUM(Budget_invested_percent), SUM(total_budget_percent_invested) FROM budget WHERE \"Budgeted\" >= 3666 OR \"total_budget_percent_budgeted\" <> 2.4 AND \"total_budget_percent_invested\" <> 2.2 OR \"Year\" > 2004 UNION ALL SELECT Invested, COUNT(total_budget_percent_budgeted), SUM(Budget_invested_percent), SUM(total_budget_percent_invested) FROM budget WHERE \"total_budget_percent_invested\" != 2.0 OR \"School_id\" > 2 AND \"Year\" > 2006"} {"question": "What are the IDs of drivers, excluding driver ID 5, and the IDs of school buses, excluding ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mcb83_12.png", "TableImg_C2tmy_5.png"], "original_data_index": 1979, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs less than 3 from the driver table, combined with the driver IDs not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Muvw5_12.png", "TableImg_M1qw6_5.png"], "original_data_index": 1980, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are less than 2 but not present in the school bus table with driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0pujd_12.png", "TableImg_Dmpjl_5.png"], "original_data_index": 1981, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are less than 8, and also the driver IDs that are 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7a0au_12.png", "TableImg_447hw_5.png"], "original_data_index": 1984, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are greater than 6 but not less than 9, considering only driver IDs from the 'driver' table and excluding those from the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xp4vn_12.png", "TableImg_Fto7j_5.png"], "original_data_index": 1982, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs, excluding driver ID 11, from the driver table, combined with the driver IDs, starting from ID 3, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L2xt7_12.png", "TableImg_Cj0lw_5.png"], "original_data_index": 1983, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What bonus amounts are either less than or equal to 3200 or not from 2015, and also not from 2018, or not given to employee 7, or greater than or equal to 3200?", "answer": {"columns": ["Bonus"], "index": [0, 1, 2, 3], "data": [["2900"], ["3000"], ["3200"], ["4000"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_7jxta_6.png", "TableImg_Wymh0_6.png"], "original_data_index": 1985, "original_sql": "SELECT Bonus FROM evaluation WHERE \"Bonus\" <= 3200.0 OR Year_awarded <> \"2015\" INTERSECT SELECT Bonus FROM evaluation WHERE Year_awarded != \"2018\" OR Employee_ID <> \"7\" OR \"Bonus\" >= 3200.0"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 8 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Og05h_12.png", "TableImg_Wswrs_5.png"], "original_data_index": 1986, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the address IDs and details for addresses with IDs greater than 2 and details not equal to \"MX\", as well as the address with ID 7?", "answer": {"columns": ["address_id", "address_details"], "index": [0, 1, 2, 3, 4, 5], "data": [["3", "ES"], ["4", "ES"], ["5", "IE"], ["6", "US"], ["7", "PT"], ["8", "IE"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Cws4e_10.png", "TableImg_Obc12_10.png"], "original_data_index": 1989, "original_sql": "SELECT address_id, address_details FROM Addresses WHERE \"address_id\" > 2 AND address_details != \"MX\" UNION SELECT address_id, address_details FROM Addresses WHERE \"address_id\" = 7"} {"question": "Find the city code, advisor, last name, age, major, sex, student ID, and first name of male students who are not from WAS, and also find the same information for students who are either not male, or whose advisor is not 7134, or whose last name is not Brown.", "answer": {"columns": ["city_code", "Advisor", "LName", "Age", "Major", "Sex", "StuID", "Fname"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], "data": [["ATL", "8772", "Brown", "20", "550", "M", "1032", "Eric"], ["BAL", "1148", "Schultz", "18", "600", "M", "1006", "Andy"], ["BOS", "5718", "Epp", "18", "50", "M", "1034", "Eric"], ["CHI", "8423", "Kumar", "20", "600", "M", "1004", "Dinesh"], ["DAL", "8741", "Norris", "18", "600", "M", "1014", "Charles"], ["DET", "2192", "Schwartz", "17", "600", "M", "1016", "Mark"], ["HKG", "7134", "Pang", "19", "520", "M", "1026", "Eric"], ["HOU", "2192", "Lee", "17", "600", "M", "1010", "Derek"], ["LON", "1148", "Wilson", "27", "600", "M", "1017", "Bruce"], ["LOS", "8723", "Brody", "18", "520", "M", "1027", "Paul"], ["NAR", "8772", "Simms", "18", "550", "M", "1033", "William"], ["NYC", "7271", "Thornton", "22", "520", "M", "1020", "Ian"], ["NYC", "8722", "Andreou", "19", "520", "M", "1021", "George"], ["NYC", "8722", "Shieber", "20", "520", "M", "1023", "David"], ["PEK", "2311", "Han", "17", "100", "M", "1029", "Jun"], ["PHL", "1148", "Adams", "22", "600", "M", "1011", "David"], ["PHL", "8722", "Woods", "17", "540", "M", "1022", "Michael"], ["PIT", "1121", "Leighton", "20", "600", "M", "1018", "Michael"], ["PIT", "7134", "Goldman", "18", "520", "M", "1025", "Mark"], ["PIT", "7723", "Davis", "20", "600", "M", "1012", "Steven"], ["ROC", "2311", "Rugh", "20", "550", "M", "1028", "Eric"], ["YYZ", "1121", "Gompers", "26", "600", "M", "1005", "Paul"], ["YYZ", "2192", "Tai", "19", "600", "M", "1009", "Eric"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Vd25k_34.png", "TableImg_1iwjn_34.png"], "original_data_index": 1988, "original_sql": "SELECT city_code, Advisor, LName, Age, Major, Sex, StuID, Fname FROM Student WHERE Sex = \"M\" AND city_code != \"WAS\" INTERSECT SELECT city_code, Advisor, LName, Age, Major, Sex, StuID, Fname FROM Student WHERE Sex != \"M\" OR \"Advisor\" != 7134 OR LName != \"Brown\""} {"question": "What are the draft numbers and document IDs from the circulation history where the document ID is not 1, or the employee ID is not 1 and the draft number is 17, or the copy number is greater than 10, but not including those draft numbers and document IDs from the draft copies where the document ID is less than 23, the copy number is greater than 15, and the draft number is greater than 17?", "answer": {"columns": ["draft_number", "document_id"], "index": [0, 1, 2], "data": [["1", "2"], ["17", "20"], ["20", "10"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_7lt3e_4.png", "TableImg_2vzfu_8.png"], "original_data_index": 1987, "original_sql": "SELECT draft_number, document_id FROM Circulation_History WHERE \"document_id\" <> 1 OR \"employee_id\" != 1 AND \"draft_number\" = 17 OR \"copy_number\" > 10 EXCEPT SELECT draft_number, document_id FROM Draft_Copies WHERE \"document_id\" < 23 AND \"copy_number\" > 15 AND \"draft_number\" > 17"} {"question": "What are the aircraft IDs that are either aircraft ID 3 or have an aircraft ID greater than 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G0odw_5.png", "TableImg_Sg54b_4.png"], "original_data_index": 1991, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the aircraft IDs that appear in both the aircraft table and the airport_aircraft table, where the aircraft ID is greater than or equal to 1 in the aircraft table and less than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4yzh3_5.png", "TableImg_7m8vb_4.png"], "original_data_index": 1994, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs, excluding driver ID 10, are in the driver table, and also which driver IDs, up to and including 4, are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D4z3d_12.png", "TableImg_Q2o7f_5.png"], "original_data_index": 1992, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the maker IDs and years of cars where the engine displacement is greater than 156.0 and the acceleration is 11.5, grouped by the full name of the maker?", "answer": {"columns": ["Id", "Year"], "index": [0, 1], "data": [["12", "1970"], ["2", "1970"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_D38w7_22.png", "TableImg_V6gtu_406.png"], "original_data_index": 1993, "original_sql": "SELECT T1.Id, T2.Year FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id == T2.Id GROUP BY FullName HAVING Edispl > 156.0 AND Accelerate = 11.5"} {"question": "Which club IDs are from clubs founded after 1998 and not named \"Djurg\u00e5rdens IF\", or from match results where the club ID is greater than 2, or where \"Big_Silver\" is not 6 and the rank is greater than 4?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_29bmo_6.png", "TableImg_709l4_6.png"], "original_data_index": 1995, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" > 1998 AND Club_name <> \"Djurg\u00e5rdens IF\" UNION SELECT Club_ID FROM match_result WHERE \"Club_ID\" > 2 OR \"Big_Silver\" <> 6 AND \"Rank\" > 4"} {"question": "What are the template IDs from the Documents table where the other details are not \"None\" or the document description is \"h\", combined with the template IDs from the Templates table where the template ID is greater than 0, or the date effective to is not \"2008-01-05 14:19:28\", or the version number is not 5?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["14"], ["15"], ["16"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Kfrot_15.png", "TableImg_9swgb_20.png"], "original_data_index": 1996, "original_sql": "SELECT Template_ID FROM Documents WHERE Other_Details <> \"None\" OR Document_Description = \"h\" UNION SELECT Template_ID FROM Templates WHERE \"Template_ID\" > 0 OR Date_Effective_To <> \"2008-01-05 14:19:28\" OR \"Version_Number\" <> 5"} {"question": "Which driver IDs are either less than or equal to 5 and exist in the driver table, or are less than or equal to 3 and exist in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q8g33_12.png", "TableImg_Kmdp0_5.png"], "original_data_index": 1997, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are greater than 12, or are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mgknh_12.png", "TableImg_6i42w_5.png"], "original_data_index": 1999, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are less than 12 from the driver table, combined with the driver IDs that are 4 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Knny5_12.png", "TableImg_Vukgd_5.png"], "original_data_index": 2000, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the smallest document IDs from the Circulation History table where the copy number isn't 4, or the draft number is less than 20 and the employee ID is at least 8, or the document ID is at least 1? Also, what are the smallest document IDs from the Documents Mailed table where the mailing address ID is 3 and the document ID is 10, or the mailing date was May 27, 1991 at 2:17 PM?", "answer": {"columns": ["MIN(document_id)"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_O9kxz_4.png", "TableImg_O6ai2_14.png"], "original_data_index": 1998, "original_sql": "SELECT MIN(document_id) FROM Circulation_History WHERE \"copy_number\" <> 4 OR \"draft_number\" < 20 AND \"employee_id\" >= 8 OR \"document_id\" >= 1 UNION SELECT MIN(document_id) FROM Documents_Mailed WHERE \"mailed_to_address_id\" = 3 AND \"document_id\" = 10 OR mailing_date = \"1991-05-27 14:17:37\""} {"question": "What are the driver IDs that are greater than or equal to 2, excluding those driver IDs that are not equal to 3, considering only driver IDs from the driver table and school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_22ves_12.png", "TableImg_75kog_5.png"], "original_data_index": 2001, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are both less than 10 and also equal to 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K8x7d_12.png", "TableImg_8f1ml_5.png"], "original_data_index": 2002, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs that are either 6 or higher in the driver table, or 9 or higher in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6i5q9_12.png", "TableImg_I5fwx_5.png"], "original_data_index": 2003, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are both less than or equal to 8 and also equal to 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dy4ut_12.png", "TableImg_P5i91_5.png"], "original_data_index": 2005, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs that are greater than or equal to 2 in the driver table, but not driver IDs less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yxh77_12.png", "TableImg_9ia98_5.png"], "original_data_index": 2004, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the average aircraft ID and the airport ID for aircraft that either have a maximum disk loading of 15 lb/ft\u00b2, a total disk area of 8,495 ft\u00b2, a description that is not \"Heavy-lift helicopter\", an aircraft that is not \"Robinson R-22\", or a maximum gross weight of 1,370 lb?", "answer": {"columns": ["AVG(T1.Aircraft_ID)", "Airport_ID"], "index": [0], "data": [["", ""]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vb4jq_5.png", "TableImg_Ys2f4_4.png"], "original_data_index": 2006, "original_sql": "SELECT AVG(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID WHERE Max_disk_Loading = \"15 lb/ft\u00b2 (72 kg/m\u00b2)\" AND Total_disk_area = \"8,495 ft\u00b2 (789 m\u00b2)\" OR Description <> \"Heavy-lift helicopter\" AND Aircraft <> \"Robinson R-22\" OR Max_Gross_Weight = \"1,370 lb (635 kg)\""} {"question": "Show me the student ID, major, and advisor for students where the major is less than or equal to 600, or the sex is female, or the age is less than 17, or the advisor is less than or equal to 9172, or the last name is not Leighton. Also, show me the student ID, major, and advisor for students where the city code is not LOS and the age is not 17, or the major is greater than or equal to 600, or the first name is not Eric.", "answer": {"columns": ["StuID", "Major", "Advisor"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67], "data": [["1001", "600", "1121"], ["1002", "600", "7712"], ["1003", "600", "7792"], ["1004", "600", "8423"], ["1005", "600", "1121"], ["1006", "600", "1148"], ["1007", "600", "8918"], ["1008", "600", "9172"], ["1009", "600", "2192"], ["1010", "600", "2192"], ["1011", "600", "1148"], ["1012", "600", "7723"], ["1014", "600", "8741"], ["1015", "600", "8721"], ["1016", "600", "2192"], ["1017", "600", "1148"], ["1018", "600", "1121"], ["1019", "600", "2192"], ["1020", "520", "7271"], ["1021", "520", "8722"], ["1022", "540", "8722"], ["1023", "520", "8722"], ["1024", "540", "7271"], ["1025", "520", "7134"], ["1026", "520", "7134"], ["1027", "520", "8723"], ["1028", "550", "2311"], ["1029", "100", "2311"], ["1030", "550", "2311"], ["1031", "550", "8772"], ["1032", "550", "8772"], ["1033", "550", "8772"], ["1034", "50", "5718"], ["1035", "50", "5718"], ["1001", "600", "1121"], ["1002", "600", "7712"], ["1003", "600", "7792"], ["1004", "600", "8423"], ["1005", "600", "1121"], ["1006", "600", "1148"], ["1007", "600", "8918"], ["1008", "600", "9172"], ["1009", "600", "2192"], ["1010", "600", "2192"], ["1011", "600", "1148"], ["1012", "600", "7723"], ["1014", "600", "8741"], ["1015", "600", "8721"], ["1016", "600", "2192"], ["1017", "600", "1148"], ["1018", "600", "1121"], ["1019", "600", "2192"], ["1020", "520", "7271"], ["1021", "520", "8722"], ["1022", "540", "8722"], ["1023", "520", "8722"], ["1024", "540", "7271"], ["1025", "520", "7134"], ["1026", "520", "7134"], ["1027", "520", "8723"], ["1028", "550", "2311"], ["1029", "100", "2311"], ["1030", "550", "2311"], ["1031", "550", "8772"], ["1032", "550", "8772"], ["1033", "550", "8772"], ["1034", "50", "5718"], ["1035", "50", "5718"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_G2upq_34.png", "TableImg_Xac7u_34.png"], "original_data_index": 2007, "original_sql": "SELECT StuID, Major, Advisor FROM Student WHERE \"Major\" <= 600 OR Sex = \"F\" OR \"Age\" < 17 OR \"Advisor\" <= 9172 OR LName <> \"Leighton\" UNION ALL SELECT StuID, Major, Advisor FROM Student WHERE city_code != \"LOS\" AND \"Age\" <> 17 OR \"Major\" >= 600 OR Fname <> \"Eric\""} {"question": "Which driver IDs are equal to 1 but not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J1tmy_12.png", "TableImg_Ppoc5_5.png"], "original_data_index": 2008, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are greater than 4 but not present in the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kjj19_12.png", "TableImg_R58gg_5.png"], "original_data_index": 2009, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs greater than 9 that are present in both the driver and school bus tables, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kf6kk_12.png", "TableImg_Pegop_5.png"], "original_data_index": 2011, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are not 3 and are in the aircraft table, but not in the airport_aircraft table with IDs greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vsi9v_5.png", "TableImg_R3lko_4.png"], "original_data_index": 2010, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the aircraft IDs that are equal to 4 but not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kx6qf_5.png", "TableImg_M2p9y_4.png"], "original_data_index": 2013, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are not equal to 8, and also include driver ID 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C9l7q_12.png", "TableImg_09y8u_5.png"], "original_data_index": 2014, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the user IDs of users named Nancy, combined with the user IDs of all users who are not named Helen?", "answer": {"columns": ["u_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_Kgz39_7.png", "TableImg_7cjej_7.png"], "original_data_index": 2012, "original_sql": "SELECT u_id FROM useracct WHERE name = \"Nancy\" UNION SELECT u_id FROM useracct WHERE name <> \"Helen\""} {"question": "For departments, excluding those named \"Treasury\" or with a ranking not equal to 13, and also excluding those created in \"1903\" or with a department ID of 15, give me the count of employees, the maximum ranking, the average department ID, the creation date, and the count of department names, grouped by creation date. Then, show me only the results where the count of employees is not 1. Separately, show me the same information, but only for the departments where the average department ID is 8.0, the maximum ranking is at least 8, or the count of department names is at least 1, or the count of employees is at least 1. Combine these two sets of results.", "answer": {"columns": ["COUNT(Num_Employees)", "MAX(Ranking)", "AVG(Department_ID)", "Creation", "COUNT(Name)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1", "3", "3.0", "1947", "1"], ["1", "4", "4.0", "1870", "1"], ["1", "5", "5.0", "1849", "1"], ["1", "6", "6.0", "1889", "1"], ["1", "8", "8.0", "1913", "1"], ["1", "9", "9.0", "1953", "1"], ["1", "10", "10.0", "1965", "1"], ["1", "11", "11.0", "1966", "1"], ["1", "12", "12.0", "1977", "1"], ["1", "13", "13.0", "1979", "1"], ["1", "14", "14.0", "1989", "1"], ["1", "15", "15.0", "2002", "1"], ["2", "2", "1.5", "1789", "2"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_P8oto_15.png", "TableImg_0k177_15.png"], "original_data_index": 2015, "original_sql": "SELECT COUNT(Num_Employees), MAX(Ranking), AVG(Department_ID), Creation, COUNT(Name) FROM department WHERE Name <> \"Treasury\" OR \"Ranking\" != 13 GROUP BY Creation HAVING COUNT(Num_Employees) != 1 UNION SELECT COUNT(Num_Employees), MAX(Ranking), AVG(Department_ID), Creation, COUNT(Name) FROM department WHERE Creation <> \"1903\" OR \"Department_ID\" = 15 GROUP BY Creation HAVING AVG(Department_ID) = 8.0 AND MAX(Ranking) >= 8 AND COUNT(Name) >= 1 OR COUNT(Num_Employees) >= 1"} {"question": "What are the aircraft IDs that are not 2, and also what is the aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8w3o3_5.png", "TableImg_7vu1u_4.png"], "original_data_index": 2017, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the IDs of drivers who are not driver ID 1 and are also associated with a school bus with an ID greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0iseb_12.png", "TableImg_6f36g_5.png"], "original_data_index": 2018, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the club IDs and average ranks of female coaches with a rank of 5 or less, excluding those club IDs and average ranks found in match results where small silver is not 4, or club ID is 3 or greater, or gold is not 12, or points are less than 66 and big silver is 6 or less?", "answer": {"columns": ["Club_ID", "AVG(Rank)"], "index": [0], "data": [["1", "2"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Lihpc_5.png", "TableImg_Srtkp_6.png"], "original_data_index": 2016, "original_sql": "SELECT Club_ID, AVG(Rank) FROM coach WHERE Gender = \"F\" AND \"Rank\" <= 5 EXCEPT SELECT Club_ID, AVG(Rank) FROM match_result WHERE \"Small_Silver\" <> 4 OR \"Club_ID\" >= 3 OR \"Gold\" != 12 OR \"Points\" < 66 AND \"Big_Silver\" <= 6"} {"question": "What are the aircraft IDs that are not 1 and also appear in the airport aircraft table with an ID less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6a2s9_5.png", "TableImg_Mk4iv_4.png"], "original_data_index": 2020, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the aircraft IDs, excluding ID 1, that appear in both the aircraft and airport aircraft tables, with the airport aircraft IDs being no more than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Btmp0_5.png", "TableImg_1kn0l_4.png"], "original_data_index": 2021, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the driver IDs greater than or equal to 2, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I1lu8_12.png", "TableImg_9l1ov_5.png"], "original_data_index": 2022, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which club IDs meet these criteria: either they are not located in AKW or their description is not \"Play pen and paper games on campus.\" and their name is \"Hopkins Student Enterprises\" or their club ID is not 3; or they are club ID 1 and have a student ID greater than or equal to 1010 and the position is CTO?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Lmmm6_4.png", "TableImg_C8i2k_4.png"], "original_data_index": 2019, "original_sql": "SELECT ClubID FROM Club WHERE ClubLocation != \"AKW\" OR ClubDesc <> \"Play pen and paper games on campus.\" AND ClubName = \"Hopkins Student Enterprises\" OR \"ClubID\" <> 3 UNION ALL SELECT ClubID FROM Member_of_club WHERE \"ClubID\" = 1 AND \"StuID\" >= 1010 AND Position = \"CTO\""} {"question": "Which driver IDs are greater than 4 but not present in the school bus table with IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Toyp1_12.png", "TableImg_1m1w9_5.png"], "original_data_index": 2024, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the IDs of drivers who have an ID greater than 4 and also appear in the school bus table, excluding those with an ID of 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mu0hd_12.png", "TableImg_Ejtkg_5.png"], "original_data_index": 2025, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the available features that are not security features and are not BurglarAlarm, but are not available when feature ID is 4 and the feature type is not amenity?", "answer": {"columns": ["feature_name"], "index": [0, 1], "data": [["AirCon"], ["Pool"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_J36ai_3.png", "TableImg_Ms5hr_3.png"], "original_data_index": 2023, "original_sql": "SELECT feature_name FROM Other_Available_Features WHERE feature_type_code <> \"Security\" AND feature_name != \"BurglarAlarm\" EXCEPT SELECT feature_name FROM Other_Available_Features WHERE \"feature_id\" = 4 AND feature_type_code <> \"Amenity\""} {"question": "For each committee, what is the average party value, the count of first elected years, and the delegate, counties represented, and election ID? Include results where the first elected year is not 2002, or the delegate is \"Malone, James E. Jr. James E. Malone, Jr.\", or the party value is less than or equal to 1 and the committee is not \"Appropriations\". Also include results where the delegate is not \"Bobo, Elizabeth Elizabeth Bobo\" and the election ID is 6 and the committee is not \"Economic Matters\" and the party is less than 1, or the first elected year is not 2003.", "answer": {"columns": ["Committee", "AVG(Party)", "COUNT(First_Elected)", "Delegate", "Counties_Represented", "Election_ID"], "index": [0, 1], "data": [["Economic Matters", "3.0", "6", "Miller, Warren E. Warren E. Miller", "09.1 9A", "2"], ["Appropriations", "2.8571428571", "7", "Bates, Gail H. Gail H. Bates", "09.1 9A", "1"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_2i60l_8.png", "TableImg_Je6ts_8.png"], "original_data_index": 2026, "original_sql": "SELECT Committee, AVG(Party), COUNT(First_Elected), Delegate, Counties_Represented, Election_ID FROM election WHERE \"First_Elected\" <> 2002.0 OR Delegate = \"Malone, James E. Jr. James E. Malone, Jr.\" OR \"Party\" <= 1 AND Committee <> \"Appropriations\" UNION ALL SELECT Committee, AVG(Party), COUNT(First_Elected), Delegate, Counties_Represented, Election_ID FROM election WHERE Delegate <> \"Bobo, Elizabeth Elizabeth Bobo\" AND \"Election_ID\" = 6 AND Committee <> \"Economic Matters\" AND \"Party\" < 1 OR \"First_Elected\" != 2003.0"} {"question": "Which driver IDs, excluding ID 12, are present in both the driver and school bus tables, excluding ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Meep8_12.png", "TableImg_0zpsd_5.png"], "original_data_index": 2028, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are less than or equal to 5, combined with the driver IDs that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6pq8z_12.png", "TableImg_Kozv9_5.png"], "original_data_index": 2027, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What is the average vehicle ID for lessons where the customer ID is greater than 2 and the vehicle ID is not 2, excluding the average vehicle ID for vehicles with an ID of 2 or less?", "answer": {"columns": ["AVG(vehicle_id)"], "index": [0], "data": [["1.5714285714"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_6pxj6_15.png", "TableImg_E6lgx_3.png"], "original_data_index": 2029, "original_sql": "SELECT AVG(vehicle_id) FROM Lessons WHERE \"customer_id\" > 2 AND \"vehicle_id\" <> 2 EXCEPT SELECT AVG(vehicle_id) FROM Vehicles WHERE \"vehicle_id\" <= 2"} {"question": "What are the driver IDs that are either greater than or equal to 3 from the driver table, or not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_29bww_12.png", "TableImg_Oiit8_5.png"], "original_data_index": 2031, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are not equal to 4 but are not found in school buses with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0gmjb_12.png", "TableImg_7yw24_5.png"], "original_data_index": 2030, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs from school buses that are 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eiuhy_12.png", "TableImg_Gmvlt_5.png"], "original_data_index": 2032, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the other details for employees named Koby or those whose role isn't PR, and also the other details for employees who aren't Clemens and have \"b\" as other details, provided their employee ID is greater than 1?", "answer": {"columns": ["other_details"], "index": [0, 1, 2, 3, 4, 5], "data": [["h"], ["f"], ["b"], ["v"], ["u"], ["b"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_M20oe_6.png", "TableImg_Ud0yp_6.png"], "original_data_index": 2033, "original_sql": "SELECT other_details FROM Employees WHERE employee_name = \"Koby\" OR role_code <> \"PR\" UNION ALL SELECT other_details FROM Employees WHERE employee_name <> \"Clemens\" AND other_details = \"b\" AND \"employee_id\" > 1"} {"question": "Which aircraft IDs are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_75rs6_5.png", "TableImg_G2oti_4.png"], "original_data_index": 2037, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the branch and member IDs of members with IDs greater than 5 in the membership register, excluding those who made purchases in years other than 2017?", "answer": {"columns": ["Branch_ID", "Member_ID"], "index": [0, 1], "data": [["2", "7"], ["8", "8"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Xrt0r_8.png", "TableImg_7sj76_8.png"], "original_data_index": 2036, "original_sql": "SELECT Branch_ID, Member_ID FROM membership_register_branch WHERE \"Member_ID\" > 5 EXCEPT SELECT Branch_ID, Member_ID FROM purchase WHERE Year <> \"2017\""} {"question": "Which driver IDs are greater than 3, excluding those with an ID of 3, considering only the driver table and the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I1f03_12.png", "TableImg_Vvxu2_5.png"], "original_data_index": 2034, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the IDs of albums that are not album ID 178 or not titled \"Use Your Illusion II\", combined with the IDs of employees who are from Canada, or whose birth date is not \"1958-12-08\", and last name is \"Adams\", or report to employee ID 6, or live in Calgary, or have a different fax number than \"+1 (403) 467-8772\", or a different postal code than \"T3B 0C5\" and a different phone number than \"1 (780) 836-9987\", or a different state than \"AB\", or were hired on \"2003-10-17\" and have a different email than \"nancy@chinookcorp.com\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_Mvauc_347.png", "TableImg_Icx7d_8.png"], "original_data_index": 2035, "original_sql": "SELECT id FROM albums WHERE \"id\" <> 178 OR title != \"Use Your Illusion II\" UNION ALL SELECT id FROM employees WHERE country = \"Canada\" OR birth_date != \"1958-12-08 00:00:00\" AND last_name = \"Adams\" OR \"reports_to\" = 6.0 OR city = \"Calgary\" OR fax != \"+1 (403) 467-8772\" OR postal_code != \"T3B 0C5\" AND phone != \"1 (780) 836-9987\" OR state <> \"AB\" OR hire_date = \"2003-10-17 00:00:00\" AND email <> \"nancy@chinookcorp.com\""} {"question": "Which driver IDs are either 11 or greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U0mef_12.png", "TableImg_H13p2_5.png"], "original_data_index": 2039, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the IDs of drivers, excluding driver 5, and the IDs of school buses, excluding bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O1t5e_12.png", "TableImg_Mrbl1_5.png"], "original_data_index": 2040, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the document IDs and descriptions for documents that either aren't named \"Learning French\", have a template ID of 21 or higher, have other details that aren't \"None\", or have a document ID of 3830? Also, include the document IDs and descriptions for documents where the description is \"w\", the name isn't \"Summer Show\", the document ID is less than 3, the template ID is 6 or less, or the other details aren't \"None\".", "answer": {"columns": ["Document_ID", "Document_Description"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["0", "n"], ["1", "y"], ["3", "u"], ["76", "y"], ["80", "h"], ["82", "w"], ["2394", "y"], ["3830", "k"], ["33930", "z"], ["50123", "r"], ["651512", "f"], ["801801", "w"], ["3540024", "y"], ["16514113", "h"], ["385906526", "b"], ["0", "n"], ["1", "y"], ["3", "u"], ["76", "y"], ["80", "h"], ["82", "w"], ["2394", "y"], ["3830", "k"], ["33930", "z"], ["50123", "r"], ["651512", "f"], ["801801", "w"], ["3540024", "y"], ["16514113", "h"], ["385906526", "b"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_8y751_15.png", "TableImg_Uf8x1_15.png"], "original_data_index": 2038, "original_sql": "SELECT Document_ID, Document_Description FROM Documents WHERE Document_Name <> \"Learning French\" OR \"Template_ID\" >= 21 OR Other_Details != \"None\" OR \"Document_ID\" = 3830 UNION ALL SELECT Document_ID, Document_Description FROM Documents WHERE Document_Description = \"w\" OR Document_Name != \"Summer Show\" OR \"Document_ID\" < 3 OR \"Template_ID\" <= 6 OR Other_Details != \"None\""} {"question": "What are the driver IDs that are both greater than or equal to 3 in the driver table and greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sx2wo_12.png", "TableImg_Y9g2e_5.png"], "original_data_index": 2042, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs that are less than 4, and also the aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ytyma_5.png", "TableImg_Kdbdp_4.png"], "original_data_index": 2043, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, from the aircraft table, combined with aircraft IDs greater than or equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3dudd_5.png", "TableImg_X3teq_4.png"], "original_data_index": 2041, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the IDs of people who either work at a company with an ID greater than 17 or have an ID less than or equal to 1, combined with the IDs of people whose ID is at least 1 and whose nationality is not United States, or whose graduation college is not Northeastern, or whose age is 25?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_S7urc_5.png", "TableImg_Fnpis_7.png"], "original_data_index": 2044, "original_sql": "SELECT People_ID FROM employment WHERE \"Company_ID\" > 17 OR \"People_ID\" <= 1 UNION SELECT People_ID FROM people WHERE \"People_ID\" >= 1 AND Nationality <> \"United States\" OR Graduation_College != \"Northeastern\" OR \"Age\" = 25"} {"question": "What are the aircraft IDs that are not equal to 4, but are not present in the airport aircraft table with IDs greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J663y_5.png", "TableImg_Fnkyo_4.png"], "original_data_index": 2046, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs are less than or equal to 8 and are in the driver table but not in the school bus table, where the driver IDs in the school bus table are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ehh6b_12.png", "TableImg_97hko_5.png"], "original_data_index": 2045, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the document IDs that are less than 2 and not associated with employee ID 1, combined with the document IDs from documents that have a shipping agent code other than AL and are not overdue, or were received on November 5, 1985 at 17:59:34, or have other details as \"j\", or have a receipt number different from \"93\", or have a document ID different from 20?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_X6ul3_4.png", "TableImg_1w2bh_15.png"], "original_data_index": 2047, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" < 2 AND \"employee_id\" <> 1 UNION ALL SELECT document_id FROM Documents WHERE shipping_agent_code <> \"AL\" AND document_status_code != \"overdue\" OR receipt_date = \"1985-11-05 17:59:34\" OR other_details = \"j\" OR receipt_number <> \"93\" OR \"document_id\" <> 20"} {"question": "What are the driver IDs, excluding driver ID 7, and also the driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0t8ke_12.png", "TableImg_6hbhd_5.png"], "original_data_index": 2049, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs greater than 10, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gid3q_12.png", "TableImg_V0439_5.png"], "original_data_index": 2050, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the school IDs of schools that are not in Honolulu, Hawaii and not 4th grade and have a school ID of 3 or greater, and also are either private schools with a school ID less than 6 or not in 1st-3rd grade?", "answer": {"columns": ["School_ID"], "index": [0, 1, 2], "data": [["5"], ["6"], ["7"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_9toyu_7.png", "TableImg_6h47k_7.png"], "original_data_index": 2048, "original_sql": "SELECT School_ID FROM school WHERE Location != \"Honolulu, Hawaii\" AND Grade != \"4th grade\" AND \"School_ID\" >= 3 INTERSECT SELECT School_ID FROM school WHERE Type = \"Private\" AND \"School_ID\" < 6 OR Grade != \"1st-3rd grade\""} {"question": "What are the driver IDs that are either 6 or less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B4zun_12.png", "TableImg_Tjnq9_5.png"], "original_data_index": 2051, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which aircraft IDs are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C8nt1_5.png", "TableImg_W9ga3_4.png"], "original_data_index": 2053, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the copy and draft numbers where the copy number is 5 or greater, the document ID is less than 2, or the draft number is greater than 2? Also, what are the copy and draft numbers where the document ID is 10 or greater, the draft number is not 17, or the copy number is 10?", "answer": {"columns": ["copy_number", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["5", "8"], ["6", "9"], ["15", "9"], ["10", "20"], ["5", "2"], ["15", "17"], ["10", "12"], ["5", "8"], ["6", "9"], ["15", "9"], ["10", "20"], ["4", "1"], ["5", "2"], ["15", "17"], ["10", "12"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_1wgp5_8.png", "TableImg_Rms9k_8.png"], "original_data_index": 2052, "original_sql": "SELECT copy_number, draft_number FROM Draft_Copies WHERE \"copy_number\" >= 5 OR \"document_id\" < 2 OR \"draft_number\" > 2 UNION ALL SELECT copy_number, draft_number FROM Draft_Copies WHERE \"document_id\" >= 10 OR \"draft_number\" <> 17 OR \"copy_number\" = 10"} {"question": "What are the document IDs from the Documents table that are not \"q\" in other details, not \"FE\" in shipping agent code, or not \"55\" in receipt number, or not 25 as document ID, and have a receipt date of April 17, 1999, and are of type \"Paper\", along with the document IDs from the Documents_Mailed table where the mailed to address ID is 7 or greater?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Np6qb_15.png", "TableImg_Qnp0p_14.png"], "original_data_index": 2054, "original_sql": "SELECT document_id FROM Documents WHERE other_details != \"q\" AND shipping_agent_code != \"FE\" OR receipt_number != \"55\" OR \"document_id\" != 25 AND receipt_date = \"1999-04-17 14:19:32\" AND document_type_code = \"Paper\" UNION SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" >= 7"} {"question": "What are the driver IDs that are less than 1, combined with the driver IDs that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5z193_12.png", "TableImg_0izah_5.png"], "original_data_index": 2057, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that are not equal to 1 and also appear in the airport aircraft table with an ID greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q1m83_5.png", "TableImg_I00oq_4.png"], "original_data_index": 2056, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the driver IDs that are less than 11 from the driver table, combined with the driver IDs that are 10 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F70ig_12.png", "TableImg_Poksg_5.png"], "original_data_index": 2055, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are both greater than or equal to 10 in the driver table and equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A9tlr_12.png", "TableImg_Vgob6_5.png"], "original_data_index": 2058, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs, excluding ID 1, that are in the aircraft table, combined with the aircraft IDs, excluding ID 5, that are in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H8dy4_5.png", "TableImg_D58zw_4.png"], "original_data_index": 2061, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the template details, effective from date, template type code, version number, template ID, and effective to date for templates with ID 6 and an effective from date not equal to July 16, 1983, or for templates where the effective to date is not December 7, 1994, or the effective from date is June 21, 1999?", "answer": {"columns": ["Template_Details", "Date_Effective_From", "Template_Type_Code", "Version_Number", "Template_ID", "Date_Effective_To"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["", "1975-05-20 22:51:19", "PPT", "2", "6", "1992-05-02 20:06:11"], ["", "2005-11-12 07:09:48", "PP", "5", "0", "2008-01-05 14:19:28"], ["", "2010-09-24 01:15:11", "PP", "9", "1", "1999-07-08 03:31:04"], ["", "2002-03-02 14:39:49", "BK", "4", "4", "2001-04-18 09:29:52"], ["", "1975-05-20 22:51:19", "PPT", "2", "6", "1992-05-02 20:06:11"], ["", "1993-10-07 02:33:04", "PPT", "8", "7", "1975-07-16 04:52:10"], ["", "1983-07-16 21:16:16", "BK", "3", "8", "1976-10-28 10:08:50"], ["", "2003-06-05 04:03:45", "PPT", "1", "10", "2007-06-06 06:18:53"], ["", "1996-02-04 11:27:24", "BK", "6", "11", "1995-09-19 22:27:48"], ["", "1975-10-20 02:28:58", "AD", "7", "14", "1979-11-04 08:58:39"], ["", "1986-12-09 14:51:36", "CV", "9", "15", "1993-03-24 14:30:23"], ["", "2012-04-05 07:11:42", "CV", "5", "16", "1980-05-07 12:15:47"], ["", "1984-08-07 13:36:26", "PP", "5", "18", "1998-05-12 12:51:29"], ["", "1999-06-21 11:10:30", "AD", "7", "19", "1974-09-14 06:34:39"], ["", "1986-11-14 12:20:18", "BK", "6", "20", "2008-08-08 18:36:43"], ["", "2002-08-25 13:26:23", "AD", "9", "21", "2015-09-06 01:08:44"], ["", "2005-02-20 00:31:34", "PP", "0", "22", "1989-11-24 19:06:06"], ["", "1979-12-24 10:28:16", "BK", "2", "23", "2000-10-22 11:57:12"], ["", "2008-08-01 13:57:26", "PP", "8", "24", "1973-01-12 14:13:34"], ["", "1979-10-20 21:23:20", "PP", "5", "25", "2006-02-06 23:52:04"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_U22ou_20.png", "TableImg_Ffpz3_20.png"], "original_data_index": 2059, "original_sql": "SELECT Template_Details, Date_Effective_From, Template_Type_Code, Version_Number, Template_ID, Date_Effective_To FROM Templates WHERE \"Template_ID\" = 6 AND Date_Effective_From <> \"1983-07-16 21:16:16\" UNION ALL SELECT Template_Details, Date_Effective_From, Template_Type_Code, Version_Number, Template_ID, Date_Effective_To FROM Templates WHERE Date_Effective_To != \"1994-12-07 13:26:23\" OR Date_Effective_From = \"1999-06-21 11:10:30\""} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 2) and the school bus table (excluding driver ID 3)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5wmjk_12.png", "TableImg_3goq5_5.png"], "original_data_index": 2062, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "How many schools meet the following criteria: their mascot isn't \"Lancers\" and they are in IHSAA Class \"AA\", or their name isn't \"Knox Community\", their ID isn't \"6\", they are in IHSAA Football Class \"AAA\" and their county isn't \"46 LaPorte 71 St. Joseph\", or their location isn't \"Bremen\" and their enrollment isn't 379? Also, how many budget entries meet these conditions: the percentage of the budget invested isn't \"71.3\", or the school ID is less than 2, or the year is before 2003 and the total budget invested percentage is 2.0?", "answer": {"columns": ["COUNT(School_id)"], "index": [0, 1], "data": [["7"], ["8"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_Zvd8l_8.png", "TableImg_Szf38_8.png"], "original_data_index": 2060, "original_sql": "SELECT COUNT(School_id) FROM School WHERE Mascot <> \"Lancers\" AND IHSAA_Class = \"AA\" OR School_name != \"Knox Community\" AND School_id <> \"6\" AND IHSAA_Football_Class = \"AAA\" AND County != \"46 LaPorte 71 St. Joseph\" OR Location != \"Bremen\" AND \"Enrollment\" <> 379 UNION SELECT COUNT(School_id) FROM budget WHERE Budget_invested_percent != \"71.3\" OR \"School_id\" < 2 OR \"Year\" < 2003 AND \"total_budget_percent_invested\" = 2.0"} {"question": "What is the maximum airport ID and the corresponding aircraft ID, based on the airport and airport_aircraft tables?", "answer": {"columns": ["MAX(T1.Airport_ID)", "Aircraft_ID"], "index": [0], "data": [["9", "3"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_J2awt_10.png", "TableImg_Sbndv_4.png"], "original_data_index": 2063, "original_sql": "SELECT MAX(T1.Airport_ID), T2.Aircraft_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "What are the details, including features, prices, and dates, for properties that meet any of the following criteria: certain feature combinations, specific property names or addresses, or specific property IDs, with the results combined from two different sets of conditions?", "answer": {"columns": ["hse_feature_2", "shp_feature_3", "buyer_offered_price", "apt_feature_1", "other_property_details", "fld_feature_3", "hse_feature_1", "property_name", "shp_feature_2", "property_type_code", "shp_feature_1", "oth_feature_1", "property_address", "hse_feature_3", "apt_feature_2", "property_id", "fld_feature_1", "oth_feature_3", "date_sold", "room_count", "apt_feature_3", "fld_feature_2", "date_on_market", "agreed_selling_price"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["", "", "1.6800000000000002", "aut", "", "", "", "park", "", "House", "", "", "4745 Emerson Stravenue Suite 829\nSouth Garret, IN 16772-5682", "", "suscipit", "1", "", "", "1979-05-13 16:58:06", "7", "", "", "1991-06-21 23:52:10", "4201.8"], ["", "", "8.7122", "est", "", "", "", "the cole", "", "House", "", "", "098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537", "", "est", "2", "", "", "1990-11-14 19:16:38", "1", "", "", "1990-05-25 23:01:51", "21769471.8328"], ["", "", "15.17", "nesciunt", "", "", "", "riverside", "", "Field", "", "", "49578 Ayden Mountains\nNew Russellhaven, UT 46626", "", "adipisci", "4", "", "", "2003-02-27 18:17:11", "6", "", "", "2017-09-14 15:49:23", "4514.807"], ["", "", "10.1067", "quo", "", "", "", "parc east", "", "Apartment", "", "", "2765 Schulist Stream\nLindmouth, UT 03391-3817", "", "sequi", "5", "", "", "2012-08-19 07:36:57", "5", "", "", "2016-05-06 16:53:39", "1.0012"], ["", "", "0.0", "sed", "", "", "", "high line", "", "Shop", "", "", "6837 Darien Views Apt. 475\nSouth Maraview, KS 77770", "", "culpa", "6", "", "", "1995-01-31 11:18:42", "9", "", "", "1994-02-14 02:27:13", "476919.3"], ["", "", "296733.0", "quos", "", "", "", "avalon", "", "Shop", "", "", "092 Paucek Highway Apt. 772\nEast Erika, IA 61358", "", "est", "7", "", "", "1998-09-15 05:26:22", "8", "", "", "1996-09-16 22:04:27", "2794972.2495"], ["", "", "0.0", "fuga", "", "", "", "vogue", "", "Apartment", "", "", "24365 Ulices Run\nHomenicktown, MD 88485-6198", "", "odio", "8", "", "", "2001-11-09 04:37:33", "9", "", "", "1976-06-10 20:25:38", "0.0"], ["", "", "3520911.5258", "enim", "", "", "", "longacre", "", "Apartment", "", "", "107 Roob Courts\nErdmanburgh, IA 42926-0873", "", "sit", "9", "", "", "1971-04-14 03:23:49", "5", "", "", "1978-05-15 10:53:37", "3344706.5755"], ["", "", "1.5509", "consequatur", "", "", "", "renoir", "", "Apartment", "", "", "084 Lakin Vista Apt. 394\nFishertown, MA 16876", "", "vero", "10", "", "", "1997-01-07 19:52:45", "9", "", "", "2003-12-25 16:13:19", "244353758.1824"], ["", "", "2.0", "qui", "", "", "", "ten tower", "", "Apartment", "", "", "743 Ephraim Greens\nAnniemouth, HI 47084-3853", "", "autem", "12", "", "", "1980-07-08 16:13:17", "5", "", "", "2016-05-24 09:57:45", "456840888.16"], ["", "", "27537286.0", "aut", "", "", "", "parc coliseum", "", "Apartment", "", "", "986 Hagenes Drives\nDraketon, UT 83411-3393", "", "iusto", "15", "", "", "1984-02-01 19:54:54", "3", "", "", "1993-08-04 10:49:04", "2574.0"], ["", "", "1.6800000000000002", "aut", "", "", "", "park", "", "House", "", "", "4745 Emerson Stravenue Suite 829\nSouth Garret, IN 16772-5682", "", "suscipit", "1", "", "", "1979-05-13 16:58:06", "7", "", "", "1991-06-21 23:52:10", "4201.8"], ["", "", "8.7122", "est", "", "", "", "the cole", "", "House", "", "", "098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537", "", "est", "2", "", "", "1990-11-14 19:16:38", "1", "", "", "1990-05-25 23:01:51", "21769471.8328"], ["", "", "11375259.502", "ut", "", "", "", "prism", "", "Other", "", "", "062 Micaela Court Apt. 707\nMargretville, WV 51628-3617", "", "et", "3", "", "", "1981-06-26 21:28:28", "8", "", "", "1986-11-26 04:12:18", "5.0"], ["", "", "15.17", "nesciunt", "", "", "", "riverside", "", "Field", "", "", "49578 Ayden Mountains\nNew Russellhaven, UT 46626", "", "adipisci", "4", "", "", "2003-02-27 18:17:11", "6", "", "", "2017-09-14 15:49:23", "4514.807"], ["", "", "10.1067", "quo", "", "", "", "parc east", "", "Apartment", "", "", "2765 Schulist Stream\nLindmouth, UT 03391-3817", "", "sequi", "5", "", "", "2012-08-19 07:36:57", "5", "", "", "2016-05-06 16:53:39", "1.0012"], ["", "", "0.0", "sed", "", "", "", "high line", "", "Shop", "", "", "6837 Darien Views Apt. 475\nSouth Maraview, KS 77770", "", "culpa", "6", "", "", "1995-01-31 11:18:42", "9", "", "", "1994-02-14 02:27:13", "476919.3"], ["", "", "296733.0", "quos", "", "", "", "avalon", "", "Shop", "", "", "092 Paucek Highway Apt. 772\nEast Erika, IA 61358", "", "est", "7", "", "", "1998-09-15 05:26:22", "8", "", "", "1996-09-16 22:04:27", "2794972.2495"], ["", "", "0.0", "fuga", "", "", "", "vogue", "", "Apartment", "", "", "24365 Ulices Run\nHomenicktown, MD 88485-6198", "", "odio", "8", "", "", "2001-11-09 04:37:33", "9", "", "", "1976-06-10 20:25:38", "0.0"], ["", "", "3520911.5258", "enim", "", "", "", "longacre", "", "Apartment", "", "", "107 Roob Courts\nErdmanburgh, IA 42926-0873", "", "sit", "9", "", "", "1971-04-14 03:23:49", "5", "", "", "1978-05-15 10:53:37", "3344706.5755"], ["", "", "1.5509", "consequatur", "", "", "", "renoir", "", "Apartment", "", "", "084 Lakin Vista Apt. 394\nFishertown, MA 16876", "", "vero", "10", "", "", "1997-01-07 19:52:45", "9", "", "", "2003-12-25 16:13:19", "244353758.1824"], ["", "", "13991131.434", "et", "", "", "", "murray hill", "", "Other", "", "", "2088 Bashirian Fork Suite 337\nFaustinoport, MT 16771-9320", "", "est", "11", "", "", "1997-11-07 20:22:05", "2", "", "", "1981-08-23 05:40:38", "170766.472"], ["", "", "2.0", "qui", "", "", "", "ten tower", "", "Apartment", "", "", "743 Ephraim Greens\nAnniemouth, HI 47084-3853", "", "autem", "12", "", "", "1980-07-08 16:13:17", "5", "", "", "2016-05-24 09:57:45", "456840888.16"], ["", "", "0.0", "fuga", "", "", "", "chelsea", "", "Other", "", "", "60845 Else Highway Apt. 826\nSouth Dougfort, CO 43200-4258", "", "aut", "13", "", "", "1973-02-24 02:56:06", "2", "", "", "2000-08-07 06:59:14", "44132.4621"], ["", "", "2449185.2", "et", "", "", "", "wall street", "", "Other", "", "", "1474 Dibbert Fields Suite 055\nSouth Renee, IN 58286-3097", "", "eos", "14", "", "", "1987-12-07 07:41:27", "7", "", "", "1986-12-31 10:05:32", "0.0"], ["", "", "27537286.0", "aut", "", "", "", "parc coliseum", "", "Apartment", "", "", "986 Hagenes Drives\nDraketon, UT 83411-3393", "", "iusto", "15", "", "", "1984-02-01 19:54:54", "3", "", "", "1993-08-04 10:49:04", "2574.0"]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_I28gb_15.png", "TableImg_J1meb_15.png"], "original_data_index": 2064, "original_sql": "SELECT hse_feature_2, shp_feature_3, buyer_offered_price, apt_feature_1, other_property_details, fld_feature_3, hse_feature_1, property_name, shp_feature_2, property_type_code, shp_feature_1, oth_feature_1, property_address, hse_feature_3, apt_feature_2, property_id, fld_feature_1, oth_feature_3, date_sold, room_count, apt_feature_3, fld_feature_2, date_on_market, agreed_selling_price FROM Properties WHERE shp_feature_3 != \"None\" OR other_property_details <> \"None\" AND hse_feature_3 = \"None\" AND date_sold != \"1984-02-01 19:54:54\" AND \"vendor_requested_price\" != 2573.0 AND hse_feature_2 = \"None\" AND shp_feature_1 <> \"None\" OR fld_feature_1 <> \"None\" AND apt_feature_2 = \"aut\" AND oth_feature_1 <> \"None\" AND date_on_market = \"1978-05-15 10:53:37\" OR apt_feature_1 = \"enim\" OR fld_feature_3 <> \"None\" OR property_address != \"098 Tremaine Highway Suite 569 South Wilford, NJ 46587-3537\" AND fld_feature_2 != \"None\" AND \"property_id\" = 9 AND hse_feature_1 <> \"None\" OR property_type_code <> \"Other\" OR oth_feature_2 <> \"None\" OR property_name = \"the cole\" AND oth_feature_3 <> \"None\" UNION ALL SELECT hse_feature_2, shp_feature_3, buyer_offered_price, apt_feature_1, other_property_details, fld_feature_3, hse_feature_1, property_name, shp_feature_2, property_type_code, shp_feature_1, oth_feature_1, property_address, hse_feature_3, apt_feature_2, property_id, fld_feature_1, oth_feature_3, date_sold, room_count, apt_feature_3, fld_feature_2, date_on_market, agreed_selling_price FROM Properties WHERE hse_feature_1 <> \"None\" OR apt_feature_1 != \"enim\" AND shp_feature_2 <> \"None\" OR \"buyer_offered_price\" > 11375259.502 OR property_type_code != \"Other\" OR fld_feature_3 <> \"None\" OR shp_feature_1 != \"None\" OR apt_feature_2 <> \"suscipit\" AND property_name <> \"parc coliseum\" AND \"room_count\" < 9 AND fld_feature_1 <> \"None\" OR hse_feature_3 = \"None\" AND other_property_details = \"None\" OR shp_feature_3 != \"None\" OR oth_feature_2 <> \"None\" OR oth_feature_1 <> \"None\" AND hse_feature_2 != \"None\" OR date_sold != \"1987-12-07 07:41:27\" AND \"vendor_requested_price\" = 13.4715 AND apt_feature_3 = \"None\" OR \"agreed_selling_price\" < 2574.0 OR date_on_market <> \"1996-09-16 22:04:27\" OR property_address != \"60845 Else Highway Apt. 826 South Dougfort, CO 43200-4258\" AND \"property_id\" > 14"} {"question": "What are the driver IDs greater than 9, and also any driver IDs from school buses that are not 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fyqor_12.png", "TableImg_T0e5c_5.png"], "original_data_index": 2065, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs that are less than 3, excluding those aircraft IDs that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iwysp_5.png", "TableImg_Rbfxs_4.png"], "original_data_index": 2067, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the aircraft IDs that are less than or equal to 5, but not aircraft IDs that are greater than or equal to 3, considering only the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3wq4k_5.png", "TableImg_Cezaz_4.png"], "original_data_index": 2066, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the document IDs that meet all the following conditions: they are either not overdue, have other details as \"x\", or their document ID is not 24, their document type is not \"CD\", and their shipping agent is \"US\"; AND they have a draft number greater than 1 or a document ID less than 12 and a copy number of at least 15?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["12"], ["20"], ["23"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Dxg5n_15.png", "TableImg_S10af_8.png"], "original_data_index": 2068, "original_sql": "SELECT document_id FROM Documents WHERE document_status_code != \"overdue\" OR other_details = \"x\" OR \"document_id\" <> 24 AND document_type_code != \"CD\" AND shipping_agent_code = \"US\" INTERSECT SELECT document_id FROM Draft_Copies WHERE \"draft_number\" > 1 OR \"document_id\" < 12 AND \"copy_number\" >= 15"} {"question": "What are the driver IDs, excluding driver ID 6, that are in the driver table but not in the school bus table where the driver ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2b3mm_12.png", "TableImg_X1z1d_5.png"], "original_data_index": 2069, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are both less than 12 and present in the school bus table, where the driver IDs are also less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jkns3_12.png", "TableImg_Bcph2_5.png"], "original_data_index": 2070, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs that are not 5 and also appear in the airport_aircraft table with an ID of 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xe19w_5.png", "TableImg_Af04y_4.png"], "original_data_index": 2071, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 11 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bk7sj_12.png", "TableImg_B3idu_5.png"], "original_data_index": 2074, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What is the average user ID and rank for reviews where the user ID is 2 or less, excluding the average user ID and rank for reviews where the item ID is not 3?", "answer": {"columns": ["AVG(u_id)", "rank"], "index": [0], "data": [["1.5714285714", "1"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_29r4b_7.png", "TableImg_Oq53x_7.png"], "original_data_index": 2075, "original_sql": "SELECT AVG(u_id), rank FROM review WHERE \"u_id\" <= 2 EXCEPT SELECT AVG(u_id), rank FROM review WHERE \"i_id\" != 3"} {"question": "Which driver IDs are less than or equal to 8 but not greater than or equal to 10, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R42oe_12.png", "TableImg_Mdrvw_5.png"], "original_data_index": 2077, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the other details from the 'Documents' table where the document ID is not 16514113, or the description is not \"r\", or the name is not \"Learning French\" and the other details are not \"None\", combined with the other details from the 'Paragraphs' table where the document ID is not 651512 and the other details are \"None\", or the paragraph text is not \"Brazil\" and the paragraph ID is less than 7?", "answer": {"columns": ["Other_Details"], "index": [0], "data": [[""]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_1mx9g_15.png", "TableImg_Dsk5y_15.png"], "original_data_index": 2076, "original_sql": "SELECT Other_Details FROM Documents WHERE \"Document_ID\" <> 16514113 OR Document_Description <> \"r\" OR Document_Name != \"Learning French\" AND Other_Details != \"None\" UNION SELECT Other_Details FROM Paragraphs WHERE \"Document_ID\" != 651512 AND Other_Details = \"None\" OR Paragraph_Text <> \"Brazil\" AND \"Paragraph_ID\" < 7"} {"question": "What aircraft IDs are both aircraft ID 1 and not aircraft ID 2, considering aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6kmz6_5.png", "TableImg_Igh0n_4.png"], "original_data_index": 2078, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What driver IDs are both in the driver table, excluding driver ID 11, and also in the school bus table with driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ejnmv_12.png", "TableImg_Ka7p2_5.png"], "original_data_index": 2079, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs greater than 1 that are not present in the airport aircraft table with IDs less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B92h6_5.png", "TableImg_Rchvk_4.png"], "original_data_index": 2080, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs that are equal to 5 in the driver table, but not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0a2vc_12.png", "TableImg_A5fb5_5.png"], "original_data_index": 2081, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs, excluding driver 10, are present in both the driver and school bus tables, but not driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P8q5n_12.png", "TableImg_Kwycv_5.png"], "original_data_index": 2082, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs that are either greater than or equal to 2 in the driver table or less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Use3g_12.png", "TableImg_E4qfs_5.png"], "original_data_index": 2083, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are greater than 11, or are driver IDs from school buses not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jsume_12.png", "TableImg_O9hw6_5.png"], "original_data_index": 2084, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9106i_12.png", "TableImg_Fpdyo_5.png"], "original_data_index": 2085, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the copy and draft numbers from the circulation history where the document ID isn't 20 or the employee ID is 1 or less, combined with the copy and draft numbers from the draft copies where the copy number is less than 10 or the document ID isn't 10?", "answer": {"columns": ["copy_number", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4", "1"], ["5", "2"], ["5", "8"], ["6", "9"], ["10", "12"], ["10", "20"], ["15", "9"], ["15", "17"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_Etctg_4.png", "TableImg_Hfgqh_8.png"], "original_data_index": 2086, "original_sql": "SELECT copy_number, draft_number FROM Circulation_History WHERE \"document_id\" <> 20 OR \"employee_id\" <= 1 UNION SELECT copy_number, draft_number FROM Draft_Copies WHERE \"copy_number\" < 10 OR \"document_id\" != 10"} {"question": "Give me the best finish, people ID, final table made, earnings, poker player ID, and money rank for poker players where the poker player ID is at least 3, the best finish is less than 1, and the money rank is less than 58, or the people ID is less than 7, but exclude those where the best finish is not 1, the final table made is greater than 21, the money rank is 58, and the people ID is not 1.", "answer": {"columns": ["Best_Finish", "People_ID", "Final_Table_Made", "Earnings", "Poker_Player_ID", "Money_Rank"], "index": [0, 1, 2, 3], "data": [["1", "1", "42", "476090", "1", "68"], ["1", "5", "21", "104871", "3", "166"], ["2", "2", "10", "189233", "2", "141"], ["2", "6", "19", "596462", "4", "58"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_8gk9x_5.png", "TableImg_Abn5r_5.png"], "original_data_index": 2073, "original_sql": "SELECT Best_Finish, People_ID, Final_Table_Made, Earnings, Poker_Player_ID, Money_Rank FROM poker_player WHERE \"Poker_Player_ID\" >= 3 AND \"Best_Finish\" < 1.0 AND \"Money_Rank\" < 58.0 OR \"People_ID\" < 7 EXCEPT SELECT Best_Finish, People_ID, Final_Table_Made, Earnings, Poker_Player_ID, Money_Rank FROM poker_player WHERE \"Best_Finish\" <> 1.0 AND \"Final_Table_Made\" > 21.0 AND \"Money_Rank\" = 58.0 AND \"People_ID\" != 1"} {"question": "What are the driver IDs greater than 3, and also the driver IDs from school buses that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5lmsy_12.png", "TableImg_L5vio_5.png"], "original_data_index": 2072, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are not equal to 1, and which driver ID is equal to 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nud7x_12.png", "TableImg_3s3u7_5.png"], "original_data_index": 2088, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs that are less than 5, and also the aircraft IDs from airport_aircraft that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N3irm_5.png", "TableImg_G2fxc_4.png"], "original_data_index": 2089, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the driver IDs that are either greater than or equal to 11 or not equal to 4, considering both the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J613r_12.png", "TableImg_Lrf72_5.png"], "original_data_index": 2090, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 5 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jm9tj_12.png", "TableImg_Jvvjg_5.png"], "original_data_index": 2091, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are greater than or equal to 3, excluding those aircraft IDs greater than 2 that are also in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hbwv3_5.png", "TableImg_9bq3p_4.png"], "original_data_index": 2092, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the aircraft IDs that are less than 4, and also the aircraft ID that is 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wgaa3_5.png", "TableImg_20lyf_4.png"], "original_data_index": 2093, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the customer IDs of customers who made a payment at \"2018-02-01 06:15:31\" or whose payment method wasn't \"Direct Debit\" and the payment amount was less than 6782.84, combined with the customer IDs of customers who don't have the mobile phone number \"861-638-9797\" and were born on \"1998-12-15 13:24:40\", or became a customer on \"2016-05-11 17:03:48\", or have an outstanding amount greater than or equal to 255.0, or don't have the phone number \"1-673-962-8158x7646\", or don't have the email address \"hilario.sporer@example.org\", or don't have the last name \"Mertz\" and have a customer address ID less than 10?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Nukia_15.png", "TableImg_V39md_15.png"], "original_data_index": 2087, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment = \"2018-02-01 06:15:31\" OR payment_method_code != \"Direct Debit\" AND \"amount_payment\" < 6782.84 UNION SELECT customer_id FROM Customers WHERE cell_mobile_phone_number <> \"861-638-9797\" AND date_of_birth = \"1998-12-15 13:24:40\" OR date_became_customer = \"2016-05-11 17:03:48\" AND \"amount_outstanding\" >= 255.0 OR phone_number != \"1-673-962-8158x7646\" OR email_address != \"hilario.sporer@example.org\" OR last_name != \"Mertz\" AND \"customer_address_id\" < 10"} {"question": "Which driver IDs are less than or equal to 11 but not present in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wz9xt_12.png", "TableImg_Xbbqt_5.png"], "original_data_index": 2097, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs that are either less than or equal to 4 from the driver table or less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pwtlz_12.png", "TableImg_Diy3f_5.png"], "original_data_index": 2094, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What is the sum of sales in billions and the year of employment, considering companies not headquartered in the USA with sales less than or equal to 447 billion, or where the people ID is greater than 7, the profits in billions are not 25.7, the count of working years is greater than 1, and the count of market value in billions is greater than 237.4, or the company name is ExxonMobil and assets in billions are less than or equal to 1873.9?", "answer": {"columns": ["SUM(T1.Sales_in_Billion)", "Year_working"], "index": [0], "data": [["1093.8", "2"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Qo86k_19.png", "TableImg_Yh7sw_5.png"], "original_data_index": 2096, "original_sql": "SELECT SUM(T1.Sales_in_Billion), T2.Year_working FROM company as T1 JOIN employment as T2 ON T1.Company_ID = T2.Company_ID WHERE Headquarters <> \"USA\" AND Sales_in_Billion <= 447.0 OR People_ID > 7 AND Profits_in_Billion <> 25.7 AND COUNT(Year_working) > 1 AND COUNT(Market_Value_in_Billion) > 237.4 OR Name = \"ExxonMobil\" AND Assets_in_Billion <= 1873.9"} {"question": "For documents that are not document ID 1, are done, don't have receipt number 93, or have other details that are not \"j\", or have a receipt date that is not \"1986-12-14 14:18:59\" and a shipping agent code of \"FE\", and also for documents that are not document ID 23, show me the document ID, the count of shipping agent codes, the document status code, the minimum receipt number, the receipt date, the sum of other details, and the count of document type codes.", "answer": {"columns": ["document_id", "COUNT(shipping_agent_code)", "document_status_code", "MIN(receipt_number)", "receipt_date", "SUM(other_details)", "COUNT(document_type_code)"], "index": [0, 1], "data": [["24", "15", "working", "114", "2005-09-30 00:10:02", "0", "15"], ["24", "14", "working", "114", "2005-09-30 00:10:02", "0", "14"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Xbioi_15.png", "TableImg_Tr5kl_15.png"], "original_data_index": 2095, "original_sql": "SELECT document_id, COUNT(shipping_agent_code), document_status_code, MIN(receipt_number), receipt_date, SUM(other_details), COUNT(document_type_code) FROM Documents WHERE \"document_id\" != 1 AND document_status_code = \"done\" AND receipt_number <> \"93\" OR other_details != \"j\" OR receipt_date <> \"1986-12-14 14:18:59\" AND shipping_agent_code = \"FE\" UNION ALL SELECT document_id, COUNT(shipping_agent_code), document_status_code, MIN(receipt_number), receipt_date, SUM(other_details), COUNT(document_type_code) FROM Documents WHERE \"document_id\" != 23"} {"question": "What are the IDs of drivers who are either in the driver table (excluding driver ID 2) or in the school bus table (excluding driver ID 3)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q3yb1_12.png", "TableImg_0ea71_5.png"], "original_data_index": 2098, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "How many documents meet the criteria where the employee ID is greater than 2 and the draft number is at least 17, combined with the number of documents where the shipping agent code is not US, or the receipt number is not 69, and the document status code is not working, and other details are not p, and the receipt date is not May 8, 1974, or the document type code is not Hard Drive?", "answer": {"columns": ["COUNT(document_id)"], "index": [0, 1], "data": [["1"], ["14"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Vml2r_4.png", "TableImg_R39od_15.png"], "original_data_index": 2099, "original_sql": "SELECT COUNT(document_id) FROM Circulation_History WHERE \"employee_id\" > 2 AND \"draft_number\" >= 17 UNION ALL SELECT COUNT(document_id) FROM Documents WHERE shipping_agent_code != \"US\" OR receipt_number != \"69\" AND document_status_code != \"working\" AND other_details <> \"p\" AND receipt_date != \"1974-05-08 00:00:46\" OR document_type_code <> \"Hard Drive\""} {"question": "Which coach IDs meet all of the following conditions: either the coach's name is Jameson Tomas, or their gender is not male, and their ID is less than 5, or their rank is less than 5; and also either their starting year is before or equal to 2011, or their coach ID is greater than 1?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_W0nl2_5.png", "TableImg_Mc27b_7.png"], "original_data_index": 2100, "original_sql": "SELECT Coach_ID FROM coach WHERE Coach_name = \"Jameson Tomas\" OR Gender != \"M\" AND \"Coach_ID\" < 5 OR \"Rank\" < 5 INTERSECT SELECT Coach_ID FROM player_coach WHERE \"Starting_year\" <= 2011 OR \"Coach_ID\" > 1"} {"question": "What are the sum of Party, count of District, average of First_Elected, Committee, and Delegate, excluding results where Counties_Represented is \"13\", or Committee is \"Health and Government Operations\" and Election_ID is not 4, or Delegate is \"Pendergrass, Shane E. Shane Pendergrass\", but including results where District is not 2 or First_Elected is less than 1994, and Committee is not \"Health and Government Operations\", or Counties_Represented is not \"09.1 9A\", or Election_ID is less than or equal to 7 and Party is less than or equal to 4, from the election table?", "answer": {"columns": ["SUM(Party)", "COUNT(District)", "AVG(First_Elected)", "Committee", "Delegate"], "index": [0], "data": [["21", "8", "1998.625", "Appropriations", "Bates, Gail H. Gail H. Bates"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_6yfbr_8.png", "TableImg_9eoow_8.png"], "original_data_index": 2101, "original_sql": "SELECT SUM(Party), COUNT(District), AVG(First_Elected), Committee, Delegate FROM election WHERE \"District\" != 2 OR \"First_Elected\" < 1994.0 AND Committee <> \"Health and Government Operations\" OR Counties_Represented <> \"09.1 9A\" OR \"Election_ID\" <= 7 AND \"Party\" <= 4 EXCEPT SELECT SUM(Party), COUNT(District), AVG(First_Elected), Committee, Delegate FROM election WHERE Counties_Represented = \"13\" OR Committee = \"Health and Government Operations\" AND \"Election_ID\" != 4 OR Delegate = \"Pendergrass, Shane E. Shane Pendergrass\""} {"question": "Which driver IDs are greater than or equal to 12 but are not driver IDs from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oqtew_12.png", "TableImg_A2pco_5.png"], "original_data_index": 2102, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs, excluding driver ID 6, that are present in both the driver and school bus tables, where the school bus driver IDs are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J6ycb_12.png", "TableImg_P4gij_5.png"], "original_data_index": 2103, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the sum of store IDs and the minimum product IDs for products that are not product ID 2 and not in store ID 2, excluding the same calculation for store IDs less than or equal to 3?", "answer": {"columns": ["SUM(Store_ID)", "MIN(Product_ID)"], "index": [0], "data": [["27", "1"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Ypujo_15.png", "TableImg_Bjbjp_15.png"], "original_data_index": 2106, "original_sql": "SELECT SUM(Store_ID), MIN(Product_ID) FROM store_product WHERE \"Product_ID\" != 2 AND \"Store_ID\" <> 2 EXCEPT SELECT SUM(Store_ID), MIN(Product_ID) FROM store_product WHERE \"Store_ID\" <= 3"} {"question": "Which driver IDs are either 2 or greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["2"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T79nx_12.png", "TableImg_Sxz1h_5.png"], "original_data_index": 2107, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are equal to 6 in the driver table, but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0necz_12.png", "TableImg_B4dgr_5.png"], "original_data_index": 2108, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are equal to 1 but not greater than or equal to 9, considering only driver IDs from the 'driver' and 'school_bus' tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dzbmt_12.png", "TableImg_Czv4a_5.png"], "original_data_index": 2109, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the document type codes for documents where the other details are not \"u\", or the receipt number is not \"83\" and the document ID is greater than or equal to 25 and the receipt date is not \"1996-05-31 06:51:58\", or the document status code is not \"overdue\", combined with the document type codes from the reference document types table that are not \"Hard Drive\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2], "data": [["CD"], ["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Wznjz_15.png", "TableImg_Jk8u1_3.png"], "original_data_index": 2110, "original_sql": "SELECT document_type_code FROM Documents WHERE other_details != \"u\" OR receipt_number <> \"83\" AND \"document_id\" >= 25 AND receipt_date != \"1996-05-31 06:51:58\" OR document_status_code != \"overdue\" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code != \"Hard Drive\""} {"question": "What are the driver IDs that are both less than 6 in the driver table and also less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kgjpo_12.png", "TableImg_Qkjk8_5.png"], "original_data_index": 2111, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the salaries and employee IDs that are not 44740, and also have an employee ID of 552455348 and a salary less than or equal to 289950?", "answer": {"columns": ["salary", "eid"], "index": [0], "data": [["152013", "552455348"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_5qlvg_31.png", "TableImg_2ejly_31.png"], "original_data_index": 2112, "original_sql": "SELECT salary, eid FROM employee WHERE \"salary\" != 44740 INTERSECT SELECT salary, eid FROM employee WHERE \"eid\" = 552455348 AND \"salary\" <= 289950"} {"question": "What are the aircraft IDs that are not 3 and are present in the aircraft table, but not in the airport_aircraft table where the aircraft ID is greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bnxme_5.png", "TableImg_P42bc_4.png"], "original_data_index": 2114, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the student IDs of students who are either Vice-Presidents in club 1 or not student ID 1007, combined with the student IDs of students whose major is less than or equal to 600 and student ID is less than or equal to 1006, or whose first name is Susan, live in BAL, and are not 18 years old?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1001"], ["1008"], ["1010"], ["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_Mhjbi_4.png", "TableImg_5gmaw_34.png"], "original_data_index": 2113, "original_sql": "SELECT StuID FROM Member_of_club WHERE \"ClubID\" = 1 AND Position = \"Vice-President\" OR \"StuID\" <> 1007 UNION ALL SELECT StuID FROM Student WHERE \"Major\" <= 600 AND \"StuID\" <= 1006 OR Fname = \"Susan\" AND city_code = \"BAL\" AND \"Age\" != 18"} {"question": "Which driver IDs are greater than or equal to 11, and which driver ID is 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H4lg0_12.png", "TableImg_7egh4_5.png"], "original_data_index": 2115, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs less than 9 that are in the driver table but not in the school bus table with driver IDs 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Htf60_12.png", "TableImg_Qjb0w_5.png"], "original_data_index": 2116, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are less than or equal to 7 but are not driver IDs that are greater than or equal to 3 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ywpyp_12.png", "TableImg_U94aq_5.png"], "original_data_index": 2118, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the minimum shp_feature_2, average buyer_offered_price, average hse_feature_2, hse_feature_1, count of agreed_selling_price, room_count, apt_feature_3, shp_feature_1, property_address, property_type_code, count of hse_feature_3, oth_feature_2, fld_feature_2, count of property_name, average oth_feature_3, sum of apt_feature_1, sum of fld_feature_3, sum of date_sold, sum of vendor_requested_price, count of oth_feature_1, sum of apt_feature_2, other_property_details, count of fld_feature_1, sum of date_on_market, shp_feature_3, and property_id for properties where hse_feature_3 is not \"None\" or property_type_code is not \"Other\" and buyer_offered_price is less than 10.1067 and room_count is greater than 2 and vendor_requested_price is 2219.6778, or apt_feature_3 is not \"None\"; and also for properties where property_name is not \"high line\" and apt_feature_3 is \"None\"?", "answer": {"columns": ["MIN(shp_feature_2)", "AVG(buyer_offered_price)", "AVG(hse_feature_2)", "hse_feature_1", "COUNT(agreed_selling_price)", "room_count", "apt_feature_3", "shp_feature_1", "property_address", "property_type_code", "COUNT(hse_feature_3)", "oth_feature_2", "fld_feature_2", "COUNT(property_name)", "AVG(oth_feature_3)", "SUM(apt_feature_1)", "SUM(fld_feature_3)", "SUM(date_sold)", "SUM(vendor_requested_price)", "COUNT(oth_feature_1)", "SUM(apt_feature_2)", "other_property_details", "COUNT(fld_feature_1)", "SUM(date_on_market)", "shp_feature_3", "property_id"], "index": [0, 1], "data": [["", "", "", "", "0", "", "", "", "", "", "0", "", "", "0", "", "", "", "", "", "0", "", "", "0", "", "", ""], ["", "", "", "", "0", "", "", "", "", "", "0", "", "", "0", "", "", "", "", "", "0", "", "", "0", "", "", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Gchrc_15.png", "TableImg_Ydjqs_15.png"], "original_data_index": 2117, "original_sql": "SELECT MIN(shp_feature_2), AVG(buyer_offered_price), AVG(hse_feature_2), hse_feature_1, COUNT(agreed_selling_price), room_count, apt_feature_3, shp_feature_1, property_address, property_type_code, COUNT(hse_feature_3), oth_feature_2, fld_feature_2, COUNT(property_name), AVG(oth_feature_3), SUM(apt_feature_1), SUM(fld_feature_3), SUM(date_sold), SUM(vendor_requested_price), COUNT(oth_feature_1), SUM(apt_feature_2), other_property_details, COUNT(fld_feature_1), SUM(date_on_market), shp_feature_3, property_id FROM Properties WHERE hse_feature_3 <> \"None\" OR property_type_code != \"Other\" AND \"buyer_offered_price\" < 10.1067 AND \"room_count\" > 2 AND \"vendor_requested_price\" = 2219.6778 OR apt_feature_3 <> \"None\" UNION ALL SELECT MIN(shp_feature_2), AVG(buyer_offered_price), AVG(hse_feature_2), hse_feature_1, COUNT(agreed_selling_price), room_count, apt_feature_3, shp_feature_1, property_address, property_type_code, COUNT(hse_feature_3), oth_feature_2, fld_feature_2, COUNT(property_name), AVG(oth_feature_3), SUM(apt_feature_1), SUM(fld_feature_3), SUM(date_sold), SUM(vendor_requested_price), COUNT(oth_feature_1), SUM(apt_feature_2), other_property_details, COUNT(fld_feature_1), SUM(date_on_market), shp_feature_3, property_id FROM Properties WHERE property_name != \"high line\" AND apt_feature_3 = \"None\""} {"question": "What are the store IDs of stores that don't have an area size of 26.69, excluding those store IDs that sell product 4 and have a store ID of 5 or less?", "answer": {"columns": ["Store_ID"], "index": [0], "data": [["4"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_4huwo_5.png", "TableImg_4r0q7_15.png"], "original_data_index": 2104, "original_sql": "SELECT Store_ID FROM store WHERE \"Area_size\" != 26.69 EXCEPT SELECT Store_ID FROM store_product WHERE \"Product_ID\" = 4 AND \"Store_ID\" <= 5"} {"question": "How many times did players finish second and earn a different amount than 104871, or have a poker ID other than 5, excluding those with a poker ID of 2 or higher, or a money rank greater than 166?", "answer": {"columns": ["COUNT(Best_Finish)", "People_ID", "Earnings", "Poker_Player_ID", "Money_Rank"], "index": [0], "data": [["4", "1", "476090", "1", "68"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Vebgr_5.png", "TableImg_Swi5w_5.png"], "original_data_index": 2105, "original_sql": "SELECT COUNT(Best_Finish), People_ID, Earnings, Poker_Player_ID, Money_Rank FROM poker_player WHERE \"Best_Finish\" = 2.0 AND \"Earnings\" != 104871.0 OR \"Poker_Player_ID\" != 5 EXCEPT SELECT COUNT(Best_Finish), People_ID, Earnings, Poker_Player_ID, Money_Rank FROM poker_player WHERE \"Poker_Player_ID\" >= 2 OR \"Money_Rank\" > 166.0"} {"question": "Which driver IDs are in either the driver table (excluding driver ID 9) or the school bus table (including driver IDs up to 4)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mjuax_12.png", "TableImg_Lvt3i_5.png"], "original_data_index": 2120, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs that appear in the driver table with IDs less than or equal to 1, but are not in the school bus table with IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y9pma_12.png", "TableImg_U32of_5.png"], "original_data_index": 2121, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID greater than or equal to 1, but are not in the airport_aircraft table with an ID not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6wmws_5.png", "TableImg_Nqgen_4.png"], "original_data_index": 2119, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 5 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mm5b2_12.png", "TableImg_Fki52_5.png"], "original_data_index": 2122, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs greater than 3, and also any aircraft IDs that are not 1, considering both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ucfq5_5.png", "TableImg_4r616_4.png"], "original_data_index": 2124, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the driver IDs that are greater than or equal to 8 and also appear in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9tcuy_12.png", "TableImg_Su5zu_5.png"], "original_data_index": 2123, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are less than 4, but not present in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hpqr2_12.png", "TableImg_Lp9km_5.png"], "original_data_index": 2125, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs that are either 5 or less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ir633_5.png", "TableImg_98sdk_4.png"], "original_data_index": 2127, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the aircraft IDs that are not 1 and are in the aircraft table, but not in the airport_aircraft table with IDs less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L5pbe_5.png", "TableImg_V0yzk_4.png"], "original_data_index": 2126, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the different trust values where the target user ID is 5 or the trust value isn't 2, and also what are the trust values where the target user ID is 2 or greater?", "answer": {"columns": ["trust"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_Pjc9d_9.png", "TableImg_I74bg_9.png"], "original_data_index": 2128, "original_sql": "SELECT trust FROM trust WHERE \"target_u_id\" = 5 OR \"trust\" <> 2 UNION SELECT trust FROM trust WHERE \"target_u_id\" >= 2"} {"question": "Give me the building number, the sum of the country values, the zip code, the address ID, and the maximum state for addresses in the USA, or not in Buckridgehaven, or with the zip code 80376 and not in Washington, or with an address ID not equal to 5. Also, give me the same information for addresses that have an address ID not equal to 5, or are not in Ericamouth and not in the USA.", "answer": {"columns": ["line_1_number_building", "SUM(country)", "zip_postcode", "address_id", "MAX(state_province_county)"], "index": [0, 1], "data": [["29085 Dejah Pine Suite 059", "0", "80376", "8", "WestVirginia"], ["29085 Dejah Pine Suite 059", "0", "80376", "8", "WestVirginia"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Zrr1z_15.png", "TableImg_Xoyih_15.png"], "original_data_index": 2129, "original_sql": "SELECT line_1_number_building, SUM(country), zip_postcode, address_id, MAX(state_province_county) FROM Addresses WHERE country = \"USA\" OR city <> \"Buckridgehaven\" AND line_1_number_building != \"37698 Hahn Curve Apt. 572\" OR zip_postcode = \"80376\" AND state_province_county != \"Washington\" OR \"address_id\" <> 5 UNION ALL SELECT line_1_number_building, SUM(country), zip_postcode, address_id, MAX(state_province_county) FROM Addresses WHERE \"address_id\" != 5 OR city != \"Ericamouth\" AND country <> \"USA\""} {"question": "What are the driver IDs that are both less than or equal to 3 in the driver table and greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dzl9z_12.png", "TableImg_Ukfx1_5.png"], "original_data_index": 2133, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What is the alphabetically last aircraft name, excluding aircraft with ID 5, and what is the alphabetically last employee name, excluding Linda Davis?", "answer": {"columns": ["MAX(name)"], "index": [0, 1], "data": [["Tupolev 154"], ["William Ward"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Bn8ln_16.png", "TableImg_Wluv3_31.png"], "original_data_index": 2131, "original_sql": "SELECT MAX(name) FROM aircraft WHERE \"aid\" != 5 UNION ALL SELECT MAX(name) FROM employee WHERE name != \"Linda Davis\""} {"question": "Which driver IDs are equal to 12 but not less than 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Afg4k_12.png", "TableImg_2qvwh_5.png"], "original_data_index": 2132, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are less than 3 but not equal to 7, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hcrk4_12.png", "TableImg_Rbdt9_5.png"], "original_data_index": 2130, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are not equal to 2, but are not also driver IDs from school buses with IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qgj3u_12.png", "TableImg_Kxaga_5.png"], "original_data_index": 2135, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are either less than or equal to 6, or are equal to 4, considering both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oi7fs_12.png", "TableImg_Qhtwk_5.png"], "original_data_index": 2134, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are less than 8 but not greater than 3, considering only the driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ox8po_12.png", "TableImg_Er7xx_5.png"], "original_data_index": 2139, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the IDs of drivers who are not driver ID 3 and also appear in the school bus table but are not driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Chujr_12.png", "TableImg_Jmflt_5.png"], "original_data_index": 2138, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the employee IDs and years awarded for employee 10, and also for any evaluations from the year 2017?", "answer": {"columns": ["Employee_ID", "Year_awarded"], "index": [0, 1], "data": [["10", "2016"], ["4", "2017"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_Quk1b_6.png", "TableImg_Rgumj_6.png"], "original_data_index": 2137, "original_sql": "SELECT Employee_ID, Year_awarded FROM evaluation WHERE Employee_ID = \"10\" UNION SELECT Employee_ID, Year_awarded FROM evaluation WHERE Year_awarded = \"2017\""} {"question": "What is the average student ID, club ID, and position for members where the student ID is greater than 1010, or the position is not CTO, or the club ID is less than 4? Also, what is the average student ID, club ID, and position for members who are not Vice-Presidents?", "answer": {"columns": ["AVG(StuID)", "ClubID", "Position"], "index": [0, 1], "data": [["1006.5", "1", "President"], ["1006.3333333333", "1", "President"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_K2ez3_4.png", "TableImg_Qxnm6_4.png"], "original_data_index": 2141, "original_sql": "SELECT AVG(StuID), ClubID, Position FROM Member_of_club WHERE \"StuID\" > 1010 OR Position <> \"CTO\" OR \"ClubID\" < 4 UNION ALL SELECT AVG(StuID), ClubID, Position FROM Member_of_club WHERE Position != \"Vice-President\""} {"question": "Which club IDs and student IDs are members of a club, not as Vice-Presidents, and also not student 1001 in club 2, and also not Teaching Coordinators?", "answer": {"columns": ["ClubID", "StuID"], "index": [0, 1, 2], "data": [["1", "1001"], ["2", "1008"], ["4", "1007"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_2tqmk_4.png", "TableImg_P55st_4.png"], "original_data_index": 2140, "original_sql": "SELECT ClubID, StuID FROM Member_of_club WHERE Position != \"Vice-President\" OR \"StuID\" <> 1001 AND \"ClubID\" <> 2 INTERSECT SELECT ClubID, StuID FROM Member_of_club WHERE Position != \"Teaching Coordinator\""} {"question": "What are the driver IDs that are not equal to 5, but are not also driver IDs greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8sknr_12.png", "TableImg_Iaget_5.png"], "original_data_index": 2142, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the IDs of properties that either have features other than \"autem\" or are not property ID 13, combined with properties that have \"None\" as other details, or have \"None\" for fld_feature_3 and a vendor requested price of 13.4715 and \"None\" for shp_feature_1, or were sold on \"1997-01-07 19:52:45\", or have a house feature 2 not equal to \"None\" and are apartments with at least 8 rooms, or have a house feature 3 of \"None\" and an apartment feature 2 not equal to \"sit\" and an other feature 2 not equal to \"None\", or have fld_feature_2 and fld_feature_1 not equal to \"None\", or have an other feature 3 not equal to \"None\" and a house feature 1 not equal to \"None\" and a property ID less than 7 and a buyer offered price not equal to 2449185.2 and an other feature 1 not equal to \"None\" and an apartment feature 1 not equal to \"et\", or have an agreed selling price not equal to 3344706.5755, or are named \"longacre\" and have an apartment feature 3 not equal to \"None\" and a date on market not equal to \"2003-12-25 16:13:19\"?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["15"], ["12"], ["6"], ["7"], ["6"], ["14"], ["4"], ["1"], ["11"], ["9"], ["6"], ["6"], ["3"], ["14"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_F5e60_15.png", "TableImg_7y1w5_15.png"], "original_data_index": 2136, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"property_id\" != 13 OR property_feature_description != \"autem\" UNION ALL SELECT property_id FROM Properties WHERE other_property_details = \"None\" OR fld_feature_3 != \"None\" AND \"vendor_requested_price\" = 13.4715 AND shp_feature_1 = \"None\" OR date_sold = \"1997-01-07 19:52:45\" OR hse_feature_2 != \"None\" AND property_type_code = \"Apartment\" AND \"room_count\" >= 8 OR hse_feature_3 = \"None\" AND apt_feature_2 != \"sit\" AND oth_feature_2 <> \"None\" OR fld_feature_2 <> \"None\" AND fld_feature_1 <> \"None\" OR oth_feature_3 != \"None\" AND hse_feature_1 != \"None\" AND \"property_id\" < 7 AND \"buyer_offered_price\" <> 2449185.2 AND oth_feature_1 != \"None\" AND apt_feature_1 <> \"et\" OR \"agreed_selling_price\" <> 3344706.5755 OR property_name = \"longacre\" AND apt_feature_3 <> \"None\" AND date_on_market <> \"2003-12-25 16:13:19\""} {"question": "What are the aircraft IDs that are both greater than or equal to 4 in the aircraft table and greater than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vkvdk_5.png", "TableImg_Wngnu_4.png"], "original_data_index": 2145, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the aircraft IDs that are less than or equal to 5, excluding those aircraft IDs greater than 3 that are also present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Twj2x_5.png", "TableImg_Sncgp_4.png"], "original_data_index": 2144, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Which driver IDs, excluding driver ID 10, are present in the driver table, and which driver IDs, excluding driver ID 4, are present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Okyww_12.png", "TableImg_Acuur_5.png"], "original_data_index": 2143, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the IDs of drivers, excluding driver 12, and the IDs of school bus drivers, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qmakw_12.png", "TableImg_Qmd1y_5.png"], "original_data_index": 2146, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 11 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q733t_12.png", "TableImg_Hnmt4_5.png"], "original_data_index": 2148, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What is the maximum template type description and the template type code for template types with code \"AD\" or description \"CV\", combined with the maximum template type description and the template type code for all template types except those with code \"CV\"?", "answer": {"columns": ["MAX(Template_Type_Description)", "Template_Type_Code"], "index": [0, 1], "data": [["CV", "CV"], ["Presentation", "PPT"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Qz1fa_5.png", "TableImg_7yjwi_5.png"], "original_data_index": 2149, "original_sql": "SELECT MAX(Template_Type_Description), Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = \"AD\" OR Template_Type_Description = \"CV\" UNION SELECT MAX(Template_Type_Description), Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code <> \"CV\""} {"question": "What are the driver IDs that are less than or equal to 11, but not present in the school bus table with driver IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kiwlw_12.png", "TableImg_Eph58_5.png"], "original_data_index": 2147, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What is the smallest model name from the car names where the MakeId is less than 195 and not \"volkswagen\", and also the smallest model name from the model list where the model is not \"capri\" and the Maker is less than or equal to 11 or the ModelId is less than 19?", "answer": {"columns": ["MIN(Model)"], "index": [0], "data": [["amc"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_Sndmi_406.png", "TableImg_Zj9yh_36.png"], "original_data_index": 2150, "original_sql": "SELECT MIN(Model) FROM car_names WHERE \"MakeId\" < 195 AND Model != \"volkswagen\" INTERSECT SELECT MIN(Model) FROM model_list WHERE Model <> \"capri\" AND \"Maker\" <= 11 OR \"ModelId\" < 19"} {"question": "What are the aircraft IDs that are either 3 or less than or equal to 3, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Msgpz_5.png", "TableImg_D5zii_4.png"], "original_data_index": 2152, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the maximum feature IDs and feature type codes for security features, excluding feature ID 4, or features that aren't \"Burglar Alarm\" and don't have the name \"BurglarAlarm\", where the maximum feature ID is at least 3? Also, what are the maximum feature IDs and feature type codes for features that aren't \"Burglar Alarm\" or have a name that isn't \"AirCon\" and have a feature ID of 3, where the maximum feature ID is not 3? Combine the results.", "answer": {"columns": ["MAX(feature_id)", "feature_type_code"], "index": [0], "data": [["3", "Amenity"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_Z1xsy_3.png", "TableImg_8ysh1_3.png"], "original_data_index": 2151, "original_sql": "SELECT MAX(feature_id), feature_type_code FROM Other_Available_Features WHERE feature_type_code = \"Security\" AND \"feature_id\" != 4 OR feature_description != \"Burglar Alarm\" AND feature_name <> \"BurglarAlarm\" GROUP BY feature_type_code HAVING MAX(feature_id) >= 3 UNION SELECT MAX(feature_id), feature_type_code FROM Other_Available_Features WHERE feature_description != \"Burglar Alarm\" OR feature_name != \"AirCon\" AND \"feature_id\" = 3 GROUP BY feature_type_code HAVING MAX(feature_id) <> 3"} {"question": "What are the driver IDs greater than 9 that are present in both the driver and school bus tables, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ycgj3_12.png", "TableImg_5j1wq_5.png"], "original_data_index": 2153, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs greater than 3, and also what are the aircraft IDs from the airport that are not 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_924zo_5.png", "TableImg_Y41o8_4.png"], "original_data_index": 2156, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 10 from the driver table and driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Afgyq_12.png", "TableImg_Uyzb3_5.png"], "original_data_index": 2155, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs that are either greater than or equal to 7 in the driver table or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8bcoa_12.png", "TableImg_X84cm_5.png"], "original_data_index": 2158, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that are not 5, and also the aircraft IDs that are 5 or greater, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bs1ig_5.png", "TableImg_Gn0li_4.png"], "original_data_index": 2157, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the aircraft IDs that appear in both the aircraft table with an ID greater than or equal to 1 and in the airport_aircraft table with an ID greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cbfvd_5.png", "TableImg_Hshs9_4.png"], "original_data_index": 2159, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the aircraft IDs that are less than 1 in the aircraft table, combined with the aircraft ID that is equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P4yyc_5.png", "TableImg_28ec8_4.png"], "original_data_index": 2160, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the driver IDs that are greater than or equal to 9, and also the driver IDs that are not equal to 7, considering both the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y5tpi_12.png", "TableImg_Klh6h_5.png"], "original_data_index": 2161, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 4, but only considering driver IDs less than 4 in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zh4k1_12.png", "TableImg_G1bfi_5.png"], "original_data_index": 2162, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the city, branch ID, name, and open year for branches where the membership amount is 6, or the city isn't London, or the address road is Valleys Place, or the branch ID is greater than 3 and the open year isn't 2012? Also, include the city, branch ID, name, and open year for branches where the membership amount isn't 11, or the city isn't Oxford and the address road isn't Glebe Street.", "answer": {"columns": ["City", "Branch_ID", "Name", "Open_year"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["London", "1", "Alexandre", "2001"], ["London", "3", "Stanley", "2013"], ["Oxford", "4", "Zytogorski", "2009"], ["Oxford", "6", "Taverner", "2014"], ["London", "7", "Saint Amant", "2015"], ["Oxford", "8", "Brooke Greville", "2009"], ["London", "1", "Alexandre", "2001"], ["London", "2", "Popert", "2009"], ["London", "3", "Stanley", "2013"], ["Oxford", "4", "Zytogorski", "2009"], ["London", "5", "Cochrane", "2012"], ["Oxford", "6", "Taverner", "2014"], ["London", "7", "Saint Amant", "2015"], ["Oxford", "8", "Brooke Greville", "2009"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_A047z_8.png", "TableImg_Jd71o_8.png"], "original_data_index": 2163, "original_sql": "SELECT City, Branch_ID, Name, Open_year FROM branch WHERE membership_amount = \"6\" OR City != \"London\" OR Address_road = \"Valleys Place\" OR \"Branch_ID\" > 3 AND Open_year <> \"2012\" UNION ALL SELECT City, Branch_ID, Name, Open_year FROM branch WHERE membership_amount != \"11\" OR City <> \"Oxford\" AND Address_road <> \"Glebe Street\""} {"question": "Which driver IDs are not equal to 11, but are not found in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eaojp_12.png", "TableImg_Ccjr4_5.png"], "original_data_index": 2154, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs greater than 8, combined with the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Chwcp_12.png", "TableImg_Wdkwj_5.png"], "original_data_index": 2164, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are not 3 and also appear in the airport_aircraft table with an ID of 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nbpi0_5.png", "TableImg_Fsd9q_4.png"], "original_data_index": 2166, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the country names and continents for all countries that are not in continent 2, combined with the country name and continent for New Zealand and any countries with an ID greater than 8?", "answer": {"columns": ["CountryName", "Continent"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["usa", "1"], ["japan", "3"], ["korea", "3"], ["nigeria", "4"], ["australia", "5"], ["new zealand", "5"], ["egypt", "4"], ["mexico", "1"], ["brazil", "1"], ["russia", "2"], ["nigeria", "4"], ["australia", "5"], ["new zealand", "5"], ["egypt", "4"], ["mexico", "1"], ["brazil", "1"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_Sjz3x_15.png", "TableImg_5u4dj_15.png"], "original_data_index": 2167, "original_sql": "SELECT CountryName, Continent FROM countries WHERE \"Continent\" != 2 UNION ALL SELECT CountryName, Continent FROM countries WHERE CountryName = \"new zealand\" OR \"CountryId\" > 8"} {"question": "What are the birth states of people from California who are not 56 years old, or have a head ID less than or equal to 7, or are named Tiger Woods? Also, what are the birth states of people with a head ID greater than 4, who are not named Tiger Woods and were not born in Connecticut?", "answer": {"columns": ["born_state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["Alabama"], ["California"], ["Alabama"], ["California"], ["Delaware"], ["California"], ["Florida"], ["Delaware"], ["California"], ["Florida"], ["California"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Mvoa5_10.png", "TableImg_Ddyd5_10.png"], "original_data_index": 2165, "original_sql": "SELECT born_state FROM head WHERE born_state = \"California\" AND \"age\" <> 56.0 OR \"head_ID\" <= 7 OR name = \"Tiger Woods\" UNION ALL SELECT born_state FROM head WHERE \"head_ID\" > 4 AND name != \"Tiger Woods\" AND born_state != \"Connecticut\""} {"question": "What are the names of aircraft that are not \"Airbus A340-300\" and the names of employees who are not \"Jennifer Thomas\"?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43], "data": [["Airbus A319"], ["Airbus A320"], ["Angela Martinez"], ["Barbara Wilson"], ["Betty Adams"], ["Boeing 727"], ["Boeing 737-800"], ["Boeing 747-400"], ["Boeing 757-300"], ["Boeing 767-400ER"], ["Boeing 777-300"], ["British Aerospace Jetstream 41"], ["Chad Stewart"], ["David Anderson"], ["Donald King"], ["Dorthy Lewis"], ["Elizabeth Taylor"], ["Embraer ERJ-145"], ["Eric Cooper"], ["George Wright"], ["Haywood Kelly"], ["James Smith"], ["John Williams"], ["Joseph Thompson"], ["Karen Scott"], ["Larry West"], ["Lawrence Sperry"], ["Linda Davis"], ["Lisa Walker"], ["Lockheed L1011"], ["Mark Young"], ["Mary Johnson"], ["Michael Miller"], ["Milo Brooks"], ["Patricia Jones"], ["Piper Archer III"], ["Richard Jackson"], ["Robert Brown"], ["SAAB 340"], ["Schwitzer 2-33"], ["Tupolev 154"], ["William Jones"], ["William Moore"], ["William Ward"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_S7f8c_16.png", "TableImg_92wsf_31.png"], "original_data_index": 2168, "original_sql": "SELECT name FROM aircraft WHERE name != \"Airbus A340-300\" UNION SELECT name FROM employee WHERE name <> \"Jennifer Thomas\""} {"question": "What are the aircraft IDs that are either less than or equal to 4 in the aircraft table or greater than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ggqq7_5.png", "TableImg_Gben8_4.png"], "original_data_index": 2169, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the driver IDs less than 8 from the driver table, combined with the driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cpdw2_12.png", "TableImg_74it9_5.png"], "original_data_index": 2170, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the aircraft IDs that are both greater than or equal to 3 and not equal to 2, considering only the aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3cwv0_5.png", "TableImg_8h987_4.png"], "original_data_index": 2171, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the aircraft IDs less than 3 that are not present in the airport_aircraft table with aircraft IDs greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ayneb_5.png", "TableImg_J9d01_4.png"], "original_data_index": 2173, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs that are both less than or equal to 6 and also appear in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wobim_12.png", "TableImg_5m97c_5.png"], "original_data_index": 2172, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs, excluding driver ID 11, are in the driver table but not in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bop8p_12.png", "TableImg_Y265y_5.png"], "original_data_index": 2174, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the source user IDs where the target user ID is less than or equal to 3 and the source user ID is greater than or equal to 6, or where the trust value is not 1, excluding those source user IDs where the target user ID is greater than or equal to 3 and the source user ID is less than or equal to 3?", "answer": {"columns": ["source_u_id"], "index": [0, 1], "data": [["6"], ["7"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_14ol5_9.png", "TableImg_7whgn_9.png"], "original_data_index": 2175, "original_sql": "SELECT source_u_id FROM trust WHERE \"target_u_id\" <= 3 AND \"source_u_id\" >= 6 OR \"trust\" != 1 EXCEPT SELECT source_u_id FROM trust WHERE \"target_u_id\" >= 3 AND \"source_u_id\" <= 3"} {"question": "What are the IDs of drivers, excluding driver 4, and also the IDs of school bus drivers, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xsa53_12.png", "TableImg_Rgu5o_5.png"], "original_data_index": 2179, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs less than 12 from the driver table, combined with the driver IDs not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bulif_12.png", "TableImg_Dcyve_5.png"], "original_data_index": 2178, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are both less than or equal to 12 in the driver table and less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lliaw_12.png", "TableImg_Xyytk_5.png"], "original_data_index": 2177, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the branch and member IDs for members with IDs greater than 1 and also less than or equal to 5?", "answer": {"columns": ["Branch_ID", "Member_ID"], "index": [0, 1, 2, 3], "data": [["1", "3"], ["1", "4"], ["4", "2"], ["5", "5"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Ykczo_8.png", "TableImg_Eidwm_8.png"], "original_data_index": 2176, "original_sql": "SELECT Branch_ID, Member_ID FROM membership_register_branch WHERE \"Member_ID\" <= 5 INTERSECT SELECT Branch_ID, Member_ID FROM membership_register_branch WHERE \"Member_ID\" > 1"} {"question": "Which driver IDs are either 9 or 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P97et_12.png", "TableImg_Ycs04_5.png"], "original_data_index": 2181, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the aircraft IDs greater than 1 or less than 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xlh4p_5.png", "TableImg_Ixjmo_4.png"], "original_data_index": 2183, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the aircraft IDs that are not equal to 3 in the aircraft table, excluding those aircraft IDs that are equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_78vkj_5.png", "TableImg_V3uij_4.png"], "original_data_index": 2180, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the aircraft IDs and distances for aircraft with IDs up to 10, excluding \"Boeing 777-300\" and distances not equal to 520, combined with the aircraft IDs and distances from flights where the price isn't 278.56 and the origin is Los Angeles or the destination is Boston, and the arrival date is 04/12/2005 11:10 and the flight number is greater than 387, or the departure date is not 04/12/2005 09:15, or the aircraft ID is greater than or equal to 3?", "answer": {"columns": ["aid", "distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1", "2308"], ["1", "8430"], ["2", "1251"], ["2", "3383"], ["3", "1749"], ["3", "7120"], ["3", "7487"], ["4", "1502"], ["5", "1530"], ["5", "2551"], ["6", "2128"], ["6", "2606"], ["7", "2551"], ["8", "4103"], ["9", "1749"], ["9", "5478"], ["9", "6900"], ["10", "802"], ["10", "4010"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_Rp47m_16.png", "TableImg_Sqxps_10.png"], "original_data_index": 2182, "original_sql": "SELECT aid, distance FROM aircraft WHERE \"aid\" <= 10 AND name <> \"Boeing 777-300\" AND \"distance\" != 520 UNION SELECT aid, distance FROM flight WHERE \"price\" != 278.56 AND origin = \"Los Angeles\" OR destination = \"Boston\" AND arrival_date = \"04/12/2005 11:10\" AND \"flno\" > 387 OR departure_date <> \"04/12/2005 09:15\" OR \"aid\" >= 3"} {"question": "Which driver IDs are not 6, and which driver ID is 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pr2ph_12.png", "TableImg_8u4x3_5.png"], "original_data_index": 2185, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are either aircraft ID 4 or aircraft IDs less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iecpj_5.png", "TableImg_D453e_4.png"], "original_data_index": 2186, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs that are equal to 5, excluding those driver IDs from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5sh5i_12.png", "TableImg_Ts5yw_5.png"], "original_data_index": 2184, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs greater than 3 from the driver table, combined with the driver IDs greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1oyan_12.png", "TableImg_Qdpsf_5.png"], "original_data_index": 2187, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are less than or equal to 2, excluding those that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_40x5v_12.png", "TableImg_F0519_5.png"], "original_data_index": 2188, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are greater than 1 and also appear in the school bus table with IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ry1gh_12.png", "TableImg_D5y94_5.png"], "original_data_index": 2190, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are not equal to 1 and are present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ofesn_5.png", "TableImg_C02co_4.png"], "original_data_index": 2189, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the school types and grades for schools located in Jakarta, Indonesia, or for schools that are not private? Also, what are the school types and grades for schools not located in Los Angeles, California, or for schools that are not St. Francis Assisi and are not 1st-3rd grade, and have a School ID greater than 6?", "answer": {"columns": ["Type", "Grade"], "index": [0, 1, 2, 3, 4, 5], "data": [["Private", "5th-12th grade"], ["Private", "College"], ["Private", "Junior\u2013Senior year"], ["Private Catholic", "1st-3rd grade"], ["Public", "4th grade"], ["Public", "Kindergarten"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Wems8_7.png", "TableImg_Awrsh_7.png"], "original_data_index": 2191, "original_sql": "SELECT Type, Grade FROM school WHERE Location = \"Jakarta, Indonesia\" OR Type <> \"Private\" UNION SELECT Type, Grade FROM school WHERE Location <> \"Los Angeles, California\" OR School <> \"St. Francis Assisi\" AND Grade <> \"1st-3rd grade\" AND \"School_ID\" > 6"} {"question": "What are the driver IDs that are greater than or equal to 1, and also the driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T89pv_12.png", "TableImg_Mccua_5.png"], "original_data_index": 2192, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the aircraft IDs that are less than or equal to 4, excluding those aircraft IDs that are less than 3, considering only the aircraft IDs present in the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Att2j_5.png", "TableImg_0kxm5_4.png"], "original_data_index": 2194, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the book IDs that are either greater than 7 in the book table, or have a price not equal to 15000000, a publication ID of 6, a publication date of April 2007, a publisher that is not Springer Nature, or a book ID of 3 in the publication table?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["8"], ["9"], ["10"], ["1"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_06jyb_10.png", "TableImg_9edd7_7.png"], "original_data_index": 2195, "original_sql": "SELECT Book_ID FROM book WHERE \"Book_ID\" > 7 UNION ALL SELECT Book_ID FROM publication WHERE \"Price\" != 15000000.0 OR \"Publication_ID\" = 6 OR Publication_Date = \"April 2007\" OR Publisher <> \"Springer Nature\" OR \"Book_ID\" = 3"} {"question": "Which staff IDs are present in lessons but not staff with the last name \"Sawayn\" or who joined on \"2017-02-20 18:45:20\", or staff with ID 2, an address ID other than 4, the nickname \"edwin.hudson\", and a birthdate different from \"1998-04-27 12:55:05\", and also have a staff ID that is not 8 or a lesson date of \"2018-03-07 11:53:32\"?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["5"], ["11"], ["12"], ["14"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_G04ku_15.png", "TableImg_Yjltu_15.png"], "original_data_index": 2193, "original_sql": "SELECT staff_id FROM Lessons WHERE \"staff_id\" != 8 OR lesson_date = \"2018-03-07 11:53:32\" INTERSECT SELECT staff_id FROM Staff WHERE last_name != \"Sawayn\" AND date_joined_staff != \"2017-02-20 18:45:20\" OR \"staff_id\" = 2 AND \"staff_address_id\" <> 4 AND nickname = \"edwin.hudson\" AND date_of_birth != \"1998-04-27 12:55:05\""} {"question": "What are the aircraft IDs that are not 2 and also have an ID greater than 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mx8mv_5.png", "TableImg_2ocby_4.png"], "original_data_index": 2197, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the driver IDs that are either 8 or greater from the driver table, or 9 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kl77z_12.png", "TableImg_Em0fd_5.png"], "original_data_index": 2199, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are less than 1, and which driver IDs are greater than 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L2m1k_12.png", "TableImg_0cbz5_5.png"], "original_data_index": 2198, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the average document type description, grouped by document type code, for document types that are not \"b\" or have a code other than \"Paper\", combined with the average document type description, grouped by document type code, for document types that don't have the code \"CD\"?", "answer": {"columns": ["AVG(document_type_description)", "document_type_code"], "index": [0, 1], "data": [["0", "CD"], ["0", "Paper"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_H62d2_3.png", "TableImg_Erhrl_3.png"], "original_data_index": 2196, "original_sql": "SELECT AVG(document_type_description), document_type_code FROM Ref_Document_Types WHERE document_type_description != \"b\" OR document_type_code != \"Paper\" UNION SELECT AVG(document_type_description), document_type_code FROM Ref_Document_Types WHERE document_type_code <> \"CD\""} {"question": "What are the aircraft IDs that are either less than or equal to 2 in the aircraft table or less than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vqgqn_5.png", "TableImg_T6vxe_4.png"], "original_data_index": 2201, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which driver IDs are equal to 10 in the driver table, or are not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0hhxb_12.png", "TableImg_Ofovq_5.png"], "original_data_index": 2202, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are equal to 1 in the aircraft table, but not aircraft IDs greater than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wuud3_5.png", "TableImg_B5ulf_4.png"], "original_data_index": 2204, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 3 from the aircraft table and excluding aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3dbc8_5.png", "TableImg_Ppypf_4.png"], "original_data_index": 2205, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the driver IDs less than 6, and also the driver IDs from 7 onwards?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rq1k2_12.png", "TableImg_Hj3wc_5.png"], "original_data_index": 2200, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are greater than 2 and also appear in the school bus table with IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Boy00_12.png", "TableImg_Zikvr_5.png"], "original_data_index": 2203, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs that are less than 12 and also appear in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5kz7u_12.png", "TableImg_Utymy_5.png"], "original_data_index": 2207, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are both greater than or equal to 8 in the driver table and equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_It3f8_12.png", "TableImg_7k2em_5.png"], "original_data_index": 2209, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs, excluding driver ID 8, from the driver table, and also the driver IDs, up to and including 7, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sj6tx_12.png", "TableImg_5adei_5.png"], "original_data_index": 2206, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What is the sum of Member IDs and the count of registration years for all branches except branch 8, excluding the sum of Member IDs and the count of registration years for branches that are not branch 5 and where the registration year is not 2016 and the Member ID is at least 5?", "answer": {"columns": ["SUM(Member_ID)", "COUNT(Register_Year)"], "index": [0], "data": [["28", "7"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_8zwif_8.png", "TableImg_C67vu_8.png"], "original_data_index": 2211, "original_sql": "SELECT SUM(Member_ID), COUNT(Register_Year) FROM membership_register_branch WHERE Branch_ID <> \"8\" EXCEPT SELECT SUM(Member_ID), COUNT(Register_Year) FROM membership_register_branch WHERE Branch_ID <> \"5\" AND Register_Year != \"2016\" AND \"Member_ID\" >= 5"} {"question": "What is the total number of drivers and the school ID, for drivers in Hartford, or named Edwin Vargas, or with a school ID less than 5 and not full-time, or under 42 years old, or not working for 6 years, grouped by school ID, where the party is not Dem, or worked for 8 years, or is full-time?", "answer": {"columns": ["SUM(T1.Driver_ID)", "School_ID"], "index": [0, 1, 2, 3], "data": [["4", "3"], ["3", "4"], ["7", "5"], ["9", "7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4p2bt_12.png", "TableImg_M6tar_5.png"], "original_data_index": 2210, "original_sql": "SELECT SUM(T1.Driver_ID), T2.School_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city = \"Hartford\" OR Name = \"Edwin Vargas\" OR \"School_ID\" < 5 AND If_full_time <> \"T\" OR \"Age\" < 42 OR \"Years_Working\" <> 6 GROUP BY School_ID HAVING Party <> \"Dem\" OR Years_Working = 8 OR If_full_time = \"T\""} {"question": "What are the aircraft IDs that are less than 2 in the aircraft table, combined with the aircraft IDs that are less than 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mhlza_5.png", "TableImg_Kvze8_4.png"], "original_data_index": 2213, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which club IDs satisfy either of these conditions: the club started after 2005, or the club ID is not 2, or the region is not Russia; or the coach's name is not Robert Chen?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_K195q_6.png", "TableImg_Nk8yw_5.png"], "original_data_index": 2212, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" > 2005 OR \"Club_ID\" <> 2 OR Region != \"Russia\" UNION SELECT Club_ID FROM coach WHERE Coach_name <> \"Robert Chen\""} {"question": "Which driver IDs are present in both the driver table (with IDs greater than or equal to 5) and the school bus table (with IDs not equal to 4)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7f5s7_12.png", "TableImg_Jpbkn_5.png"], "original_data_index": 2214, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that are not 1 and also appear in the airport aircraft table but are not 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sgyvq_5.png", "TableImg_U16bi_4.png"], "original_data_index": 2208, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the aircraft IDs that are both aircraft ID 3 and not aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nesdp_5.png", "TableImg_G8o1q_4.png"], "original_data_index": 2216, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the document IDs that are not draft number 2 and also have a document ID less than or equal to 10?", "answer": {"columns": ["document_id"], "index": [0, 1], "data": [["2"], ["10"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Opf9a_4.png", "TableImg_0cbkl_4.png"], "original_data_index": 2217, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"draft_number\" != 2 INTERSECT SELECT document_id FROM Circulation_History WHERE \"document_id\" <= 10"} {"question": "What are the driver IDs that are less than or equal to 3, and also the driver IDs that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zi28q_12.png", "TableImg_7hlwb_5.png"], "original_data_index": 2218, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs, excluding driver ID 2, and also driver IDs greater than 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wp2rx_12.png", "TableImg_Eba63_5.png"], "original_data_index": 2215, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the aircraft IDs that are not 5, and also what is the aircraft ID that is 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sjzg4_5.png", "TableImg_M8bq5_4.png"], "original_data_index": 2222, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are not equal to 1 and are not found in the school bus table with IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Otom8_12.png", "TableImg_N01vm_5.png"], "original_data_index": 2220, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are not equal to 9, but are not found in the school bus table with driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eenug_12.png", "TableImg_Wv5cj_5.png"], "original_data_index": 2221, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are associated with drivers, where the driver ID is 3 or greater, but not associated with school buses with a driver ID of 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oymds_12.png", "TableImg_D38ug_5.png"], "original_data_index": 2219, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs greater than 1 from the aircraft table, combined with the aircraft IDs from the airport_aircraft table that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_729o7_5.png", "TableImg_R3bt7_4.png"], "original_data_index": 2224, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are less than 3 but not equal to 4, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P2hmm_12.png", "TableImg_1z79i_5.png"], "original_data_index": 2225, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What is the sum of contestant numbers for Tabatha Gehling, excluding the sum of contestant numbers for anyone who isn't Kelly Clauss and whose contestant number isn't 5?", "answer": {"columns": ["contestant_name", "SUM(contestant_number)"], "index": [0], "data": [["Tabatha Gehling", "2"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Jepvt_11.png", "TableImg_W2zhd_11.png"], "original_data_index": 2223, "original_sql": "SELECT contestant_name, SUM(contestant_number) FROM CONTESTANTS WHERE contestant_name = \"Tabatha Gehling\" EXCEPT SELECT contestant_name, SUM(contestant_number) FROM CONTESTANTS WHERE \"contestant_number\" <> 5 AND contestant_name != \"Kelly Clauss\""} {"question": "Which branch IDs are in London, not named Zytogorski, located on Oaks Crescent, and not opened in 2009, or have a branch ID less than or equal to 8, and also which branch IDs are in the membership register but not branch ID 1 and not registered in 2016?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["6"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_7ma90_8.png", "TableImg_Gatgg_8.png"], "original_data_index": 2226, "original_sql": "SELECT Branch_ID FROM branch WHERE Name <> \"Zytogorski\" AND Address_road = \"Oaks Crescent\" AND Open_year != \"2009\" AND City = \"London\" OR \"Branch_ID\" <= 8 UNION SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID != \"1\" AND Register_Year <> \"2016\""} {"question": "Which driver IDs are both less than 5 and also equal to 4, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q7cbg_12.png", "TableImg_Lwt1m_5.png"], "original_data_index": 2230, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs that are not equal to 1, excluding those with IDs less than 2, considering information from the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B4zjg_5.png", "TableImg_7jhm3_4.png"], "original_data_index": 2229, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Show me the employee IDs, bonuses, and years awarded for bonuses greater than 3200, and also show the employee IDs, bonuses, and years awarded for bonuses not given in 2017.", "answer": {"columns": ["Employee_ID", "Bonus", "Year_awarded"], "index": [0, 1, 2, 3, 4], "data": [["1", "2900", "2016"], ["1", "3000", "2011"], ["10", "4000", "2016"], ["2", "3200", "2015"], ["7", "3200", "2018"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_T1vj1_6.png", "TableImg_13am6_6.png"], "original_data_index": 2228, "original_sql": "SELECT Employee_ID, Bonus, Year_awarded FROM evaluation WHERE \"Bonus\" > 3200.0 UNION SELECT Employee_ID, Bonus, Year_awarded FROM evaluation WHERE Year_awarded <> \"2017\""} {"question": "What is the highest maker name, excluding \"Saab\", from the car makers table, and what is the highest maker name, excluding \"datsun\" and where the maker is not 4 and the model ID is greater than 35, from the model list table?", "answer": {"columns": ["MAX(Maker)"], "index": [0, 1], "data": [["volvo"], ["19"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Ul1jk_22.png", "TableImg_Lmsuj_36.png"], "original_data_index": 2227, "original_sql": "SELECT MAX(Maker) FROM car_makers WHERE FullName <> \"Saab\" UNION ALL SELECT MAX(Maker) FROM model_list WHERE Model <> \"datsun\" AND \"Maker\" != 4 AND \"ModelId\" > 35"} {"question": "Which driver IDs are either at least 2 in the driver table or at least 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_020du_12.png", "TableImg_37ji5_5.png"], "original_data_index": 2232, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs less than 10 from the driver table, combined with the driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Shgyq_12.png", "TableImg_Ckcst_5.png"], "original_data_index": 2233, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 3, but only including driver IDs less than 5?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ljk6y_12.png", "TableImg_0u7ie_5.png"], "original_data_index": 2234, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are less than or equal to 11, but not found in the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_94kzl_12.png", "TableImg_Rd1hx_5.png"], "original_data_index": 2231, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are 5, but not 10, considering driver information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G4pzk_12.png", "TableImg_Iswb0_5.png"], "original_data_index": 2236, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are greater than 1, and also include driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z5usu_12.png", "TableImg_Is93x_5.png"], "original_data_index": 2237, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the birth dates and first names of customers who either don't owe $1000, or whose last name isn't Mertz, but whose first name is Dianna and customer ID isn't 13, excluding those with the same birth date and first name as staff member 15?", "answer": {"columns": ["date_of_birth", "first_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1988-09-19 14:45:56", "Sigrid"], ["1991-02-10 00:42:17", "Millie"], ["1991-12-05 02:50:15", "Leif"], ["1993-02-07 05:40:26", "Jordy"], ["1993-03-08 08:48:42", "Amya"], ["1993-07-09 11:11:36", "Omer"], ["1994-05-07 01:32:16", "Ray"], ["1994-06-21 01:34:56", "Clara"], ["1995-07-17 12:13:16", "Genevieve"], ["1996-05-23 01:21:54", "Estelle"], ["1996-08-30 06:17:50", "Dameon"], ["1996-11-07 05:30:55", "Marina"], ["1998-09-18 04:45:01", "Dianna"], ["1998-12-15 13:24:40", "Carole"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_6rqwl_15.png", "TableImg_Tikw2_15.png"], "original_data_index": 2238, "original_sql": "SELECT date_of_birth, first_name FROM Customers WHERE \"amount_outstanding\" <> 1000.0 OR last_name <> \"Mertz\" AND first_name = \"Dianna\" AND \"customer_id\" <> 13 EXCEPT SELECT date_of_birth, first_name FROM Staff WHERE \"staff_id\" = 15"} {"question": "What is the average customer ID from customer payments where the payment method is not \"Direct Debit\" and the payment time is not \"2018-03-12 08:41:47\" or the customer ID is 6, excluding the average customer ID from lessons where the lesson date is \"2018-03-08 16:05:05\" or the vehicle ID is less than or equal to 2 and the customer ID is greater than 2?", "answer": {"columns": ["AVG(customer_id)"], "index": [0], "data": [["9.7142857143"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_Ti6dn_15.png", "TableImg_Vxblf_15.png"], "original_data_index": 2235, "original_sql": "SELECT AVG(customer_id) FROM Customer_Payments WHERE payment_method_code != \"Direct Debit\" AND datetime_payment != \"2018-03-12 08:41:47\" OR \"customer_id\" = 6 EXCEPT SELECT AVG(customer_id) FROM Lessons WHERE lesson_date = \"2018-03-08 16:05:05\" OR \"vehicle_id\" <= 2 AND \"customer_id\" > 2"} {"question": "What are the aircraft IDs that are either less than 4 from the aircraft table or greater than or equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4jz6y_5.png", "TableImg_0doh1_4.png"], "original_data_index": 2239, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the aircraft IDs greater than 2, and also what are the aircraft IDs greater than 5, considering both aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V40jw_5.png", "TableImg_Ca6ef_4.png"], "original_data_index": 2242, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs are greater than or equal to 9, but not found in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L3x2c_12.png", "TableImg_H6uhv_5.png"], "original_data_index": 2241, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the sum of vehicle IDs for lessons on March 7, 2018 at 11:53:32 where the lesson ID is greater than 12, the price is not 446.0, the staff ID is not 12, the vehicle ID is less than or equal to 1, and the lesson time is not \"6\", combined with the sum of vehicle IDs for vehicles that are not \"Truck\"?", "answer": {"columns": ["SUM(vehicle_id)"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_Dj38m_15.png", "TableImg_Jwr5b_3.png"], "original_data_index": 2240, "original_sql": "SELECT SUM(vehicle_id) FROM Lessons WHERE lesson_date = \"2018-03-07 11:53:32\" AND \"lesson_id\" > 12 AND \"price\" != 446.0 AND \"staff_id\" != 12 AND \"vehicle_id\" <= 1 AND lesson_time != \"6\" UNION ALL SELECT SUM(vehicle_id) FROM Vehicles WHERE vehicle_details != \"Truck\""} {"question": "What are the driver IDs that are both greater than or equal to 10 in the driver table and not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D7o61_12.png", "TableImg_N9zb5_5.png"], "original_data_index": 2245, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the driver IDs that are either less than or equal to 10 from the driver table, or not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rugo0_12.png", "TableImg_537pw_5.png"], "original_data_index": 2244, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the international passenger counts and aircraft IDs for each airport?", "answer": {"columns": ["International_Passengers", "Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["61344438", "2"], ["30431051", "1"], ["8105162", "5"], ["5057051", "3"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_60tme_10.png", "TableImg_Rpv4m_4.png"], "original_data_index": 2247, "original_sql": "SELECT T1.International_Passengers, T2.Aircraft_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Which driver IDs are greater than or equal to 6 and are also not equal to 4, considering only the driver IDs that exist in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sh9ll_12.png", "TableImg_D7rjh_5.png"], "original_data_index": 2249, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are in the driver table but not in the school bus table, considering only driver IDs up to 5 in the driver table and up to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3e466_12.png", "TableImg_0y27a_5.png"], "original_data_index": 2250, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are greater than or equal to 10 in the driver table, but not present in the school bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ol64q_12.png", "TableImg_5q5h7_5.png"], "original_data_index": 2251, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the draft numbers and document IDs from the circulation history where the draft number isn't 2 and the copy number is greater than 4, combined with the draft numbers and document IDs from the document drafts where the document ID is less than or equal to 13 or the draft number is greater than or equal to 16?", "answer": {"columns": ["draft_number", "document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["17", "20"], ["20", "10"], ["0", "1"], ["2", "1"], ["1", "2"], ["8", "2"], ["9", "4"], ["10", "7"], ["20", "10"], ["11", "12"], ["12", "12"], ["4", "13"], ["16", "13"], ["19", "17"], ["17", "20"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_Kzcfm_4.png", "TableImg_Bkrpv_15.png"], "original_data_index": 2252, "original_sql": "SELECT draft_number, document_id FROM Circulation_History WHERE \"draft_number\" != 2 AND \"copy_number\" > 4 UNION ALL SELECT draft_number, document_id FROM Document_Drafts WHERE \"document_id\" <= 13 OR \"draft_number\" >= 16"} {"question": "What are the aircraft IDs greater than 2 that are not in the list of aircraft IDs that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gkr4i_5.png", "TableImg_0h95e_4.png"], "original_data_index": 2253, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the names of branches where the branch ID is less than 4, or the street address is Abbott Street, or the membership amount is not 91 and the city is not Oxford? Also, what are the names of members whose member ID is not 3? Combine both sets of names.", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["Alexandre"], ["Braxton Kelley"], ["Cochrane"], ["David Jones"], ["Jeremy Jarmon"], ["Johnny Williams"], ["Matt Lentz"], ["Micah Johnson"], ["Myron Pryor"], ["Popert"], ["Stanley"], ["Trevard Lindley"], ["Ventrell Jenkins"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_Tkx55_8.png", "TableImg_34tb6_10.png"], "original_data_index": 2243, "original_sql": "SELECT Name FROM branch WHERE \"Branch_ID\" < 4 OR Address_road = \"Abbott Street\" OR membership_amount != \"91\" AND City != \"Oxford\" UNION SELECT Name FROM member WHERE \"Member_ID\" != 3"} {"question": "What are the ranking, number of employees, and department ID for departments that either have a ranking of 7, a budget of 9.96 billion, 58622 or fewer employees, a department ID of 11 or less, or a name that is not \"Health and Human Services\", or that have a ranking other than 3 and a department ID of 10 or less, or more than 235000 employees?", "answer": {"columns": ["Ranking", "Num_Employees", "Department_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "30266", "1"], ["2", "115897", "2"], ["3", "3000000", "3"], ["4", "112557", "4"], ["5", "71436", "5"], ["6", "109832", "6"], ["7", "36000", "7"], ["8", "17347", "8"], ["9", "67000", "9"], ["10", "10600", "10"], ["11", "58622", "11"], ["12", "116100", "12"], ["13", "4487", "13"], ["14", "235000", "14"], ["15", "208000", "15"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_4whvk_15.png", "TableImg_U6m54_15.png"], "original_data_index": 2246, "original_sql": "SELECT Ranking, Num_Employees, Department_ID FROM department WHERE \"Ranking\" = 7 OR \"Budget_in_Billions\" = 9.96 OR \"Num_Employees\" <= 58622.0 OR \"Department_ID\" <= 11 OR Name != \"Health and Human Services\" UNION SELECT Ranking, Num_Employees, Department_ID FROM department WHERE \"Ranking\" != 3 AND \"Department_ID\" <= 10 OR \"Num_Employees\" > 235000.0"} {"question": "How many staff members are there, what are their staff IDs, the sum of their departure dates, their first names, the maximum of their middle names, and the average of their joining dates, where the middle name is \"Tre\" and the staff ID is 14, or the staff address ID is less than or equal to 6, or the last name is not \"Maggio\", or the date of birth is not \"1995-06-03 08:09:17\" and the first name is \"Jaleel\", combined with the same information for staff where the middle name is \"Mayra\", or the last name is not \"Maggio\" and the departure date is not \"2018-03-14 07:14:37\", or the date of birth is not \"2005-05-02 06:23:36\" and the nickname is not \"weissnat.vincenzo\" and the joining date is not \"2017-06-04 14:30:41\" and the staff ID is greater than 4?", "answer": {"columns": ["COUNT(last_name)", "staff_id", "SUM(date_left_staff)", "first_name", "MAX(middle_name)", "AVG(date_joined_staff)"], "index": [0, 1], "data": [["14", "14", "28252", "Ludie", "Ulices", "2016.5714285714"], ["15", "14", "30270", "Ludie", "Ulices", "2016.6"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Sl5yb_15.png", "TableImg_Taoqm_15.png"], "original_data_index": 2254, "original_sql": "SELECT COUNT(last_name), staff_id, SUM(date_left_staff), first_name, MAX(middle_name), AVG(date_joined_staff) FROM Staff WHERE middle_name = \"Tre\" AND \"staff_id\" = 14 OR \"staff_address_id\" <= 6 OR last_name != \"Maggio\" OR date_of_birth != \"1995-06-03 08:09:17\" AND first_name = \"Jaleel\" UNION ALL SELECT COUNT(last_name), staff_id, SUM(date_left_staff), first_name, MAX(middle_name), AVG(date_joined_staff) FROM Staff WHERE middle_name = \"Mayra\" OR last_name != \"Maggio\" AND date_left_staff <> \"2018-03-14 07:14:37\" OR date_of_birth != \"2005-05-02 06:23:36\" AND nickname <> \"weissnat.vincenzo\" AND date_joined_staff <> \"2017-06-04 14:30:41\" AND \"staff_id\" > 4"} {"question": "Which driver IDs are either 1 or not 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9npif_12.png", "TableImg_0x14r_5.png"], "original_data_index": 2256, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you show me the home city, age, driver ID, party, and name of drivers from Manchester who are not driver ID 9, or are 35 or older, or whose name isn't Angel Acre? Also, include drivers whose home city isn't Hartford, or whose driver ID is less than 11 and age is less than 46.", "answer": {"columns": ["Home_city", "Age", "Driver_ID", "Party", "Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["Hartford", "40", "1", "Dem", "Matthew Ritter"], ["Bethel", "30", "2", "Rep", "Dan Carter"], ["Hartford", "46", "3", "Dem", "Minnie Gonzalez"], ["Hartford", "42", "4", "Dem", "Angel Acre"], ["Hartford", "45", "5", "Dem", "Brandon McGee"], ["Hartford", "52", "6", "Dem", "Edwin Vargas"], ["Hartford", "36", "7", "Dem", "Douglas McCrory"], ["Coventry", "35", "8", "Rep", "Timothy Ackert"], ["East Hartford", "38", "9", "Dem", "Jason Rojas"], ["East Hartford", "37", "10", "Dem", "Henry Genga"], ["East Hartford", "36", "11", "Dem", "Tim Larson"], ["Manchester", "52", "12", "Dem", "Geoff Luxenberg"], ["Hartford", "40", "1", "Dem", "Matthew Ritter"], ["Bethel", "30", "2", "Rep", "Dan Carter"], ["Hartford", "42", "4", "Dem", "Angel Acre"], ["Hartford", "45", "5", "Dem", "Brandon McGee"], ["Hartford", "36", "7", "Dem", "Douglas McCrory"], ["Coventry", "35", "8", "Rep", "Timothy Ackert"], ["East Hartford", "38", "9", "Dem", "Jason Rojas"], ["East Hartford", "37", "10", "Dem", "Henry Genga"], ["East Hartford", "36", "11", "Dem", "Tim Larson"], ["Manchester", "52", "12", "Dem", "Geoff Luxenberg"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_2e41y_12.png", "TableImg_Elvuo_12.png"], "original_data_index": 2255, "original_sql": "SELECT Home_city, Age, Driver_ID, Party, Name FROM driver WHERE Home_city = \"Manchester\" AND \"Driver_ID\" != 9 OR \"Age\" >= 35 OR Name != \"Angel Acre\" UNION ALL SELECT Home_city, Age, Driver_ID, Party, Name FROM driver WHERE Home_city != \"Hartford\" OR \"Driver_ID\" < 11 AND \"Age\" < 46"} {"question": "Which driver IDs, excluding driver ID 10, are greater than 5?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ioth8_12.png", "TableImg_U91s0_5.png"], "original_data_index": 2257, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs, excluding ID 1, that are either in the aircraft table or in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0rc4h_5.png", "TableImg_Rvwuw_4.png"], "original_data_index": 2259, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the names of airports that are not in Anchorage, or are Schiphol Airport, or have the IATA code AEY, or are not in Brussels, or are not in Iceland? Also, what are the names of companies that are not incorporated in Hong Kong, or whose principal activity is cargo airline, or whose group equity shareholding is not 60.0?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], "data": [["Air China"], ["Air China Cargo"], ["Air Hong Kong"], ["Akureyri Airport"], ["Baltimore-Washington Airport"], ["Bergen Airport"], ["Billund Airport"], ["CLS Catering Services Limited"], ["Cathay Pacific Cargo"], ["Cathay Pacific Catering Services (HK) Limited"], ["Cathay Pacific Holidays"], ["Cathay Pacific Services Limited"], ["China Pacific Laundry Services"], ["Dragonair"], ["Dragonair Holidays"], ["El Prat Airport"], ["Hong Kong Airport Services"], ["Logan International Airport"], ["National Airport"], ["Schiphol Airport"], ["Ted Stevens Airport"], ["VN/CX Catering Services Limited"], ["Vogue Laundry Service Limited"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_K0yew_9.png", "TableImg_1aouq_14.png"], "original_data_index": 2258, "original_sql": "SELECT name FROM airport WHERE ICAO != \"PANC\" OR name = \"Schiphol Airport\" OR IATA = \"AEY\" OR City <> \"Brussels\" OR Country != \"Iceland\" UNION SELECT name FROM operate_company WHERE Incorporated_in != \"Hong Kong\" OR Principal_activities = \"Cargo airline\" OR \"Group_Equity_Shareholding\" != 60.0"} {"question": "What are the aircraft IDs that have an ID of 8 and a distance not equal to 8430, and also appear in the certificate table with an ID not equal to 9 and an employee ID greater than or equal to 159542516?", "answer": {"columns": ["aid"], "index": [0], "data": [["8"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_7t421_16.png", "TableImg_S3yik_69.png"], "original_data_index": 2260, "original_sql": "SELECT aid FROM aircraft WHERE \"aid\" = 8 AND \"distance\" != 8430 INTERSECT SELECT aid FROM certificate WHERE \"aid\" <> 9 AND \"eid\" >= 159542516"} {"question": "Which driver IDs are not equal to 8 but are not present in the school bus table with driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Alqig_12.png", "TableImg_C09bw_5.png"], "original_data_index": 2262, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are less than or equal to 8 but not equal to 9, considering only those driver IDs present in the 'driver' table but not in the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1n5bt_12.png", "TableImg_Xi97i_5.png"], "original_data_index": 2261, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs that are less than 12 from the driver table, combined with the driver IDs that are less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6e1wd_12.png", "TableImg_Pa3ew_5.png"], "original_data_index": 2263, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are either 8 or 10, considering driver ID 8 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mh1vu_12.png", "TableImg_A76mh_5.png"], "original_data_index": 2264, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are less than or equal to 1, excluding those driver IDs that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2c3ez_12.png", "TableImg_Jl2wa_5.png"], "original_data_index": 2265, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are present in both the driver table (with driver IDs greater than or equal to 1) and the school bus table (with driver IDs greater than or equal to 3)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L83kr_12.png", "TableImg_Cayt8_5.png"], "original_data_index": 2267, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "For each state, what is the minimum contestant number and the creation date, considering votes where the phone number is greater than 7182887233, the state is not NY, the vote ID is at most 5, and the creation date is not \"2018-03-09 19:03:40\" or where the contestant number is 5, combined with votes where the vote ID is not 2 or the state is NY?", "answer": {"columns": ["state", "MIN(contestant_number)", "created"], "index": [0, 1], "data": [["NJ\n", "5", "2018-03-09 19:03:40"], ["NY", "2", "2018-03-09 19:03:21"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_78ea4_4.png", "TableImg_Jh6a6_4.png"], "original_data_index": 2266, "original_sql": "SELECT state, MIN(contestant_number), created FROM VOTES WHERE \"phone_number\" > 7182887233 AND state <> \"NY\" AND \"vote_id\" <= 5 AND created <> \"2018-03-09 19:03:40\" OR \"contestant_number\" = 5 UNION SELECT state, MIN(contestant_number), created FROM VOTES WHERE \"vote_id\" <> 2 OR state = \"NY\""} {"question": "What are the driver IDs that are less than 4 from the driver table, combined with the driver IDs that are not 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Alu55_12.png", "TableImg_K72pl_5.png"], "original_data_index": 2270, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs, excluding driver 6, are present in both the driver and school bus records, excluding driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pk5gq_12.png", "TableImg_Pdhz8_5.png"], "original_data_index": 2269, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_81txh_12.png", "TableImg_Ckwsa_5.png"], "original_data_index": 2268, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the average employee ID and the employee ID, grouped by bonus, for employees who didn't receive a bonus of 3000, and where the year the bonus was awarded isn't 2011, or the employee's name is Matt Stevens and they are older than 23?", "answer": {"columns": ["AVG(T1.Employee_ID)", "Employee_ID"], "index": [0, 1, 2], "data": [["1.0", "1"], ["4.3333333333", "2"], ["10.0", "10"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Tatd0_10.png", "TableImg_Gr5cn_6.png"], "original_data_index": 2271, "original_sql": "SELECT AVG(T1.Employee_ID), T2.Employee_ID FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE \"Bonus\" <> 3000.0 GROUP BY Bonus HAVING Year_awarded <> \"2011\" OR Name = \"Matt Stevens\" AND Age > 23"} {"question": "What are the driver IDs greater than 8, and also the driver IDs from school buses that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jmnwo_12.png", "TableImg_1df48_5.png"], "original_data_index": 2272, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are less than 6 but not greater than 4, considering only driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0a129_12.png", "TableImg_Ln27k_5.png"], "original_data_index": 2273, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs, excluding driver ID 9, and also the driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ioo1d_12.png", "TableImg_928o7_5.png"], "original_data_index": 2275, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which employee IDs received a bonus less than 3200 and are not employee 7 or were not awarded in 2015, and also which employee IDs started from a year other than 2009 and work in a shop with ID 2 or less?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["6"], ["1"], ["10"], ["4"], ["7"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Wubpa_6.png", "TableImg_Lvps1_7.png"], "original_data_index": 2274, "original_sql": "SELECT Employee_ID FROM evaluation WHERE \"Bonus\" < 3200.0 AND Employee_ID != \"7\" OR Year_awarded != \"2015\" UNION SELECT Employee_ID FROM hiring WHERE Start_from != \"2009\" AND \"Shop_ID\" <= 2"} {"question": "What are the domestic passenger numbers and aircraft IDs for each airport?", "answer": {"columns": ["Domestic_Passengers", "Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["5562516", "2"], ["3730963", "1"], ["1471538", "5"], ["1171605", "3"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Vr3zt_10.png", "TableImg_Rrbrd_4.png"], "original_data_index": 2276, "original_sql": "SELECT T1.Domestic_Passengers, T2.Aircraft_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Which driver IDs are either 6 or not 3, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tpksf_12.png", "TableImg_L7yhg_5.png"], "original_data_index": 2277, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs, excluding driver ID 3, from the driver table and also the driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wrmfw_12.png", "TableImg_Eq1u9_5.png"], "original_data_index": 2278, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the aircraft IDs that are less than 5 in the aircraft table, combined with the aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vaxbp_5.png", "TableImg_Sn330_4.png"], "original_data_index": 2279, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are less than 5, and also driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rbl2l_12.png", "TableImg_Pp1xs_5.png"], "original_data_index": 2281, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are less than 10 from the driver table, combined with the driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xaw9r_12.png", "TableImg_Ytulz_5.png"], "original_data_index": 2280, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the template IDs from the Documents table that are not 21, combined with the template IDs from the Templates table where the template ID isn't 10 and the effective dates or template type code don't match specific values?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["0"], ["1"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["14"], ["15"], ["16"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Ney2w_15.png", "TableImg_689dh_20.png"], "original_data_index": 2282, "original_sql": "SELECT Template_ID FROM Documents WHERE \"Template_ID\" <> 21 UNION SELECT Template_ID FROM Templates WHERE \"Template_ID\" != 10 AND Date_Effective_From != \"1993-10-07 02:33:04\" OR Date_Effective_To <> \"1973-01-12 14:13:34\" AND Template_Type_Code <> \"AD\""} {"question": "What are the aircraft IDs, excluding aircraft ID 5, from the aircraft table, combined with the aircraft IDs, excluding aircraft ID 3, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8ly80_5.png", "TableImg_8xf04_4.png"], "original_data_index": 2283, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs are greater than 5 and also appear in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N1m5s_12.png", "TableImg_22fut_5.png"], "original_data_index": 2285, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which customer IDs are not from customers born on December 15, 1998, or not named Millie and didn't become customers on March 18, 2016, or are not customer ID 11, but are not in lessons with lesson IDs 15 or greater, or on March 21, 2018, and with staff IDs 3 or less?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_Ofojj_15.png", "TableImg_9pu1e_15.png"], "original_data_index": 2284, "original_sql": "SELECT customer_id FROM Customers WHERE date_of_birth != \"1998-12-15 13:24:40\" OR first_name <> \"Millie\" AND date_became_customer != \"2016-03-18 06:14:18\" OR \"customer_id\" <> 11 EXCEPT SELECT customer_id FROM Lessons WHERE \"lesson_id\" >= 15 OR lesson_date = \"2018-03-21 06:48:45\" AND \"staff_id\" <= 3"} {"question": "What are the receipt numbers and document status codes for documents that meet any of the following conditions: the document ID is 7 or greater and the receipt date is not \"2008-04-21 20:42:25\", or the shipping agent code is not \"UP\" and the document type code is not \"Hard Drive\" and the receipt number is not \"69\", or the document status code is not \"done\", excluding those with a receipt date of \"1986-12-14 14:18:59\"?", "answer": {"columns": ["receipt_number", "document_status_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["114", "working"], ["117", "working"], ["124", "working"], ["189", "working"], ["19", "working"], ["34", "done"], ["55", "done"], ["61", "working"], ["69", "overdue"], ["79", "working"], ["8", "overdue"], ["80", "done"], ["83", "overdue"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_O5cfm_15.png", "TableImg_Gv950_15.png"], "original_data_index": 2286, "original_sql": "SELECT receipt_number, document_status_code FROM Documents WHERE \"document_id\" >= 7 AND receipt_date != \"2008-04-21 20:42:25\" OR shipping_agent_code <> \"UP\" AND document_type_code != \"Hard Drive\" AND receipt_number <> \"69\" OR document_status_code <> \"done\" EXCEPT SELECT receipt_number, document_status_code FROM Documents WHERE receipt_date = \"1986-12-14 14:18:59\""} {"question": "What are the IDs of drivers, excluding driver 7, and the IDs of school bus drivers, excluding driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zjlxk_12.png", "TableImg_7mnzx_5.png"], "original_data_index": 2288, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are less than or equal to 12 in the driver table, but not present in the school bus table with driver IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2n8bd_12.png", "TableImg_H8o67_5.png"], "original_data_index": 2287, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are less than 5, and also which driver IDs from the school bus table are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cimg8_12.png", "TableImg_Hs9t0_5.png"], "original_data_index": 2291, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the aircraft IDs, excluding aircraft ID 3, and also the aircraft IDs less than or equal to 1, considering both aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C2cr5_5.png", "TableImg_Qr19m_4.png"], "original_data_index": 2292, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What is the sum of student IDs for teaching coordinators in clubs that aren't club ID 2 and don't include student ID 1001, combined with the sum of student IDs for students whose first name isn't Eric, or whose student ID is less than or equal to 1003, or whose major isn't 600?", "answer": {"columns": ["SUM(StuID)"], "index": [0, 1], "data": [["1010"], ["33608"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_9w9de_4.png", "TableImg_Q1ooy_34.png"], "original_data_index": 2290, "original_sql": "SELECT SUM(StuID) FROM Member_of_club WHERE Position = \"Teaching Coordinator\" AND \"ClubID\" != 2 AND \"StuID\" != 1001 UNION SELECT SUM(StuID) FROM Student WHERE Fname <> \"Eric\" OR \"StuID\" <= 1003 OR \"Major\" <> 600"} {"question": "What are the maximum earnings and the sum of best finishes for poker players, considering two different sets of conditions: either their ID is not 2 or their people ID is not 7, or their money rank is not 58.0 and they made 21 final tables, or their earnings are not 189233.0 and their best finish is not 1.0?", "answer": {"columns": ["MAX(Earnings)", "SUM(Best_Finish)"], "index": [0, 1], "data": [["596462", "9"], ["596462", "6"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Xin07_5.png", "TableImg_Pd8bh_5.png"], "original_data_index": 2289, "original_sql": "SELECT MAX(Earnings), SUM(Best_Finish) FROM poker_player WHERE \"Poker_Player_ID\" != 2 OR \"People_ID\" != 7 UNION ALL SELECT MAX(Earnings), SUM(Best_Finish) FROM poker_player WHERE \"Money_Rank\" != 58.0 AND \"Final_Table_Made\" = 21.0 OR \"Earnings\" != 189233.0 AND \"Best_Finish\" <> 1.0"} {"question": "What are the regions of all clubs, excluding Halmstads BK, and also the regions of clubs that are not club ID 1?", "answer": {"columns": ["Region"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["USA"], ["UK"], ["USA"], ["Korea"], ["France"], ["UK"], ["USA"], ["Korea"], ["Russia"], ["France"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Zze7q_6.png", "TableImg_9eloh_6.png"], "original_data_index": 2294, "original_sql": "SELECT Region FROM club WHERE Club_name <> \"Halmstads BK\" OR Region <> \"Russia\" UNION ALL SELECT Region FROM club WHERE \"Club_ID\" != 1"} {"question": "What are the album IDs that don't belong to artist 200 or aren't album 62, and also the genre IDs less than 16?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361], "data": [["1"], ["4"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["34"], ["9"], ["10"], ["11"], ["271"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["32"], ["45"], ["53"], ["30"], ["44"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["31"], ["33"], ["85"], ["86"], ["87"], ["259"], ["47"], ["71"], ["158"], ["159"], ["122"], ["35"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["36"], ["185"], ["186"], ["37"], ["126"], ["38"], ["204"], ["39"], ["89"], ["40"], ["41"], ["42"], ["43"], ["50"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["46"], ["197"], ["198"], ["48"], ["49"], ["157"], ["51"], ["52"], ["247"], ["54"], ["55"], ["56"], ["57"], ["67"], ["68"], ["69"], ["70"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["88"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["123"], ["124"], ["125"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["256"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["199"], ["200"], ["201"], ["202"], ["203"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["261"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["255"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["257"], ["258"], ["260"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["272"], ["273"], ["274"], ["315"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["311"], ["343"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["312"], ["313"], ["314"], ["316"], ["320"], ["336"], ["317"], ["318"], ["319"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["344"], ["345"], ["346"], ["347"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Nsmdk_347.png", "TableImg_Rytu7_25.png"], "original_data_index": 2293, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" <> 200 OR \"id\" != 62 UNION ALL SELECT id FROM genres WHERE \"id\" < 16"} {"question": "What are the driver IDs that are either 8 or greater, or 4 or less, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_147zd_12.png", "TableImg_9qvsw_5.png"], "original_data_index": 2296, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs greater than 2 that are present in both the driver and school bus tables, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wqefy_12.png", "TableImg_3ku9x_5.png"], "original_data_index": 2295, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the names and IDs of airports with IDs of 6 or higher that are not in the United States, excluding those operated by companies where the group equity shareholding is 60%, the principal activities are not catering services, or the name is not CLS Catering Services Limited, or the company is not incorporated in Hong Kong, or the company type is a joint venture?", "answer": {"columns": ["name", "id"], "index": [0, 1, 2], "data": [["Bergen Airport", "6"], ["Billund Airport", "7"], ["National Airport", "9"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Hjsg4_9.png", "TableImg_L5vuu_14.png"], "original_data_index": 2297, "original_sql": "SELECT name, id FROM airport WHERE \"id\" >= 6 AND Country != \"United States\" EXCEPT SELECT name, id FROM operate_company WHERE \"Group_Equity_Shareholding\" = 60.0 AND Principal_activities <> \"Catering services\" OR name != \"CLS Catering Services Limited\" AND Incorporated_in <> \"Hong Kong\" OR Type = \"Joint Venture\""} {"question": "What are the aircraft IDs that appear in either the aircraft table or the airport_aircraft table, where the aircraft ID is at least 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bp7di_5.png", "TableImg_Yvmkr_4.png"], "original_data_index": 2298, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs, excluding driver ID 7, are greater than 4 and appear in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_130we_12.png", "TableImg_Hx5mc_5.png"], "original_data_index": 2301, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs, excluding driver ID 5, and also the driver IDs that are 3 or greater, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K70l6_12.png", "TableImg_Ah0wx_5.png"], "original_data_index": 2299, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which employee IDs meet at least one of the following conditions: they don't live in Sale, they are not 28 years old, their name is Louis Deacon, or their employee ID is 9 or greater; and also which employee IDs have a bonus greater than 3200?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["10"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Pkyz2_10.png", "TableImg_3s14x_6.png"], "original_data_index": 2302, "original_sql": "SELECT Employee_ID FROM employee WHERE City <> \"Sale\" OR \"Age\" != 28 OR Name = \"Louis Deacon\" OR \"Employee_ID\" >= 9 UNION ALL SELECT Employee_ID FROM evaluation WHERE \"Bonus\" > 3200.0"} {"question": "What are the driver IDs, excluding driver ID 5, and also driver IDs greater than 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jk2a0_12.png", "TableImg_G9jql_5.png"], "original_data_index": 2303, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the minimum document ID for draft number 20, or copy number 6 or less, or document ID 2 or greater? Also, what is the minimum document ID for draft number 17 or greater, excluding copy number 5, and document ID greater than 10?", "answer": {"columns": ["MIN(document_id)", "draft_number"], "index": [0, 1], "data": [["1", "2"], ["20", "17"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_Atdk9_8.png", "TableImg_6onvs_8.png"], "original_data_index": 2304, "original_sql": "SELECT MIN(document_id), draft_number FROM Draft_Copies WHERE \"draft_number\" = 20 OR \"copy_number\" <= 6 OR \"document_id\" >= 2 UNION ALL SELECT MIN(document_id), draft_number FROM Draft_Copies WHERE \"copy_number\" != 5 AND \"draft_number\" >= 17 AND \"document_id\" > 10"} {"question": "What are the aircraft IDs that appear in both the aircraft table with an ID greater than 1 and the airport_aircraft table with an ID equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_24hn5_5.png", "TableImg_Kzy79_4.png"], "original_data_index": 2305, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the aircraft IDs that are not 2 and also appear in the airport_aircraft table with an ID of 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X3376_5.png", "TableImg_Kec2h_4.png"], "original_data_index": 2306, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the driver IDs, excluding driver ID 7, that are present in both the driver and school bus tables, where the school bus driver IDs are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zv5js_12.png", "TableImg_Nm511_5.png"], "original_data_index": 2307, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the user IDs of reviews with a rating less than 7 and not item ID 3, or with a rank not equal to 1, or with user ID 2, excluding user IDs of users whose name is not Helen or whose user ID is greater than 4?", "answer": {"columns": ["u_id"], "index": [0], "data": [["1"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Duhrl_7.png", "TableImg_Lpsc0_7.png"], "original_data_index": 2308, "original_sql": "SELECT u_id FROM review WHERE \"rating\" < 7 AND \"i_id\" <> 3 OR \"rank\" != 1 OR \"u_id\" = 2 EXCEPT SELECT u_id FROM useracct WHERE name <> \"Helen\" OR \"u_id\" > 4"} {"question": "Which club IDs are located in AKW or have a description other than \"Venture capital fund for student business.\" and a name other than \"Tennis Club\", and also have members where the student ID is not 1010 or the club ID is 4 or greater?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_7boe5_4.png", "TableImg_4y7st_4.png"], "original_data_index": 2309, "original_sql": "SELECT ClubID FROM Club WHERE ClubLocation = \"AKW\" OR ClubDesc != \"Venture capital fund for student business.\" AND ClubName != \"Tennis Club\" INTERSECT SELECT ClubID FROM Member_of_club WHERE \"StuID\" <> 1010 OR \"ClubID\" >= 4"} {"question": "Which aircraft IDs are greater than 2, but not equal to 5, considering only aircraft IDs present in the aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8g2hl_5.png", "TableImg_Jun7k_4.png"], "original_data_index": 2310, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Give me the ICAO, name, ID, country, and city for airports that are not in the Netherlands and don't have an ID of 1 and don't have the IATA code BWI, along with the ICAO, name, ID, country, and city for airports that don't have the ICAO code EHAM and have an ID less than 9 and have the IATA code BWI, or are not in Barcelona, or are not in the United States and don't have the name \"Ted Stevens Airport\".", "answer": {"columns": ["ICAO", "name", "id", "Country", "City"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["PANC", "Ted Stevens Airport", "3", "United States", "Anchorage"], ["LEBL", "El Prat Airport", "5", "Spain", "Barcelona"], ["ENBR", "Bergen Airport", "6", "Norway", "Bergen"], ["EKBI", "Billund Airport", "7", "Denmark", "Billund"], ["KBOS", "Logan International Airport", "8", "United States", "Boston"], ["EBBR", "National Airport", "9", "Belgium", "Brussels"], ["BIAR", "Akureyri Airport", "1", "Iceland", "Akureyri"], ["EHAM", "Schiphol Airport", "2", "Netherlands", "Amsterdam"], ["PANC", "Ted Stevens Airport", "3", "United States", "Anchorage"], ["KBWI", "Baltimore-Washington Airport", "4", "United States", "Baltimore"], ["LEBL", "El Prat Airport", "5", "Spain", "Barcelona"], ["ENBR", "Bergen Airport", "6", "Norway", "Bergen"], ["EKBI", "Billund Airport", "7", "Denmark", "Billund"], ["KBOS", "Logan International Airport", "8", "United States", "Boston"], ["EBBR", "National Airport", "9", "Belgium", "Brussels"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Iu0e0_9.png", "TableImg_Sc12i_9.png"], "original_data_index": 2311, "original_sql": "SELECT ICAO, name, id, Country, City FROM airport WHERE Country != \"Netherlands\" AND \"id\" <> 1 AND IATA <> \"BWI\" UNION ALL SELECT ICAO, name, id, Country, City FROM airport WHERE ICAO <> \"EHAM\" AND \"id\" < 9 AND IATA = \"BWI\" OR City <> \"Barcelona\" OR Country <> \"United States\" AND name <> \"Ted Stevens Airport\""} {"question": "What is the minimum city area and the store ID for districts where the average city population is not 530438.0, or where the count of store IDs is less than or equal to 1, the city area is not 22.0, and the district name is not \"Chiniot District\"?", "answer": {"columns": ["MIN(T1.City_Area)", "Store_ID"], "index": [0], "data": [["10", "3"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Ql1h9_15.png", "TableImg_Wo8rq_5.png"], "original_data_index": 2312, "original_sql": "SELECT MIN(T1.City_Area), T2.Store_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE AVG(City_Population) <> 530438.0 OR COUNT(Store_ID) <= 1 AND City_Area <> 22.0 AND District_name <> \"Chiniot District\""} {"question": "What are the driver IDs that are greater than or equal to 9, and also the driver IDs that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ju767_12.png", "TableImg_Evbc2_5.png"], "original_data_index": 2314, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the manager names, shop IDs, and number of products for shops that satisfy the following conditions: either the shop name is \"IFK Mariehamn\", the manager name is \"Antti Muurinen\", or the district is not \"Veritas Stadion\", the shop ID is less than 6, the location is not \"Turku\", and the number of products is not 3516; and also satisfy these conditions: either the shop name is not \"FC Inter\", the manager name is not \"Job Dragtsma\", the location is not \"Kotka\", the district is not \"Magnum Areena\", the number of products is 10770, and the shop ID is not 8?", "answer": {"columns": ["Manager_name", "Shop_ID", "Number_products"], "index": [0, 1, 2, 3], "data": [["Antti Muurinen", "2", "10770"], ["Mika Laurikainen", "5", "5000"], ["Mika Lehkosuo", "3", "6000"], ["Pekka Lyyski", "9", "1600"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_Ezthg_9.png", "TableImg_8m153_9.png"], "original_data_index": 2313, "original_sql": "SELECT Manager_name, Shop_ID, Number_products FROM shop WHERE Name = \"IFK Mariehamn\" OR Manager_name = \"Antti Muurinen\" OR District <> \"Veritas Stadion\" AND \"Shop_ID\" < 6 AND Location != \"Turku\" AND \"Number_products\" != 3516 INTERSECT SELECT Manager_name, Shop_ID, Number_products FROM shop WHERE Name <> \"FC Inter\" OR Manager_name <> \"Job Dragtsma\" AND Location != \"Kotka\" AND District != \"Magnum Areena\" AND \"Number_products\" = 10770 AND \"Shop_ID\" <> 8"} {"question": "What are the aircraft IDs that are less than or equal to 1, but not equal to 3, based on the aircraft and airport aircraft data?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mzxde_5.png", "TableImg_Iqis6_4.png"], "original_data_index": 2315, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 5 from the driver table and driver IDs 9 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qkg9n_12.png", "TableImg_Ntq4s_5.png"], "original_data_index": 2316, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs that are greater than or equal to 2, and also the driver IDs from school buses that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ake18_12.png", "TableImg_Eto1j_5.png"], "original_data_index": 2317, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What is the total number of students who own pets that are not dogs, and what are the ages of those pets?", "answer": {"columns": ["SUM(T1.StuID)", "pet_age"], "index": [0], "data": [["1001", "3"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Ztwi6_3.png", "TableImg_1vsvl_3.png"], "original_data_index": 2319, "original_sql": "SELECT SUM(T1.StuID), T2.pet_age FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID = T2.PetID WHERE PetType <> \"dog\""} {"question": "What are the company IDs of employees who are not person ID 4 or who have been working for 4 years?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3], "data": [["11"], ["13"], ["15"], ["17"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_Zeb5i_5.png", "TableImg_6dsk7_5.png"], "original_data_index": 2318, "original_sql": "SELECT Company_ID FROM employment WHERE \"People_ID\" != 4 UNION SELECT Company_ID FROM employment WHERE \"Year_working\" = 4"} {"question": "Which driver IDs are not 3 from the driver table, combined with driver IDs that are 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Thubv_12.png", "TableImg_Vubsf_5.png"], "original_data_index": 2320, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that are both less than or equal to 6 and also appear in the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2zos0_12.png", "TableImg_Evusd_5.png"], "original_data_index": 2323, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the IDs of albums where the artist ID is 17 or the ID is greater than 15 and the title is \"Transmission\", combined with the IDs of employees whose postal code is not \"T5K 2N1\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["23"], ["220"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_56afi_347.png", "TableImg_Ksfyw_8.png"], "original_data_index": 2322, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" = 17 OR \"id\" > 15 AND title = \"Transmission\" UNION SELECT id FROM employees WHERE postal_code != \"T5K 2N1\""} {"question": "Which driver IDs are greater than 8, or are driver IDs from school buses that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lb7bs_12.png", "TableImg_C85h9_5.png"], "original_data_index": 2321, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are either 10 or not 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T9e4q_12.png", "TableImg_Debmf_5.png"], "original_data_index": 2327, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that appear in either the aircraft table with an ID of 3 or greater, or in the airport_aircraft table with an ID of 1 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ox01m_5.png", "TableImg_Emqg2_4.png"], "original_data_index": 2325, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the driver IDs, excluding driver ID 1, that are present in both the driver and school bus tables, where the driver ID is also less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5xm1k_12.png", "TableImg_Mulfc_5.png"], "original_data_index": 2326, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the document descriptions, other details, and template IDs for documents where the template ID is 22 or the document name isn't \"Understanding DB\", and also for documents where the template ID is greater than 11, the document ID is less than or equal to 1, or the document name is not \"Learning French\"?", "answer": {"columns": ["Document_Description", "Other_Details", "Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["b", "", "11"], ["f", "", "21"], ["h", "", "14"], ["h", "", "25"], ["k", "", "14"], ["n", "", "7"], ["r", "", "22"], ["u", "", "6"], ["w", "", "4"], ["w", "", "11"], ["y", "", "8"], ["y", "", "10"], ["y", "", "20"], ["z", "", "1"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_S4l5q_15.png", "TableImg_5ucs1_15.png"], "original_data_index": 2324, "original_sql": "SELECT Document_Description, Other_Details, Template_ID FROM Documents WHERE \"Template_ID\" = 22 OR Document_Name <> \"Understanding DB\" INTERSECT SELECT Document_Description, Other_Details, Template_ID FROM Documents WHERE \"Template_ID\" > 11 OR \"Document_ID\" <= 1 OR Document_Name != \"Learning French\""} {"question": "What are the aircraft IDs, excluding ID 1, from the aircraft table, and also the aircraft IDs up to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mbqvz_5.png", "TableImg_Vtcmc_4.png"], "original_data_index": 2331, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the document IDs from the circulation history where the copy number is 10 or less, or the employee ID is not 2, combined with the document IDs from the mailed documents where the address ID is not 8?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["20"], ["24"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Rp2wf_4.png", "TableImg_H5zc0_14.png"], "original_data_index": 2328, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"copy_number\" <= 10 OR \"employee_id\" != 2 UNION SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <> 8"} {"question": "What are the aircraft IDs that are not 2, and also the aircraft IDs greater than 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ydkg2_5.png", "TableImg_5tb4y_4.png"], "original_data_index": 2329, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "For each headquartered city, give me the average district ID, the number of districts, the maximum city population, the city itself, and the maximum city area, but only if the number of districts is not one, the maximum city population is less than or equal to 2,793,721, and the average district ID is less than or equal to 12, or if the maximum city population is greater than 530,438 and the number of districts is not one, or if the maximum city area is 28 and the average district ID is less than 15.", "answer": {"columns": ["AVG(District_ID)", "COUNT(District_name)", "MAX(City_Population)", "Headquartered_City", "MAX(City_Area)"], "index": [0], "data": [["12", "1", "365198", "Jhang City", "28"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_Lqmef_15.png", "TableImg_Mthdt_15.png"], "original_data_index": 2330, "original_sql": "SELECT AVG(District_ID), COUNT(District_name), MAX(City_Population), Headquartered_City, MAX(City_Area) FROM district GROUP BY Headquartered_City HAVING COUNT(District_name) <> 1 AND MAX(City_Population) <= 2793721.0 AND AVG(District_ID) <= 12.0 UNION SELECT AVG(District_ID), COUNT(District_name), MAX(City_Population), Headquartered_City, MAX(City_Area) FROM district GROUP BY Headquartered_City HAVING MAX(City_Population) > 530438.0 AND COUNT(District_name) != 1 OR MAX(City_Area) = 28.0 AND AVG(District_ID) < 15.0"} {"question": "Which driver IDs are greater than 8 but not present in the school bus table with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rhs1k_12.png", "TableImg_9aqxa_5.png"], "original_data_index": 2332, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs, excluding ID 11, that are present in the driver table and also present in the school bus table, excluding ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nil0f_12.png", "TableImg_T1mwe_5.png"], "original_data_index": 2334, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 5, and also the aircraft IDs that are less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Myd99_5.png", "TableImg_D6vkf_4.png"], "original_data_index": 2333, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Which driver IDs are not equal to 1, and which driver ID is equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B0tts_12.png", "TableImg_Rsr3v_5.png"], "original_data_index": 2337, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are less than 6, and also the driver IDs that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F0mf8_12.png", "TableImg_Q8wvd_5.png"], "original_data_index": 2336, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which aircraft IDs are either aircraft ID 4 or have an ID greater than or equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ux148_5.png", "TableImg_F4av0_4.png"], "original_data_index": 2338, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the decor, maximum occupancy, room name, bed type, base price, room ID, and number of beds for rooms where the base price is over 150, the maximum occupancy is not 2, the bed type is not King, and the room name is not \"Interim but salutary\" or the number of beds is 2 or less? Also, what are the same details for rooms where the room ID is \"AOB\", the base price is less than 175, the number of beds is less than 2, or the decor is modern?", "answer": {"columns": ["decor", "maxOccupancy", "roomName", "bedType", "basePrice", "RoomId", "beds"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["modern", "2", "Recluse and defiance", "King", "150", "RND", "1"], ["traditional", "2", "Interim but salutary", "King", "150", "IBS", "1"], ["traditional", "4", "Abscond or bolster", "Queen", "175", "AOB", "2"], ["modern", "4", "Mendicant with cryptic", "Double", "125", "MWC", "2"], ["modern", "2", "Harbinger but bequest", "Queen", "100", "HBB", "1"], ["rustic", "4", "Immutable before decorum", "Queen", "150", "IBD", "2"], ["modern", "2", "Thrift and accolade", "Double", "75", "TAA", "1"], ["traditional", "4", "Convoke and sanguine", "King", "175", "CAS", "2"], ["rustic", "4", "Riddle to exculpate", "Queen", "175", "RTE", "2"], ["traditional", "4", "Frugal not apropos", "King", "250", "FNA", "2"], ["modern", "2", "Recluse and defiance", "King", "150", "RND", "1"], ["traditional", "2", "Interim but salutary", "King", "150", "IBS", "1"], ["traditional", "4", "Abscond or bolster", "Queen", "175", "AOB", "2"], ["modern", "4", "Mendicant with cryptic", "Double", "125", "MWC", "2"], ["modern", "2", "Harbinger but bequest", "Queen", "100", "HBB", "1"], ["rustic", "4", "Immutable before decorum", "Queen", "150", "IBD", "2"], ["modern", "2", "Thrift and accolade", "Double", "75", "TAA", "1"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_Sfv94_10.png", "TableImg_Bwveb_10.png"], "original_data_index": 2335, "original_sql": "SELECT decor, maxOccupancy, roomName, bedType, basePrice, RoomId, beds FROM Rooms WHERE \"basePrice\" > 150 AND \"maxOccupancy\" <> 2 AND bedType <> \"King\" AND roomName <> \"Interim but salutary\" OR \"beds\" <= 2 UNION ALL SELECT decor, maxOccupancy, roomName, bedType, basePrice, RoomId, beds FROM Rooms WHERE RoomId = \"AOB\" OR \"basePrice\" < 175 OR \"beds\" < 2 OR decor = \"modern\""} {"question": "What are the aircraft IDs greater than 2 that are not present in the airport aircraft table with aircraft IDs less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tr149_5.png", "TableImg_Qi7gw_4.png"], "original_data_index": 2342, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the aircraft IDs that are either less than or equal to 5 or greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rh3dj_5.png", "TableImg_Ap5lh_4.png"], "original_data_index": 2339, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the payment amounts and customer IDs for payments that are not credit card payments, with amounts less than or equal to 6970.98 and customer IDs greater than 2, or with payment dates not equal to March 12, 2018, at 8:41:47 AM? Also, include the payment amounts and customer IDs for customers with IDs less than 2.", "answer": {"columns": ["amount_payment", "customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["787.12", "3"], ["1708.18", "2"], ["3073.98", "14"], ["4032.33", "6"], ["4610.26", "14"], ["4773.16", "7"], ["5475.26", "6"], ["6311.37", "4"], ["6782.84", "10"], ["6970.98", "14"], ["7440.34", "13"], ["8180.26", "2"], ["9414.74", "12"], ["9570.93", "11"], ["9886.62", "1"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Idmui_15.png", "TableImg_5yw4h_15.png"], "original_data_index": 2340, "original_sql": "SELECT amount_payment, customer_id FROM Customer_Payments WHERE payment_method_code <> \"Credit Card\" AND \"amount_payment\" <= 6970.98 AND \"customer_id\" > 2 OR datetime_payment <> \"2018-03-12 08:41:47\" UNION SELECT amount_payment, customer_id FROM Customer_Payments WHERE \"customer_id\" < 2"} {"question": "What are the club IDs of clubs that started before 1998 or are not in the USA, but not including any club IDs where the coach isn't Jameson Tomas, or the coach ID is greater than 2, or the rank is less than 5, or the club ID is 1 or greater, or the gender is male?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Ebjco_6.png", "TableImg_Ddura_5.png"], "original_data_index": 2341, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" < 1998 OR Region <> \"USA\" EXCEPT SELECT Club_ID FROM coach WHERE Coach_name <> \"Jameson Tomas\" OR \"Coach_ID\" > 2 OR \"Rank\" < 5 OR \"Club_ID\" >= 1 OR Gender = \"M\""} {"question": "Which driver IDs are less than 10 from the driver table, and also driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A2wmi_12.png", "TableImg_Ar1ov_5.png"], "original_data_index": 2345, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the ranking, number of product categories, store ID, and area size for stores where the number of product categories is at least 1678 or the area size is greater than 28.74 and the store ID is not 2, and also for stores where the area size is greater than 26.69?", "answer": {"columns": ["Ranking", "Number_of_product_category", "Store_ID", "Area_size"], "index": [0, 1, 2, 3], "data": [["2", "17811", "1", "179.84"], ["3", "1678", "2", "26.69"], ["2", "17811", "1", "179.84"], ["9", "793", "5", "28.74"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_H26tx_5.png", "TableImg_Fv68y_5.png"], "original_data_index": 2344, "original_sql": "SELECT Ranking, Number_of_product_category, Store_ID, Area_size FROM store WHERE \"Number_of_product_category\" >= 1678.0 OR \"Area_size\" > 28.74 AND \"Store_ID\" <> 2 UNION ALL SELECT Ranking, Number_of_product_category, Store_ID, Area_size FROM store WHERE \"Area_size\" > 26.69"} {"question": "What are the driver IDs that are either less than or equal to 7 from the driver table or greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T0uc5_12.png", "TableImg_N9hw4_5.png"], "original_data_index": 2343, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are not equal to 7 and are present in the driver table but not in the school bus table, where the school bus driver IDs are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F241d_12.png", "TableImg_Wqayj_5.png"], "original_data_index": 2346, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are greater than or equal to 1, but not found in the school bus table with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C22ni_12.png", "TableImg_J9xd4_5.png"], "original_data_index": 2349, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 2 or greater, but not in the airport_aircraft table with an ID greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8pggj_5.png", "TableImg_Avnmz_4.png"], "original_data_index": 2348, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs are greater than or equal to 3 but not less than 10, considering only those IDs present in the driver table but not the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M8oc8_12.png", "TableImg_Ahu5c_5.png"], "original_data_index": 2350, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are not 1 and are present in the aircraft table but not in the airport_aircraft table, where the airport_aircraft table only includes aircraft IDs less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rz9ur_5.png", "TableImg_Pxb5n_4.png"], "original_data_index": 2347, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are not equal to 2 but are not also driver IDs from school buses with IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wzycr_12.png", "TableImg_24m9a_5.png"], "original_data_index": 2354, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are greater than or equal to 10, excluding those with IDs less than 9 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T1mea_12.png", "TableImg_7db66_5.png"], "original_data_index": 2351, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are less than 11 and also appear in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kkomu_12.png", "TableImg_Chcsm_5.png"], "original_data_index": 2352, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the IDs of documents that are either not drafts marked as \"p\" or were mailed to an address other than ID 5?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["17"], ["20"], ["23"], ["24"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Rf0x9_15.png", "TableImg_Bd6cr_14.png"], "original_data_index": 2353, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details <> \"p\" UNION SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" != 5"} {"question": "Which driver IDs, excluding driver ID 3, are greater than 10 and appear in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3h7bm_12.png", "TableImg_829m8_5.png"], "original_data_index": 2357, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which store IDs meet at least one of the following conditions: the store name isn't Rogersville and the ranking isn't 3, or the store ID is 2 and the area size is less than or equal to 179.84, or the store type isn't Village Store, or the number of product categories is greater than 1170; or have a product ID less than 6 in the store_product table?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_J1s7o_5.png", "TableImg_V9o2u_15.png"], "original_data_index": 2358, "original_sql": "SELECT Store_ID FROM store WHERE Store_Name <> \"Rogersville\" AND \"Ranking\" <> 3 OR \"Store_ID\" = 2 AND \"Area_size\" <= 179.84 OR Type != \"Village Store\" OR \"Number_of_product_category\" > 1170.0 UNION SELECT Store_ID FROM store_product WHERE \"Product_ID\" < 6"} {"question": "What are the average interface and product values, and the maximum page size, for products where the DPI is greater than 600, or the dimensions are not \"300 x 50 x 45\", or the interface is not \"USB 2.0\" and the product ID is 3 and the product is not \"Fujitsu fi-6130 A4 Series Scanner\", excluding those products where the interface is \"USB 2.0\", the maximum page size is not \"A4\", and the dimensions are not \"298 x 209 x 99\"?", "answer": {"columns": ["AVG(interface)", "max_page_size", "AVG(product)"], "index": [0], "data": [["0", "A4", "0"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Lmo17_6.png", "TableImg_Wwo9a_6.png"], "original_data_index": 2356, "original_sql": "SELECT AVG(interface), max_page_size, AVG(product) FROM product WHERE \"dpi\" > 600.0 OR dimensions <> \"300 x 50 x 45\" OR interface <> \"USB 2.0\" AND \"product_id\" = 3 AND product <> \"Fujitsu fi-6130 A4 Series Scanner\" EXCEPT SELECT AVG(interface), max_page_size, AVG(product) FROM product WHERE interface = \"USB 2.0\" AND max_page_size <> \"A4\" AND dimensions != \"298 x 209 x 99\""} {"question": "What are the IDs of drivers, excluding driver ID 5, and the IDs of school buses, excluding ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G0fk9_12.png", "TableImg_1lwrn_5.png"], "original_data_index": 2355, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the member IDs, total pounds, and years for purchases in 2018, excluding those with a member ID of 1 or a total of 2013.32, but including those with a total not equal to 321.13 and a branch ID not equal to 6?", "answer": {"columns": ["Member_ID", "Total_pounds", "Year"], "index": [0, 1], "data": [["2", "321.13", "2018"], ["6", "232.09", "2018"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_Ukeiv_8.png", "TableImg_V3kjg_8.png"], "original_data_index": 2362, "original_sql": "SELECT Member_ID, Total_pounds, Year FROM purchase WHERE \"Member_ID\" != 1 AND \"Total_pounds\" != 2013.32 AND Year = \"2018\" EXCEPT SELECT Member_ID, Total_pounds, Year FROM purchase WHERE \"Total_pounds\" <> 321.13 AND Branch_ID <> \"6\""} {"question": "What are the driver IDs greater than 2 that are in the driver table but not in the school bus table, where the driver IDs in the school bus table are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jtjjp_12.png", "TableImg_D8tuo_5.png"], "original_data_index": 2363, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are both less than 10 and also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kmf15_12.png", "TableImg_73zdl_5.png"], "original_data_index": 2364, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the aircraft IDs greater than 4 that are not present in the airport aircraft table with an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X0t9n_5.png", "TableImg_Yj23g_4.png"], "original_data_index": 2365, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Which driver IDs, excluding driver ID 12, are present in both the driver and school bus records, but with school bus driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_We0zq_12.png", "TableImg_Wvji4_5.png"], "original_data_index": 2366, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are both less than 6 in the driver table and less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hcjfc_12.png", "TableImg_Ru94m_5.png"], "original_data_index": 2367, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are less than or equal to 6, excluding those driver IDs that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C3omj_12.png", "TableImg_Hwjmc_5.png"], "original_data_index": 2368, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the item IDs from items that aren't \"shampoo\", combined with item IDs from reviews where the rank isn't 5 and the item ID is less than or equal to 7, or the user ID is less than 1, or the author ID isn't 3, or the rating is 10 or higher?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["0"], ["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["1"], ["1"], ["4"], ["7"], ["5"], ["3"], ["7"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Wlvvt_8.png", "TableImg_C94xp_7.png"], "original_data_index": 2369, "original_sql": "SELECT i_id FROM item WHERE title != \"shampoo\" UNION ALL SELECT i_id FROM review WHERE \"rank\" <> 5 AND \"i_id\" <= 7 OR \"u_id\" < 1 OR \"a_id\" != 3 OR \"rating\" >= 10"} {"question": "What are the aircraft IDs, excluding ID 3, from the aircraft table, combined with aircraft IDs less than 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T318e_5.png", "TableImg_Y9f0i_4.png"], "original_data_index": 2370, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the aircraft IDs that are not 3 and also appear in the airport_aircraft table with an ID less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rlpyl_5.png", "TableImg_Do5cx_4.png"], "original_data_index": 2371, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the driver IDs that are greater than or equal to 9, and also the driver IDs from school buses that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yo50m_12.png", "TableImg_Gprwz_5.png"], "original_data_index": 2372, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the feature type codes for \"BurglarAlarm\" features that are not \"Air Conditioning.\", and also feature types that are not \"Amenity, eg Pool.\"?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_23c6y_3.png", "TableImg_Cv765_2.png"], "original_data_index": 2373, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE feature_name = \"BurglarAlarm\" AND feature_description <> \"Air Conditioning.\" INTERSECT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\""} {"question": "What are the driver IDs that are both greater than or equal to 1 and less than or equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1f9cf_12.png", "TableImg_W0pcy_5.png"], "original_data_index": 2374, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are not equal to 4 and are present in the driver table but not in the school bus table, where the driver ID is not greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L907e_12.png", "TableImg_O917o_5.png"], "original_data_index": 2359, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs greater than 6 that are also driver IDs equal to 9, considering both the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B23aq_12.png", "TableImg_Zhnh3_5.png"], "original_data_index": 2360, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What is the average of 'other_details' from the 'Documents' table, excluding documents with ID 1, and also the average of 'other_details' from the 'Employees' table where the role code isn't \"PT\" or where 'other_details' isn't \"v\" and the employee ID is less than 2?", "answer": {"columns": ["AVG(other_details)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_O289f_15.png", "TableImg_15srt_6.png"], "original_data_index": 2361, "original_sql": "SELECT AVG(other_details) FROM Documents WHERE \"document_id\" <> 1 UNION ALL SELECT AVG(other_details) FROM Employees WHERE role_code != \"PT\" OR other_details <> \"v\" AND \"employee_id\" < 2"} {"question": "What are the driver IDs that are less than 3, excluding those driver IDs that are also less than or equal to 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5qaru_12.png", "TableImg_Ua3ps_5.png"], "original_data_index": 2376, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are equal to 1 but not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z5bhf_12.png", "TableImg_Set1d_5.png"], "original_data_index": 2378, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are not equal to 5 and are not present in the school bus table with driver IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3twwd_12.png", "TableImg_Q5md7_5.png"], "original_data_index": 2377, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that are less than 4 in the aircraft table, combined with the aircraft IDs that are not 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E8pwo_5.png", "TableImg_2h9ee_4.png"], "original_data_index": 2375, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the names and the sum of their user IDs, excluding Nancy or where the user ID is 5, combined with the names and sum of user IDs where the user ID is 1?", "answer": {"columns": ["name", "SUM(u_id)"], "index": [0, 1], "data": [["Helen", "1"], ["Helen", "24"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_H5goy_7.png", "TableImg_Znmqt_7.png"], "original_data_index": 2380, "original_sql": "SELECT name, SUM(u_id) FROM useracct WHERE name != \"Nancy\" OR \"u_id\" = 5 UNION SELECT name, SUM(u_id) FROM useracct WHERE \"u_id\" = 1"} {"question": "What are the driver IDs that are either less than or equal to 5 in the driver table or less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_39e2z_12.png", "TableImg_C1ofo_5.png"], "original_data_index": 2382, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the average document ID from the circulation history where the draft number is greater than 20, excluding the average document ID from draft copies where the document ID is not 12, or the draft number is not 20, or the copy number is less than 15?", "answer": {"columns": ["AVG(document_id)"], "index": [0], "data": [[""]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_9x2i4_4.png", "TableImg_Oj5ys_8.png"], "original_data_index": 2379, "original_sql": "SELECT AVG(document_id) FROM Circulation_History WHERE \"draft_number\" > 20 EXCEPT SELECT AVG(document_id) FROM Draft_Copies WHERE \"document_id\" <> 12 OR \"draft_number\" != 20 OR \"copy_number\" < 15"} {"question": "What are the maximum occupancy, number of beds, room name, and decor for rooms that are not \"IBS\" and either not priced at 100, or are modern, not double beds, not named \"Thrift and accolade\", have a maximum occupancy of 2 or less, and have 1 bed, but not for rooms that have more than 2 beds and are not king beds, or are not \"IBD\", or are not named \"Mendicant with cryptic\" and have a maximum occupancy of 4?", "answer": {"columns": ["maxOccupancy", "beds", "roomName", "decor"], "index": [0, 1, 2, 3], "data": [["2", "1", "Harbinger but bequest", "modern"], ["2", "1", "Recluse and defiance", "modern"], ["2", "1", "Thrift and accolade", "modern"], ["4", "2", "Mendicant with cryptic", "modern"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_Nm4y3_10.png", "TableImg_0aj3z_10.png"], "original_data_index": 2381, "original_sql": "SELECT maxOccupancy, beds, roomName, decor FROM Rooms WHERE RoomId != \"IBS\" AND \"basePrice\" <> 100 OR decor = \"modern\" AND bedType <> \"Double\" AND roomName <> \"Thrift and accolade\" AND \"maxOccupancy\" <= 2 AND \"beds\" = 1 EXCEPT SELECT maxOccupancy, beds, roomName, decor FROM Rooms WHERE \"beds\" > 2 AND bedType <> \"King\" AND RoomId <> \"IBD\" OR roomName != \"Mendicant with cryptic\" AND \"maxOccupancy\" = 4"} {"question": "Which driver IDs are greater than 8 but not less than 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5myqz_12.png", "TableImg_Mjpjw_5.png"], "original_data_index": 2386, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are either 3 or less, or 9 or more?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Leb50_12.png", "TableImg_Yes4y_5.png"], "original_data_index": 2385, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs that are less than or equal to 5, but not aircraft IDs greater than 3 that are present in the airport data?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_20nvy_5.png", "TableImg_R0r6j_4.png"], "original_data_index": 2383, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What is the average of 'other_details' from the 'Documents' table where the 'document_type_code' is not \"Paper\" or the 'document_id' is less than or equal to 17, combined with the average of 'other_details' from the 'Employees' table where the 'role_code' is \"PT\", or 'other_details' is \"u\", or the 'employee_id' is not 7 and the 'employee_name' is not \"Haley\"?", "answer": {"columns": ["AVG(other_details)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Ouuc1_15.png", "TableImg_Skbah_6.png"], "original_data_index": 2384, "original_sql": "SELECT AVG(other_details) FROM Documents WHERE document_type_code != \"Paper\" OR \"document_id\" <= 17 UNION ALL SELECT AVG(other_details) FROM Employees WHERE role_code = \"PT\" OR other_details = \"u\" OR \"employee_id\" != 7 AND employee_name != \"Haley\""} {"question": "What are the aircraft IDs that are greater than 2 in the aircraft table and also equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O2o7k_5.png", "TableImg_1jolb_4.png"], "original_data_index": 2387, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are equal to 1 but not present in the school bus table with driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xopx7_12.png", "TableImg_Jwena_5.png"], "original_data_index": 2388, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are present in both the driver and school bus tables, excluding driver ID 9 from the driver table and including driver IDs greater than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4v8gu_12.png", "TableImg_Y5tuu_5.png"], "original_data_index": 2389, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the names of employees who are not Steve Borthwick and have an employee ID greater than 5, or are younger than 23, or live in Leicester, combined with the names of shops where the manager is not Mika Laurikainen, or the district is not Tapiolan Urheilupuisto and the shop ID is less than or equal to 1, or the location is not Lahti, or the shop name is not FC Honka and has 10770 or fewer products?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["Andrew Sheridan"], ["FC Haka"], ["FC Honka"], ["FC Inter"], ["FC KooTeePee"], ["FC Lahti"], ["FF Jaro"], ["HJK"], ["IFK Mariehamn"], ["KuPS"], ["Louis Deacon"], ["Matt Stevens"], ["Phil Vickery"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_Zqj6y_10.png", "TableImg_Sllhf_9.png"], "original_data_index": 2390, "original_sql": "SELECT Name FROM employee WHERE Name != \"Steve Borthwick\" AND \"Employee_ID\" > 5 OR \"Age\" < 23 OR City = \"Leicester\" UNION SELECT Name FROM shop WHERE Manager_name <> \"Mika Laurikainen\" OR District != \"Tapiolan Urheilupuisto\" AND \"Shop_ID\" <= 1 OR Location <> \"Lahti\" OR Name != \"FC Honka\" AND \"Number_products\" <= 10770"} {"question": "Which driver IDs are associated with either a driver or a school bus, excluding driver ID 12 for drivers and driver ID 7 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D066n_12.png", "TableImg_Gf3tj_5.png"], "original_data_index": 2393, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are in either the driver table (excluding ID 6) or the school bus table (with IDs greater than 3)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8s4vu_12.png", "TableImg_Ulpxp_5.png"], "original_data_index": 2392, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which aircraft have ID 5, and which aircraft have IDs other than 5, considering information from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vxft9_5.png", "TableImg_04zfh_4.png"], "original_data_index": 2394, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which employee IDs are associated with documents having IDs less than 1 or draft numbers less than 1 and copy numbers less than 10, or who have a role code that isn't \"PT\"?", "answer": {"columns": ["employee_id"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["8"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_Id9ze_4.png", "TableImg_Svu6h_6.png"], "original_data_index": 2391, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"document_id\" < 1 OR \"draft_number\" < 1 AND \"copy_number\" < 10 UNION SELECT employee_id FROM Employees WHERE role_code <> \"PT\""} {"question": "What are the aircraft IDs that are not 4 and also appear in the airport aircraft table with an ID less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3kn87_5.png", "TableImg_86h7w_4.png"], "original_data_index": 2398, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the feature type names that are not \"Amenity\" or are \"Amenity, eg Pool.\", and also what are the feature type names that are not \"Security\"?", "answer": {"columns": ["feature_type_name"], "index": [0, 1, 2], "data": [["Amenity, eg Pool."], ["Securiyt, eg Burglar Alarm."], ["Amenity, eg Pool."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Yr53p_2.png", "TableImg_Djh7v_2.png"], "original_data_index": 2395, "original_sql": "SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code <> \"Amenity\" OR feature_type_name = \"Amenity, eg Pool.\" UNION ALL SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code != \"Security\""} {"question": "What are the driver IDs from the driver table, and also the driver IDs from the school bus table, where the driver ID is at least 1 in the driver table and at least 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lr3ec_12.png", "TableImg_C0awc_5.png"], "original_data_index": 2397, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs, excluding driver ID 7, and also the driver IDs less than 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G4w9h_12.png", "TableImg_N7rve_5.png"], "original_data_index": 2399, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the minimum locations, shop IDs, districts, manager names, and number of products for shops that are not named \"FC Inter\" and have at least 3516 products, or are located in \"Jakobstad\", or have a manager name other than \"Mika Laurikainen\"? Also, what are the minimum locations, shop IDs, districts, manager names, and number of products for shops managed by \"Kai Nyyss\u00f6nen\", or where the shop ID is not 1 and the district is not \"Jakobstads Centralplan\" and the location is not \"Turku\", or where the number of products is at least 6000 and the name is not \"IFK Mariehamn\"?", "answer": {"columns": ["MIN(Location)", "Shop_ID", "District", "Manager_name", "Number_products"], "index": [0], "data": [["Espoo", "3", "Tapiolan Urheilupuisto", "Mika Lehkosuo", "6000"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_S4wck_9.png", "TableImg_E442v_9.png"], "original_data_index": 2396, "original_sql": "SELECT MIN(Location), Shop_ID, District, Manager_name, Number_products FROM shop WHERE Name <> \"FC Inter\" AND \"Number_products\" >= 3516 OR Location = \"Jakobstad\" OR Manager_name <> \"Mika Laurikainen\" UNION SELECT MIN(Location), Shop_ID, District, Manager_name, Number_products FROM shop WHERE Manager_name = \"Kai Nyyss\u00f6nen\" OR \"Shop_ID\" <> 1 AND District <> \"Jakobstads Centralplan\" AND Location != \"Turku\" OR \"Number_products\" >= 6000 AND Name != \"IFK Mariehamn\""} {"question": "What are the driver IDs that are equal to 3, but not driver IDs greater than 7, considering the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Klij6_12.png", "TableImg_Wlw3p_5.png"], "original_data_index": 2401, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the maximum driver ID and the number of years worked for drivers who either don't live in Manchester and work at school ID 1, are older than 46 and have worked a total of more than 8 years, are affiliated with the \"Dem\" party, or are named \"Douglas McCrory\" and work full-time?", "answer": {"columns": ["MAX(T1.Driver_ID)", "Years_Working"], "index": [0], "data": [["10", "10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K7zeu_12.png", "TableImg_Ynqpf_5.png"], "original_data_index": 2402, "original_sql": "SELECT MAX(T1.Driver_ID), T2.Years_Working FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city <> \"Manchester\" AND School_ID = 1 OR Age > 46 AND SUM(Years_Working) > 8 OR Party = \"Dem\" OR Name = \"Douglas McCrory\" AND If_full_time = \"T\""} {"question": "Find the minimum company ID, maximum velocity, minimum pilot, and average ID for flights, excluding those with vehicle flight number \"M2-F1 #73\". Also, find the same statistics for flights where the altitude is not 3650.0, or the vehicle flight number is not \"M2-F1 #70\", or the airport ID is less than 4, or the pilot is not Thompson and the date is not July 16, 1965, and the ID is less than or equal to 5 and the velocity is greater than or equal to 240.0.", "answer": {"columns": ["MIN(company_id)", "MAX(Velocity)", "MIN(Pilot)", "AVG(id)"], "index": [0, 1], "data": [["1", "240", "Peterson", "6.5"], ["1", "240", "Peterson", "6.6666666667"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_4t7rg_13.png", "TableImg_Gml72_13.png"], "original_data_index": 2403, "original_sql": "SELECT MIN(company_id), MAX(Velocity), MIN(Pilot), AVG(id) FROM flight WHERE Vehicle_Flight_number <> \"M2-F1 #73\" UNION ALL SELECT MIN(company_id), MAX(Velocity), MIN(Pilot), AVG(id) FROM flight WHERE \"Altitude\" != 3650.0 OR Vehicle_Flight_number <> \"M2-F1 #70\" OR \"airport_id\" < 4 OR Pilot != \"Thompson\" AND Date != \"July 16, 1965\" AND \"id\" <= 5 AND \"Velocity\" >= 240.0"} {"question": "Which driver IDs are not equal to 9 and are not present in the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qxsmu_12.png", "TableImg_V7zkb_5.png"], "original_data_index": 2404, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are greater than or equal to 2, but not equal to 7, and are present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vg25d_12.png", "TableImg_1tf95_5.png"], "original_data_index": 2406, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are not 5, and also what is the aircraft ID that is 3, considering data from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0i5zh_5.png", "TableImg_V3mzn_4.png"], "original_data_index": 2405, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the aircraft IDs greater than 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ps9jc_5.png", "TableImg_9ms37_4.png"], "original_data_index": 2407, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are greater than 8 but not greater than 9, considering only those driver IDs present in the 'driver' table and excluding those in the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F39gp_12.png", "TableImg_05n5m_5.png"], "original_data_index": 2408, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are less than 3, excluding those driver IDs from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_574hv_12.png", "TableImg_G0frd_5.png"], "original_data_index": 2409, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs, excluding driver ID 6, that are present in both the driver and school bus tables, where the school bus driver IDs are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ub4ln_12.png", "TableImg_75po1_5.png"], "original_data_index": 2410, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are both less than 12 and also appear in the school bus table with IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aqtui_12.png", "TableImg_N0kcz_5.png"], "original_data_index": 2411, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are greater than 8 but not present in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K1afw_12.png", "TableImg_X652b_5.png"], "original_data_index": 2412, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the driver IDs, excluding driver ID 9, and also the driver IDs from school buses that are 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K1gk2_12.png", "TableImg_5tg56_5.png"], "original_data_index": 2413, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs that are greater than or equal to 5, excluding those driver IDs that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U0j2e_12.png", "TableImg_Xu34b_5.png"], "original_data_index": 2415, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What is the average feature description for features with an ID greater than 2, combined with the average feature description for features that are not \"Security\", not \"Burglar Alarm\", have the name \"Pool\", or have an ID less than or equal to 4?", "answer": {"columns": ["AVG(feature_description)"], "index": [0], "data": [["0"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_65v98_3.png", "TableImg_B5xkr_3.png"], "original_data_index": 2414, "original_sql": "SELECT AVG(feature_description) FROM Other_Available_Features WHERE \"feature_id\" > 2 UNION SELECT AVG(feature_description) FROM Other_Available_Features WHERE feature_type_code <> \"Security\" AND feature_description <> \"Burglar Alarm\" AND feature_name = \"Pool\" OR \"feature_id\" <= 4"} {"question": "Which aircraft IDs are not equal to 1 but are not present in the airport_aircraft table with an aircraft ID of 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8u5ml_5.png", "TableImg_93qcn_4.png"], "original_data_index": 2418, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the driver IDs that are either 7 from the driver table or 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xg2mw_12.png", "TableImg_Zkuds_5.png"], "original_data_index": 2417, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are either aircraft ID 4 or aircraft IDs less than 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_60pi1_5.png", "TableImg_Y5suf_4.png"], "original_data_index": 2419, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the aircraft IDs greater than 2, excluding those aircraft IDs that are also greater than or equal to 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Koj42_5.png", "TableImg_6yhf8_4.png"], "original_data_index": 2416, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are either at least 2 in the driver table or at least 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9q2p2_12.png", "TableImg_Ej3n5_5.png"], "original_data_index": 2420, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs that are equal to 5 in the aircraft table, but not greater than 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A87kn_5.png", "TableImg_Cjq63_4.png"], "original_data_index": 2422, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which aircraft IDs are not equal to 2, but are not present in the airport aircraft table where the aircraft ID is greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R1d2d_5.png", "TableImg_Uotwh_4.png"], "original_data_index": 2421, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the aircraft IDs that are present in the aircraft table with an ID greater than or equal to 1, but not present in the airport_aircraft table with an ID greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pae7c_5.png", "TableImg_1aajb_4.png"], "original_data_index": 2423, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs that are less than 11, and also the driver IDs from the school bus table that are not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pza8x_12.png", "TableImg_V54jn_5.png"], "original_data_index": 2426, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which aircraft IDs are not equal to 4 and are present in the aircraft table but not in the airport_aircraft table with an ID of 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_98mvx_5.png", "TableImg_Jjiit_4.png"], "original_data_index": 2425, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the aircraft IDs that are equal to 4 in the aircraft table but not in the airport_aircraft table with aircraft IDs greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lscdd_5.png", "TableImg_C0udd_4.png"], "original_data_index": 2424, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver IDs greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8uj5u_12.png", "TableImg_Szdzz_5.png"], "original_data_index": 2427, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs less than 9, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Df71r_12.png", "TableImg_6m7w0_5.png"], "original_data_index": 2428, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are either greater than or equal to 8 in the driver table or less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bzb7k_12.png", "TableImg_H7adb_5.png"], "original_data_index": 2429, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the hometown, name, card number, member ID, and level of members who are either named Micah Johnson, not from LaGrange, Georgia, and not have card number OLB56, or have a member ID less than or equal to 10, and also have a member ID greater than or equal to 8?", "answer": {"columns": ["Hometown", "Name", "Card_Number", "Member_ID", "Level"], "index": [0, 1, 2], "data": [["Hiram, Georgia", "Trevard Lindley", "RCB32", "8", "6"], ["Red Jacket, West Virginia", "David Jones", "LCB7", "9", "6"], ["Simpsonville, South Carolina", "Matt Lentz", "FS10", "10", "2"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_Yvq1e_10.png", "TableImg_Ogcof_10.png"], "original_data_index": 2431, "original_sql": "SELECT Hometown, Name, Card_Number, Member_ID, Level FROM member WHERE Name = \"Micah Johnson\" AND Hometown <> \"LaGrange, Georgia\" AND Card_Number <> \"OLB56\" OR \"Member_ID\" <= 10 INTERSECT SELECT Hometown, Name, Card_Number, Member_ID, Level FROM member WHERE \"Member_ID\" >= 8"} {"question": "What are the member IDs of members with card number \"LE99\" or a name that isn't \"Myron Pryor\", combined with the member IDs from the branch with ID \"4\" where the registration year isn't \"2016\" or the member ID is less than or equal to 3?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["1"], ["2"], ["3"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_Yfigd_10.png", "TableImg_T30lb_8.png"], "original_data_index": 2430, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number = \"LE99\" OR Name != \"Myron Pryor\" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE Register_Year != \"2016\" AND Branch_ID = \"4\" OR \"Member_ID\" <= 3"} {"question": "What role codes do employees with \"b\" in their other details and roles that are not \"ED\" have in common?", "answer": {"columns": ["role_code"], "index": [0, 1], "data": [["PR"], ["PT"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_1mg1i_6.png", "TableImg_O4rc7_4.png"], "original_data_index": 2433, "original_sql": "SELECT role_code FROM Employees WHERE other_details = \"b\" INTERSECT SELECT role_code FROM Roles WHERE role_code != \"ED\""} {"question": "What is the average rank, minimum votes, and sponsor name for players, grouped by residence, considering players who are not locomotive engineers or have a rank of 1st and a sponsor name other than Winnipeg South, or have a player ID of 3, or have the name Ross C. Martin and a residence other than Winnipeg? Also, what is the average rank, minimum votes, and sponsor name for players, grouped by residence, considering players with votes less than or equal to 9506, or a rank of 3rd and the name Jim Maloway, or a residence of Birtle, a player ID not equal to 11, a sponsor name other than Selkirk\u2014Interlake, an occupation of student, and a gender of M?", "answer": {"columns": ["AVG(Rank)", "Residence", "MIN(Votes)", "Sponsor_name"], "index": [0, 1], "data": [["2.1538461538", "Winnipeg", "2353", "Portage\u2014Lisgar"], ["2.5", "Winnipeg", "2353", "Portage\u2014Lisgar"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_Ge7fy_14.png", "TableImg_5omkd_14.png"], "original_data_index": 2432, "original_sql": "SELECT AVG(Rank), Residence, MIN(Votes), Sponsor_name FROM player WHERE Occupation <> \"Locomotive Engineer\" OR Rank = \"1st\" AND Sponsor_name <> \"Winnipeg South\" OR \"Player_ID\" = 3 OR Player_name = \"Ross C. Martin\" AND Residence <> \"Winnipeg\" UNION SELECT AVG(Rank), Residence, MIN(Votes), Sponsor_name FROM player WHERE \"Votes\" <= 9506 OR Rank = \"3rd\" AND Player_name = \"Jim Maloway\" OR Residence = \"Birtle\" AND \"Player_ID\" != 11 AND Sponsor_name <> \"Selkirk\u2014Interlake\" AND Occupation = \"Student\" AND Gender = \"M\""} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs that are 3 or greater, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_50lty_12.png", "TableImg_Zalrw_5.png"], "original_data_index": 2435, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are less than 8 but not equal to 4, considering only driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fhltp_12.png", "TableImg_Oudwc_5.png"], "original_data_index": 2437, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "For each shop, give me the sum of employee IDs, whether they are full-time, and the start date. Include employees where the employee ID is not 2 or are full-time, and also include employees who are not full-time or whose start date isn't 2010, shop ID isn't 1, and employee ID is 4.", "answer": {"columns": ["Shop_ID", "SUM(Employee_ID)", "Is_full_time", "Start_from"], "index": [0, 1], "data": [["1", "28", "T", "2009"], ["8", "13", "F", "2011"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Tc16h_7.png", "TableImg_Ourhi_7.png"], "original_data_index": 2436, "original_sql": "SELECT Shop_ID, SUM(Employee_ID), Is_full_time, Start_from FROM hiring WHERE \"Employee_ID\" <> 2 OR Is_full_time = \"T\" UNION ALL SELECT Shop_ID, SUM(Employee_ID), Is_full_time, Start_from FROM hiring WHERE Is_full_time = \"F\" OR Start_from <> \"2010\" AND \"Shop_ID\" <> 1 AND \"Employee_ID\" = 4"} {"question": "What are the aircraft IDs, excluding those greater than 1 in the airport_aircraft table, but not including aircraft ID 4 from the aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_W62wo_5.png", "TableImg_5y5mk_4.png"], "original_data_index": 2439, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are 10 or which driver IDs are 4, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ugxup_12.png", "TableImg_Asoc3_5.png"], "original_data_index": 2438, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are less than or equal to 10 but not found in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_110nk_12.png", "TableImg_Ptchu_5.png"], "original_data_index": 2440, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs that are either less than or equal to 4 in the aircraft table or less than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iuk09_5.png", "TableImg_S8jz4_4.png"], "original_data_index": 2441, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the driver IDs that are both less than or equal to 8 and also greater than or equal to 4, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fjih3_12.png", "TableImg_Acsq2_5.png"], "original_data_index": 2442, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the customer IDs that have a payment amount less than 9414.74 and a customer ID less than or equal to 4, or a payment method that isn't Direct Debit, and also have a lesson on March 5th, 2018 at 18:05:31 or a staff ID less than 3?", "answer": {"columns": ["customer_id"], "index": [0], "data": [["13"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_M8hk9_15.png", "TableImg_Me5xo_15.png"], "original_data_index": 2443, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"amount_payment\" < 9414.74 AND \"customer_id\" <= 4 OR payment_method_code != \"Direct Debit\" INTERSECT SELECT customer_id FROM Lessons WHERE lesson_date = \"2018-03-05 18:05:31\" OR \"staff_id\" < 3"} {"question": "Which driver IDs are either 11 or greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zfgtn_12.png", "TableImg_Mbee9_5.png"], "original_data_index": 2444, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are greater than 8 but not greater than 9, considering only driver IDs from the driver table and excluding those from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zf2bh_12.png", "TableImg_1h5l3_5.png"], "original_data_index": 2446, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What is the sum of 'other_details' from the 'Documents' table where the receipt number is \"189\" and the document ID is less than or equal to 17, and also the sum of 'other_details' from the 'Employees' table where the employee name is \"Clemens\", the employee ID is not 1, the other details are not \"u\", and the role code is not \"PT\"?", "answer": {"columns": ["SUM(other_details)"], "index": [0], "data": [[""]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Vtr6r_15.png", "TableImg_Wapj1_6.png"], "original_data_index": 2445, "original_sql": "SELECT SUM(other_details) FROM Documents WHERE receipt_number = \"189\" AND \"document_id\" <= 17 INTERSECT SELECT SUM(other_details) FROM Employees WHERE employee_name = \"Clemens\" AND \"employee_id\" != 1 AND other_details != \"u\" AND role_code <> \"PT\""} {"question": "What are the aircraft IDs greater than 4, and also the aircraft IDs that are not 3, considering both the aircraft and airport-aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y63s3_5.png", "TableImg_Wcylz_4.png"], "original_data_index": 2447, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs are less than 8 in the driver table, or are not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0sym9_12.png", "TableImg_Hk49g_5.png"], "original_data_index": 2448, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the user IDs of reviews with a rating of 7 or less, or where the user ID is at least 1, the rank is 6, and the item ID is 7, or where the account ID is at least 3, combined with the user IDs of users named Helen?", "answer": {"columns": ["u_id"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Trumt_7.png", "TableImg_11bp7_7.png"], "original_data_index": 2449, "original_sql": "SELECT u_id FROM review WHERE \"rating\" <= 7 OR \"u_id\" >= 1 AND \"rank\" = 6 AND \"i_id\" = 7 OR \"a_id\" >= 3 UNION SELECT u_id FROM useracct WHERE name = \"Helen\""} {"question": "What are the aircraft IDs greater than 2, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3x864_5.png", "TableImg_Tl1s2_4.png"], "original_data_index": 2450, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "How many contestants have a contestant number of 9 or greater and are not named Tabatha Gehling, combined with the number of contestants who have a contestant number of 4 or are not named Jessie Alloway?", "answer": {"columns": ["COUNT(contestant_number)"], "index": [0, 1], "data": [["3"], ["11"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Vqkq5_11.png", "TableImg_P9qlv_11.png"], "original_data_index": 2434, "original_sql": "SELECT COUNT(contestant_number) FROM CONTESTANTS WHERE \"contestant_number\" >= 9 AND contestant_name != \"Tabatha Gehling\" UNION SELECT COUNT(contestant_number) FROM CONTESTANTS WHERE \"contestant_number\" = 4 OR contestant_name <> \"Jessie Alloway\""} {"question": "Which driver IDs are less than 6 but not found in the school bus table with IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gnopt_12.png", "TableImg_842l9_5.png"], "original_data_index": 2454, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are not 8 and also appear in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tentf_12.png", "TableImg_Nc11p_5.png"], "original_data_index": 2452, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are either less than or equal to 8 from the driver table or not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0pxii_12.png", "TableImg_Lk5ts_5.png"], "original_data_index": 2453, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are greater than or equal to 6, but not present in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0gq28_12.png", "TableImg_Svz9x_5.png"], "original_data_index": 2451, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 5) and the school bus table (with driver ID 3)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P5dli_12.png", "TableImg_Lzm7w_5.png"], "original_data_index": 2455, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are less than or equal to 5, but not present in the airport aircraft table with IDs greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D9lta_5.png", "TableImg_Txjlu_4.png"], "original_data_index": 2456, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the driver IDs that are either 4 or less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pwonh_12.png", "TableImg_Jtwrk_5.png"], "original_data_index": 2457, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the minimum mailed to address IDs and document IDs for documents where the document ID is 14 or greater or the mailed to address ID is 4, and also for documents mailed on May 22, 1999 at 23:21:07?", "answer": {"columns": ["MIN(mailed_to_address_id)", "document_id"], "index": [0, 1], "data": [["0", "12"], ["0", "24"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_3hl18_14.png", "TableImg_Q8xds_14.png"], "original_data_index": 2458, "original_sql": "SELECT MIN(mailed_to_address_id), document_id FROM Documents_Mailed WHERE \"document_id\" >= 14 OR \"mailed_to_address_id\" = 4 UNION SELECT MIN(mailed_to_address_id), document_id FROM Documents_Mailed WHERE mailing_date = \"1999-05-22 23:21:07\""} {"question": "What are the aircraft IDs that are both aircraft ID 5 and not aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bfcbe_5.png", "TableImg_Ywwjd_4.png"], "original_data_index": 2460, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the aircraft IDs that are less than 5, excluding those with ID 5, considering only the aircraft table and the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qhr3a_5.png", "TableImg_8ypor_4.png"], "original_data_index": 2459, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Which driver IDs are greater than or equal to 7, but not greater than 10, and are present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hfrae_12.png", "TableImg_Urukw_5.png"], "original_data_index": 2462, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs greater than 6 that are also driver IDs equal to 7, considering driver information from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T0q1h_12.png", "TableImg_S58th_5.png"], "original_data_index": 2464, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the lesson IDs, prices, lesson status codes, customer IDs, staff IDs, and lesson times for lessons that meet the following criteria: either the vehicle ID is less than or equal to 2, or the lesson status is not \"Completed\", or the lesson date is not \"2018-03-16 07:08:52\" and the price is less than 456.0 and the lesson ID is not 5 and the lesson time is not \"5\" and the customer ID is not 2; and also meet these criteria: either the customer ID is 10 and the lesson date is not \"2018-03-17 19:02:07\" and the lesson time is not \"3\", or the lesson ID is greater than or equal to 14 and the lesson status is \"Cancelled\", or the price is greater than or equal to 184.0?", "answer": {"columns": ["lesson_id", "price", "lesson_status_code", "customer_id", "staff_id", "lesson_time"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1", "199", "Cancelled", "6", "8", "5"], ["3", "352", "Cancelled", "6", "11", "3"], ["4", "306", "Completed", "8", "1", "9"], ["5", "295", "Completed", "10", "3", "9"], ["6", "492", "Completed", "5", "4", "6"], ["7", "231", "Cancelled", "9", "11", "9"], ["8", "277", "Completed", "3", "8", "2"], ["9", "456", "Completed", "2", "4", "9"], ["10", "495", "Cancelled", "2", "5", "4"], ["11", "223", "Cancelled", "10", "15", "2"], ["12", "184", "Cancelled", "11", "12", "2"], ["13", "446", "Completed", "13", "12", "5"], ["14", "483", "Cancelled", "11", "11", "5"], ["15", "340", "Cancelled", "3", "8", "9"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_F2oue_15.png", "TableImg_Ropi8_15.png"], "original_data_index": 2461, "original_sql": "SELECT lesson_id, price, lesson_status_code, customer_id, staff_id, lesson_time FROM Lessons WHERE \"vehicle_id\" <= 2 OR lesson_status_code != \"Completed\" OR lesson_date != \"2018-03-16 07:08:52\" AND \"price\" < 456.0 AND \"lesson_id\" != 5 AND lesson_time <> \"5\" AND \"customer_id\" <> 2 INTERSECT SELECT lesson_id, price, lesson_status_code, customer_id, staff_id, lesson_time FROM Lessons WHERE \"customer_id\" = 10 AND lesson_date != \"2018-03-17 19:02:07\" AND lesson_time != \"3\" OR \"lesson_id\" >= 14 AND lesson_status_code = \"Cancelled\" OR \"price\" >= 184.0"} {"question": "What are the driver IDs that are equal to 1, or are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lqgeh_12.png", "TableImg_Lsuh1_5.png"], "original_data_index": 2465, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What is the total number of drivers and the school ID, where the driver lives in Hartford, or is named Edwin Vargas, or has a school ID less than 5 and is not full-time, or is younger than 42, or has not worked for 6 years, grouped by school ID, and where the party is not Dem, or has worked for 8 years, or is full-time?", "answer": {"columns": ["SUM(T1.Driver_ID)", "School_ID"], "index": [0, 1, 2, 3], "data": [["4", "3"], ["3", "4"], ["7", "5"], ["9", "7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8jtp0_12.png", "TableImg_Glufx_5.png"], "original_data_index": 2463, "original_sql": "SELECT SUM(T1.Driver_ID), T2.School_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city = \"Hartford\" OR Name = \"Edwin Vargas\" OR \"School_ID\" < 5 AND If_full_time <> \"T\" OR \"Age\" < 42 OR \"Years_Working\" <> 6 GROUP BY School_ID HAVING Party <> \"Dem\" OR Years_Working = 8 OR If_full_time = \"T\""} {"question": "Which driver IDs are equal to 10 in either the driver or school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L5r35_12.png", "TableImg_L2163_5.png"], "original_data_index": 2466, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are less than or equal to 9, excluding those with IDs less than 4, considering only driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hb3j4_12.png", "TableImg_3i0kx_5.png"], "original_data_index": 2470, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What political parties are there, considering those where the delegate wasn't Gail H. Bates, or the first elected year was after 1994, or the election ID was less than 8, or the district wasn't 1, and also including the Liberal party if the governor wasn't Tom Golisano, or if Hillary Rodham Clinton was the US Senator and Eliot Spitzer was the Attorney General, or if the Lieutenant Governor wasn't Dennis Mehiel?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["Democratic"], ["Independence"], ["Liberal"], ["Working Families"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_09zy1_8.png", "TableImg_0pxid_7.png"], "original_data_index": 2467, "original_sql": "SELECT Party FROM election WHERE Delegate <> \"Bates, Gail H. Gail H. Bates\" AND \"Party\" > 4 OR \"First_Elected\" > 1994.0 OR \"Election_ID\" < 8 OR \"District\" != 1 UNION SELECT Party FROM party WHERE Party = \"Liberal\" AND Governor != \"Tom Golisano\" OR US_Senate = \"Hillary Rodham Clinton\" AND Attorney_General = \"Eliot Spitzer\" OR Lieutenant_Governor <> \"Dennis Mehiel\""} {"question": "What are the driver IDs that are both greater than or equal to 9 in the driver table and greater than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vvpl3_12.png", "TableImg_Xobb2_5.png"], "original_data_index": 2471, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What is the sum of city areas, the count of headquartered cities, the minimum city population, and the average district name for districts where the headquartered city is not Hafizabad City and the district ID is 8 or the city area is greater than or equal to 22.0 and the district name is not Faisalabad District? Also, what is the sum of city areas, the count of headquartered cities, the minimum city population, and the average district name for districts where the city population is not 94620.0?", "answer": {"columns": ["SUM(City_Area)", "COUNT(Headquartered_City)", "MIN(City_Population)", "AVG(District_name)"], "index": [0, 1], "data": [["357", "7", "172073", "0"], ["452", "14", "89380", "0"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_7fict_15.png", "TableImg_Aw4ot_15.png"], "original_data_index": 2472, "original_sql": "SELECT SUM(City_Area), COUNT(Headquartered_City), MIN(City_Population), AVG(District_name) FROM district WHERE Headquartered_City != \"Hafizabad City\" AND \"District_ID\" = 8 OR \"City_Area\" >= 22.0 AND District_name != \"Faisalabad District\" UNION ALL SELECT SUM(City_Area), COUNT(Headquartered_City), MIN(City_Population), AVG(District_name) FROM district WHERE \"City_Population\" <> 94620.0"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and also greater than 1, considering only the aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Se4sc_5.png", "TableImg_T9klx_4.png"], "original_data_index": 2473, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 3 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xpdyg_12.png", "TableImg_Zrfb9_5.png"], "original_data_index": 2474, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Njigf_12.png", "TableImg_Qwcfm_5.png"], "original_data_index": 2475, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are greater than or equal to 12, excluding those driver IDs that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K8stc_12.png", "TableImg_Sare2_5.png"], "original_data_index": 2476, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the sum of document IDs for circulation history entries where the employee ID is not 1, combined with the sum of document IDs from mailed documents where the document ID is less than 20?", "answer": {"columns": ["SUM(document_id)"], "index": [0, 1], "data": [["32"], ["90"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Qxs1a_4.png", "TableImg_0lt53_14.png"], "original_data_index": 2477, "original_sql": "SELECT SUM(document_id) FROM Circulation_History WHERE \"employee_id\" != 1 UNION SELECT SUM(document_id) FROM Documents_Mailed WHERE \"document_id\" < 20"} {"question": "What are the driver IDs less than 8 that are in the driver table but not in the school bus table, where the driver IDs in the school bus table are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mdnow_12.png", "TableImg_6r9uo_5.png"], "original_data_index": 2478, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs, excluding driver ID 2, are present in the driver table but not in the school bus table where the driver ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5c676_12.png", "TableImg_5dqu2_5.png"], "original_data_index": 2479, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the staff IDs of lessons that don't occur at time \"3\", combined with the staff IDs of staff members who aren't nicknamed \"sbrown\" and didn't join on \"2017-10-21 17:20:57\"?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Nr397_15.png", "TableImg_Dki1o_15.png"], "original_data_index": 2481, "original_sql": "SELECT staff_id FROM Lessons WHERE lesson_time != \"3\" UNION SELECT staff_id FROM Staff WHERE nickname <> \"sbrown\" AND date_joined_staff != \"2017-10-21 17:20:57\""} {"question": "What are the vendor requested prices, along with the maximum property address and oth_feature_3, for properties where shp_feature_1 is not \"None\", excluding those properties where the property ID is 13 and oth_feature_3 is \"None\" and shp_feature_1 is \"None\" or hse_feature_3 is not \"None\" or apt_feature_1 is not \"aut\" and the property name is \"park\" and apt_feature_3 is \"None\" and the property address is \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" or fld_feature_1 is \"None\" or apt_feature_2 is not \"sit\" or room_count is greater than 9 and shp_feature_3 is not \"None\" or shp_feature_2 is \"None\" or other_property_details is not \"None\" or the date sold is not \"2012-08-19 07:36:57\" and the date on market is \"1990-05-25 23:01:51\" and hse_feature_1 is \"None\"?", "answer": {"columns": ["vendor_requested_price", "MAX(property_address)", "MAX(oth_feature_3)"], "index": [0], "data": [["", "", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Pzg80_15.png", "TableImg_4dyn8_15.png"], "original_data_index": 2480, "original_sql": "SELECT vendor_requested_price, MAX(property_address), MAX(oth_feature_3) FROM Properties WHERE shp_feature_1 != \"None\" EXCEPT SELECT vendor_requested_price, MAX(property_address), MAX(oth_feature_3) FROM Properties WHERE \"property_id\" = 13 AND oth_feature_3 = \"None\" AND shp_feature_1 = \"None\" OR hse_feature_3 <> \"None\" OR apt_feature_1 <> \"aut\" AND property_name = \"park\" AND apt_feature_3 = \"None\" AND property_address = \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" OR fld_feature_1 = \"None\" OR apt_feature_2 != \"sit\" OR \"room_count\" > 9 AND shp_feature_3 != \"None\" OR shp_feature_2 = \"None\" OR other_property_details <> \"None\" OR date_sold <> \"2012-08-19 07:36:57\" AND date_on_market = \"1990-05-25 23:01:51\" AND hse_feature_1 = \"None\""} {"question": "What are the aircraft IDs that are either aircraft ID 3 or any aircraft ID that is not 2, considering data from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q2hm3_5.png", "TableImg_Z4w1t_4.png"], "original_data_index": 2482, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the aircraft IDs, excluding ID 5, that are present in both the aircraft table and the airport_aircraft table, where the airport_aircraft ID is greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_15l94_5.png", "TableImg_Cgupf_4.png"], "original_data_index": 2469, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs are equal to 12 but not greater than or equal to 4, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pqp72_12.png", "TableImg_5ett7_5.png"], "original_data_index": 2468, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs that are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 4 from the aircraft table and aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qu8bc_5.png", "TableImg_Cz7tt_4.png"], "original_data_index": 2483, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the driver IDs that are less than 6, and also the driver IDs from school buses that are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jh4lp_12.png", "TableImg_0rjhp_5.png"], "original_data_index": 2485, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are greater than or equal to 4, but not present in the airport_aircraft table with IDs greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lxdlr_5.png", "TableImg_E0tjp_4.png"], "original_data_index": 2486, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the driver IDs that are less than 6 or greater than 10, considering both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lgtwd_12.png", "TableImg_Yh6g2_5.png"], "original_data_index": 2484, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are less than or equal to 2, but not greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E14vd_12.png", "TableImg_2g88t_5.png"], "original_data_index": 2489, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are both less than 4 in the driver table and equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U8ewm_12.png", "TableImg_8i5vu_5.png"], "original_data_index": 2490, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs, excluding ID 4, are present in both the driver and school bus records, excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vn3m8_12.png", "TableImg_Yqul7_5.png"], "original_data_index": 2487, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the school IDs from the budget table where the total budget percentage budgeted is greater than 2.4 and the total budget percentage invested is at least 2.7, or where the budgeted amount is less than or equal to 3666, or where the budget invested percentage is 127.6? Also, what are the school IDs from the endowment table where the donator name is not Duarte and the school ID is greater than 8, or where the endowment ID is not 6 and the amount is 9.83? Combine both sets of school IDs.", "answer": {"columns": ["School_id"], "index": [0, 1, 2], "data": [["2"], ["4"], ["2"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_As22f_8.png", "TableImg_Godel_11.png"], "original_data_index": 2488, "original_sql": "SELECT School_id FROM budget WHERE \"total_budget_percent_budgeted\" > 2.4 AND \"total_budget_percent_invested\" >= 2.7 OR \"Budgeted\" <= 3666 OR Budget_invested_percent = \"127.6\" UNION ALL SELECT School_id FROM endowment WHERE donator_name != \"Duarte\" AND \"School_id\" > 8 OR \"endowment_id\" != 6 AND \"amount\" = 9.83"} {"question": "What are the aircraft IDs that are less than 3, excluding those aircraft IDs that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_16fv6_5.png", "TableImg_7dyj3_4.png"], "original_data_index": 2493, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the student IDs of students with allergies, excluding those whose last name is not \"Epp\" or whose first name is \"David\" and are not male, have advisor 8918, are at least 20 years old, and do not live in SFO?", "answer": {"columns": ["StuID"], "index": [0], "data": [["1013"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Hz9nm_59.png", "TableImg_V4tu6_34.png"], "original_data_index": 2492, "original_sql": "SELECT StuID FROM Has_Allergy WHERE \"StuID\" != 1007 EXCEPT SELECT StuID FROM Student WHERE LName != \"Epp\" OR Fname = \"David\" AND Sex <> \"M\" AND \"Advisor\" = 8918 AND \"Age\" >= 20 AND city_code <> \"SFO\""} {"question": "What are the IDs of airports that are not in Boston or are not named \"Ted Stevens Airport\", combined with the IDs of companies that are not incorporated in Vietnam or have an ID greater than or equal to 13 or have a group equity shareholding of 18.77 and whose principal activities are not catering services, and whose name is \"Cathay Pacific Holidays\" and are not a subsidiary?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Ojj32_9.png", "TableImg_Kbqux_14.png"], "original_data_index": 2491, "original_sql": "SELECT id FROM airport WHERE IATA <> \"BOS\" OR name != \"Ted Stevens Airport\" UNION SELECT id FROM operate_company WHERE Incorporated_in <> \"Vietnam\" OR \"id\" >= 13 OR \"Group_Equity_Shareholding\" = 18.77 AND Principal_activities != \"Catering services\" AND name = \"Cathay Pacific Holidays\" AND Type <> \"Subsidiary\""} {"question": "What are the aircraft IDs that are not 4, and also the aircraft IDs that are 3 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nyhc5_5.png", "TableImg_9278y_4.png"], "original_data_index": 2497, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, and also the aircraft IDs that are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iiaks_5.png", "TableImg_5j78c_4.png"], "original_data_index": 2494, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What is the highest customer ID from payments where the payment date isn't \"2018-03-20 21:38:41\" or the customer ID is less than or equal to 13, and also the highest customer ID from customers where the mobile phone number isn't \"1-387-258-1016x96963\" and the outstanding amount is 255?", "answer": {"columns": ["MAX(customer_id)"], "index": [0, 1], "data": [["1"], ["14"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_99r5h_15.png", "TableImg_Gwmd9_15.png"], "original_data_index": 2495, "original_sql": "SELECT MAX(customer_id) FROM Customer_Payments WHERE datetime_payment <> \"2018-03-20 21:38:41\" OR \"customer_id\" <= 13 UNION SELECT MAX(customer_id) FROM Customers WHERE cell_mobile_phone_number <> \"1-387-258-1016x96963\" AND \"amount_outstanding\" = 255.0"} {"question": "What are the school IDs for Jimtown or schools that are not Lancers and are AA and not in Walkerton, or schools that are not ID 4 and not in county 75 Starke, or have an enrollment of 620? Also, what are the school IDs for schools where the invested amount is less than or equal to 8335 and the budget invested percentage is not 42.9?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["2"], ["2"], ["3"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_Vdm62_8.png", "TableImg_65838_8.png"], "original_data_index": 2496, "original_sql": "SELECT School_id FROM School WHERE School_name = \"Jimtown\" OR Mascot <> \"Lancers\" AND IHSAA_Class = \"AA\" AND Location != \"Walkerton\" OR School_id <> \"4\" AND County <> \"75 Starke\" OR \"Enrollment\" = 620 UNION ALL SELECT School_id FROM budget WHERE \"Invested\" <= 8335 AND Budget_invested_percent <> \"42.9\""} {"question": "What are the ages of people in the head table who are over 68 and born in Florida, or whose name isn't Franklin Langham, or whose head ID isn't 5? Also, what are the ages of people in the head table who weren't born in California or are 43 years old?", "answer": {"columns": ["age"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["67"], ["68"], ["69"], ["52"], ["53"], ["69"], ["50"], ["56"], ["43"], ["67"], ["67"], ["69"], ["53"], ["50"], ["43"], ["67"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_93hfl_10.png", "TableImg_Tyn7y_10.png"], "original_data_index": 2499, "original_sql": "SELECT age FROM head WHERE \"age\" > 68.0 AND born_state = \"Florida\" OR name <> \"Franklin Langham\" OR \"head_ID\" != 5 UNION ALL SELECT age FROM head WHERE born_state != \"California\" OR \"age\" = 43.0"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_00wev_12.png", "TableImg_Ia8a6_5.png"], "original_data_index": 2498, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are not equal to 5, but are not also driver IDs from school buses with IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dji5v_12.png", "TableImg_Gcqxi_5.png"], "original_data_index": 2501, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are either less than or equal to 5 in the driver table or less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wix8o_12.png", "TableImg_Yqvny_5.png"], "original_data_index": 2503, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which contestant numbers are in both the contestants table (excluding Jessie Alloway or with a number of 8 or greater) and the votes table (excluding votes from NY, or with a phone number not equal to 7148407040, or with a contestant number of 5 or greater and created on March 9, 2018 at 7:03:40 PM)?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_M8h8h_11.png", "TableImg_Zapxl_4.png"], "original_data_index": 2504, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name <> \"Jessie Alloway\" OR \"contestant_number\" >= 8 INTERSECT SELECT contestant_number FROM VOTES WHERE state <> \"NY\" OR \"phone_number\" != 7148407040 OR \"contestant_number\" >= 5 AND created = \"2018-03-09 19:03:40\""} {"question": "What are the school ID, amount, and donor name for endowments where the school ID is greater than 7 and the donor name is not \"Com. Dom. En Estados Unidos\", or where the endowment ID is 9 and the amount is less than or equal to 9.73? Also, include the school ID, amount, and donor name for endowments where the amount is not 9.05 and the school ID is 1 and the endowment ID is greater than 9, or where the donor name is \"Santo Domingo Este\".", "answer": {"columns": ["School_id", "amount", "donator_name"], "index": [0, 1, 2], "data": [["6", "8.43", "Com. Dom. En Estados Unidos"], ["8", "8.33", "Peravia"], ["4", "8.99", "Santo Domingo Este"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_N614a_11.png", "TableImg_Yd3rp_11.png"], "original_data_index": 2502, "original_sql": "SELECT School_id, amount, donator_name FROM endowment WHERE \"School_id\" > 7 AND donator_name <> \"Com. Dom. En Estados Unidos\" OR \"endowment_id\" = 9 AND \"amount\" <= 9.73 UNION ALL SELECT School_id, amount, donator_name FROM endowment WHERE \"amount\" != 9.05 AND \"School_id\" = 1 AND \"endowment_id\" > 9 OR donator_name = \"Santo Domingo Este\""} {"question": "What are the driver IDs that are greater than or equal to 3 in the driver table, but not present in the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K11fy_12.png", "TableImg_2d45r_5.png"], "original_data_index": 2505, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and not equal to 2, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D9op8_5.png", "TableImg_Vxcjt_4.png"], "original_data_index": 2506, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 6 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4o3kt_12.png", "TableImg_64ttf_5.png"], "original_data_index": 2509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the other details from the Documents table, excluding those with receipt number \"124\", document status code \"working\", receipt date \"2008-04-21 20:42:25\", other details \"m\", or shipping agent code \"US\" and document type code \"Paper\" and document ID less than 15, but not including other details from the Employees table where the employee name is \"Koby\" and other details is \"u\" or employee ID is less than 3?", "answer": {"columns": ["other_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["n"], ["p"], ["q"], ["r"], ["u"], ["w"], ["y"], ["z"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_V0lks_15.png", "TableImg_6cn5x_6.png"], "original_data_index": 2507, "original_sql": "SELECT other_details FROM Documents WHERE receipt_number != \"124\" AND document_status_code != \"working\" AND receipt_date <> \"2008-04-21 20:42:25\" AND other_details != \"m\" OR shipping_agent_code != \"US\" AND document_type_code != \"Paper\" AND \"document_id\" < 15 EXCEPT SELECT other_details FROM Employees WHERE employee_name = \"Koby\" AND other_details = \"u\" OR \"employee_id\" < 3"} {"question": "What are the store names, minimum area sizes, and maximum types for stores that either aren't named \"Rogersville\", or have 1678 product categories, or don't have a ranking of 9 and have an area size less than 28.74, or have a store ID less than or equal to 3? Also, what are the store names, minimum area sizes, and maximum types for stores that have 793 product categories, a ranking less than or equal to 3, and an area size greater than or equal to 179.84, or are not named \"Blackville\"?", "answer": {"columns": ["Store_Name", "MIN(Area_size)", "MAX(Type)"], "index": [0], "data": [["Neguac", "7.23", "Village Store"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_Eckbf_5.png", "TableImg_Swviy_5.png"], "original_data_index": 2508, "original_sql": "SELECT Store_Name, MIN(Area_size), MAX(Type) FROM store WHERE Store_Name != \"Rogersville\" OR \"Number_of_product_category\" = 1678.0 OR \"Ranking\" <> 9 AND \"Area_size\" < 28.74 OR \"Store_ID\" <= 3 UNION SELECT Store_Name, MIN(Area_size), MAX(Type) FROM store WHERE \"Number_of_product_category\" = 793.0 AND \"Ranking\" <= 3 AND \"Area_size\" >= 179.84 OR Store_Name <> \"Blackville\""} {"question": "Which driver IDs are greater than or equal to 12 but not equal to 4, considering only those IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E8wva_12.png", "TableImg_Q3rt7_5.png"], "original_data_index": 2510, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are not equal to 5, but are not also driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z5w9k_12.png", "TableImg_11i7s_5.png"], "original_data_index": 2512, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that are either greater than or equal to 3 in the aircraft table, or not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L1pda_5.png", "TableImg_C6gxc_4.png"], "original_data_index": 2511, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the aircraft IDs where the distance is at most 7120 or the aircraft ID is at most 13, and also the aircraft IDs associated with certificate entries where the employee ID is 142519864 or the aircraft ID is greater than 11?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_444fe_16.png", "TableImg_Uvzar_69.png"], "original_data_index": 2513, "original_sql": "SELECT aid FROM aircraft WHERE \"distance\" <= 7120 OR \"aid\" <= 13 UNION SELECT aid FROM certificate WHERE \"eid\" = 142519864 OR \"aid\" > 11"} {"question": "What are the aircraft IDs, excluding aircraft ID 3, but not including aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I8h6b_5.png", "TableImg_Kwri5_4.png"], "original_data_index": 2514, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the people IDs and poker player IDs, grouped by best finish, where the earnings are 104871.0, or the height is less than 196.0 and the best finish is less than 3.0, or the nationality is not Russia and the birth date is not April 17, 1987 and the name is not Maksim Botin, or the final table made is not 42.0 and the poker player ID is greater than or equal to 1?", "answer": {"columns": ["People_ID", "Poker_Player_ID"], "index": [0, 1], "data": [["2", "2"], ["7", "5"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_N9jth_7.png", "TableImg_Kryzl_5.png"], "original_data_index": 2515, "original_sql": "SELECT T1.People_ID, T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID == T2.People_ID GROUP BY Best_Finish HAVING Earnings = 104871.0 OR Height < 196.0 AND Best_Finish < 3.0 OR Nationality <> \"Russia\" AND Birth_Date <> \"April 17, 1987\" AND Name <> \"Maksim Botin\" OR Final_Table_Made <> 42.0 AND Poker_Player_ID >= 1"} {"question": "What are the aircraft IDs, excluding ID 1, from the aircraft table, combined with the aircraft IDs, excluding ID 5, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1960e_5.png", "TableImg_Ded0e_4.png"], "original_data_index": 2517, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are greater than 9 in the driver table or greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I9i8u_12.png", "TableImg_T1fsr_5.png"], "original_data_index": 2519, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs that are less than 4 but not greater than 3, considering only the aircraft and airport-aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F8sdq_5.png", "TableImg_Hftg6_4.png"], "original_data_index": 2518, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What is the total sum of PetIDs for pets not owned by student 1002, combined with the sum of PetIDs for pets that are either older than 1 year, weigh 12.0, or are not dogs?", "answer": {"columns": ["SUM(PetID)"], "index": [0, 1], "data": [["2001"], ["4003"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Z0mct_3.png", "TableImg_70rkj_3.png"], "original_data_index": 2516, "original_sql": "SELECT SUM(PetID) FROM Has_Pet WHERE \"StuID\" <> 1002 UNION ALL SELECT SUM(PetID) FROM Pets WHERE \"pet_age\" > 1 OR \"weight\" = 12.0 OR PetType != \"dog\""} {"question": "What are the driver IDs that are less than 1, and also the driver IDs from school buses that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dym4w_12.png", "TableImg_7p11t_5.png"], "original_data_index": 2520, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are present in both the driver and school bus tables, where the driver ID is at least 8 in the driver table and at least 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dkkui_12.png", "TableImg_B650s_5.png"], "original_data_index": 2521, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are either 11 or less than or equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ds8on_12.png", "TableImg_Cmbt6_5.png"], "original_data_index": 2522, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs that are present in both the aircraft table (excluding aircraft ID 4) and the airport_aircraft table (with aircraft IDs greater than or equal to 1)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uc1fb_5.png", "TableImg_R9dz2_4.png"], "original_data_index": 2525, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are all the address IDs that received mail, excluding those mailed on November 4, 2010, or with an address ID greater than or equal to 0, combined with those that received mail, excluding those mailed on April 1, 1977, and not to address ID 7, or with document ID 12?", "answer": {"columns": ["mailed_to_address_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["8"], ["3"], ["9"], ["5"], ["3"], ["0"], ["7"], ["8"], ["4"], ["5"], ["2"], ["7"], ["8"], ["0"], ["3"], ["9"], ["5"], ["3"], ["0"], ["7"], ["8"], ["4"], ["5"], ["2"], ["8"], ["0"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_T6igc_14.png", "TableImg_Jxk8w_14.png"], "original_data_index": 2523, "original_sql": "SELECT mailed_to_address_id FROM Documents_Mailed WHERE mailing_date != \"2010-11-04 04:00:16\" OR \"mailed_to_address_id\" >= 0 UNION ALL SELECT mailed_to_address_id FROM Documents_Mailed WHERE mailing_date <> \"1977-04-01 17:03:50\" AND \"mailed_to_address_id\" <> 7 OR \"document_id\" = 12"} {"question": "Which customer IDs appear in both the Customer_Payments table (excluding payments made at a specific time, or with a specific amount, or with customer ID greater than 1, but including direct debit payments) and the Lessons table (where the lesson price is at least 352, the lesson date and time are not specific values, the lesson ID is not 8, the customer ID is not 6, or the lesson status is cancelled, and the staff ID is less than 11)?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2], "data": [["2"], ["3"], ["6"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_Nq1pu_15.png", "TableImg_Dz6x6_15.png"], "original_data_index": 2524, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment <> \"2018-02-03 15:04:36\" OR \"amount_payment\" <> 4032.33 AND payment_method_code = \"Direct Debit\" OR \"customer_id\" > 1 INTERSECT SELECT customer_id FROM Lessons WHERE \"price\" >= 352.0 AND lesson_date != \"2018-03-03 15:10:16\" AND \"lesson_id\" != 8 AND \"customer_id\" <> 6 AND lesson_time <> \"5\" OR lesson_status_code = \"Cancelled\" AND \"staff_id\" < 11"} {"question": "What are the aircraft IDs greater than 3, and also the aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V9if9_5.png", "TableImg_03nb6_4.png"], "original_data_index": 2526, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the aircraft IDs that are greater than 2 and also present in the airport aircraft table, excluding aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gws74_5.png", "TableImg_Q7dwz_4.png"], "original_data_index": 2528, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the driver IDs that are 10 or greater, but not driver IDs less than 3, considering the driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fxy0r_12.png", "TableImg_Czgge_5.png"], "original_data_index": 2527, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs greater than 4 from the driver table, combined with the driver IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nlciu_12.png", "TableImg_9tcrm_5.png"], "original_data_index": 2531, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the department ID, temporary acting status, and head ID for employees where the head ID is less than 10 or the department ID is less than 2 and they are temporarily acting, and also where the head ID is less than or equal to 3 or the department ID is less than 2?", "answer": {"columns": ["department_ID", "temporary_acting", "head_ID"], "index": [0], "data": [["7", "No", "3"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_Zsizl_5.png", "TableImg_Sxvdo_5.png"], "original_data_index": 2532, "original_sql": "SELECT department_ID, temporary_acting, head_ID FROM management WHERE \"head_ID\" < 10 OR \"department_ID\" < 2 AND temporary_acting = \"Yes\" INTERSECT SELECT department_ID, temporary_acting, head_ID FROM management WHERE \"head_ID\" <= 3 OR \"department_ID\" < 2"} {"question": "What is the sum of 'Maker' from 'car_makers' where the 'Id' is not 12, or the 'Country' is not \"1\", or the 'Maker' is not \"kia\", or the 'FullName' is \"General Motors\", combined with the sum of 'Maker' from 'model_list' where 'Maker' is less than 6?", "answer": {"columns": ["SUM(Maker)"], "index": [0, 1], "data": [["0"], ["43"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Rgbvc_22.png", "TableImg_0vi4c_36.png"], "original_data_index": 2530, "original_sql": "SELECT SUM(Maker) FROM car_makers WHERE \"Id\" <> 12 OR Country <> \"1\" AND Maker != \"kia\" OR FullName = \"General Motors\" UNION SELECT SUM(Maker) FROM model_list WHERE \"Maker\" < 6"} {"question": "Which driver IDs, excluding ID 10, are present in both the driver and school bus tables, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_25cdl_12.png", "TableImg_Sjef3_5.png"], "original_data_index": 2529, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the IDs of drivers who have an ID of 7 or higher, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N3tgm_12.png", "TableImg_Gz2s0_5.png"], "original_data_index": 2534, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What is the average country value for car makers that are not from country \"6\" and not \"amc\", combined with the average country value for car makers that are not \"Honda\"?", "answer": {"columns": ["AVG(Country)"], "index": [0, 1], "data": [["3.5789473684"], ["3.6666666667000003"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_8y319_22.png", "TableImg_Xqutj_22.png"], "original_data_index": 2536, "original_sql": "SELECT AVG(Country) FROM car_makers WHERE Country != \"6\" AND Maker <> \"amc\" UNION SELECT AVG(Country) FROM car_makers WHERE FullName <> \"Honda\""} {"question": "What are the aircraft IDs that are not 3 and are present in both the aircraft and airport_aircraft tables, where the airport_aircraft table has an Aircraft_ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E31kl_5.png", "TableImg_Ysl7n_4.png"], "original_data_index": 2535, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 9 from the driver table and including only driver IDs greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xkybx_12.png", "TableImg_G3n95_5.png"], "original_data_index": 2533, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are either less than or equal to 11 from the driver table, or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5cslk_12.png", "TableImg_E99wz_5.png"], "original_data_index": 2537, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 7, and where the driver ID is greater than or equal to 1?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xfdf0_12.png", "TableImg_Ix9p1_5.png"], "original_data_index": 2539, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which aircraft IDs are either aircraft ID 4 or aircraft IDs less than or equal to 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pteqj_5.png", "TableImg_Q15d2_4.png"], "original_data_index": 2540, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the driver IDs greater than 10 that are in the driver table but not in the school bus table, where driver IDs in the school bus table are also greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yotbl_12.png", "TableImg_56qmo_5.png"], "original_data_index": 2538, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What is the maximum enrollment and the amount invested for schools, considering conditions related to the year, investment amount, IHSAA class, football class, budget percentage, enrollment size, and location?", "answer": {"columns": ["MAX(T1.Enrollment)", "Invested"], "index": [0], "data": [["620", "140102"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_7xihh_8.png", "TableImg_Jtvfx_8.png"], "original_data_index": 2544, "original_sql": "SELECT MAX(T1.Enrollment), T2.Invested FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE \"Year\" <= 2005 OR \"Invested\" < 5840 AND IHSAA_Class = \"AAA\" AND IHSAA_Football_Class <> \"A\" AND \"total_budget_percent_budgeted\" < 2.0 OR \"Enrollment\" <= 620 OR Location <> \"Culver\""} {"question": "Which driver IDs are less than 7 but not equal to 10, considering only those present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Beebg_12.png", "TableImg_Us54x_5.png"], "original_data_index": 2543, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the template IDs that appear in both documents where the description isn't \"y\", or the template ID is 6, or the document name isn't \"Learning French\", and in templates where the details aren't empty or the template type code isn't \"BK\"?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["6"], ["7"], ["10"], ["14"], ["21"], ["22"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Ols37_15.png", "TableImg_O0bvx_20.png"], "original_data_index": 2542, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Description <> \"y\" OR \"Template_ID\" = 6 OR Document_Name != \"Learning French\" INTERSECT SELECT Template_ID FROM Templates WHERE Template_Details <> \"\" OR Template_Type_Code != \"BK\""} {"question": "Which customer IDs made a direct debit payment at \"2018-03-12 13:31:36\" or have the first name \"Jordy\" but a different phone number than \"417.136.2900x672\"?", "answer": {"columns": ["customer_id"], "index": [0], "data": [["4"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_5llwa_15.png", "TableImg_9ak8n_15.png"], "original_data_index": 2541, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment = \"2018-03-12 13:31:36\" AND payment_method_code = \"Direct Debit\" UNION SELECT customer_id FROM Customers WHERE first_name = \"Jordy\" AND phone_number != \"417.136.2900x672\""} {"question": "What are the driver IDs greater than 8 that are present in both the driver and school bus tables, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O10sx_12.png", "TableImg_Be08m_5.png"], "original_data_index": 2546, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and not equal to 2, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R2v0e_5.png", "TableImg_Zgicc_4.png"], "original_data_index": 2547, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the driver IDs, excluding driver ID 5, that are present in both the driver table and the school bus table, where the driver ID is greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H53rd_12.png", "TableImg_X98gg_5.png"], "original_data_index": 2548, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the area sizes and types of stores where the number of product categories is at least 1678 or the store type is \"Village Store\"? Also, what are the area sizes and types of stores where the area size is not 28.74, or the number of product categories is less than or equal to 17811, or the store name is not \"Neguac\" and the store ID is 3 and the ranking is at least 2?", "answer": {"columns": ["Area_size", "Type"], "index": [0, 1, 2, 3, 4], "data": [["7.23", "Village Store"], ["21.73", "Village Store"], ["26.69", "Village Store"], ["28.74", "City Mall"], ["179.84", "City Mall"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_Xwyk9_5.png", "TableImg_25gz1_5.png"], "original_data_index": 2545, "original_sql": "SELECT Area_size, Type FROM store WHERE \"Number_of_product_category\" >= 1678.0 OR Type = \"Village Store\" UNION SELECT Area_size, Type FROM store WHERE \"Area_size\" <> 28.74 OR \"Number_of_product_category\" <= 17811.0 OR Store_Name != \"Neguac\" AND \"Store_ID\" = 3 AND \"Ranking\" >= 2"} {"question": "What are the IDs of drivers, excluding driver 12, and also the IDs of school bus drivers, excluding driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hq4st_12.png", "TableImg_Bkgjy_5.png"], "original_data_index": 2550, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are greater than or equal to 1, excluding those driver IDs from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eeqxz_12.png", "TableImg_2on3n_5.png"], "original_data_index": 2549, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "How many employees received an award in 2016, and how many employees received a bonus greater than 3200 (excluding employee 7) in any year other than 2011?", "answer": {"columns": ["COUNT(Employee_ID)"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_Xszop_6.png", "TableImg_B45nb_6.png"], "original_data_index": 2551, "original_sql": "SELECT COUNT(Employee_ID) FROM evaluation WHERE Year_awarded = \"2016\" UNION SELECT COUNT(Employee_ID) FROM evaluation WHERE Year_awarded <> \"2011\" AND \"Bonus\" > 3200.0 AND Employee_ID != \"7\""} {"question": "What are the IDs of drivers who are in both the driver and school bus tables, excluding driver ID 5 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Myxkb_12.png", "TableImg_R7tyt_5.png"], "original_data_index": 2552, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are either 12 or greater, or 9 or less, based on the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jn3bx_12.png", "TableImg_M8zp3_5.png"], "original_data_index": 2555, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are either 9 or less than 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L704w_12.png", "TableImg_Su9fo_5.png"], "original_data_index": 2554, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that are not equal to 2, but are not present in the airport aircraft table with IDs less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7g79s_5.png", "TableImg_Qyrxd_4.png"], "original_data_index": 2556, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are greater than or equal to 12 but not equal to 9, considering only those IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ykm5r_12.png", "TableImg_Uwagq_5.png"], "original_data_index": 2553, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are not 9 and also appear in the school bus table with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2m48b_12.png", "TableImg_Xeu72_5.png"], "original_data_index": 2558, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are both greater than or equal to 10 and not equal to 4, considering only those IDs present in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ahjkk_12.png", "TableImg_Qrr8m_5.png"], "original_data_index": 2557, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the property type codes that are not \"House\" and not described as \"House, Bungalow, etc.\", combined with the property type codes that are not \"Shop\" or not described as \"House, Bungalow, etc.\"?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3, 4], "data": [["Apartment"], ["Field"], ["House"], ["Other"], ["Shop"]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_D04dx_5.png", "TableImg_4dwxt_5.png"], "original_data_index": 2559, "original_sql": "SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description != \"House, Bungalow, etc.\" AND property_type_code != \"House\" UNION SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code != \"Shop\" OR property_type_description <> \"House, Bungalow, etc.\""} {"question": "What are the receipt numbers, shipping agent codes, receipt dates, document status codes, document types, and document IDs for documents that meet either of these conditions: the document status is not overdue or the document type is not Paper and the receipt number is not 189, and also meet either of these conditions: the shipping agent code is not UP or the receipt date is not September 26, 1983, or the document status is overdue or the document type is CD?", "answer": {"columns": ["receipt_number", "shipping_agent_code", "receipt_date", "document_status_code", "document_type_code", "document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["114", "FE", "2005-09-30 00:10:02", "working", "Hard Drive", "24"], ["117", "FE", "2017-07-02 17:39:09", "working", "CD", "14"], ["124", "FE", "1999-04-17 14:19:32", "working", "Hard Drive", "23"], ["19", "UP", "2008-04-21 20:42:25", "working", "CD", "1"], ["34", "US", "1974-05-08 00:00:46", "done", "Paper", "2"], ["37", "UP", "1986-12-14 14:18:59", "overdue", "CD", "15"], ["61", "SH", "1982-09-27 14:52:15", "working", "CD", "7"], ["69", "US", "1996-05-31 06:51:58", "overdue", "Hard Drive", "12"], ["79", "UP", "2015-04-03 09:36:19", "working", "CD", "13"], ["80", "US", "1973-11-05 21:48:53", "done", "Paper", "4"], ["83", "AL", "1985-11-05 17:59:34", "overdue", "Hard Drive", "25"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_L3uuf_15.png", "TableImg_Rbagd_15.png"], "original_data_index": 2560, "original_sql": "SELECT receipt_number, shipping_agent_code, receipt_date, document_status_code, document_type_code, document_id FROM Documents WHERE document_status_code <> \"overdue\" OR document_type_code <> \"Paper\" AND receipt_number <> \"189\" INTERSECT SELECT receipt_number, shipping_agent_code, receipt_date, document_status_code, document_type_code, document_id FROM Documents WHERE shipping_agent_code <> \"UP\" AND receipt_date != \"1983-09-26 09:32:56\" OR document_status_code = \"overdue\" OR document_type_code = \"CD\""} {"question": "Which driver IDs are either less than or equal to 3, or equal to 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K9emz_12.png", "TableImg_39iy9_5.png"], "original_data_index": 2563, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are less than or equal to 4, excluding driver ID 4, based on the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Em8p4_12.png", "TableImg_Lxzv7_5.png"], "original_data_index": 2564, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs less than 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nm36k_12.png", "TableImg_1pl1s_5.png"], "original_data_index": 2561, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the IDs of aircraft that are not a CH-47D Chinook, or have a maximum gross weight of 50,000 lb (22,680 kg), or have a maximum disk loading of 14.5 lb/ft\u00b2 (71 kg/m\u00b2) and a total disk area not equal to 8,495 ft\u00b2 (789 m\u00b2), or have an aircraft ID not equal to 5? Also, what are the aircraft IDs from airport aircraft where the airport ID is not 1? Combine these results.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["1"], ["5"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hsgp2_5.png", "TableImg_Hwymz_4.png"], "original_data_index": 2562, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Aircraft != \"CH-47D Chinook\" OR Max_Gross_Weight = \"50,000 lb (22,680 kg)\" OR Max_disk_Loading = \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" AND Total_disk_area <> \"8,495 ft\u00b2 (789 m\u00b2)\" OR \"Aircraft_ID\" != 5 UNION ALL SELECT Aircraft_ID FROM airport_aircraft WHERE \"Airport_ID\" <> 1"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and also appear in the airport aircraft table with IDs less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8munc_5.png", "TableImg_1rypp_4.png"], "original_data_index": 2566, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the aircraft IDs that are not 5 and also appear in the airport aircraft table with IDs less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9x947_5.png", "TableImg_Jf3nv_4.png"], "original_data_index": 2567, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the driver IDs that are both less than or equal to 7 and also greater than 4, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Txorw_12.png", "TableImg_Hqjgv_5.png"], "original_data_index": 2565, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the minimum document status description and code for \"currently working on\", and what is the minimum document status description and code for all statuses except \"mailed late\"?", "answer": {"columns": ["MIN(document_status_description)", "document_status_code"], "index": [0], "data": [["currently working on", "working"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Sh6j1_3.png", "TableImg_Bj017_3.png"], "original_data_index": 2569, "original_sql": "SELECT MIN(document_status_description), document_status_code FROM Ref_Document_Status WHERE document_status_description = \"currently working on\" UNION SELECT MIN(document_status_description), document_status_code FROM Ref_Document_Status WHERE document_status_description <> \"mailed late\""} {"question": "What are the driver IDs that are both greater than or equal to 3 and also not equal to 9, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E2azr_12.png", "TableImg_6rmpv_5.png"], "original_data_index": 2570, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are both less than 12 and also appear in the school bus table with IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sorna_12.png", "TableImg_Olawu_5.png"], "original_data_index": 2571, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the average country ID, the sum of the continent values, and the average country name for Japan, excluding those results where the continent value is less than or equal to 2 and the country name is Nigeria?", "answer": {"columns": ["AVG(CountryId)", "SUM(Continent)", "AVG(CountryName)"], "index": [0], "data": [["4", "3", "0"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_171if_15.png", "TableImg_Yopm9_15.png"], "original_data_index": 2568, "original_sql": "SELECT AVG(CountryId), SUM(Continent), AVG(CountryName) FROM countries WHERE CountryName = \"japan\" EXCEPT SELECT AVG(CountryId), SUM(Continent), AVG(CountryName) FROM countries WHERE \"Continent\" <= 2 AND CountryName = \"nigeria\""} {"question": "Which driver IDs are not 12, and also which driver ID is 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xmthz_12.png", "TableImg_Mrsb4_5.png"], "original_data_index": 2575, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the IDs of airports not in Belgium, excluding the IDs of companies that are subsidiaries incorporated in Hong Kong but not named \"Cathay Pacific Catering Services (HK) Limited\", or companies with over 49% group equity shareholding and not primarily involved in cargo airlines?", "answer": {"columns": ["id"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Rgtzs_9.png", "TableImg_9ce0r_14.png"], "original_data_index": 2574, "original_sql": "SELECT id FROM airport WHERE Country != \"Belgium\" EXCEPT SELECT id FROM operate_company WHERE Type = \"Subsidiary\" AND name <> \"Cathay Pacific Catering Services (HK) Limited\" AND Incorporated_in = \"Hong Kong\" OR \"Group_Equity_Shareholding\" > 49.0 AND Principal_activities <> \"Cargo airline\""} {"question": "What employee IDs have certificate aid 8 and are held by employees with a salary of 289950, or a name other than Jennifer Thomas, or an employee ID less than or equal to 489456522, and also have certificate eid 355548984?", "answer": {"columns": ["eid"], "index": [0], "data": [["355548984"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Imvo6_69.png", "TableImg_Nhq70_31.png"], "original_data_index": 2573, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" = 355548984 AND \"aid\" = 8 INTERSECT SELECT eid FROM employee WHERE \"salary\" = 289950 OR name <> \"Jennifer Thomas\" OR \"eid\" <= 489456522"} {"question": "What are the user IDs that meet these conditions: either the user ID in the review table is greater than 2, or the item ID is less than 5 and the rating is not 6, or the account ID is less than or equal to 3 and the rank is not 7; and also have a user ID less than or equal to 3 and the name \"Helen\" in the user account table?", "answer": {"columns": ["u_id"], "index": [0], "data": [["1"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_3ytyr_7.png", "TableImg_Wsfim_7.png"], "original_data_index": 2572, "original_sql": "SELECT u_id FROM review WHERE \"u_id\" > 2 OR \"i_id\" < 5 AND \"rating\" <> 6 OR \"a_id\" <= 3 AND \"rank\" != 7 INTERSECT SELECT u_id FROM useracct WHERE \"u_id\" <= 3 AND name = \"Helen\""} {"question": "What are the driver IDs that are less than or equal to 1, and also the driver IDs that are greater than 10, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xxizt_12.png", "TableImg_B7hpp_5.png"], "original_data_index": 2577, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs that are present in both the driver and school bus tables, where the driver ID is no more than 6 in the driver table and no more than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Toiee_12.png", "TableImg_X9tyy_5.png"], "original_data_index": 2576, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the IDs and years of cars, grouped by their full names, where the number of cylinders is less than 6 and the year is after 1970, or the country is not \"1\", or the MPG is not \"16\" and the engine displacement is greater than 140.0, or the maker is not \"opel\" and the weight is 2904?", "answer": {"columns": ["Id", "Year"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["1", "1970"], ["3", "1970"], ["6", "1970"], ["7", "1970"], ["13", "1970"], ["9", "1970"], ["5", "1970"], ["11", "1970"], ["23", "1970"], ["22", "1970"], ["12", "1970"], ["8", "1970"], ["14", "1970"], ["15", "1970"], ["16", "1970"], ["17", "1970"], ["18", "1970"], ["19", "1970"], ["20", "1970"], ["2", "1970"], ["21", "1970"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_As10h_22.png", "TableImg_B6s61_406.png"], "original_data_index": 2578, "original_sql": "SELECT T1.Id, T2.Year FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id == T2.Id GROUP BY FullName HAVING Cylinders < 6 AND Year > 1970 OR Country <> \"1\" OR MPG <> \"16\" AND Edispl > 140.0 OR Maker <> \"opel\" AND Weight = 2904"} {"question": "What are the ranks from the match results where \"Small_Silver\" is greater than 10, \"Points\" is greater than 66, \"Bronze\" is greater than 9, \"Big_Silver\" is 7, and \"Gold\" is 12, combined with the ranks from players who are not \"Self Employed / Consultant\" and whose name is not \"Ron Strynadka\", or whose player ID is greater than 1, or who don't live in \"Birtle\", or who don't have 14097 votes?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["2nd"], ["3rd"], ["1st"], ["2nd"], ["1st"], ["2nd"], ["4th"], ["2nd"], ["3rd"], ["2nd"], ["1st"], ["1st"], ["3rd"], ["3rd"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Bhipu_6.png", "TableImg_1yk5j_14.png"], "original_data_index": 2579, "original_sql": "SELECT Rank FROM match_result WHERE \"Small_Silver\" > 10 AND \"Points\" > 66 AND \"Bronze\" > 9 AND \"Big_Silver\" = 7 AND \"Gold\" = 12 UNION ALL SELECT Rank FROM player WHERE Occupation != \"Self Employed / Consultant\" AND Player_name <> \"Ron Strynadka\" OR \"Player_ID\" > 1 AND Residence <> \"Birtle\" OR \"Votes\" <> 14097"} {"question": "Which driver IDs are greater than 6 but not found in the school bus table with IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_07yfe_12.png", "TableImg_Nl7zg_5.png"], "original_data_index": 2580, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which schools have a total budget percentage budgeted greater than 2.0, or have a donator name that is not \"San Jos\u00e9 de Ocoa\"?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_Lq3in_8.png", "TableImg_6gtmk_11.png"], "original_data_index": 2581, "original_sql": "SELECT School_id FROM budget WHERE \"total_budget_percent_budgeted\" > 2.0 UNION SELECT School_id FROM endowment WHERE donator_name <> \"San Jos\u00e9 de Ocoa\""} {"question": "Which aircraft have ID 4, or any aircraft ID other than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Arziv_5.png", "TableImg_Ogceq_4.png"], "original_data_index": 2582, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are not equal to 7, but are not also driver IDs from school buses with IDs of 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R6322_12.png", "TableImg_E4z9u_5.png"], "original_data_index": 2583, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Muqez_12.png", "TableImg_9pe2q_5.png"], "original_data_index": 2587, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0qyn2_12.png", "TableImg_5n5nw_5.png"], "original_data_index": 2586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which districts, excluding those headquartered in Bahawalpur City or with a city area of 147, have a district ID less than 7, a city population less than 314617, and are headquartered in Bahawalnagar City, but are not Hafizabad District? List the district name, city area, city population, and district ID.", "answer": {"columns": ["District_name", "City_Area", "City_Population", "District_ID"], "index": [0], "data": [["Bahawalnagar District", "13", "134936", "2"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_8f9h3_15.png", "TableImg_Ymmsz_15.png"], "original_data_index": 2585, "original_sql": "SELECT District_name, City_Area, City_Population, District_ID FROM district WHERE \"District_ID\" < 7 AND \"City_Population\" < 314617.0 AND Headquartered_City = \"Bahawalnagar City\" AND District_name != \"Hafizabad District\" EXCEPT SELECT District_name, City_Area, City_Population, District_ID FROM district WHERE Headquartered_City = \"Bahawalpur City\" OR \"City_Area\" = 147.0"} {"question": "What are the vehicle IDs for lessons with customer IDs of 11 or less and a lesson time that isn't \"4\" and a price of 495 or less, combined with the vehicle IDs for trucks with vehicle IDs of 2 or less?", "answer": {"columns": ["vehicle_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["3"], ["3"], ["2"], ["2"], ["2"], ["2"], ["1"], ["2"], ["2"], ["1"], ["2"], ["1"], ["1"], ["2"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_I5ea9_15.png", "TableImg_5w898_3.png"], "original_data_index": 2584, "original_sql": "SELECT vehicle_id FROM Lessons WHERE \"customer_id\" <= 11 AND lesson_time <> \"4\" AND \"price\" <= 495.0 UNION ALL SELECT vehicle_id FROM Vehicles WHERE vehicle_details = \"Truck\" AND \"vehicle_id\" <= 2"} {"question": "Which driver IDs are greater than 6 but not equal to 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wu4k7_12.png", "TableImg_Vd4h8_5.png"], "original_data_index": 2588, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs that are less than 4 in the driver table, combined with the driver IDs that are 4 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G48xb_12.png", "TableImg_1we3i_5.png"], "original_data_index": 2591, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Give me the district, name, location, manager's name, and shop ID for shops that are not shop ID 7 and not named \"FC Lahti\", or are located in \"Arto Tolsa Areena\" and \"Jakobstad\", excluding those managed by \"Job Dragtsma\" or not named \"FC Inter\" and not located in \"Jakobstad\" and have less than 3500 products.", "answer": {"columns": ["District", "Name", "Location", "Manager_name", "Shop_ID"], "index": [0, 1, 2, 3, 4], "data": [["Arto Tolsa Areena", "FC KooTeePee", "Kotka", "Tommi Kautonen", "6"], ["Finnair Stadium", "HJK", "Helsinki", "Antti Muurinen", "2"], ["Jakobstads Centralplan", "FF Jaro", "Jakobstad", "Mika Laurikainen", "5"], ["Tapiolan Urheilupuisto", "FC Honka", "Espoo", "Mika Lehkosuo", "3"], ["Tehtaan kentt\u00e4", "FC Haka", "Valkeakoski", "Olli Huttunen", "1"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_Pxl9s_9.png", "TableImg_Kn3oi_9.png"], "original_data_index": 2589, "original_sql": "SELECT District, Name, Location, Manager_name, Shop_ID FROM shop WHERE \"Shop_ID\" != 7 AND Name != \"FC Lahti\" OR District = \"Arto Tolsa Areena\" AND Location = \"Jakobstad\" EXCEPT SELECT District, Name, Location, Manager_name, Shop_ID FROM shop WHERE Manager_name = \"Job Dragtsma\" OR Name != \"FC Inter\" AND Location <> \"Jakobstad\" AND \"Number_products\" < 3500"} {"question": "What are the document IDs from the Documents table that don't have ID 17, or are of type \"CD\" and were not received on \"2008-04-21 20:42:25\", or have a status other than \"done\", or have \"q\" as other details, or have a receipt number other than \"19\", but are not document IDs from Draft_Copies where the document ID is less than 2 and the copy number is at least 15, or the draft number is less than or equal to 9?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["3"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["24"], ["25"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Kx88g_15.png", "TableImg_Hkn4x_8.png"], "original_data_index": 2590, "original_sql": "SELECT document_id FROM Documents WHERE \"document_id\" != 17 OR document_type_code = \"CD\" AND receipt_date <> \"2008-04-21 20:42:25\" OR document_status_code != \"done\" OR other_details = \"q\" OR receipt_number <> \"19\" EXCEPT SELECT document_id FROM Draft_Copies WHERE \"document_id\" < 2 AND \"copy_number\" >= 15 OR \"draft_number\" <= 9"} {"question": "What are the IDs of drivers, excluding driver 11, and the IDs of school bus drivers, excluding driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hd3gw_12.png", "TableImg_Qidgo_5.png"], "original_data_index": 2593, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are either 12 or less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pv05d_12.png", "TableImg_48fui_5.png"], "original_data_index": 2594, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are either less than or equal to 2 in the driver table or greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jmd54_12.png", "TableImg_Inkqo_5.png"], "original_data_index": 2595, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What is the total number of years worked, and the driver ID, for drivers who meet at least one of the following conditions: their driver ID is greater than 4 and they've worked for 2 or more years, or their school ID is less than 4, or they are full-time? Also, what is the total number of years worked, and the driver ID, for drivers who are full-time, or have worked for 8 or more years, or have a driver ID less than 4, or their school ID is 7 or less?", "answer": {"columns": ["SUM(Years_Working)", "Driver_ID"], "index": [0], "data": [["29", "10"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_6i05i_5.png", "TableImg_Qmvoa_5.png"], "original_data_index": 2592, "original_sql": "SELECT SUM(Years_Working), Driver_ID FROM school_bus WHERE \"Driver_ID\" > 4 AND \"Years_Working\" >= 2 OR \"School_ID\" < 4 OR If_full_time = \"T\" UNION SELECT SUM(Years_Working), Driver_ID FROM school_bus WHERE If_full_time = \"T\" OR \"Years_Working\" >= 8 OR \"Driver_ID\" < 4 OR \"School_ID\" <= 7"} {"question": "What are the driver IDs that are either less than or equal to 11 in the driver table or less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vy21g_12.png", "TableImg_Qm83q_5.png"], "original_data_index": 2599, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs greater than 10 from the driver table, combined with the driver IDs greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zfjgl_12.png", "TableImg_4fmlb_5.png"], "original_data_index": 2597, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the aircraft IDs that are both less than or equal to 5 and also greater than or equal to 3, considering only the aircraft and airport-aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pb36s_5.png", "TableImg_Xbv2b_4.png"], "original_data_index": 2596, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the ranks from the coach table where the coach ID is 3 or less, or the club ID is less than 1 and the gender is not male, combined with the ranks from the match results table where the points are not 84 and the rank is not 6, or the club ID is 4 or less?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["1"], ["2"], ["3"], ["4"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Ufofm_5.png", "TableImg_7wc4l_6.png"], "original_data_index": 2598, "original_sql": "SELECT Rank FROM coach WHERE \"Coach_ID\" <= 3 OR \"Club_ID\" < 1 AND Gender != \"M\" UNION ALL SELECT Rank FROM match_result WHERE \"Points\" != 84 AND \"Rank\" != 6 OR \"Club_ID\" <= 4"} {"question": "Which driver IDs are either 12 or not 9, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5oezc_12.png", "TableImg_Vogzt_5.png"], "original_data_index": 2601, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the DPI, color pages per minute, interface, max page size, and product ID for products that either don't have a max page size of 216mm x 356mm, have a color pages per minute of 3.0, a DPI not equal to 600.0, are not the Canon DR-2080C, have a product ID not equal to 6, don't have dimensions of 301 x 160 x 158, or don't have a USB 2.0 interface; or for products that either don't have dimensions of 289 x 51 x 38, have a product ID less than or equal to 4 and are the Xerox Travel Scanner 100, have a USB 2.0 interface, have a DPI not equal to 600.0, or have a max page size of 216mm x 355mm and a color pages per minute not equal to 30.0?", "answer": {"columns": ["dpi", "pages_per_minute_color", "interface", "max_page_size", "product_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["600", "3", "USB 2.0", "A4", "4"], ["600", "4", "USB 2.0", "A4", "3"], ["600", "10", "USB 2.0", "216mm x 356mm", "5"], ["600", "28", "USB 2.0", "A4", "2"], ["600", "30", "USB 2.0", "A4", "1"], ["600", "36", "USB 2.0", "216mm x 355mm", "6"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Qo89c_6.png", "TableImg_Yohn1_6.png"], "original_data_index": 2600, "original_sql": "SELECT dpi, pages_per_minute_color, interface, max_page_size, product_id FROM product WHERE max_page_size <> \"216mm x 356mm\" OR \"pages_per_minute_color\" = 3.0 OR \"dpi\" != 600.0 OR product != \"Canon DR-2080C\" OR \"product_id\" != 6 OR dimensions != \"301 x 160 x 158\" OR interface != \"USB 2.0\" UNION SELECT dpi, pages_per_minute_color, interface, max_page_size, product_id FROM product WHERE dimensions <> \"289 x 51 x 38\" OR \"product_id\" <= 4 AND product = \"Xerox Travel Scanner 100\" OR interface = \"USB 2.0\" OR \"dpi\" <> 600.0 OR max_page_size = \"216mm x 355mm\" AND \"pages_per_minute_color\" <> 30.0"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, from the aircraft table, combined with aircraft IDs greater than 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uf9m7_5.png", "TableImg_Kocl1_4.png"], "original_data_index": 2602, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the driver IDs that are 6 or greater, but not greater than 9, that are associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eoqxb_12.png", "TableImg_Bcauc_5.png"], "original_data_index": 2603, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the aircraft IDs greater than 2 that are not present in the airport aircraft table with IDs greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vo51x_5.png", "TableImg_9m5hc_4.png"], "original_data_index": 2607, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Which customer IDs meet all of these criteria: they don't have the email \"myrl.lind@example.net\", their last name isn't \"Grant\", their phone number isn't \"00659133944\", their birth date is \"1996-08-29 00:03:08\", and their customer address ID is at least 1, but they did not have a lesson on \"2018-03-17 19:02:07\"?", "answer": {"columns": ["customer_id"], "index": [0], "data": [["10"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_Zv0di_15.png", "TableImg_An0lr_15.png"], "original_data_index": 2608, "original_sql": "SELECT customer_id FROM Customers WHERE email_address != \"myrl.lind@example.net\" AND last_name <> \"Grant\" AND cell_mobile_phone_number <> \"00659133944\" AND date_of_birth = \"1996-08-29 00:03:08\" AND \"customer_address_id\" >= 1 EXCEPT SELECT customer_id FROM Lessons WHERE lesson_date = \"2018-03-17 19:02:07\""} {"question": "What are the names of employees who are not Jason Hobson or whose employee ID is greater than 4, combined with the names of shops not located in Kotka and not in Tapiolan Urheilupuisto?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["Andrew Sheridan"], ["FC Haka"], ["FC Inter"], ["FC Lahti"], ["FF Jaro"], ["George Chuter"], ["HJK"], ["IFK Mariehamn"], ["KuPS"], ["Lee Mears"], ["Louis Deacon"], ["Mark Regan"], ["Matt Stevens"], ["Phil Vickery"], ["Steve Borthwick"], ["Tim Payne"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_Vqwid_10.png", "TableImg_Gzp9x_9.png"], "original_data_index": 2609, "original_sql": "SELECT Name FROM employee WHERE Name != \"Jason Hobson\" OR \"Employee_ID\" > 4 UNION SELECT Name FROM shop WHERE Location != \"Kotka\" AND District != \"Tapiolan Urheilupuisto\""} {"question": "What are the aircraft IDs greater than 3 in the aircraft table, combined with the aircraft IDs that are at least 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sarog_5.png", "TableImg_Iwzv4_4.png"], "original_data_index": 2610, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which driver IDs are less than 7 but not equal to 4, considering only driver IDs from the driver table and excluding those from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tp835_12.png", "TableImg_7vkty_5.png"], "original_data_index": 2611, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are less than 4, excluding those driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P15kz_12.png", "TableImg_Gmt6n_5.png"], "original_data_index": 2612, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ifmx_12.png", "TableImg_Iyfen_5.png"], "original_data_index": 2613, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs, where the ID is 5 from the aircraft table, combined with all other aircraft IDs that are not 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5ofbu_5.png", "TableImg_Agew8_4.png"], "original_data_index": 2614, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the driver IDs that are either greater than or equal to 4 in the driver table, or are not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xuy81_12.png", "TableImg_Hb5zx_5.png"], "original_data_index": 2615, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the coach IDs and starting years for players where the player ID is greater than 3 or the starting year isn't 2013, and also for coaches where the coach ID isn't 1 and the starting year isn't 2011?", "answer": {"columns": ["Coach_ID", "Starting_year"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1", "2010"], ["1", "2011"], ["1", "2012"], ["2", "2013"], ["3", "2012"], ["3", "2011"], ["5", "2010"], ["2", "2013"], ["3", "2012"], ["5", "2010"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_Faght_7.png", "TableImg_Qo6dp_7.png"], "original_data_index": 2616, "original_sql": "SELECT Coach_ID, Starting_year FROM player_coach WHERE \"Player_ID\" > 3 OR \"Starting_year\" != 2013 UNION ALL SELECT Coach_ID, Starting_year FROM player_coach WHERE \"Coach_ID\" <> 1 AND \"Starting_year\" <> 2011"} {"question": "What is the average player ID and the sum of starting years, grouped by coach ID, excluding results where the starting year is 2013 or later and the coach ID is 1 or less, but including results where the coach ID is not 5 or the starting year is 2013 or earlier, from the player_coach table?", "answer": {"columns": ["AVG(Player_ID)", "SUM(Starting_year)", "Coach_ID"], "index": [0], "data": [["5.7142857143", "14079", "1"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_T4ixk_7.png", "TableImg_K6wzl_7.png"], "original_data_index": 2617, "original_sql": "SELECT AVG(Player_ID), SUM(Starting_year), Coach_ID FROM player_coach WHERE \"Coach_ID\" != 5 OR \"Starting_year\" <= 2013 OR \"Player_ID\" != 1 EXCEPT SELECT AVG(Player_ID), SUM(Starting_year), Coach_ID FROM player_coach WHERE \"Starting_year\" >= 2013 AND \"Coach_ID\" <= 1"} {"question": "For each number of employees, how many departments were created, considering departments where the ranking isn't 13, the budget is 59.7 billion, or the number of employees is less than 71436, excluding those with only one creation date? Also, for each number of employees, how many departments were created, considering departments where the number of employees isn't 36000, the department ID is 9 or less, or the name isn't \"Agriculture\" and the ranking is greater than 5 and the creation date isn't \"1966\", including those with one or more creation dates?", "answer": {"columns": ["Num_Employees", "COUNT(Creation)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["4487", "1"], ["10600", "1"], ["17347", "1"], ["30266", "1"], ["36000", "1"], ["58622", "1"], ["67000", "1"], ["71436", "1"], ["109832", "1"], ["112557", "1"], ["115897", "1"], ["116100", "1"], ["208000", "1"], ["235000", "1"], ["3000000", "1"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Cbgxl_15.png", "TableImg_Tdu2s_15.png"], "original_data_index": 2618, "original_sql": "SELECT Num_Employees, COUNT(Creation) FROM department WHERE \"Ranking\" <> 13 OR \"Budget_in_Billions\" = 59.7 OR \"Num_Employees\" < 71436.0 GROUP BY Num_Employees HAVING COUNT(Creation) != 1 UNION SELECT Num_Employees, COUNT(Creation) FROM department WHERE \"Num_Employees\" <> 36000.0 OR \"Department_ID\" <= 9 OR Name != \"Agriculture\" AND \"Ranking\" > 5 AND Creation <> \"1966\" GROUP BY Num_Employees HAVING COUNT(Creation) >= 1"} {"question": "Which driver IDs appear in both the 'driver' and 'school_bus' tables, grouped by school ID, where the party is not \"Dem\", or years working is 8, or if full-time is \"T\"?", "answer": {"columns": ["Driver_ID -1", "Driver_ID -2"], "index": [0, 1, 2, 3], "data": [["4", "4"], ["3", "3"], ["7", "7"], ["9", "9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8dh2d_12.png", "TableImg_V8h1g_5.png"], "original_data_index": 2619, "original_sql": "SELECT T1.Driver_ID, T2.Driver_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID == T2.Driver_ID GROUP BY School_ID HAVING Party <> \"Dem\" OR Years_Working = 8 OR If_full_time = \"T\""} {"question": "Which driver IDs are greater than 7 but not equal to 7, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D00x0_12.png", "TableImg_Nveq0_5.png"], "original_data_index": 2604, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the template IDs that are both associated with a document named \"About Korea\" and also have a version number of 2, a template ID less than or equal to 14, and either have non-empty template details, a template type code of \"BK\", or have different effective dates than \"1976-10-28 10:08:50\" and \"1983-07-16 21:16:16\"?", "answer": {"columns": ["Template_ID"], "index": [0], "data": [["11"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_N8kbo_15.png", "TableImg_Wuasb_20.png"], "original_data_index": 2605, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Name = \"About Korea\" INTERSECT SELECT Template_ID FROM Templates WHERE \"Version_Number\" = 2 AND \"Template_ID\" <= 14 AND Date_Effective_To != \"1976-10-28 10:08:50\" OR Template_Details <> \"\" OR Template_Type_Code = \"BK\" OR Date_Effective_From != \"1983-07-16 21:16:16\""} {"question": "Which branch IDs meet at least one of these conditions: opened in 2012 and not named Zytogorski, or the address isn't Valleys Place and the ID is greater than 6, or the city isn't Oxford, or the membership amount is 31; but exclude any branch IDs that were registered in 2016 with a member ID other than 8 and a branch ID of 2?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["7"], ["8"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_K62zi_8.png", "TableImg_9f7vy_8.png"], "original_data_index": 2606, "original_sql": "SELECT Branch_ID FROM branch WHERE Open_year = \"2012\" AND Name != \"Zytogorski\" OR Address_road != \"Valleys Place\" AND \"Branch_ID\" > 6 OR City != \"Oxford\" OR membership_amount = \"31\" EXCEPT SELECT Branch_ID FROM membership_register_branch WHERE Register_Year = \"2016\" AND \"Member_ID\" <> 8 AND Branch_ID = \"2\""} {"question": "What are the driver IDs that are either 6 or 7 or less, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xr8ra_12.png", "TableImg_Tn0kl_5.png"], "original_data_index": 2622, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are present in both the driver and school bus tables, excluding driver ID 6 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_17sgg_12.png", "TableImg_Utihr_5.png"], "original_data_index": 2621, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that appear in both the aircraft table and the airport_aircraft table, where the aircraft ID is at least 1 in the aircraft table and is equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jm1s1_5.png", "TableImg_Vll03_4.png"], "original_data_index": 2620, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs, excluding ID 11, are present in both the driver and school bus records, excluding ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_43006_12.png", "TableImg_P9l8w_5.png"], "original_data_index": 2623, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are less than 7 but not greater than or equal to 9, considering only the driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3nhii_12.png", "TableImg_Wn97v_5.png"], "original_data_index": 2627, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs greater than 10 that are in the driver table but not in the school bus table, where the school bus driver IDs are 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Towa6_12.png", "TableImg_6tpvx_5.png"], "original_data_index": 2624, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What is the maximum aircraft ID and the corresponding aircraft ID from the aircraft and airport aircraft tables, joined by the aircraft ID?", "answer": {"columns": ["MAX(T1.Aircraft_ID)", "Aircraft_ID"], "index": [0], "data": [["5", "5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z5y7t_5.png", "TableImg_Jm843_4.png"], "original_data_index": 2625, "original_sql": "SELECT MAX(T1.Aircraft_ID), T2.Aircraft_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Which driver IDs, excluding driver ID 11, are in the driver table, and also which driver IDs, up to and including 10, are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_94oez_12.png", "TableImg_4hrkw_5.png"], "original_data_index": 2626, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are equal to 5, or driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["5"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2v793_12.png", "TableImg_Th3aj_5.png"], "original_data_index": 2629, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What car makers are not Hyundai and have an ID other than 6 or are from a country other than 1 and have a full name of Citroen, and also what car maker makes the model capri?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["5"], ["amc"], ["bmw"], ["citroen"], ["daimler benz"], ["fiat"], ["ford"], ["gm"], ["honda"], ["kia"], ["mazda"], ["nissan"], ["opel"], ["peugeaut"], ["renault"], ["saab"], ["subaru"], ["toyota"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Ld82w_22.png", "TableImg_Qes1u_36.png"], "original_data_index": 2628, "original_sql": "SELECT Maker FROM car_makers WHERE Maker != \"hyundai\" AND \"Id\" <> 6 OR Country != \"1\" AND FullName = \"Citroen\" UNION SELECT Maker FROM model_list WHERE Model = \"capri\""} {"question": "Which driver IDs are greater than 11 in the driver table or not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yrvkm_12.png", "TableImg_Umoas_5.png"], "original_data_index": 2630, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the template IDs from documents named \"How to read a book\" with other details not \"None\" and description \"y\" or any document ID greater than 0, excluding template IDs from templates with version numbers less than 9, effective to dates not \"1998-05-12 12:51:29\", template details not empty, and template type codes not \"BK\"?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["4"], ["6"], ["8"], ["10"], ["11"], ["14"], ["20"], ["21"], ["22"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_5bkp7_15.png", "TableImg_Jtd5z_20.png"], "original_data_index": 2631, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Name = \"How to read a book\" AND Other_Details != \"None\" AND Document_Description = \"y\" OR \"Document_ID\" > 0 EXCEPT SELECT Template_ID FROM Templates WHERE \"Version_Number\" < 9 AND Date_Effective_To <> \"1998-05-12 12:51:29\" AND Template_Details != \"\" AND Template_Type_Code <> \"BK\""} {"question": "What are the aircraft IDs that are less than 3, but not present in the airport_aircraft table with aircraft IDs less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4ah2v_5.png", "TableImg_Qzfe8_4.png"], "original_data_index": 2634, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the aircraft IDs that are not 4 and also appear in the airport_aircraft table with an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9tqrj_5.png", "TableImg_7ttgq_4.png"], "original_data_index": 2633, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the driver IDs, excluding driver ID 12, from the driver table, and also the driver IDs, up to and including 3, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X6yzb_12.png", "TableImg_5mpsd_5.png"], "original_data_index": 2635, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are both equal to 9 and associated with a school bus with an ID greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Endwo_12.png", "TableImg_P78ck_5.png"], "original_data_index": 2632, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs greater than 4, combined with the aircraft IDs from airport_aircraft that are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6p364_5.png", "TableImg_37ri2_4.png"], "original_data_index": 2640, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What is the sum of the 'Template_Type_Code' where the code is \"PP\" or the description is not \"Presentation\", and also the sum of the 'Template_Type_Code' where the description is \"CV\"?", "answer": {"columns": ["SUM(Template_Type_Code)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Hu3th_5.png", "TableImg_33aqv_5.png"], "original_data_index": 2637, "original_sql": "SELECT SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Code = \"PP\" OR Template_Type_Description != \"Presentation\" UNION ALL SELECT SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Description = \"CV\""} {"question": "What are the driver IDs that are 7 or greater, excluding driver ID 9, based on the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2icrh_12.png", "TableImg_Stzyt_5.png"], "original_data_index": 2639, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What is the maximum ID and MPG for cars made in or after 1974 with 150 horsepower and an MPG other than 38, or an engine displacement greater than 140.0, or an acceleration of 16.0, or a full name other than Citroen, or a maker that is citroen, grouped by the number of cylinders, but excluding those with a full name of Subaru, a maker that is renault, and a weight less than 3459, or an acceleration of 12.2, or 8 cylinders and an engine displacement other than 351.0, or a horsepower other than 180 and an MPG of 13 and a year of 1974 or later and a country other than 3?", "answer": {"columns": ["MAX(T1.Id)", "MPG"], "index": [0, 1, 2], "data": [["21", "24"], ["23", "18"], ["20", "14"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Zg48u_22.png", "TableImg_Kva64_406.png"], "original_data_index": 2636, "original_sql": "SELECT MAX(T1.Id), T2.MPG FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE \"Year\" >= 1974 AND Horsepower = \"150\" AND MPG <> \"38\" OR \"Edispl\" > 140.0 OR \"Accelerate\" = 16.0 OR FullName <> \"Citroen\" OR Maker = \"citroen\" GROUP BY Cylinders HAVING FullName <> \"Subaru\" AND Maker <> \"renault\" AND Weight >= 3459 OR Accelerate <> 12.2 OR Cylinders = 8 AND Edispl <> 351.0 OR Horsepower <> \"180\" AND MPG = \"13\" AND Year >= 1974 AND Country <> \"3\""} {"question": "What are the IDs of drivers, excluding driver 7, and what are the IDs of school buses, excluding bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ujy37_12.png", "TableImg_8zlyl_5.png"], "original_data_index": 2641, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs less than or equal to 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dyb7y_12.png", "TableImg_H2ial_5.png"], "original_data_index": 2643, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are not equal to 3, but are not also driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S2v28_12.png", "TableImg_V3kwy_5.png"], "original_data_index": 2644, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Find the average sex, minimum last name, advisor, first name, and student ID for students who meet the following conditions: either their advisor is 8723, or their major is not 600, or their age is greater than 18, their sex is not \"F\", and their city code is not \"BOS\", or their student ID is greater than or equal to 1021, their last name is not \"Pang\", and their first name is not \"William\"; and also meet the following conditions: either their student ID is less than 1023 or their first name is not \"Mark\".", "answer": {"columns": ["AVG(Sex)", "MIN(LName)", "Advisor", "Fname", "StuID"], "index": [0], "data": [["0", "Adams", "1148", "David", "1011"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_8d7yq_34.png", "TableImg_I8xze_34.png"], "original_data_index": 2642, "original_sql": "SELECT AVG(Sex), MIN(LName), Advisor, Fname, StuID FROM Student WHERE \"Advisor\" = 8723 OR \"Major\" != 600 OR \"Age\" > 18 AND Sex <> \"F\" AND city_code <> \"BOS\" OR \"StuID\" >= 1021 AND LName != \"Pang\" AND Fname <> \"William\" INTERSECT SELECT AVG(Sex), MIN(LName), Advisor, Fname, StuID FROM Student WHERE \"StuID\" < 1023 OR Fname <> \"Mark\""} {"question": "Which driver IDs are equal to 1 but not greater than or equal to 7, considering the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fxus3_12.png", "TableImg_Ek3jp_5.png"], "original_data_index": 2645, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are less than or equal to 8, but not equal to 9, considering only those present in the 'driver' table but not in the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E2guq_12.png", "TableImg_Zdica_5.png"], "original_data_index": 2646, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs that are equal to 6, excluding those driver IDs greater than 3 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2e9m4_12.png", "TableImg_T009r_5.png"], "original_data_index": 2648, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the document IDs that satisfy at least one of the following: the draft number is 17 or less, the document ID is 10, or the draft details are not \"w\", but are not document IDs where the draft number is less than 20 and the document ID is not 1?", "answer": {"columns": ["document_id"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Vyk0p_15.png", "TableImg_0kpc7_15.png"], "original_data_index": 2647, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"draft_number\" <= 17 OR \"document_id\" = 10 OR draft_details != \"w\" EXCEPT SELECT document_id FROM Document_Drafts WHERE \"draft_number\" < 20 AND \"document_id\" <> 1"} {"question": "What are the aircraft IDs that are less than 5, and also the aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4146a_5.png", "TableImg_Sae34_4.png"], "original_data_index": 2650, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the location, minimum school name, grade, and minimum school type for schools where the school is \"Occidental College\" or the school ID is greater than 5 and not located in \"New York City\", combined with the results for schools where the grade is not \"5th-12th grade\" or the school ID is not 1?", "answer": {"columns": ["Location", "MIN(School)", "Grade", "MIN(Type)"], "index": [0, 1], "data": [["Honolulu, Hawaii", "Columbia University", "5th-12th grade", "Private"], ["Los Angeles, California", "Harvard Law School", "Freshman\u2013Sophomore year", "Private"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Dcedd_7.png", "TableImg_Ch5gb_7.png"], "original_data_index": 2649, "original_sql": "SELECT Location, MIN(School), Grade, MIN(Type) FROM school WHERE School = \"Occidental College\" OR \"School_ID\" > 5 AND Location != \"New York City\" UNION SELECT Location, MIN(School), Grade, MIN(Type) FROM school WHERE Grade != \"5th-12th grade\" OR \"School_ID\" <> 1"} {"question": "Which driver IDs are in either the driver or school bus tables, excluding driver ID 6 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hgsur_12.png", "TableImg_41n41_5.png"], "original_data_index": 2651, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are not equal to 8 and are not present in the school bus table with driver IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_71hlu_12.png", "TableImg_8dg8f_5.png"], "original_data_index": 2652, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are not equal to 9 but are not also driver IDs from school buses with IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ofrw4_12.png", "TableImg_W1gxp_5.png"], "original_data_index": 2656, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What is the smallest club ID that is not 3, and also the smallest club ID of a coach who is not female or has a rank of 4 or less?", "answer": {"columns": ["MIN(Club_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Fqocc_6.png", "TableImg_Fbls9_5.png"], "original_data_index": 2654, "original_sql": "SELECT MIN(Club_ID) FROM club WHERE \"Club_ID\" <> 3 INTERSECT SELECT MIN(Club_ID) FROM coach WHERE Gender <> \"F\" OR \"Rank\" <= 4"} {"question": "Which driver IDs are less than 4 but not present in the school bus table with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wygcw_12.png", "TableImg_92o25_5.png"], "original_data_index": 2653, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs greater than 6 that are also driver IDs equal to 9, considering information from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K0u56_12.png", "TableImg_Ohv1b_5.png"], "original_data_index": 2655, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are either 11 or greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tekfn_12.png", "TableImg_563ti_5.png"], "original_data_index": 2657, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are less than 12 but not present in the school bus table with IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ocspk_12.png", "TableImg_V196m_5.png"], "original_data_index": 2658, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the feature IDs, descriptions, types, and names of features named \"AirCon\" that are not \"Swimming Pool\" and also features that either aren't \"Security\" or are \"Swimming Pool\"?", "answer": {"columns": ["feature_id", "feature_description", "feature_type_code", "feature_name"], "index": [0], "data": [["2", "Air Conditioning.", "Amenity", "AirCon"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_9jomp_3.png", "TableImg_9veic_3.png"], "original_data_index": 2659, "original_sql": "SELECT feature_id, feature_description, feature_type_code, feature_name FROM Other_Available_Features WHERE feature_description != \"Swimming Pool.\" AND feature_name = \"AirCon\" INTERSECT SELECT feature_id, feature_description, feature_type_code, feature_name FROM Other_Available_Features WHERE feature_type_code <> \"Security\" OR feature_description = \"Swimming Pool.\""} {"question": "What are the total city values, names, and opening years for branches in Oxford or not named Cochrane, and also for branches where the address is not Concord Road, the opening year isn't 2009, or the city is London, or the name isn't Alexandre?", "answer": {"columns": ["SUM(City)", "Name", "Open_year"], "index": [0], "data": [["0", "Alexandre", "2001"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_84zqo_8.png", "TableImg_Bngzh_8.png"], "original_data_index": 2660, "original_sql": "SELECT SUM(City), Name, Open_year FROM branch WHERE City = \"Oxford\" OR Name <> \"Cochrane\" INTERSECT SELECT SUM(City), Name, Open_year FROM branch WHERE Address_road <> \"Concord Road\" AND Open_year != \"2009\" OR City = \"London\" OR Name <> \"Alexandre\""} {"question": "What are the driver IDs that are less than 6 and also appear in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K4xp3_12.png", "TableImg_Nkmr8_5.png"], "original_data_index": 2661, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 3, and also the aircraft IDs from airport-aircraft, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E1wxe_5.png", "TableImg_Fdkzj_4.png"], "original_data_index": 2662, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the driver IDs that are both less than or equal to 7 and also not equal to 9, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ikdnr_12.png", "TableImg_T45wl_5.png"], "original_data_index": 2663, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are either less than or equal to 2, or not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lvimy_5.png", "TableImg_4mzm2_4.png"], "original_data_index": 2666, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs are not equal to 9, but are not present in the school bus table with driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gl8zc_12.png", "TableImg_R9orf_5.png"], "original_data_index": 2664, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What start years are associated with clubs that started in 2001, have a club ID less than 5, or are not named \"Djurg\u00e5rdens IF\" and are not in the \"USA\", but not including the start year 2000?", "answer": {"columns": ["Start_year"], "index": [0, 1, 2, 3, 4], "data": [["1998"], ["2001"], ["2005"], ["2009"], ["2011"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_U171t_6.png", "TableImg_L6kso_6.png"], "original_data_index": 2667, "original_sql": "SELECT Start_year FROM club WHERE \"Start_year\" = 2001 OR \"Club_ID\" < 5 OR Club_name != \"Djurg\u00e5rdens IF\" AND Region != \"USA\" EXCEPT SELECT Start_year FROM club WHERE \"Start_year\" = 2000"} {"question": "What are the driver IDs, excluding driver ID 9, that are present in both the driver and school bus tables, where the school bus driver ID is 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zsh21_12.png", "TableImg_2abx8_5.png"], "original_data_index": 2665, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are less than or equal to 5 in the driver table but not greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wl8oq_12.png", "TableImg_1iiyc_5.png"], "original_data_index": 2668, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What is the minimum allergy for allergy types that are not \"food\" or allergies that are not \"Rodent\", combined with the minimum allergy for students with an ID of 1027 or higher?", "answer": {"columns": ["MIN(Allergy)"], "index": [0, 1], "data": [["Anchovies"], ["Eggs"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_Jb1gr_14.png", "TableImg_Zpir9_59.png"], "original_data_index": 2669, "original_sql": "SELECT MIN(Allergy) FROM Allergy_Type WHERE AllergyType <> \"food\" OR Allergy <> \"Rodent\" UNION SELECT MIN(Allergy) FROM Has_Allergy WHERE \"StuID\" >= 1027"} {"question": "What is the maximum allergy type and the allergy for all allergy types except \"animal\", and also what is the maximum allergy type and the allergy for all allergies except \"Ragweed\"?", "answer": {"columns": ["MAX(AllergyType)", "Allergy"], "index": [0], "data": [["food", "Eggs"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_07gda_14.png", "TableImg_9g7df_14.png"], "original_data_index": 2670, "original_sql": "SELECT MAX(AllergyType), Allergy FROM Allergy_Type WHERE AllergyType != \"animal\" UNION SELECT MAX(AllergyType), Allergy FROM Allergy_Type WHERE Allergy <> \"Ragweed\""} {"question": "Which employees, excluding Haley, have \"b\" in their other details and also either have other details not equal to \"f\" or a role code that is not \"ED\"?", "answer": {"columns": ["employee_id", "employee_name", "other_details"], "index": [0], "data": [["5", "Clemens", "b"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_7flfn_6.png", "TableImg_F4i2s_6.png"], "original_data_index": 2671, "original_sql": "SELECT employee_id, employee_name, other_details FROM Employees WHERE other_details = \"b\" AND employee_name != \"Haley\" INTERSECT SELECT employee_id, employee_name, other_details FROM Employees WHERE other_details <> \"f\" OR role_code != \"ED\" AND employee_name != \"Haley\""} {"question": "What are the driver IDs that are not 7 and are in the driver table, but not in the school bus table with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_71m5r_12.png", "TableImg_J61zd_5.png"], "original_data_index": 2675, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are both greater than or equal to 4 and less than or equal to 10, considering only those drivers who are in the driver table and also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hezbr_12.png", "TableImg_Wf98c_5.png"], "original_data_index": 2673, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which aircraft have ID 5, and which aircraft have an ID greater than 3, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iofil_5.png", "TableImg_75xl0_4.png"], "original_data_index": 2674, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Which driver IDs are less than or equal to 6, excluding driver ID 9, considering only the driver table and the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mrr2k_12.png", "TableImg_Nd5rj_5.png"], "original_data_index": 2672, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the makers and the earliest model for each, excluding BMW models and models where the maker is 22, or where the ModelId is greater than 20? Also, what are the makers and the earliest model for each, where the maker is 16 or the model is not a Peugeot?", "answer": {"columns": ["Maker", "MIN(Model)"], "index": [0, 1], "data": [["1", "amc"], ["1", "amc"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_4fe66_36.png", "TableImg_2olgn_36.png"], "original_data_index": 2678, "original_sql": "SELECT Maker, MIN(Model) FROM model_list WHERE Model <> \"bmw\" AND \"Maker\" <> 22 OR \"ModelId\" > 20 UNION ALL SELECT Maker, MIN(Model) FROM model_list WHERE \"Maker\" = 16 OR Model != \"peugeot\""} {"question": "What are the driver IDs that are either less than or equal to 2 or greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_61b20_12.png", "TableImg_Ph484_5.png"], "original_data_index": 2677, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the employee IDs of employees named Andrew Sheridan who don't live in Bath, combined with the employee IDs of those who work at shop 1 or started before 2003?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Fp2rx_10.png", "TableImg_5y7yz_7.png"], "original_data_index": 2679, "original_sql": "SELECT Employee_ID FROM employee WHERE Name = \"Andrew Sheridan\" AND City != \"Bath\" UNION SELECT Employee_ID FROM hiring WHERE \"Shop_ID\" = 1 OR Start_from != \"2003\""} {"question": "What are the last names and dates of birth of customers with an address ID greater than 1, combined with the last names and dates of birth of staff who are not nicknamed \"norma73\" and don't have \"Mayra\" as a middle name, and were not hired on \"2017-04-27 03:21:26\", or have a staff address ID of 1, or have a date of birth of \"2015-08-10 11:37:39\", or have a first name of \"Simeon\"?", "answer": {"columns": ["last_name", "date_of_birth"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["Bernhard", "1998-12-15 13:24:40"], ["Bruen", "1991-02-10 00:42:17"], ["Carroll", "1996-03-09 08:19:49"], ["Doyle", "1995-06-03 08:09:17"], ["Durgan", "2005-05-02 06:23:36"], ["Grant", "1996-05-23 01:21:54"], ["Hermann", "2003-01-16 06:29:11"], ["Herzog", "2015-08-10 11:37:39"], ["Jast", "2000-06-13 18:09:11"], ["Kohler", "1994-05-07 01:32:16"], ["Kuphal", "2000-11-16 06:55:12"], ["Leuschke", "1993-07-09 11:11:36"], ["Macejkovic", "2007-06-11 20:03:28"], ["Maggio", "1998-04-27 12:55:05"], ["Mertz", "1991-12-05 02:50:15"], ["Mertz", "1994-05-17 05:32:11"], ["Mraz", "2004-05-19 14:11:13"], ["Ortiz", "1994-06-21 01:34:56"], ["Rogahn", "1996-09-24 09:51:42"], ["Schmeler", "1988-09-19 14:45:56"], ["Spinka", "1993-03-08 08:48:42"], ["Terry", "1995-07-17 12:13:16"], ["Trantow", "1998-09-18 04:45:01"], ["Tromp", "1993-02-07 05:40:26"], ["Turner", "1997-03-29 10:55:45"], ["Weissnat", "2015-08-01 13:22:43"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_1bp5i_15.png", "TableImg_2ucnd_15.png"], "original_data_index": 2676, "original_sql": "SELECT last_name, date_of_birth FROM Customers WHERE \"customer_address_id\" > 1 UNION SELECT last_name, date_of_birth FROM Staff WHERE nickname != \"norma73\" AND middle_name <> \"Mayra\" AND date_joined_staff != \"2017-04-27 03:21:26\" OR \"staff_address_id\" = 1 OR date_of_birth = \"2015-08-10 11:37:39\" OR first_name = \"Simeon\""} {"question": "Which driver IDs are not equal to 11 but are in the driver table and not in the school bus table where the driver ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rwks5_12.png", "TableImg_Ci9ow_5.png"], "original_data_index": 2682, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the document IDs where the copy number is 4 or less, or the document IDs from mailed documents that were not mailed on April 1st, 1977?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["20"], ["23"], ["24"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Fsntx_4.png", "TableImg_1itdq_14.png"], "original_data_index": 2681, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"copy_number\" <= 4 OR \"document_id\" >= 2 UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date != \"1977-04-01 17:03:50\""} {"question": "What are the car maker IDs and countries, along with the counts of full names and makers, for car makers where the ID is not 23 and the country is not \"6\", combined with the same information for car makers where the maker is not \"triumph\" and the ID is 5 or less?", "answer": {"columns": ["Id", "Country", "COUNT(FullName)", "COUNT(Maker)"], "index": [0, 1], "data": [["1", "1", "19", "19"], ["1", "1", "5", "5"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_B6lg5_22.png", "TableImg_Bsxex_22.png"], "original_data_index": 2680, "original_sql": "SELECT Id, Country, COUNT(FullName), COUNT(Maker) FROM car_makers WHERE \"Id\" <> 23 AND Country <> \"6\" UNION ALL SELECT Id, Country, COUNT(FullName), COUNT(Maker) FROM car_makers WHERE Maker != \"triumph\" AND \"Id\" <= 5"} {"question": "Which aircraft IDs are equal to 1, or are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1b1qq_5.png", "TableImg_D44df_4.png"], "original_data_index": 2684, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs that are both less than or equal to 8 and also greater than 4, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nooau_12.png", "TableImg_M32e8_5.png"], "original_data_index": 2683, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the property type codes that are either \"Field\" or not described as \"Field, Meadow.\", but are not described as \"Shop, Retail Outlet.\"?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3], "data": [["Apartment"], ["Field"], ["House"], ["Other"]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Of1yf_5.png", "TableImg_8bkl5_5.png"], "original_data_index": 2688, "original_sql": "SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code = \"Field\" OR property_type_description != \"Field, Meadow.\" EXCEPT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description = \"Shop, Retail Outlet.\""} {"question": "What are the aircraft IDs that are not 3 and are in the aircraft table, but not in the airport_aircraft table with IDs greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ssakv_5.png", "TableImg_0kn8j_4.png"], "original_data_index": 2686, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the driver IDs, excluding driver ID 9, that are present in both the driver and school bus tables, where the driver ID in the school bus table is less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E278y_12.png", "TableImg_Tdakm_5.png"], "original_data_index": 2685, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "How many aircraft names have a distance greater than or equal to 2128 and an aid less than 1, and how does that compare to the number of aircraft names with a distance less than or equal to 4103 and an aid greater than or equal to 14?", "answer": {"columns": ["COUNT(name)"], "index": [0], "data": [["0"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_3am7r_16.png", "TableImg_Uzo6e_16.png"], "original_data_index": 2687, "original_sql": "SELECT COUNT(name) FROM aircraft WHERE \"aid\" < 1 AND \"distance\" >= 2128 IN (SELECT COUNT(name) FROM aircraft WHERE \"distance\" <= 4103 AND \"aid\" >= 14)"} {"question": "What are the aircraft IDs that are not 4 and also appear in the airport aircraft table with IDs less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z5ybj_5.png", "TableImg_7sd1t_4.png"], "original_data_index": 2690, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 6 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pmqka_12.png", "TableImg_Boyyw_5.png"], "original_data_index": 2689, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are not equal to 12 and are not present in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wzii2_12.png", "TableImg_Htoj8_5.png"], "original_data_index": 2692, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which car makers have an ID less than or equal to 12 or a full name that isn't Chrysler, and also which makers have a model that isn't triumph and a model ID greater than 24 or a maker ID of 13?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "data": [["2"], ["4"], ["6"], ["13"], ["16"], ["17"], ["18"], ["19"], ["21"], ["22"], ["23"], ["amc"], ["bmw"], ["chrysler"], ["citroen"], ["daimler benz"], ["fiat"], ["ford"], ["gm"], ["honda"], ["hyundai"], ["kia"], ["mazda"], ["nissan"], ["opel"], ["peugeaut"], ["renault"], ["saab"], ["subaru"], ["toyota"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_5s7ex_22.png", "TableImg_1oi37_36.png"], "original_data_index": 2693, "original_sql": "SELECT Maker FROM car_makers WHERE \"Id\" <= 12 OR FullName != \"Chrysler\" UNION SELECT Maker FROM model_list WHERE Model <> \"triumph\" AND \"ModelId\" > 24 OR \"Maker\" = 13"} {"question": "What are the branch IDs of branches located in London that are not on Glebe Street, or have a name different from Brooke Greville, or have a membership amount of 31, or opened in 2001? Also, what are the branch IDs from purchase records where the total pounds is greater than 321.13 and the member ID is not 4, or the branch ID is 3, or the year is 2018?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["3"], ["5"], ["1"], ["1"], ["5"], ["6"], ["2"], ["3"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Inpqe_8.png", "TableImg_F28fe_8.png"], "original_data_index": 2691, "original_sql": "SELECT Branch_ID FROM branch WHERE Address_road <> \"Glebe Street\" AND City = \"London\" OR Name != \"Brooke Greville\" OR membership_amount = \"31\" OR Open_year = \"2001\" UNION ALL SELECT Branch_ID FROM purchase WHERE \"Total_pounds\" > 321.13 AND \"Member_ID\" != 4 OR Branch_ID = \"3\" OR Year = \"2018\""} {"question": "What are the titles and IDs of albums with IDs less than or equal to 25, excluding those titles and IDs found in the employees table where the employee's reports_to value is not 2, and the ID is greater than or equal to 7, and the city is not Lethbridge, and the phone number is not \"+1 (780) 428-9482\", or the birth date is December 8, 1958, or the postal code is T1H 1Y8 and the address is not \"11120 Jasper Ave NW\"?", "answer": {"columns": ["title", "id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], "data": [["Afrociberdelia", "24"], ["Alcohol Fueled Brewtality Live! [Disc 1]", "14"], ["Alcohol Fueled Brewtality Live! [Disc 2]", "15"], ["Audioslave", "10"], ["BackBeat Soundtrack", "12"], ["Balls to the Wall", "2"], ["Big Ones", "5"], ["Black Sabbath", "16"], ["Black Sabbath Vol. 4 (Remaster)", "17"], ["Body Count", "18"], ["Chemical Wedding", "19"], ["Da Lama Ao Caos", "25"], ["Facelift", "7"], ["For Those About To Rock We Salute You", "1"], ["Jagged Little Pill", "6"], ["Let There Be Rock", "4"], ["Minha Historia", "23"], ["Out Of Exile", "11"], ["Plays Metallica By Four Cellos", "9"], ["Prenda Minha", "21"], ["Restless and Wild", "3"], ["Sozinho Remix Ao Vivo", "22"], ["The Best Of Billy Cobham", "13"], ["The Best Of Buddy Guy - The Millenium Collection", "20"], ["Warner 25 Anos", "8"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_Gpa02_347.png", "TableImg_0ibj8_8.png"], "original_data_index": 2695, "original_sql": "SELECT title, id FROM albums WHERE \"id\" <= 25 EXCEPT SELECT title, id FROM employees WHERE \"reports_to\" <> 2.0 AND \"id\" >= 7 AND city != \"Lethbridge\" AND phone != \"+1 (780) 428-9482\" OR birth_date = \"1958-12-08 00:00:00\" OR postal_code = \"T1H 1Y8\" AND address <> \"11120 Jasper Ave NW\""} {"question": "Give me the student ID, the count of each sex, the average first name, the last name, the age, and the city code for students where the first name is Michael, or the sex is not male and the age is at least 19, or the last name is not Schmidt. Also, include the same information for students where the student ID is 1008, or the last name is not Prater, or the age is less than 17 and the advisor is greater than 2192, or the sex is male and the major is greater than 50.", "answer": {"columns": ["StuID", "COUNT(Sex)", "AVG(Fname)", "LName", "Age", "city_code"], "index": [0, 1], "data": [["1001", "34", "0", "Smith", "18", "BAL"], ["1001", "33", "0", "Smith", "18", "BAL"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_60bk4_34.png", "TableImg_4dm6h_34.png"], "original_data_index": 2694, "original_sql": "SELECT StuID, COUNT(Sex), AVG(Fname), LName, Age, city_code FROM Student WHERE Fname = \"Michael\" OR Sex <> \"M\" AND \"Age\" >= 19 OR LName != \"Schmidt\" UNION ALL SELECT StuID, COUNT(Sex), AVG(Fname), LName, Age, city_code FROM Student WHERE \"StuID\" = 1008 OR LName != \"Prater\" OR \"Age\" < 17 AND \"Advisor\" > 2192 OR Sex = \"M\" AND \"Major\" > 50"} {"question": "What are the driver IDs that are both at least 2 and less than 10, considering only those present in the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rri4b_12.png", "TableImg_0462p_5.png"], "original_data_index": 2699, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are either less than or equal to 5 in the aircraft table, or greater than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bd0i4_5.png", "TableImg_Vvydu_4.png"], "original_data_index": 2700, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the aircraft IDs that are less than 2, or aircraft IDs from the airport_aircraft table that are 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3ukvm_5.png", "TableImg_03yq8_4.png"], "original_data_index": 2701, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are less than 4, and also which driver IDs are greater than 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_32m30_12.png", "TableImg_U80b9_5.png"], "original_data_index": 2702, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the aircraft IDs where the distance is not 1502, or the employee ID is less than 269734834, or the aircraft ID is greater than 2?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["16"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["2"], ["10"], ["6"], ["2"], ["10"], ["12"], ["1"], ["2"], ["3"], ["7"], ["10"], ["11"], ["12"], ["13"], ["5"], ["7"], ["2"], ["10"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["10"], ["12"], ["8"], ["9"], ["8"], ["9"], ["6"], ["3"], ["13"], ["14"], ["7"], ["12"], ["7"], ["14"], ["3"], ["5"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"], ["11"], ["12"], ["15"], ["3"], ["4"], ["5"], ["6"], ["8"], ["7"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Wm1ni_16.png", "TableImg_K7nrp_69.png"], "original_data_index": 2703, "original_sql": "SELECT aid FROM aircraft WHERE \"distance\" != 1502 UNION ALL SELECT aid FROM certificate WHERE \"eid\" < 269734834 OR \"aid\" > 2"} {"question": "What are the driver IDs, excluding driver ID 5, that are present in both the driver and school bus tables, where the school bus driver ID is less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N9fvp_12.png", "TableImg_Rbt9w_5.png"], "original_data_index": 2704, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What is the sum of employee IDs less than 248965255, excluding the sum of employee IDs greater than 619023588?", "answer": {"columns": ["SUM(eid)"], "index": [0], "data": [["804247816"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Jrq47_31.png", "TableImg_V5t63_31.png"], "original_data_index": 2705, "original_sql": "SELECT SUM(eid) FROM employee WHERE \"eid\" < 248965255 EXCEPT SELECT SUM(eid) FROM employee WHERE \"eid\" > 619023588"} {"question": "What are the aircraft IDs that are either less than or equal to 1, or not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7iuk0_5.png", "TableImg_E81so_4.png"], "original_data_index": 2706, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the road addresses and cities of branches that either opened in a year other than 2001, have a branch ID of 2, have a membership amount of 7 and are located in London and are not named Cochrane, or have a road address other than Glebe Street? Also, what are the road addresses and cities of branches with a membership amount that is not 31?", "answer": {"columns": ["Address_road", "City"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Abbey Rise", "Oxford"], ["Abbott Street", "London"], ["Brampton Road", "London"], ["Cecilia Avenue", "Oxford"], ["Concord Road", "London"], ["Glebe Street", "Oxford"], ["Oaks Crescent", "London"], ["Valleys Place", "London"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_G2bk2_8.png", "TableImg_4z0e4_8.png"], "original_data_index": 2707, "original_sql": "SELECT Address_road, City FROM branch WHERE Open_year != \"2001\" OR \"Branch_ID\" = 2 OR membership_amount = \"7\" AND City = \"London\" AND Name <> \"Cochrane\" OR Address_road <> \"Glebe Street\" UNION SELECT Address_road, City FROM branch WHERE membership_amount != \"31\""} {"question": "What are the driver IDs that are either 7 or greater from the driver table, or less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zuouf_12.png", "TableImg_Yxg0m_5.png"], "original_data_index": 2708, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs, excluding ID 9, from the driver table, combined with the driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V3fe5_12.png", "TableImg_Ltdcn_5.png"], "original_data_index": 2698, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which employee IDs are associated with circulation history entries that don't have draft number 20 and copy number less than 5 or document ID greater than 20, and also which employee IDs have other details not equal to \"b\" and the employee name is \"Kenyon\"?", "answer": {"columns": ["employee_id"], "index": [0], "data": [["2"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_Hnhyl_4.png", "TableImg_Pqqwf_6.png"], "original_data_index": 2696, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"draft_number\" != 20 AND \"copy_number\" < 5 OR \"document_id\" > 20 UNION SELECT employee_id FROM Employees WHERE other_details <> \"b\" AND employee_name = \"Kenyon\""} {"question": "What driver IDs are present in both the driver table, excluding driver ID 3, and the school bus table, specifically with driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0o1h6_12.png", "TableImg_8eeig_5.png"], "original_data_index": 2697, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs that are both less than or equal to 12 and also appear in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4zt85_12.png", "TableImg_Brqou_5.png"], "original_data_index": 2710, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What is the average item ID and the rank, considering conditions related to user IDs, ranks, activity IDs, and titles, with a title of \"comb\" and a rating count less than or equal to 6?", "answer": {"columns": ["AVG(T1.i_id)", "rank"], "index": [0], "data": [["4", "1"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Afiiq_8.png", "TableImg_Py99l_7.png"], "original_data_index": 2711, "original_sql": "SELECT AVG(T1.i_id), T2.rank FROM item as T1 JOIN review as T2 ON T1.i_id = T2.i_id WHERE COUNT(u_id) > 2 OR rank < 3 OR SUM(a_id) > 1 OR title = \"comb\" AND COUNT(rating) <= 6"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 4 from the driver table and including only driver IDs greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F5fus_12.png", "TableImg_56jxd_5.png"], "original_data_index": 2709, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are either less than or equal to 3 in the driver table, or less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T6gs8_12.png", "TableImg_Ol17i_5.png"], "original_data_index": 2713, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs, excluding driver ID 5, from the driver table, combined with the driver IDs, excluding driver ID 7, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A76gu_12.png", "TableImg_Qpwpa_5.png"], "original_data_index": 2715, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are both less than or equal to 5 and not equal to 1, considering only the aircraft IDs present in both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nnwcv_5.png", "TableImg_80lry_4.png"], "original_data_index": 2712, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the player ID, residence, sponsor name, and player name for players who have 12285 votes, or a player ID of 4 or greater, or a gender other than \"M\", but not for players sponsored by \"Kildonan\u2014St. Paul\" with a player ID of 4, or players with 5490 or more votes from Winnipeg?", "answer": {"columns": ["Player_ID", "Residence", "Sponsor_name", "Player_name"], "index": [0, 1, 2, 3, 4, 5], "data": [["3", "Thompson", "Churchill", "Niki Ashton"], ["4", "Birtle", "Dauphin\u2014Swan River\u2014Marquette", "Ron Strynadka"], ["7", "Winnipeg", "Portage\u2014Lisgar", "Mohamed Alli"], ["8", "Oakbank", "Provencher", "Ross C. Martin"], ["10", "Selkirk", "Selkirk\u2014Interlake", "Patricia Cordner"], ["13", "Winnipeg", "Winnipeg South", "Sean Robert"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_Ar348_14.png", "TableImg_Qj8ky_14.png"], "original_data_index": 2714, "original_sql": "SELECT Player_ID, Residence, Sponsor_name, Player_name FROM player WHERE \"Votes\" = 12285 OR \"Player_ID\" >= 4 OR Gender <> \"M\" EXCEPT SELECT Player_ID, Residence, Sponsor_name, Player_name FROM player WHERE Sponsor_name = \"Kildonan\u2014St. Paul\" AND \"Player_ID\" = 4 OR \"Votes\" >= 5490 AND Residence = \"Winnipeg\""} {"question": "Which driver IDs, excluding ID 12, are present in both the driver and school bus tables, excluding ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jnyd9_12.png", "TableImg_8teiw_5.png"], "original_data_index": 2717, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are in the driver table but not in the school bus table, considering only driver IDs up to 5 in the driver table and up to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wx8ul_12.png", "TableImg_8oy3x_5.png"], "original_data_index": 2718, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the document status codes for document ID 7 that are not shipped by FE or are not paper documents, and also the document status code for \"mailed\" documents that are in \"working\" status?", "answer": {"columns": ["document_status_code"], "index": [0, 1], "data": [["overdue"], ["working"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Eq4gg_15.png", "TableImg_3hdu5_3.png"], "original_data_index": 2716, "original_sql": "SELECT document_status_code FROM Documents WHERE \"document_id\" = 7 AND shipping_agent_code <> \"FE\" OR document_type_code != \"Paper\" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description = \"mailed\" AND document_status_code = \"working\""} {"question": "What are the IDs of properties that either have a feature ID not equal to 3 and a description other than \"cumque\" or have a property ID greater than or equal to 6 in the Other_Property_Features table, combined with the IDs of houses from the Properties table that meet various criteria including property type, shp_feature_1, oth_feature_3, date_on_market, oth_feature_2, fld_feature_2, date_sold, property_name, hse_feature_3, hse_feature_2, property_address, and fld_feature_1?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "data": [["15"], ["12"], ["6"], ["7"], ["6"], ["14"], ["1"], ["11"], ["9"], ["6"], ["6"], ["13"], ["14"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_Xquep_15.png", "TableImg_K696g_15.png"], "original_data_index": 2719, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"property_id\" >= 6 OR \"feature_id\" <> 3 AND property_feature_description <> \"cumque\" UNION ALL SELECT property_id FROM Properties WHERE property_type_code = \"House\" AND \"property_id\" >= 1 AND shp_feature_1 <> \"None\" OR oth_feature_3 = \"None\" AND date_on_market <> \"2017-09-14 15:49:23\" OR oth_feature_2 <> \"None\" AND fld_feature_2 <> \"None\" AND date_sold != \"1984-02-01 19:54:54\" OR property_name <> \"wall street\" OR hse_feature_3 <> \"None\" OR hse_feature_2 != \"None\" OR property_address = \"092 Paucek Highway Apt. 772 East Erika, IA 61358\" OR fld_feature_1 = \"None\""} {"question": "What are the aircraft IDs that are equal to 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Oyd9u_5.png", "TableImg_M8utn_4.png"], "original_data_index": 2720, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Which driver IDs are less than 5 but not present in the school bus table with IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ucbpe_12.png", "TableImg_Jlk0e_5.png"], "original_data_index": 2723, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs that are either less than or equal to 10 from the driver table or less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3lqw0_12.png", "TableImg_Oiks4_5.png"], "original_data_index": 2721, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs that are both less than or equal to 4 and also present in the airport aircraft table with IDs less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Utxc8_5.png", "TableImg_4yd2r_4.png"], "original_data_index": 2722, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the driver IDs that are less than 1, and also the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ah1q_12.png", "TableImg_Wgt7i_5.png"], "original_data_index": 2725, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the smallest employee ID from the circulation history for documents other than document ID 1, combined with the smallest employee ID from the employee table where the employee ID is 7 or less, or the role code is not ED, or the employee name is Erling, or other details are u?", "answer": {"columns": ["MIN(employee_id)"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_Ety0q_4.png", "TableImg_Lidbm_6.png"], "original_data_index": 2724, "original_sql": "SELECT MIN(employee_id) FROM Circulation_History WHERE \"document_id\" <> 1 UNION SELECT MIN(employee_id) FROM Employees WHERE \"employee_id\" <= 7 OR role_code <> \"ED\" OR employee_name = \"Erling\" OR other_details = \"u\""} {"question": "What is the maximum enrollment and the amount invested for schools, considering conditions related to the year, investment amount, IHSAA class and football class, budget percentage, enrollment size, location, and then filtering the results based on enrollment, school name, budget percentage, and county?", "answer": {"columns": ["MAX(T1.Enrollment)", "Invested"], "index": [0, 1], "data": [["495", "85249"], ["620", "140102"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_P4op2_8.png", "TableImg_Pfjnn_8.png"], "original_data_index": 2726, "original_sql": "SELECT MAX(T1.Enrollment), T2.Invested FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE \"Year\" <= 2005 OR \"Invested\" < 5840 AND IHSAA_Class = \"AAA\" AND IHSAA_Football_Class <> \"A\" AND \"total_budget_percent_budgeted\" < 2.0 OR \"Enrollment\" <= 620 OR Location <> \"Culver\" GROUP BY IHSAA_Class HAVING Enrollment < 495 AND School_name = \"Glenn\" OR Budget_invested_percent <> \"42.9\" OR County = \"71 St. Joseph\""} {"question": "What are the aircraft IDs that are greater than or equal to 3, but not aircraft IDs less than 5 that are associated with any airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_67nu1_5.png", "TableImg_3fjjm_4.png"], "original_data_index": 2730, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the IDs of pets that either belong to student 1002 or are not pet ID 2001, combined with the IDs of pets that are not pet ID 2001?", "answer": {"columns": ["PetID"], "index": [0, 1], "data": [["2002"], ["2003"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Z5xww_3.png", "TableImg_Ycxs4_3.png"], "original_data_index": 2728, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"StuID\" = 1002 OR \"PetID\" != 2001 UNION SELECT PetID FROM Has_Pet WHERE \"PetID\" <> 2001"} {"question": "Which club IDs satisfy all of these conditions: they started before the year 2000 and are not named AIK, or their ID is not 5, or they are not in the USA, and also have either 7 or fewer \"Big_Silver\" medals, or do not have 10 \"Bronze\" medals, and their ID is not 4, and they have at least 66 points and a rank of at least 2?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_Ka959_6.png", "TableImg_11yur_6.png"], "original_data_index": 2731, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" < 2000 AND Club_name <> \"AIK\" OR \"Club_ID\" <> 5 OR Region != \"USA\" INTERSECT SELECT Club_ID FROM match_result WHERE \"Big_Silver\" <= 7 OR \"Bronze\" <> 10 AND \"Club_ID\" != 4 AND \"Points\" >= 66 AND \"Rank\" >= 2"} {"question": "What are the driver IDs that are both less than 10 and also greater than or equal to 7, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fw48b_12.png", "TableImg_Brl5f_5.png"], "original_data_index": 2732, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the item IDs that are greater than or equal to 3, excluding the item ID 4 if its title is \"orange\"?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_4xagl_8.png", "TableImg_H33xi_8.png"], "original_data_index": 2733, "original_sql": "SELECT i_id FROM item WHERE \"i_id\" >= 3 EXCEPT SELECT i_id FROM item WHERE \"i_id\" = 4 AND title = \"orange\""} {"question": "What are the driver IDs that are either 10 or greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6idom_12.png", "TableImg_20n6g_5.png"], "original_data_index": 2735, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are not equal to 5 and are not found in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1cw64_12.png", "TableImg_E6twz_5.png"], "original_data_index": 2736, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs that are not 4, and also the aircraft IDs that are 3 or greater, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qeerp_5.png", "TableImg_N4zfd_4.png"], "original_data_index": 2727, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What is the total sales in billions and the year of work for companies, considering conditions related to headquarters, sales, people, profits, year working, market value, company name, and assets?", "answer": {"columns": ["SUM(T1.Sales_in_Billion)", "Year_working"], "index": [0], "data": [["1093.8", "2"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Ab71k_19.png", "TableImg_Aynvk_5.png"], "original_data_index": 2737, "original_sql": "SELECT SUM(T1.Sales_in_Billion), T2.Year_working FROM company as T1 JOIN employment as T2 ON T1.Company_ID = T2.Company_ID WHERE Headquarters <> \"USA\" OR \"Sales_in_Billion\" <= 447.0 AND \"People_ID\" > 7 OR \"Profits_in_Billion\" <> 25.7 AND \"Year_working\" > 1 OR \"Market_Value_in_Billion\" > 237.4 OR Name = \"ExxonMobil\" OR \"Assets_in_Billion\" <= 1873.9"} {"question": "What are the driver IDs that are either greater than or equal to 6 from the driver table or not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_34vn8_12.png", "TableImg_A6jsn_5.png"], "original_data_index": 2738, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are less than or equal to 9 and are in the driver table but not in the school bus table, where the driver IDs in the school bus table are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N2o7z_12.png", "TableImg_0f7f1_5.png"], "original_data_index": 2739, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are less than or equal to 9, and also the driver IDs from the school bus table that are not 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G9c5q_12.png", "TableImg_U4ly4_5.png"], "original_data_index": 2740, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the IDs of heads born in Connecticut who are age 68 or older and have an ID of 6 or less, or whose name is Jeff Maggert? Also, what are the IDs of people in management who are not in department 11 or are not temporarily acting?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["6"], ["10"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Drn7p_10.png", "TableImg_N7snz_5.png"], "original_data_index": 2741, "original_sql": "SELECT head_ID FROM head WHERE born_state = \"Connecticut\" AND \"head_ID\" <= 6 AND \"age\" > 68.0 OR name = \"Jeff Maggert\" UNION SELECT head_ID FROM management WHERE \"department_ID\" <> 11 OR temporary_acting != \"Yes\""} {"question": "Which driver IDs are less than 11, and also which driver IDs are 7 or greater, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Klir5_12.png", "TableImg_B0sfs_5.png"], "original_data_index": 2742, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What is the sum of the publisher, the publication ID, the price, and the average book ID for publications where the book ID is not 9, or the price is less than 3,000,000, or the publisher is not Bertelsmann, or the publication ID is less than 6, or the publication date is October 2005? Also, what is the sum of the publisher, the publication ID, the price, and the average book ID for publications where the book ID is not 5, the publication ID is 6 or greater, the publication date is not October 2005, and the price is 6,000,000 or greater?", "answer": {"columns": ["SUM(Publisher)", "Publication_ID", "Price", "AVG(Book_ID)"], "index": [0, 1], "data": [["0.0", "1.0", "15000000.0", "5.5714285714"], ["", "", "", ""]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_4iwx0_7.png", "TableImg_Mc3ew_7.png"], "original_data_index": 2744, "original_sql": "SELECT SUM(Publisher), Publication_ID, Price, AVG(Book_ID) FROM publication WHERE \"Book_ID\" != 9 OR \"Price\" < 3000000.0 OR Publisher != \"Bertelsmann\" OR \"Publication_ID\" < 6 OR Publication_Date = \"October 2005\" UNION ALL SELECT SUM(Publisher), Publication_ID, Price, AVG(Book_ID) FROM publication WHERE \"Book_ID\" <> 5 AND \"Publication_ID\" >= 6 AND Publication_Date != \"October 2005\" AND \"Price\" >= 6000000.0"} {"question": "Which driver IDs are greater than or equal to 8, excluding those driver IDs that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8ov32_12.png", "TableImg_Rlzep_5.png"], "original_data_index": 2734, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 1 and any driver IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Min61_12.png", "TableImg_N40s5_5.png"], "original_data_index": 2743, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which coach IDs belong to female coaches with a rank other than 4 and club ID 1, or have a coach ID greater than or equal to 1 and a name that is not James Wong? Also, include any coach IDs from the player_coach table that are greater than 3.", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_8l2ha_5.png", "TableImg_Cigpd_7.png"], "original_data_index": 2745, "original_sql": "SELECT Coach_ID FROM coach WHERE \"Rank\" != 4 AND Gender = \"F\" AND \"Club_ID\" = 1 OR \"Coach_ID\" >= 1 AND Coach_name <> \"James Wong\" UNION SELECT Coach_ID FROM player_coach WHERE \"Coach_ID\" > 3"} {"question": "Which driver IDs are not equal to 6 and are not present in the school bus table with a driver ID of 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0bzbv_12.png", "TableImg_Tax50_5.png"], "original_data_index": 2746, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are greater than 1, excluding those with ID 10, considering driver information from the driver table and school bus information from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_27u7h_12.png", "TableImg_1lw0o_5.png"], "original_data_index": 2747, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs that are present in both the aircraft and airport_aircraft tables, excluding aircraft ID 1 from the aircraft table and including only aircraft IDs greater than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7f7ir_5.png", "TableImg_Rftgj_4.png"], "original_data_index": 2748, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the aircraft IDs that are both aircraft ID 3 and not aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pk7nc_5.png", "TableImg_Nhsns_4.png"], "original_data_index": 2750, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the driver IDs, excluding driver ID 12, and also the driver IDs that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9fkvm_12.png", "TableImg_St8to_5.png"], "original_data_index": 2751, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the aircraft IDs greater than 2 that are not present in the airport_aircraft table with aircraft IDs greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xa3f1_5.png", "TableImg_88mgx_4.png"], "original_data_index": 2749, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the heights and poker player IDs of people, grouped by their birth date, where they are Bulgarian, have made the final table more than 10 times, and their best finish is at least 2.0, and their money rank is at least 154.0, or whose birth date is August 16, 1982, or whose name is Sergey Grankin?", "answer": {"columns": ["Height", "Poker_Player_ID"], "index": [0], "data": [["182", "2"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_9pj55_7.png", "TableImg_Vlefq_5.png"], "original_data_index": 2752, "original_sql": "SELECT T1.Height, T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID == T2.People_ID GROUP BY Birth_Date HAVING Final_Table_Made > 10.0 AND Nationality = \"Bulgaria\" AND Best_Finish >= 2.0 AND Money_Rank >= 154.0 OR Birth_Date = \"August 16, 1982\" OR Name = \"Sergey Grankin\""} {"question": "What are the aircraft IDs greater than 3 that are not present in the airport aircraft table with IDs less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ofiv9_5.png", "TableImg_Umsgi_4.png"], "original_data_index": 2755, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the club IDs from the club and coach tables where the club name is not \"Halmstads BK\", or the coach is \"Joe Fabbri\" and the start year is before 2009, or the region is \"USA\", or the rank is less than 3, or the coach ID is less than or equal to 2, or the gender is \"M\", grouped by start year?", "answer": {"columns": ["Club_ID -1", "Club_ID -2"], "index": [0, 1], "data": [["3", "3"], ["1", "1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Vrqjb_6.png", "TableImg_Yo07x_5.png"], "original_data_index": 2754, "original_sql": "SELECT T1.Club_ID, T2.Club_ID FROM club as T1 JOIN coach as T2 ON T1.Club_ID == T2.Club_ID GROUP BY Start_year HAVING Club_name <> \"Halmstads BK\" OR Coach_name = \"Joe Fabbri\" AND Start_year < 2009 OR Region = \"USA\" OR Rank < 3 OR Coach_ID <= 2 OR Gender = \"M\""} {"question": "What are all the effective end dates from the Templates table where either the version number is not 5 or the template details are empty and the effective end date is \"1999-07-08 03:31:04\", or where the effective start date is \"1983-07-16 21:16:16\", or where the effective end date is not \"1979-11-04 08:58:39\" and the template details are not empty and the template type code is not \"PPT\" and the version number is 0, or where the template ID is less than or equal to 8?", "answer": {"columns": ["Date_Effective_To"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["1999-07-08 03:31:04"], ["2001-04-18 09:29:52"], ["1992-05-02 20:06:11"], ["1975-07-16 04:52:10"], ["1976-10-28 10:08:50"], ["1994-12-07 13:26:23"], ["2007-06-06 06:18:53"], ["1995-09-19 22:27:48"], ["1979-11-04 08:58:39"], ["1993-03-24 14:30:23"], ["1974-09-14 06:34:39"], ["2008-08-08 18:36:43"], ["2015-09-06 01:08:44"], ["1989-11-24 19:06:06"], ["2000-10-22 11:57:12"], ["1973-01-12 14:13:34"], ["2008-01-05 14:19:28"], ["1999-07-08 03:31:04"], ["2001-04-18 09:29:52"], ["1992-05-02 20:06:11"], ["1975-07-16 04:52:10"], ["1976-10-28 10:08:50"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_5eewa_20.png", "TableImg_Qvr2e_20.png"], "original_data_index": 2756, "original_sql": "SELECT Date_Effective_To FROM Templates WHERE \"Version_Number\" != 5 OR Template_Details = \"\" AND Date_Effective_To = \"1999-07-08 03:31:04\" UNION ALL SELECT Date_Effective_To FROM Templates WHERE Date_Effective_From = \"1983-07-16 21:16:16\" OR Date_Effective_To != \"1979-11-04 08:58:39\" AND Template_Details != \"\" AND Template_Type_Code <> \"PPT\" AND \"Version_Number\" = 0 OR \"Template_ID\" <= 8"} {"question": "Which company IDs meet either of these conditions: their assets are less than 328.7 billion or they are not headquartered in the USA and are not in the Banking industry, or they have 4 or fewer people employed and a company ID of 17 or greater?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["7"], ["10"], ["11"], ["12"], ["15"], ["16"], ["17"], ["18"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Kbsnt_19.png", "TableImg_A0vmo_5.png"], "original_data_index": 2758, "original_sql": "SELECT Company_ID FROM company WHERE \"Assets_in_Billion\" < 328.7 OR Headquarters != \"USA\" AND Industry <> \"Banking\" UNION ALL SELECT Company_ID FROM employment WHERE \"People_ID\" <= 4 AND \"Company_ID\" >= 17"} {"question": "Give me the amount outstanding, customer address ID, customer ID, cell mobile phone number, phone number, customer status code, date became customer, date of birth, and email address for all customers where the amount outstanding is less than or equal to 8144 and the customer ID is greater than or equal to 5, or the phone number is 206-054-0689x05861 and the customer status code is not \"Good Customer\", or the date of birth is not 1991-12-05 02:50:15, or the cell mobile phone number is 200.830.8723, or the date became customer is not 2015-11-16 22:52:14. Also, give me the same information for customers where the email address is not myrl.lind@example.net, or the customer status code is \"Bad Customer\" and the customer address ID is not 1, or the date of birth is 1996-05-23 01:21:54.", "answer": {"columns": ["amount_outstanding", "customer_address_id", "customer_id", "cell_mobile_phone_number", "phone_number", "customer_status_code", "date_became_customer", "date_of_birth", "email_address"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["255", "13", "1", "861-638-9797", "07278206718", "Bad Customer", "2016-05-11 17:03:48", "1998-12-15 13:24:40", "everette.goyette@example.org"], ["1000", "1", "10", "+45(6)4872981083", "1-387-884-0656", "Bad Customer", "2017-11-25 01:42:26", "1996-08-29 00:03:08", "nichole59@example.com"], ["2099", "9", "12", "200.830.8723", "417.136.2900x672", "Bad Customer", "2016-05-13 07:38:23", "1993-07-09 11:11:36", "myrl.lind@example.net"], ["2255", "7", "13", "+57(9)4602098297", "192-395-2411", "Good Customer", "2016-09-04 23:08:20", "1988-09-19 14:45:56", "wehner.harold@example.com"], ["3751", "8", "4", "081-097-3684", "218.550.1362", "Good Customer", "2016-07-22 15:53:44", "1993-02-07 05:40:26", "afranecki@example.com"], ["3900", "9", "6", "(780)719-4206x033", "1-673-962-8158x7646", "Good Customer", "2017-04-16 05:12:21", "1993-03-08 08:48:42", "kozey.citlalli@example.org"], ["5494", "10", "14", "1-401-108-8016x078", "1-875-045-0806", "Good Customer", "2016-03-18 06:14:18", "1996-05-23 01:21:54", "ehowell@example.com"], ["5687", "2", "5", "00659133944", "1-618-535-9750", "Bad Customer", "2017-11-12 04:34:44", "1991-02-10 00:42:17", "asha.kilback@example.org"], ["7093", "12", "9", "1-387-258-1016x96963", "753.921.0871", "Bad Customer", "2016-02-17 08:26:23", "1991-12-05 02:50:15", "mariela28@example.org"], ["7256", "10", "2", "578-518-4785x612", "+14(5)2351480248", "Bad Customer", "2015-11-16 22:52:14", "1995-07-17 12:13:16", "huel.jana@example.org"], ["8144", "1", "7", "848-099-2095x785", "(662)490-3108", "Bad Customer", "2015-06-24 03:50:04", "1996-11-07 05:30:55", "mayert.judy@example.com"], ["9332", "1", "15", "(630)964-2426", "(729)396-4354x3576", "Bad Customer", "2015-09-25 13:59:21", "1996-08-30 06:17:50", "kitty.hand@example.net"], ["9443", "10", "3", "1-197-686-2849x8761", "374-483-2758x85087", "Good Customer", "2016-04-08 00:28:15", "1994-06-21 01:34:56", "hilario.sporer@example.org"], ["9447", "13", "11", "577-584-4864", "(297)122-0086", "Good Customer", "2016-11-30 10:37:41", "1994-05-07 01:32:16", "karina.carroll@example.net"], ["9500", "10", "8", "739-333-6966x187", "206-054-0689x05861", "Bad Customer", "2017-10-05 14:15:46", "1998-09-18 04:45:01", "kroberts@example.org"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_Ajzww_15.png", "TableImg_0rf4n_15.png"], "original_data_index": 2757, "original_sql": "SELECT amount_outstanding, customer_address_id, customer_id, cell_mobile_phone_number, phone_number, customer_status_code, date_became_customer, date_of_birth, email_address FROM Customers WHERE \"amount_outstanding\" <= 8144.0 AND \"customer_id\" >= 5 OR phone_number = \"206-054-0689x05861\" AND customer_status_code != \"Good Customer\" OR date_of_birth != \"1991-12-05 02:50:15\" OR cell_mobile_phone_number = \"200.830.8723\" OR date_became_customer != \"2015-11-16 22:52:14\" UNION SELECT amount_outstanding, customer_address_id, customer_id, cell_mobile_phone_number, phone_number, customer_status_code, date_became_customer, date_of_birth, email_address FROM Customers WHERE email_address != \"myrl.lind@example.net\" OR customer_status_code = \"Bad Customer\" AND \"customer_address_id\" != 1 OR date_of_birth = \"1996-05-23 01:21:54\""} {"question": "What are the driver IDs, excluding driver ID 6, and also the driver IDs less than 3, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ujwjr_12.png", "TableImg_Uxn14_5.png"], "original_data_index": 2760, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the descriptions, property IDs, and feature IDs from the 'Other_Property_Features' table where the description isn't \"corrupti\" and the feature ID is at least 2 and the property ID is at least 13, combined with the descriptions, property IDs, and feature IDs where the description isn't \"illo\" or the property ID is 6 or less?", "answer": {"columns": ["property_feature_description", "property_id", "feature_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["ad", "1", "2"], ["autem", "13", "2"], ["corrupti", "6", "3"], ["cumque", "3", "2"], ["dolorem", "15", "3"], ["doloribus", "6", "3"], ["earum", "12", "4"], ["et", "6", "3"], ["hic", "7", "2"], ["illo", "6", "2"], ["modi", "14", "4"], ["odio", "4", "3"], ["quo", "9", "3"], ["quo", "14", "4"], ["vitae", "11", "4"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_X63vg_15.png", "TableImg_8jc4d_15.png"], "original_data_index": 2759, "original_sql": "SELECT property_feature_description, property_id, feature_id FROM Other_Property_Features WHERE property_feature_description != \"corrupti\" AND \"feature_id\" >= 2 AND \"property_id\" >= 13 UNION SELECT property_feature_description, property_id, feature_id FROM Other_Property_Features WHERE property_feature_description <> \"illo\" OR \"property_id\" <= 6"} {"question": "What are the aircraft IDs, excluding aircraft ID 5, and also the aircraft IDs greater than 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ov2j9_5.png", "TableImg_U0ob6_4.png"], "original_data_index": 2753, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs, excluding driver 1, are present in both the driver and school bus tables, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rghp9_12.png", "TableImg_7osea_5.png"], "original_data_index": 2762, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the IDs of drivers, excluding driver ID 6, and also the IDs of school bus drivers, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wngeo_12.png", "TableImg_Ay6g1_5.png"], "original_data_index": 2763, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs that are both greater than or equal to 8 and also not equal to 9, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8725q_12.png", "TableImg_Rstk9_5.png"], "original_data_index": 2761, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are greater than or equal to 1, combined with the aircraft IDs that are less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Agroa_5.png", "TableImg_Lxodr_4.png"], "original_data_index": 2766, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are greater than or equal to 7, but not equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7wh62_12.png", "TableImg_2ut8w_5.png"], "original_data_index": 2767, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the IDs of drivers who have an ID greater than 2 and are also assigned to a school bus, excluding drivers with ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ztyk_12.png", "TableImg_C08fq_5.png"], "original_data_index": 2764, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What parties are there in the election table where the party is not 7 and the delegate is not Guzzone, Guy Guy Guzzone, or where the election ID is not 7 and the district is less than 2, or where the first elected year is before 1994 and the counties represented is not 12.1 12A and the committee is not Appropriations? Also, what parties are there in the party table where the party ID is less than 1, the US Senate is not Hillary Rodham Clinton, the Lieutenant Governor is not David Paterson, and the Comptroller is Alan Hevesi?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["1"], ["2"], ["2"], ["3"], ["4"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Zk31p_8.png", "TableImg_2c6db_7.png"], "original_data_index": 2765, "original_sql": "SELECT Party FROM election WHERE \"Party\" <> 7 AND Delegate != \"Guzzone, Guy Guy Guzzone\" OR \"Election_ID\" <> 7 AND \"District\" < 2 OR \"First_Elected\" < 1994.0 AND Counties_Represented <> \"12.1 12A\" AND Committee != \"Appropriations\" UNION ALL SELECT Party FROM party WHERE \"Party_ID\" < 1 AND US_Senate != \"Hillary Rodham Clinton\" AND Lieutenant_Governor != \"David Paterson\" AND Comptroller = \"Alan Hevesi\""} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 3 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nlpmf_12.png", "TableImg_V4tk9_5.png"], "original_data_index": 2768, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the ranks of coaches who are not James Wong or whose club ID is not 3, excluding the ranks of players with more than 6055 votes?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_K2iae_5.png", "TableImg_Foyjw_14.png"], "original_data_index": 2771, "original_sql": "SELECT Rank FROM coach WHERE Coach_name <> \"James Wong\" OR \"Club_ID\" <> 3 EXCEPT SELECT Rank FROM player WHERE \"Votes\" > 6055"} {"question": "What bonus amounts are both at least 2900 and not awarded in 2011, or given to employee 2 but not equal to 3200?", "answer": {"columns": ["Bonus"], "index": [0, 1, 2], "data": [["2900"], ["3200"], ["4000"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_Srbl4_6.png", "TableImg_Ctrf7_6.png"], "original_data_index": 2769, "original_sql": "SELECT Bonus FROM evaluation WHERE \"Bonus\" >= 2900.0 INTERSECT SELECT Bonus FROM evaluation WHERE Year_awarded <> \"2011\" OR Employee_ID = \"2\" AND \"Bonus\" <> 3200.0"} {"question": "What are the driver IDs, excluding driver ID 8, that are also present in the school bus table with driver IDs no greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_32mum_12.png", "TableImg_1xyti_5.png"], "original_data_index": 2770, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are less than 11 but not present in the school bus table with driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mnb1t_12.png", "TableImg_Lf5aq_5.png"], "original_data_index": 2772, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are equal to 10 in the driver table but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_No1cy_12.png", "TableImg_T8w3o_5.png"], "original_data_index": 2774, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are greater than or equal to 7, excluding those driver IDs that are not equal to 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pqoci_12.png", "TableImg_2rv85_5.png"], "original_data_index": 2775, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Find the average first name, maximum advisor, maximum sex, maximum major, student ID, average age, and the count of last names for students, considering either male students, or students whose first name is not Eric, or students whose major is not 600, or students with an advisor greater than or equal to 7712, or students from NYC. Also, find the same information for students whose first name is not Lisa, or whose major is greater than 600, or who are not from WAS and have a student ID greater than or equal to 1029 and are not female, or whose advisor is less than or equal to 1121 and whose last name is Adams and are 26 years old.", "answer": {"columns": ["AVG(Fname)", "MAX(Advisor)", "MAX(Sex)", "MAX(Major)", "StuID", "AVG(Age)", "COUNT(LName)"], "index": [0, 1], "data": [["0", "9172", "M", "600", "1002", "19.6060606061", "33"], ["0", "9172", "M", "600", "1001", "19.5625", "32"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Ig15l_34.png", "TableImg_Es6yb_34.png"], "original_data_index": 2773, "original_sql": "SELECT AVG(Fname), MAX(Advisor), MAX(Sex), MAX(Major), StuID, AVG(Age), COUNT(LName) FROM Student WHERE Sex = \"M\" OR Fname <> \"Eric\" AND \"Major\" != 600 OR \"Advisor\" >= 7712 OR city_code = \"NYC\" UNION ALL SELECT AVG(Fname), MAX(Advisor), MAX(Sex), MAX(Major), StuID, AVG(Age), COUNT(LName) FROM Student WHERE Fname <> \"Lisa\" OR \"Major\" > 600 OR city_code != \"WAS\" AND \"StuID\" >= 1029 AND Sex <> \"F\" OR \"Advisor\" <= 1121 AND LName = \"Adams\" AND \"Age\" = 26"} {"question": "Which driver IDs are less than 3, or are not equal to 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hqwbz_12.png", "TableImg_0uuhv_5.png"], "original_data_index": 2777, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the document IDs for documents mailed to address IDs of 7 or greater, and also the document IDs for draft copies where the copy number is 5 or more and the document ID is 1 or greater, or the draft number is not 2?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["2"], ["4"], ["12"], ["12"], ["20"], ["23"], ["2"], ["4"], ["23"], ["10"], ["2"], ["1"], ["20"], ["12"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Suu2f_14.png", "TableImg_Ddyy5_8.png"], "original_data_index": 2779, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" >= 7 UNION ALL SELECT document_id FROM Draft_Copies WHERE \"copy_number\" >= 5 AND \"document_id\" >= 1 OR \"draft_number\" != 2"} {"question": "What are the driver IDs that are both greater than or equal to 4 and less than or equal to 10, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D9byb_12.png", "TableImg_H6lar_5.png"], "original_data_index": 2776, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "For clubs, give me the count of locations, the club name, the sum of club IDs, and the count of descriptions. Include clubs where the description isn't \"A competitive tennis club.\" and the name isn't \"Pen and Paper Gaming\", or the location isn't \"HHH\", and group the results by club name, showing only those with more than one location and a sum of club IDs less than or equal to 2. Also, give me the same information for clubs where the description isn't \"Venture capital fund for student business.\", the name isn't \"Bootup Baltimore\", and the location isn't \"AKW\", grouped by club name, showing only those with less than one location or at least one description. Combine the results from both sets of criteria.", "answer": {"columns": ["COUNT(ClubLocation)", "ClubName", "SUM(ClubID)", "COUNT(ClubDesc)"], "index": [0], "data": [["1", "Pen and Paper Gaming", "3", "1"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_L7ljt_4.png", "TableImg_Bs10e_4.png"], "original_data_index": 2778, "original_sql": "SELECT COUNT(ClubLocation), ClubName, SUM(ClubID), COUNT(ClubDesc) FROM Club WHERE ClubDesc != \"A competitive tennis club.\" AND ClubName <> \"Pen and Paper Gaming\" OR ClubLocation <> \"HHH\" GROUP BY ClubName HAVING COUNT(ClubLocation) > 1 AND SUM(ClubID) <= 2 UNION SELECT COUNT(ClubLocation), ClubName, SUM(ClubID), COUNT(ClubDesc) FROM Club WHERE ClubDesc != \"Venture capital fund for student business.\" AND ClubName != \"Bootup Baltimore\" AND ClubLocation != \"AKW\" GROUP BY ClubName HAVING COUNT(ClubLocation) < 1 OR COUNT(ClubDesc) >= 1"} {"question": "What are the aircraft IDs that are not 3, and what is the aircraft ID that is 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5x785_5.png", "TableImg_Hixd6_4.png"], "original_data_index": 2782, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 3 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_89ju6_12.png", "TableImg_Mxphb_5.png"], "original_data_index": 2781, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are both less than or equal to 2 in the aircraft table and less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_595lw_5.png", "TableImg_6tid1_4.png"], "original_data_index": 2783, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What is the smallest company ID from companies that don't have 213 billion in assets, and also what is the smallest company ID from the employment table for company 13?", "answer": {"columns": ["MIN(Company_ID)"], "index": [0, 1], "data": [["1"], ["13"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_0ercy_19.png", "TableImg_H9pqm_5.png"], "original_data_index": 2780, "original_sql": "SELECT MIN(Company_ID) FROM company WHERE \"Assets_in_Billion\" <> 213.0 UNION SELECT MIN(Company_ID) FROM employment WHERE \"Company_ID\" = 13"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vbemj_12.png", "TableImg_Taazs_5.png"], "original_data_index": 2785, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are greater than 5 but not equal to 10, considering only those present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aoagp_12.png", "TableImg_O2fuk_5.png"], "original_data_index": 2784, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are not equal to 2 and also have an ID greater than or equal to 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rcts6_5.png", "TableImg_Jl045_4.png"], "original_data_index": 2788, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are not equal to 4 and are not present in the school bus table with driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ovq9u_12.png", "TableImg_X027s_5.png"], "original_data_index": 2787, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the hometowns of members with card number SLB51, a member ID greater than 8, and a name that is not Matt Lentz, as well as the hometowns of any member who does not live in Simpsonville, South Carolina?", "answer": {"columns": ["Hometown"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Collierville, Tennessee"], ["Columbia, South Carolina"], ["Fort Campbell, Kentucky"], ["Hiram, Georgia"], ["Jacksonville, Florida"], ["LaGrange, Georgia"], ["Louisville, Kentucky"], ["Red Jacket, West Virginia"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_1zf6f_10.png", "TableImg_Xy5ar_10.png"], "original_data_index": 2789, "original_sql": "SELECT Hometown FROM member WHERE Card_Number = \"SLB51\" AND \"Member_ID\" > 8 AND Name != \"Matt Lentz\" UNION SELECT Hometown FROM member WHERE Hometown <> \"Simpsonville, South Carolina\""} {"question": "What is the minimum airport ID and the company ID, grouped by ICAO, where the airport's IATA code is not \"BLL\" or the date is January 29, 1964, or the altitude is less than or equal to 3650.0, and the ICAO code is not \"EBBR\", and the airport ID is greater than 2, and the airport name is \"Billund Airport\", and the city is \"Akureyri\", and the company ID is less than 2, and the airport name is not \"Ted Stevens Airport\", and the IATA code is \"BCN\", and the vehicle flight number is \"M2-F1 #61\", or the velocity is greater than or equal to 240.0, and the airport ID is not 3, or the pilot is \"Thompson\" and the altitude is less than or equal to 3650.0, or the country is \"Netherlands\" and the ICAO code is \"LEBL\"?", "answer": {"columns": ["MIN(T1.id)", "company_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1", "2"], ["9", "11"], ["2", "3"], ["7", "11"], ["6", "6"], ["8", "13"], ["4", "4"], ["5", "5"], ["3", "4"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_8agw8_9.png", "TableImg_Fqt49_13.png"], "original_data_index": 2786, "original_sql": "SELECT MIN(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA <> \"BLL\" OR Date = \"January 29, 1964\" OR \"Altitude\" <= 3650.0 AND ICAO <> \"EBBR\" AND \"airport_id\" > 2 AND name = \"Billund Airport\" GROUP BY ICAO HAVING City = \"Akureyri\" AND company_id < 2 AND name <> \"Ted Stevens Airport\" AND IATA = \"BCN\" AND Vehicle_Flight_number = \"M2-F1 #61\" OR Velocity >= 240.0 AND airport_id <> 3 OR Pilot = \"Thompson\" AND Altitude <= 3650.0 OR Country = \"Netherlands\" AND ICAO = \"LEBL\""} {"question": "What are the continent names and IDs, excluding those from America, and also the continent names and IDs for Europe where the ID is greater than 2?", "answer": {"columns": ["Continent", "ContId"], "index": [0, 1, 2, 3], "data": [["europe", "2"], ["asia", "3"], ["africa", "4"], ["australia", "5"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_Vrxoi_5.png", "TableImg_Gto6x_5.png"], "original_data_index": 2791, "original_sql": "SELECT Continent, ContId FROM continents WHERE Continent != \"america\" UNION ALL SELECT Continent, ContId FROM continents WHERE \"ContId\" > 2 AND Continent = \"europe\""} {"question": "Which driver IDs are present in both the driver and school bus tables, and are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E20uf_12.png", "TableImg_Dmyad_5.png"], "original_data_index": 2794, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs less than 8 that are not also driver IDs greater than 10, considering only the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M4ce0_12.png", "TableImg_C60id_5.png"], "original_data_index": 2793, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs that are less than 3, or any aircraft IDs that are not equal to 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1ttzz_5.png", "TableImg_83a2x_4.png"], "original_data_index": 2796, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the driver IDs greater than 5 that are in the driver table but not in the school bus table, excluding any driver ID that is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Srhqy_12.png", "TableImg_9inpl_5.png"], "original_data_index": 2795, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are greater than or equal to 7, but not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H6b9c_12.png", "TableImg_14t29_5.png"], "original_data_index": 2792, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the vehicle details, excluding \"Van\", and also the vehicle details for vehicles with an ID greater than 2?", "answer": {"columns": ["vehicle_details"], "index": [0, 1], "data": [["Car"], ["Truck"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_9z641_3.png", "TableImg_Jx8cg_3.png"], "original_data_index": 2790, "original_sql": "SELECT vehicle_details FROM Vehicles WHERE vehicle_details <> \"Van\" UNION SELECT vehicle_details FROM Vehicles WHERE \"vehicle_id\" > 2"} {"question": "Which driver IDs are either 6 or 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P38h0_12.png", "TableImg_4erz0_5.png"], "original_data_index": 2799, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs, excluding driver ID 12, that are present in both the driver and school bus tables, where the driver ID is less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B8ezw_12.png", "TableImg_S6qu4_5.png"], "original_data_index": 2800, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 10, and where the driver ID is greater than or equal to 1?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7khk2_12.png", "TableImg_Az6hs_5.png"], "original_data_index": 2801, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are both greater than or equal to 5 and also not equal to 7, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mnr7f_12.png", "TableImg_Xit7h_5.png"], "original_data_index": 2802, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs that are less than 3, excluding those driver IDs that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xmd0i_12.png", "TableImg_Zfcgf_5.png"], "original_data_index": 2803, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs that are either greater than or equal to 5 in the aircraft table, or less than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0impy_5.png", "TableImg_8ft8k_4.png"], "original_data_index": 2804, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are either less than or equal to 4, or greater than 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mjw6d_12.png", "TableImg_Uhejz_5.png"], "original_data_index": 2805, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What driver IDs are both equal to 4 and less than 7, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cbxjr_12.png", "TableImg_0dme9_5.png"], "original_data_index": 2806, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that are not 3 and also have an ID greater than or equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_51mkk_5.png", "TableImg_Bkldb_4.png"], "original_data_index": 2807, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which store IDs are not store ID 2 or in district ID greater than 11, and also which store IDs are less than or equal to 5?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_0vba5_5.png", "TableImg_Q701j_5.png"], "original_data_index": 2808, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" != 2 OR \"District_ID\" > 11 UNION ALL SELECT Store_ID FROM store_district WHERE \"Store_ID\" <= 5"} {"question": "Which driver IDs, excluding driver ID 9, are in the driver table, and which driver IDs, up to and including 3, are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I89tc_12.png", "TableImg_Au88e_5.png"], "original_data_index": 2809, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs that are either at least 5 in the driver table or at least 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5dt84_12.png", "TableImg_F5pk5_5.png"], "original_data_index": 2810, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are either equal to 3 or greater than 3, considering both driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ob13n_12.png", "TableImg_6yt3h_5.png"], "original_data_index": 2811, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the total count of feature IDs, and what are those feature IDs, for burglar alarms that are not amenities?", "answer": {"columns": ["SUM(T1.feature_id)", "feature_id"], "index": [0], "data": [["16", "4"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Um2r6_3.png", "TableImg_3uhm5_15.png"], "original_data_index": 2797, "original_sql": "SELECT SUM(T1.feature_id), T2.feature_id FROM Other_Available_Features as T1 JOIN Other_Property_Features as T2 ON T1.feature_id = T2.feature_id WHERE feature_type_code <> \"Amenity\" AND feature_description = \"Burglar Alarm\""} {"question": "Which driver IDs are not equal to 9 and are not present in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sxnvj_12.png", "TableImg_Drk7y_5.png"], "original_data_index": 2798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are equal to 8 but not less than or equal to 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_15gbd_12.png", "TableImg_Bwdz0_5.png"], "original_data_index": 2812, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the IDs of airports where the IATA code is BOS or the ICAO code is not KBOS and the name is Ted Stevens Airport, combined with the IDs of flights with an altitude of 3650?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Tww22_9.png", "TableImg_Wspe2_13.png"], "original_data_index": 2814, "original_sql": "SELECT id FROM airport WHERE IATA = \"BOS\" OR ICAO <> \"KBOS\" AND name = \"Ted Stevens Airport\" UNION SELECT id FROM flight WHERE \"Altitude\" = 3650.0"} {"question": "What is the maximum value of 'other_details' in the 'Documents' table where the document type is \"Hard Drive\", 'other_details' is not \"n\", and the document status is not \"working\", or the receipt number is \"61\", or the shipping agent is \"UP\" and the document ID is less than or equal to 2, excluding the maximum value of 'other_details' from the 'Employees' table where the role code is not \"PT\", the employee ID is greater than 3, and the employee name is not \"Erling\", or 'other_details' is not \"b\"?", "answer": {"columns": ["MAX(other_details)"], "index": [0], "data": [["z"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Pu40s_15.png", "TableImg_Ev2d6_6.png"], "original_data_index": 2815, "original_sql": "SELECT MAX(other_details) FROM Documents WHERE document_type_code = \"Hard Drive\" AND other_details <> \"n\" AND document_status_code <> \"working\" OR receipt_number = \"61\" OR shipping_agent_code = \"UP\" AND \"document_id\" <= 2 EXCEPT SELECT MAX(other_details) FROM Employees WHERE role_code <> \"PT\" AND \"employee_id\" > 3 AND employee_name <> \"Erling\" OR other_details != \"b\""} {"question": "What are the driver IDs that are greater than or equal to 2 and also appear in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ssckx_12.png", "TableImg_K9nbu_5.png"], "original_data_index": 2818, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs that are either less than or equal to 3 in the aircraft table, or not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ztr43_5.png", "TableImg_Fz7o6_4.png"], "original_data_index": 2816, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 1 or greater, but not in the airport_aircraft table with an ID less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X1yg1_5.png", "TableImg_Ug767_4.png"], "original_data_index": 2817, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the descriptions of shipping agents that are not named \"UPS\" or have a code other than \"UP\"?", "answer": {"columns": ["shipping_agent_description"], "index": [0, 1, 2, 3], "data": [["k"], ["q"], ["t"], ["w"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_3zv9y_5.png", "TableImg_K7z9e_5.png"], "original_data_index": 2819, "original_sql": "SELECT shipping_agent_description FROM Ref_Shipping_Agents WHERE shipping_agent_name <> \"UPS\" UNION SELECT shipping_agent_description FROM Ref_Shipping_Agents WHERE shipping_agent_code <> \"UP\""} {"question": "What are the aircraft IDs that are greater than or equal to 1 in the aircraft table, combined with the aircraft IDs that are less than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uvvo9_5.png", "TableImg_98seo_4.png"], "original_data_index": 2822, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the other details and average employee ID for employees who are not named Jordyn, have the role code \"PT\", have an employee ID less than 3, or have other details not equal to \"b\", combined with the other details and average employee ID for employees with other details equal to \"h\"?", "answer": {"columns": ["other_details", "AVG(employee_id)"], "index": [0, 1], "data": [["h", "4.3333333333"], ["h", "1.0"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_T4ql1_6.png", "TableImg_Jalgf_6.png"], "original_data_index": 2821, "original_sql": "SELECT other_details, AVG(employee_id) FROM Employees WHERE employee_name != \"Jordyn\" OR role_code = \"PT\" OR \"employee_id\" < 3 OR other_details != \"b\" UNION ALL SELECT other_details, AVG(employee_id) FROM Employees WHERE other_details = \"h\""} {"question": "Give me the mobile phone number, date of birth, date they became a customer, customer address ID, and first name for customers with ID 15 or a mobile phone number that isn't \"1-197-686-2849x8761\". Also, give me the same information for customers where the customer address ID is 13 or greater, or whose customer status code isn't \"Bad Customer\" and whose date of birth is \"1998-09-18 04:45:01\" and phone number is \"1-875-045-0806\" and amount outstanding is 9443.0, or whose email address isn't \"asha.kilback@example.org\", or whose first name isn't \"Genevieve\" and mobile phone number isn't \"848-099-2095x785\", or whose last name isn't \"Tromp\".", "answer": {"columns": ["cell_mobile_phone_number", "date_of_birth", "date_became_customer", "customer_address_id", "first_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["861-638-9797", "1998-12-15 13:24:40", "2016-05-11 17:03:48", "13", "Carole"], ["578-518-4785x612", "1995-07-17 12:13:16", "2015-11-16 22:52:14", "10", "Genevieve"], ["081-097-3684", "1993-02-07 05:40:26", "2016-07-22 15:53:44", "8", "Jordy"], ["00659133944", "1991-02-10 00:42:17", "2017-11-12 04:34:44", "2", "Millie"], ["(780)719-4206x033", "1993-03-08 08:48:42", "2017-04-16 05:12:21", "9", "Amya"], ["848-099-2095x785", "1996-11-07 05:30:55", "2015-06-24 03:50:04", "1", "Marina"], ["739-333-6966x187", "1998-09-18 04:45:01", "2017-10-05 14:15:46", "10", "Dianna"], ["1-387-258-1016x96963", "1991-12-05 02:50:15", "2016-02-17 08:26:23", "12", "Leif"], ["+45(6)4872981083", "1996-08-29 00:03:08", "2017-11-25 01:42:26", "1", "Rylan"], ["577-584-4864", "1994-05-07 01:32:16", "2016-11-30 10:37:41", "13", "Ray"], ["200.830.8723", "1993-07-09 11:11:36", "2016-05-13 07:38:23", "9", "Omer"], ["+57(9)4602098297", "1988-09-19 14:45:56", "2016-09-04 23:08:20", "7", "Sigrid"], ["1-401-108-8016x078", "1996-05-23 01:21:54", "2016-03-18 06:14:18", "10", "Estelle"], ["(630)964-2426", "1996-08-30 06:17:50", "2015-09-25 13:59:21", "1", "Dameon"], ["861-638-9797", "1998-12-15 13:24:40", "2016-05-11 17:03:48", "13", "Carole"], ["578-518-4785x612", "1995-07-17 12:13:16", "2015-11-16 22:52:14", "10", "Genevieve"], ["1-197-686-2849x8761", "1994-06-21 01:34:56", "2016-04-08 00:28:15", "10", "Clara"], ["081-097-3684", "1993-02-07 05:40:26", "2016-07-22 15:53:44", "8", "Jordy"], ["00659133944", "1991-02-10 00:42:17", "2017-11-12 04:34:44", "2", "Millie"], ["(780)719-4206x033", "1993-03-08 08:48:42", "2017-04-16 05:12:21", "9", "Amya"], ["848-099-2095x785", "1996-11-07 05:30:55", "2015-06-24 03:50:04", "1", "Marina"], ["739-333-6966x187", "1998-09-18 04:45:01", "2017-10-05 14:15:46", "10", "Dianna"], ["1-387-258-1016x96963", "1991-12-05 02:50:15", "2016-02-17 08:26:23", "12", "Leif"], ["+45(6)4872981083", "1996-08-29 00:03:08", "2017-11-25 01:42:26", "1", "Rylan"], ["577-584-4864", "1994-05-07 01:32:16", "2016-11-30 10:37:41", "13", "Ray"], ["200.830.8723", "1993-07-09 11:11:36", "2016-05-13 07:38:23", "9", "Omer"], ["+57(9)4602098297", "1988-09-19 14:45:56", "2016-09-04 23:08:20", "7", "Sigrid"], ["1-401-108-8016x078", "1996-05-23 01:21:54", "2016-03-18 06:14:18", "10", "Estelle"], ["(630)964-2426", "1996-08-30 06:17:50", "2015-09-25 13:59:21", "1", "Dameon"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_Ce1o2_15.png", "TableImg_Tr7yc_15.png"], "original_data_index": 2820, "original_sql": "SELECT cell_mobile_phone_number, date_of_birth, date_became_customer, customer_address_id, first_name FROM Customers WHERE \"customer_id\" = 15 OR cell_mobile_phone_number != \"1-197-686-2849x8761\" UNION ALL SELECT cell_mobile_phone_number, date_of_birth, date_became_customer, customer_address_id, first_name FROM Customers WHERE \"customer_address_id\" >= 13 OR customer_status_code <> \"Bad Customer\" AND date_of_birth = \"1998-09-18 04:45:01\" AND phone_number = \"1-875-045-0806\" AND \"amount_outstanding\" = 9443.0 OR email_address <> \"asha.kilback@example.org\" OR first_name != \"Genevieve\" AND cell_mobile_phone_number != \"848-099-2095x785\" OR last_name != \"Tromp\""} {"question": "Which store IDs are not 1, and also which store IDs are 5 or greater?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["5"], ["5"], ["5"], ["5"], ["5"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_J1gn0_5.png", "TableImg_5ca0g_15.png"], "original_data_index": 2823, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" != 1 UNION ALL SELECT Store_ID FROM store_product WHERE \"Store_ID\" >= 5"} {"question": "What are the feature descriptions, average feature IDs, and counts of feature type codes, grouped by feature description, where the count of feature type codes is at least 1, or where the average feature ID is at least 3.0 or the count of feature type codes is greater than 1?", "answer": {"columns": ["feature_description", "AVG(feature_id)", "COUNT(feature_type_code)"], "index": [0, 1, 2, 3, 4], "data": [["Air Conditioning.", "2", "1"], ["Burglar Alarm", "4", "1"], ["Swimming Pool.", "3", "1"], ["Burglar Alarm", "4", "1"], ["Swimming Pool.", "3", "1"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_Y0eya_3.png", "TableImg_9ecvn_3.png"], "original_data_index": 2824, "original_sql": "SELECT feature_description, AVG(feature_id), COUNT(feature_type_code) FROM Other_Available_Features GROUP BY feature_description HAVING COUNT(feature_type_code) >= 1 UNION ALL SELECT feature_description, AVG(feature_id), COUNT(feature_type_code) FROM Other_Available_Features GROUP BY feature_description HAVING AVG(feature_id) >= 3.0 OR COUNT(feature_type_code) > 1"} {"question": "What are the advisor and student ID for students where the student ID is less than or equal to 1023 or the advisor is less than 1148 and not from NYC, combined with the advisor and student ID for students who are not from HKG and are 18 years old, or have an advisor greater than 8741 and are not male, or have a major of 600, or have a student ID not equal to 1014, or a last name that isn't Smith?", "answer": {"columns": ["Advisor", "StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["1121", "1001"], ["1121", "1005"], ["1121", "1018"], ["1148", "1006"], ["1148", "1011"], ["1148", "1017"], ["2192", "1009"], ["2192", "1010"], ["2192", "1016"], ["2192", "1019"], ["2311", "1028"], ["2311", "1029"], ["2311", "1030"], ["5718", "1034"], ["5718", "1035"], ["7134", "1025"], ["7134", "1026"], ["7271", "1020"], ["7271", "1024"], ["7712", "1002"], ["7723", "1012"], ["7792", "1003"], ["8423", "1004"], ["8721", "1015"], ["8722", "1021"], ["8722", "1022"], ["8722", "1023"], ["8723", "1027"], ["8741", "1014"], ["8772", "1031"], ["8772", "1032"], ["8772", "1033"], ["8918", "1007"], ["9172", "1008"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Man2z_34.png", "TableImg_3obmq_34.png"], "original_data_index": 2825, "original_sql": "SELECT Advisor, StuID FROM Student WHERE \"StuID\" <= 1023 OR \"Advisor\" < 1148 AND city_code != \"NYC\" UNION SELECT Advisor, StuID FROM Student WHERE city_code <> \"HKG\" AND \"Age\" = 18 OR \"Advisor\" > 8741 AND Sex != \"M\" OR \"Major\" = 600 OR \"StuID\" != 1014 OR LName <> \"Smith\""} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 2 or greater, combined with the aircraft IDs from the airport_aircraft table that have an ID of 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gpvot_5.png", "TableImg_Lee8q_4.png"], "original_data_index": 2826, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the template type codes that are not \"PPT\" and have a description other than \"CV\", along with the template type codes of templates with IDs greater than or equal to 14 and a type code of \"PPT\"?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2], "data": [["AD"], ["BK"], ["PP"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_Ukjuj_5.png", "TableImg_Aa17h_20.png"], "original_data_index": 2827, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != \"PPT\" AND Template_Type_Description != \"CV\" UNION SELECT Template_Type_Code FROM Templates WHERE \"Template_ID\" >= 14 AND Template_Type_Code = \"PPT\""} {"question": "What are the name, branch ID, opening year, road address, and membership amount for branches named \"Cochrane\" that didn't open in 2009, and also for branches named \"Alexandre\" that are not on \"Concord Road\" or don't have a branch ID of 8 or a membership amount of 91?", "answer": {"columns": ["Name", "Branch_ID", "Open_year", "Address_road", "membership_amount"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Cochrane", "5", "2012", "Brampton Road", "1418"], ["Alexandre", "1", "2001", "Valleys Place", "112"], ["Popert", "2", "2009", "Oaks Crescent", "11"], ["Stanley", "3", "2013", "Abbott Street", "6"], ["Zytogorski", "4", "2009", "Abbey Rise", "7"], ["Cochrane", "5", "2012", "Brampton Road", "1418"], ["Taverner", "6", "2014", "Cecilia Avenue", "56"], ["Brooke Greville", "8", "2009", "Glebe Street", "31"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_5zhyu_8.png", "TableImg_Sc9qs_8.png"], "original_data_index": 2828, "original_sql": "SELECT Name, Branch_ID, Open_year, Address_road, membership_amount FROM branch WHERE Name = \"Cochrane\" AND Open_year <> \"2009\" UNION ALL SELECT Name, Branch_ID, Open_year, Address_road, membership_amount FROM branch WHERE Name = \"Alexandre\" AND Address_road != \"Concord Road\" AND \"Branch_ID\" != 8 OR membership_amount != \"91\""} {"question": "What are the driver IDs that are both less than or equal to 7 and also greater than 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kh7zj_12.png", "TableImg_M86tp_5.png"], "original_data_index": 2829, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the car models that are not \"chevrolet\" or have a MakeId of 44, and also the \"renault\" models made by maker 5?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357], "data": [["buick"], ["plymouth"], ["amc"], ["ford"], ["ford"], ["plymouth"], ["pontiac"], ["amc"], ["citroen"], ["ford"], ["plymouth"], ["amc"], ["dodge"], ["plymouth"], ["ford"], ["buick"], ["toyota"], ["plymouth"], ["amc"], ["ford"], ["datsun"], ["volkswagen"], ["peugeot"], ["audi"], ["saab"], ["bmw"], ["amc"], ["ford"], ["dodge"], ["hi"], ["datsun"], ["toyota"], ["ford"], ["volkswagen"], ["amc"], ["plymouth"], ["ford"], ["amc"], ["pontiac"], ["ford"], ["plymouth"], ["dodge"], ["ford"], ["pontiac"], ["amc"], ["pontiac"], ["ford"], ["mercury"], ["opel"], ["peugeot"], ["fiat"], ["toyota"], ["datsun"], ["volkswagen"], ["plymouth"], ["toyota"], ["dodge"], ["volkswagen"], ["ford"], ["pontiac"], ["plymouth"], ["ford"], ["amc"], ["mercury"], ["buick"], ["oldsmobile"], ["chrysler"], ["mazda"], ["amc"], ["ford"], ["plymouth"], ["volvo"], ["volkswagen"], ["peugeot"], ["renault"], ["ford"], ["datsun"], ["toyota"], ["dodge"], ["toyota"], ["buick"], ["amc"], ["ford"], ["dodge"], ["mercury"], ["ford"], ["plymouth"], ["chrysler"], ["buick"], ["amc"], ["plymouth"], ["amc"], ["ford"], ["plymouth"], ["volkswagen"], ["ford"], ["plymouth"], ["oldsmobile"], ["amc"], ["toyota"], ["datsun"], ["mazda"], ["ford"], ["mercury"], ["fiat"], ["pontiac"], ["fiat"], ["opel"], ["audi"], ["volvo"], ["dodge"], ["saab"], ["toyota"], ["oldsmobile"], ["plymouth"], ["ford"], ["amc"], ["datsun"], ["ford"], ["toyota"], ["amc"], ["plymouth"], ["ford"], ["buick"], ["dodge"], ["ford"], ["amc"], ["audi"], ["volkswagen"], ["opel"], ["toyota"], ["datsun"], ["dodge"], ["fiat"], ["fiat"], ["honda"], ["subaru"], ["fiat"], ["plymouth"], ["mercury"], ["ford"], ["pontiac"], ["plymouth"], ["ford"], ["buick"], ["amc"], ["plymouth"], ["buick"], ["ford"], ["toyota"], ["ford"], ["amc"], ["pontiac"], ["toyota"], ["volkswagen"], ["datsun"], ["ford"], ["volkswagen"], ["amc"], ["audi"], ["peugeot"], ["volvo"], ["saab"], ["honda"], ["fiat"], ["opel"], ["capri"], ["dodge"], ["renault"], ["dodge"], ["amc"], ["ford"], ["plymouth"], ["ford"], ["amc"], ["volkswagen"], ["honda"], ["dodge"], ["ford"], ["pontiac"], ["amc"], ["volkswagen"], ["datsun"], ["toyota"], ["ford"], ["volvo"], ["plymouth"], ["peugeot"], ["toyota"], ["mercedes-benz"], ["cadillac"], ["ford"], ["dodge"], ["honda"], ["buick"], ["renault"], ["plymouth"], ["datsun"], ["oldsmobile"], ["dodge"], ["mercury"], ["buick"], ["plymouth"], ["ford"], ["pontiac"], ["chrysler"], ["ford"], ["volkswagen"], ["pontiac"], ["toyota"], ["ford"], ["dodge"], ["subaru"], ["volkswagen"], ["datsun"], ["bmw"], ["mazda"], ["volkswagen"], ["ford"], ["mazda"], ["datsun"], ["honda"], ["oldsmobile"], ["dodge"], ["mercury"], ["pontiac"], ["ford"], ["ford"], ["plymouth"], ["amc"], ["buick"], ["mercury"], ["dodge"], ["amc"], ["buick"], ["ford"], ["dodge"], ["toyota"], ["datsun"], ["dodge"], ["toyota"], ["plymouth"], ["oldsmobile"], ["datsun"], ["audi"], ["volvo"], ["saab"], ["peugeot"], ["volkswagen"], ["honda"], ["pontiac"], ["mercury"], ["ford"], ["amc"], ["dodge"], ["ford"], ["mercury"], ["dodge"], ["buick"], ["ford"], ["chrysler"], ["volkswagen"], ["mazda"], ["dodge"], ["amc"], ["mercedes"], ["cadillac"], ["peugeot"], ["oldsmobile"], ["plymouth"], ["plymouth"], ["datsun"], ["fiat"], ["buick"], ["oldsmobile"], ["pontiac"], ["volkswagen"], ["toyota"], ["datsun"], ["ford"], ["amc"], ["dodge"], ["audi"], ["toyota"], ["mazda"], ["datsun"], ["toyota"], ["mazda"], ["dodge"], ["datsun"], ["volkswagen"], ["volkswagen"], ["audi"], ["mercedes-benz"], ["honda"], ["renault"], ["subaru"], [" volkswagen"], ["datsun"], ["mazda"], ["triumph"], ["ford"], ["honda"], ["plymouth"], ["buick"], ["dodge"], ["plymouth"], ["toyota"], ["plymouth"], ["honda"], ["subaru"], ["datsun"], ["toyota"], ["mazda"], ["plymouth"], ["ford"], ["ford"], ["volkswagen"], ["renault"], ["honda"], ["toyota"], ["datsun"], ["mazda"], ["peugeot"], ["saab"], ["volvo"], ["toyota"], ["datsun"], ["buick"], ["oldsmobile"], ["ford"], ["chrysler"], ["pontiac"], ["dodge"], ["pontiac"], ["ford"], ["amc"], ["volkswagen"], ["mazda"], ["mazda"], ["plymouth"], ["mercury"], ["nissan"], ["honda"], ["toyota"], ["honda"], ["honda"], ["datsun"], ["buick"], ["oldsmobile"], ["chrysler"], ["ford"], ["toyota"], ["dodge"], ["ford"], ["volkswagen"], ["dodge"], ["ford"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_Ys2mx_406.png", "TableImg_8rni4_36.png"], "original_data_index": 2813, "original_sql": "SELECT Model FROM car_names WHERE Model != \"chevrolet\" OR \"MakeId\" = 44 UNION ALL SELECT Model FROM model_list WHERE \"Maker\" = 5 AND Model = \"renault\""} {"question": "What are the driver IDs that are either less than or equal to 7, or not equal to 10, considering both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B6n2c_12.png", "TableImg_Zt18p_5.png"], "original_data_index": 2833, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are less than 12 from the driver table, combined with the driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pwur2_12.png", "TableImg_Gr54c_5.png"], "original_data_index": 2830, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are less than or equal to 5 and are in the driver table but not in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Clsmt_12.png", "TableImg_1d6tp_5.png"], "original_data_index": 2831, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are less than 12 from the driver table, combined with the driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3f0oo_12.png", "TableImg_Wx1w9_5.png"], "original_data_index": 2832, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What Volkswagen models are not Plymouth Satellite Sebring and also have a MakeId other than 235, and what Peugeot models are available?", "answer": {"columns": ["Model"], "index": [0], "data": [["peugeot"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_U0zcp_406.png", "TableImg_2t5ol_36.png"], "original_data_index": 2836, "original_sql": "SELECT Model FROM car_names WHERE Make != \"plymouth satellite sebring\" AND Model = \"volkswagen\" OR \"MakeId\" <> 235 INTERSECT SELECT Model FROM model_list WHERE Model = \"peugeot\""} {"question": "What are the aircraft IDs that are not 4 and are not present in the airport_aircraft table with an ID other than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S69cn_5.png", "TableImg_93ppo_4.png"], "original_data_index": 2835, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the IDs of airports that are not in Baltimore or have an ICAO code other than EKBI, and also have flights operated by companies with IDs greater than 9?", "answer": {"columns": ["id"], "index": [0, 1, 2], "data": [["7"], ["8"], ["9"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_8wqom_9.png", "TableImg_Ltz08_13.png"], "original_data_index": 2834, "original_sql": "SELECT id FROM airport WHERE City <> \"Baltimore\" OR ICAO != \"EKBI\" INTERSECT SELECT id FROM flight WHERE \"company_id\" > 9"} {"question": "What are the aircraft IDs that are greater than or equal to 1 in the aircraft table, combined with the aircraft IDs that are less than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q53pz_5.png", "TableImg_Cy1ps_4.png"], "original_data_index": 2837, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the driver IDs that are either less than or equal to 6, or are present in the school bus table but not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kldga_12.png", "TableImg_Igrg3_5.png"], "original_data_index": 2840, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the IDs of drivers who have an ID of 10 or greater and are also assigned to a school bus, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dp8ny_12.png", "TableImg_59ggs_5.png"], "original_data_index": 2838, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 10 from the driver table and only including driver IDs less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U5ccq_12.png", "TableImg_08g85_5.png"], "original_data_index": 2839, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs, excluding driver ID 1, are present in both the driver and school bus tables, with the school bus driver IDs being 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qbq02_12.png", "TableImg_P0285_5.png"], "original_data_index": 2841, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are greater than 1 and also appear in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6yf0g_12.png", "TableImg_0lpff_5.png"], "original_data_index": 2843, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs, where one driver ID is 2 from the driver table and another driver ID is 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Putcp_12.png", "TableImg_Utrfk_5.png"], "original_data_index": 2842, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the employee ID, copy number, document ID, and draft number for records where the document ID is less than 20 or the employee ID is not 2, and also the employee ID is not 8?", "answer": {"columns": ["employee_id", "copy_number", "document_id", "draft_number"], "index": [0, 1, 2], "data": [["1", "5", "1", "2"], ["2", "4", "2", "1"], ["2", "10", "10", "20"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Ip4wr_4.png", "TableImg_4lqa0_4.png"], "original_data_index": 2845, "original_sql": "SELECT employee_id, copy_number, document_id, draft_number FROM Circulation_History WHERE \"document_id\" < 20 OR \"employee_id\" != 2 INTERSECT SELECT employee_id, copy_number, document_id, draft_number FROM Circulation_History WHERE \"employee_id\" <> 8"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 5 from the driver table and including only driver IDs greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ajo4_12.png", "TableImg_F0a5p_5.png"], "original_data_index": 2844, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs that are both aircraft ID 1 and not aircraft ID 3, considering aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hy44w_5.png", "TableImg_W9k6e_4.png"], "original_data_index": 2847, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs are greater than 1 but not present in the school bus table with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9y6ia_12.png", "TableImg_Idyod_5.png"], "original_data_index": 2849, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What is the sum of role codes and employee IDs for employees where other details are not \"b\", or the employee name is \"Koby\", or the employee ID is 7? Also, what is the sum of role codes and employee IDs for employees where the employee name is not \"Haley\", the employee ID is 8, the role code is not \"ED\", and other details are not \"u\"?", "answer": {"columns": ["SUM(role_code)", "employee_id"], "index": [0, 1], "data": [["", ""], ["0.0", "1.0"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_Trgfs_6.png", "TableImg_Qo5z7_6.png"], "original_data_index": 2846, "original_sql": "SELECT SUM(role_code), employee_id FROM Employees WHERE other_details != \"b\" OR employee_name = \"Koby\" OR \"employee_id\" = 7 UNION SELECT SUM(role_code), employee_id FROM Employees WHERE employee_name <> \"Haley\" AND \"employee_id\" = 8 AND role_code <> \"ED\" AND other_details != \"u\""} {"question": "What is the lowest branch ID for purchases where the total pounds are over 321.13 and the branch ID is 6, or the member ID is not 4, or the year is 2018? Also, what is the lowest branch ID for purchases where the year is 2018, or the member ID is less than 1, or the branch ID is not 2, or the total pounds is not 430.29?", "answer": {"columns": ["MIN(Branch_ID)"], "index": [0, 1], "data": [["1"], ["1"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_Iuliw_8.png", "TableImg_Xid5t_8.png"], "original_data_index": 2848, "original_sql": "SELECT MIN(Branch_ID) FROM purchase WHERE \"Total_pounds\" > 321.13 AND Branch_ID = \"6\" OR \"Member_ID\" != 4 OR Year = \"2018\" UNION ALL SELECT MIN(Branch_ID) FROM purchase WHERE Year = \"2018\" OR \"Member_ID\" < 1 OR Branch_ID != \"2\" OR \"Total_pounds\" != 430.29"} {"question": "What are the driver IDs that are either greater than or equal to 10 in the driver table or greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8i1xy_12.png", "TableImg_8i5ra_5.png"], "original_data_index": 2850, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the highest store ID for stores with ID 1 and a number of product categories not equal to 793, combined with the highest store ID for products not associated with store ID 3?", "answer": {"columns": ["MAX(Store_ID)"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_7pgly_5.png", "TableImg_X1eyx_15.png"], "original_data_index": 2851, "original_sql": "SELECT MAX(Store_ID) FROM store WHERE \"Store_ID\" = 1 AND \"Number_of_product_category\" <> 793.0 UNION SELECT MAX(Store_ID) FROM store_product WHERE \"Store_ID\" <> 3"} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 9) and the school bus table (with driver IDs greater than or equal to 9)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ouc3r_12.png", "TableImg_17t5y_5.png"], "original_data_index": 2852, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the album titles and IDs that are not \"Let There Be Rock\" and have an artist ID less than 127 and an ID less than or equal to 326, combined with the employee IDs and titles where the city isn't Calgary or the postal code isn't T2P 5M5 or the phone number isn't \"+1 (403) 262-3443\" or the country is Canada and the last name isn't Johnson and the state is AB or the hire date isn't \"2002-08-14 00:00:00\" or the first name is Nancy and the address isn't \"683 10 Street SW\" and the birth date isn't \"1965-03-03 00:00:00\" and the reports to isn't 2 or the fax isn't \"+1 (403) 263-4289\" and the ID is 6 or the title is \"Sales Support Agent\"?", "answer": {"columns": ["id", "title"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205], "data": [["1", "For Those About To Rock We Salute You"], ["1", "General Manager"], ["2", "Balls to the Wall"], ["2", "Sales Manager"], ["3", "Restless and Wild"], ["3", "Sales Support Agent"], ["4", "Sales Support Agent"], ["5", "Big Ones"], ["5", "Sales Support Agent"], ["6", "IT Manager"], ["6", "Jagged Little Pill"], ["7", "Facelift"], ["7", "IT Staff"], ["8", "IT Staff"], ["8", "Warner 25 Anos"], ["9", "Plays Metallica By Four Cellos"], ["10", "Audioslave"], ["11", "Out Of Exile"], ["12", "BackBeat Soundtrack"], ["13", "The Best Of Billy Cobham"], ["14", "Alcohol Fueled Brewtality Live! [Disc 1]"], ["15", "Alcohol Fueled Brewtality Live! [Disc 2]"], ["16", "Black Sabbath"], ["17", "Black Sabbath Vol. 4 (Remaster)"], ["18", "Body Count"], ["19", "Chemical Wedding"], ["20", "The Best Of Buddy Guy - The Millenium Collection"], ["21", "Prenda Minha"], ["22", "Sozinho Remix Ao Vivo"], ["23", "Minha Historia"], ["24", "Afrociberdelia"], ["25", "Da Lama Ao Caos"], ["26", "Ac\u00fastico MTV live"], ["27", "Cidade Negra - Hits"], ["28", "Na Pista"], ["29", "Ax\u00e9 Bahia 2001"], ["30", "BBC Sessions [Disc 1] live"], ["31", "Bongo Fury"], ["32", "Carnaval 2001"], ["33", "Chill: Brazil (Disc 1)"], ["34", "Chill: Brazil (Disc 2)"], ["35", "Garage Inc. (Disc 1)"], ["36", "Greatest Hits II"], ["37", "Greatest Kiss"], ["38", "Heart of the Night"], ["39", "International Superhits"], ["40", "Into The Light"], ["41", "Meus Momentos"], ["42", "Minha Hist\u00f3ria"], ["43", "MK III The Final Concerts [Disc 1]"], ["44", "Physical Graffiti [Disc 1]"], ["45", "Sambas De Enredo 2001"], ["46", "Supernatural"], ["47", "The Best of Ed Motta"], ["48", "The Essential Miles Davis [Disc 1]"], ["49", "The Essential Miles Davis [Disc 2]"], ["50", "The Final Concerts (Disc 2)"], ["51", "Up An' Atom"], ["52", "Vin\u00edcius De Moraes - Sem Limite"], ["53", "Vozes do MPB"], ["54", "Chronicle, Vol. 1"], ["55", "Chronicle, Vol. 2"], ["56", "C\u00e1ssia Eller - Cole\u00e7\u00e3o Sem Limite [Disc 2]"], ["57", "C\u00e1ssia Eller - Sem Limite [Disc 1]"], ["58", "Come Taste The Band"], ["59", "Deep Purple In Rock"], ["60", "Fireball"], ["61", "Knocking at Your Back Door: The Best Of Deep Purple in the 80's"], ["62", "Machine Head"], ["63", "Purpendicular"], ["64", "Slaves And Masters"], ["65", "Stormbringer"], ["66", "The Battle Rages On"], ["67", "Vault: Def Leppard's Greatest Hits"], ["68", "Outbreak"], ["69", "Djavan Ao Vivo - Vol. 02"], ["70", "Djavan Ao Vivo - Vol. 1"], ["71", "Elis Regina-Minha Hist\u00f3ria"], ["72", "The Cream Of Clapton"], ["73", "Unplugged"], ["74", "Album Of The Year"], ["75", "Angel Dust"], ["76", "King For A Day Fool For A Lifetime"], ["77", "The Real Thing"], ["78", "Deixa Entrar"], ["79", "In Your Honor [Disc 1]"], ["80", "In Your Honor [Disc 2]"], ["81", "One By One"], ["82", "The Colour And The Shape"], ["83", "My Way: The Best Of Frank Sinatra [Disc 1]"], ["84", "Roda De Funk"], ["85", "As Can\u00e7\u00f5es de Eu Tu Eles"], ["86", "Quanta Gente Veio Ver (Live)"], ["87", "Quanta Gente Veio ver--B\u00f4nus De Carnaval"], ["88", "Faceless"], ["89", "American Idiot"], ["90", "Appetite for Destruction"], ["91", "Use Your Illusion I"], ["92", "Use Your Illusion II"], ["93", "Blue Moods"], ["94", "A Matter of Life and Death"], ["95", "A Real Dead One"], ["96", "A Real Live One"], ["97", "Brave New World"], ["98", "Dance Of Death"], ["99", "Fear Of The Dark"], ["100", "Iron Maiden"], ["101", "Killers"], ["102", "Live After Death"], ["103", "Live At Donington 1992 (Disc 1)"], ["104", "Live At Donington 1992 (Disc 2)"], ["105", "No Prayer For The Dying"], ["106", "Piece Of Mind"], ["107", "Powerslave"], ["108", "Rock In Rio CD1"], ["109", "Rock In Rio CD2"], ["110", "Seventh Son of a Seventh Son"], ["111", "Somewhere in Time"], ["112", "The Number of The Beast"], ["113", "The X Factor"], ["114", "Virtual XI"], ["115", "Sex Machine"], ["116", "Emergency On Planet Earth"], ["117", "Synkronized"], ["118", "The Return Of The Space Cowboy"], ["119", "Get Born"], ["120", "Are You Experienced?"], ["121", "Surfing with the Alien (Remastered)"], ["122", "Jorge Ben Jor 25 Anos"], ["123", "Jota Quest-1995"], ["124", "Cafezinho"], ["125", "Living After Midnight"], ["126", "Unplugged live"], ["127", "BBC Sessions [Disc 2] live"], ["128", "Coda"], ["129", "Houses Of The Holy"], ["130", "In Through The Out Door"], ["131", "IV"], ["132", "Led Zeppelin I"], ["133", "Led Zeppelin II"], ["134", "Led Zeppelin III"], ["135", "Physical Graffiti [Disc 2]"], ["136", "Presence"], ["137", "The Song Remains The Same (Disc 1)"], ["138", "The Song Remains The Same (Disc 2)"], ["139", "A TempestadeTempestade Ou O Livro Dos Dias"], ["140", "Mais Do Mesmo"], ["141", "Greatest Hits"], ["142", "Lulu Santos - RCA 100 Anos De M\u00fasica - \u00c1lbum 01"], ["143", "Lulu Santos - RCA 100 Anos De M\u00fasica - \u00c1lbum 02"], ["144", "Misplaced Childhood"], ["145", "Barulhinho Bom"], ["146", "Seek And Shall Find: More Of The Best (1963-1981)"], ["147", "The Best Of Men At Work"], ["148", "Black Album"], ["149", "Garage Inc. (Disc 2)"], ["150", "Kill 'Em All"], ["151", "Load"], ["152", "Master Of Puppets"], ["153", "ReLoad"], ["154", "Ride The Lightning"], ["155", "St. Anger"], ["156", "...And Justice For All"], ["157", "Miles Ahead"], ["158", "Milton Nascimento Ao Vivo"], ["159", "Minas"], ["160", "Ace Of Spades"], ["161", "Demorou..."], ["162", "Motley Crue Greatest Hits"], ["163", "From The Muddy Banks Of The Wishkah live"], ["164", "Nevermind"], ["165", "Compositores"], ["166", "Olodum"], ["167", "Ac\u00fastico MTV"], ["168", "Arquivo II"], ["169", "Arquivo Os Paralamas Do Sucesso"], ["170", "Bark at the Moon (Remastered)"], ["171", "Blizzard of Ozz"], ["172", "Diary of a Madman (Remastered)"], ["173", "No More Tears (Remastered)"], ["174", "Tribute"], ["175", "Walking Into Clarksdale"], ["176", "Original Soundtracks 1"], ["177", "The Beast Live"], ["178", "Live On Two Legs live"], ["179", "Pearl Jam"], ["180", "Riot Act"], ["181", "Ten"], ["182", "Vs."], ["183", "Dark Side Of The Moon"], ["184", "Os C\u00e3es Ladram Mas A Caravana N\u00e3o P\u00e1ra"], ["185", "Greatest Hits I"], ["186", "News Of The World"], ["187", "Out Of Time"], ["188", "Green"], ["189", "New Adventures In Hi-Fi"], ["190", "The Best Of R.E.M.: The IRS Years"], ["191", "Cesta B\u00e1sica"], ["192", "Raul Seixas"], ["197", "Santana - As Years Go By"], ["198", "Santana Live"], ["204", "Morning Dance"], ["247", "Vinicius De Moraes"], ["256", "Speak of the Devil"], ["259", "Radio Brasil (O Som da Jovem Vanguarda) - Seleccao de Henrique Amaro"], ["271", "Revelations"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_52in3_347.png", "TableImg_Eft2e_8.png"], "original_data_index": 2856, "original_sql": "SELECT id, title FROM albums WHERE title <> \"Let There Be Rock\" AND \"artist_id\" < 127 AND \"id\" <= 326 UNION SELECT id, title FROM employees WHERE city != \"Calgary\" OR postal_code != \"T2P 5M5\" AND phone <> \"+1 (403) 262-3443\" OR country = \"Canada\" AND last_name <> \"Johnson\" AND state = \"AB\" OR hire_date <> \"2002-08-14 00:00:00\" OR first_name = \"Nancy\" AND address <> \"683 10 Street SW\" AND birth_date <> \"1965-03-03 00:00:00\" AND \"reports_to\" != 2.0 OR fax != \"+1 (403) 263-4289\" AND \"id\" = 6 OR title = \"Sales Support Agent\""} {"question": "Which driver IDs are greater than 1, and also include driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7i52l_12.png", "TableImg_Jh892_5.png"], "original_data_index": 2857, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that are both less than 11 and also appear in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pszvc_12.png", "TableImg_8qtvg_5.png"], "original_data_index": 2853, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are equal to 6, or greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Riija_12.png", "TableImg_8b8xk_5.png"], "original_data_index": 2855, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs that are less than 5 from the driver table, combined with the driver IDs that are less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_58qx0_12.png", "TableImg_Lb71z_5.png"], "original_data_index": 2859, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs, excluding driver ID 3, and also the driver IDs from school buses that are 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iz4g3_12.png", "TableImg_Yzpun_5.png"], "original_data_index": 2860, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the different role codes, excluding \"PT\" roles and employees named \"Haley\", combined with the role codes for \"MG\" roles or roles that are not \"Editor\"?", "answer": {"columns": ["role_code"], "index": [0, 1, 2, 3], "data": [["ED"], ["MG"], ["PR"], ["PT"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_9cjor_6.png", "TableImg_7uh41_4.png"], "original_data_index": 2861, "original_sql": "SELECT role_code FROM Employees WHERE role_code <> \"PT\" AND employee_name != \"Haley\" UNION SELECT role_code FROM Roles WHERE role_code = \"MG\" OR role_description != \"Editor\""} {"question": "What are the driver IDs, excluding driver ID 5, from the driver table, combined with the driver IDs greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I8h6z_12.png", "TableImg_6wlfv_5.png"], "original_data_index": 2862, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What is the sum of the role codes for employees where other details are \"u\" or the role code is \"ED\" and the employee ID is greater than 5, combined with the sum of the role codes for roles with the description \"Photo\" but not \"ED\"?", "answer": {"columns": ["SUM(role_code)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_67ycn_6.png", "TableImg_9g0lo_4.png"], "original_data_index": 2863, "original_sql": "SELECT SUM(role_code) FROM Employees WHERE other_details = \"u\" OR role_code = \"ED\" AND \"employee_id\" > 5 UNION ALL SELECT SUM(role_code) FROM Roles WHERE role_description = \"Photo\" AND role_code <> \"ED\""} {"question": "What are the aircraft IDs that appear in both the aircraft and airport_aircraft tables, where the aircraft ID is less than or equal to 5 in the aircraft table and greater than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5jnjj_5.png", "TableImg_Tck9k_4.png"], "original_data_index": 2864, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the driver IDs that are either less than or equal to 12 from the driver table, or not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ewkj_12.png", "TableImg_21gl7_5.png"], "original_data_index": 2865, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the IDs of drivers, excluding driver 1, and also the IDs of school bus drivers, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U3jm5_12.png", "TableImg_Oask3_5.png"], "original_data_index": 2867, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the property IDs that have a property feature description other than \"cumque\" and property ID 6, combined with the property IDs where the house feature 3 is not \"None\" or apartment feature 2 is not \"iusto\" or other feature 1 is not \"None\" or room count is not 5 or agreed selling price is 456840888.16 or the date sold is not \"2012-08-19 07:36:57\" and buyer offered price is greater than 2.0 or apartment feature 3 is not \"None\" or other feature 2 is \"None\" or house feature 2 is \"None\"?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["6"], ["6"], ["6"], ["6"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_Kgj89_15.png", "TableImg_Mcsn6_15.png"], "original_data_index": 2866, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"property_id\" = 6 AND property_feature_description <> \"cumque\" UNION ALL SELECT property_id FROM Properties WHERE hse_feature_3 <> \"None\" OR apt_feature_2 != \"iusto\" OR oth_feature_1 != \"None\" OR \"room_count\" != 5 OR \"agreed_selling_price\" = 456840888.16 OR date_sold != \"2012-08-19 07:36:57\" AND \"buyer_offered_price\" > 2.0 AND apt_feature_3 <> \"None\" OR oth_feature_2 = \"None\" OR hse_feature_2 = \"None\""} {"question": "What are the names of contestants whose number is 2 or greater, excluding Kelly Clauss, and also the names of contestants whose number is less than 5, excluding Kurt Walser?", "answer": {"columns": ["contestant_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["Alana Bregman"], ["Allie Rogalski"], ["Edwina Burnam"], ["Ericka Dieter"], ["Jessie Alloway"], ["Jessie Eichman"], ["Kelly Clauss"], ["Kurt Walser"], ["Loraine NygrenTania Mattioli"], ["Nita Coster"], ["Tabatha Gehling"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Aibdk_11.png", "TableImg_56lux_11.png"], "original_data_index": 2868, "original_sql": "SELECT contestant_name FROM CONTESTANTS WHERE \"contestant_number\" >= 2 AND contestant_name <> \"Kelly Clauss\" UNION SELECT contestant_name FROM CONTESTANTS WHERE \"contestant_number\" < 5 AND contestant_name <> \"Kurt Walser\""} {"question": "What are the driver IDs that are greater than or equal to 6, excluding those driver IDs that are not equal to 7 and are associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wxbqf_12.png", "TableImg_3lsgx_5.png"], "original_data_index": 2869, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the aircraft IDs that are either 3 or not 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ba1ej_5.png", "TableImg_Ta29h_4.png"], "original_data_index": 2870, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which driver IDs are greater than 2 but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Caoc9_12.png", "TableImg_Dkgti_5.png"], "original_data_index": 2871, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs greater than 1, and also what are the driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gt52a_12.png", "TableImg_L9lnt_5.png"], "original_data_index": 2872, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which company IDs are from the banking industry and have an ID less than 15 or assets over 193.4 billion, or have worked for a year other than 2?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["17"], ["18"], ["19"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Lr6dy_19.png", "TableImg_Ckdms_5.png"], "original_data_index": 2858, "original_sql": "SELECT Company_ID FROM company WHERE Industry = \"Banking\" AND \"Company_ID\" < 15.0 OR \"Assets_in_Billion\" > 193.4 UNION SELECT Company_ID FROM employment WHERE \"Year_working\" != 2"} {"question": "What are the pet IDs, ages, and average pet types for pets that are not dogs and weigh at least 9.3, or have a PetID of 2001 or greater, excluding those that are not cats or have a PetID of 2002 and are at least 1 year old?", "answer": {"columns": ["PetID", "pet_age", "AVG(PetType)"], "index": [0], "data": [["2001", "3", "0"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_G2c99_3.png", "TableImg_Sv0ts_3.png"], "original_data_index": 2876, "original_sql": "SELECT PetID, pet_age, AVG(PetType) FROM Pets WHERE PetType <> \"dog\" AND \"weight\" >= 9.3 OR \"PetID\" >= 2001 EXCEPT SELECT PetID, pet_age, AVG(PetType) FROM Pets WHERE PetType <> \"cat\" OR \"PetID\" = 2002 AND \"pet_age\" >= 1"} {"question": "What are the driver IDs, excluding driver ID 9, and also those driver IDs less than 9, that are associated with either drivers or school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Obqwr_12.png", "TableImg_Swn1s_5.png"], "original_data_index": 2873, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which continents are not the second continent or are Australia, and also are not the third continent or are not America?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3], "data": [["africa"], ["america"], ["asia"], ["australia"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_Y6440_5.png", "TableImg_7hvfm_5.png"], "original_data_index": 2874, "original_sql": "SELECT Continent FROM continents WHERE \"ContId\" <> 2 OR Continent = \"australia\" INTERSECT SELECT Continent FROM continents WHERE \"ContId\" != 3 OR Continent != \"america\""} {"question": "What are the driver IDs greater than 4 that are also driver IDs equal to 10, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Orhzq_12.png", "TableImg_Zl6ex_5.png"], "original_data_index": 2875, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are all the property type codes, excluding those described as \"House, Bungalow, etc.\" and also excluding the code \"House\"?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Apartment"], ["Field"], ["Other"], ["Shop"], ["Apartment"], ["Field"], ["Other"], ["Shop"]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Mr1hr_5.png", "TableImg_Touq7_5.png"], "original_data_index": 2878, "original_sql": "SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description != \"House, Bungalow, etc.\" UNION ALL SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code != \"House\""} {"question": "What are the driver IDs that are both less than or equal to 10 and also equal to 7, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ovf2_12.png", "TableImg_65ufy_5.png"], "original_data_index": 2880, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are both less than or equal to 9 and also equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_13eul_12.png", "TableImg_J20bi_5.png"], "original_data_index": 2877, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the branch IDs that were not open in 2015, and also the branch IDs where member IDs are less than or equal to 8 and the branch ID is not 6, or the registration year is not 2016?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["1"], ["4"], ["1"], ["1"], ["5"], ["6"], ["2"], ["8"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_2pga6_8.png", "TableImg_Z8u99_8.png"], "original_data_index": 2879, "original_sql": "SELECT Branch_ID FROM branch WHERE Open_year != \"2015\" UNION ALL SELECT Branch_ID FROM membership_register_branch WHERE \"Member_ID\" <= 8 AND Branch_ID <> \"6\" OR Register_Year != \"2016\""} {"question": "What are the driver IDs, excluding driver ID 3, and also driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bqjem_12.png", "TableImg_8a832_5.png"], "original_data_index": 2884, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are less than 8 and also appear in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4zm41_12.png", "TableImg_Xd5o3_5.png"], "original_data_index": 2883, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the IDs of drivers, excluding driver 2, and the IDs of school bus drivers, excluding driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8lxme_12.png", "TableImg_Ldp2z_5.png"], "original_data_index": 2881, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Show me the name, level, card number, member ID, and hometown for members who meet any of the following criteria: their member ID is not 9, or their card number isn't RCB32 and their level is 4 or less, or their hometown isn't Red Jacket, West Virginia, or their name is Johnny Williams. Also, include the name, level, card number, member ID, and hometown for members whose member ID is not 8 and their name is Myron Pryor, or their level is 6 or less.", "answer": {"columns": ["Name", "Level", "Card_Number", "Member_ID", "Hometown"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["Jeremy Jarmon", "6", "LE99", "1", "Collierville, Tennessee"], ["Myron Pryor", "6", "LT98", "2", "Louisville, Kentucky"], ["Corey Peters", "6", "RT91", "3", "Louisville, Kentucky"], ["Ventrell Jenkins", "6", "RE95", "4", "Columbia, South Carolina"], ["Braxton Kelley", "6", "OLB56", "5", "LaGrange, Georgia"], ["Micah Johnson", "4", "MLB4", "6", "Fort Campbell, Kentucky"], ["Johnny Williams", "6", "SLB51", "7", "Jacksonville, Florida"], ["Trevard Lindley", "6", "RCB32", "8", "Hiram, Georgia"], ["Matt Lentz", "2", "FS10", "10", "Simpsonville, South Carolina"], ["Jeremy Jarmon", "6", "LE99", "1", "Collierville, Tennessee"], ["Myron Pryor", "6", "LT98", "2", "Louisville, Kentucky"], ["Corey Peters", "6", "RT91", "3", "Louisville, Kentucky"], ["Ventrell Jenkins", "6", "RE95", "4", "Columbia, South Carolina"], ["Braxton Kelley", "6", "OLB56", "5", "LaGrange, Georgia"], ["Micah Johnson", "4", "MLB4", "6", "Fort Campbell, Kentucky"], ["Johnny Williams", "6", "SLB51", "7", "Jacksonville, Florida"], ["Trevard Lindley", "6", "RCB32", "8", "Hiram, Georgia"], ["David Jones", "6", "LCB7", "9", "Red Jacket, West Virginia"], ["Matt Lentz", "2", "FS10", "10", "Simpsonville, South Carolina"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_Quucs_10.png", "TableImg_N3t6b_10.png"], "original_data_index": 2882, "original_sql": "SELECT Name, Level, Card_Number, Member_ID, Hometown FROM member WHERE \"Member_ID\" != 9 OR Card_Number <> \"RCB32\" AND \"Level\" <= 4 OR Hometown <> \"Red Jacket, West Virginia\" OR Name = \"Johnny Williams\" UNION ALL SELECT Name, Level, Card_Number, Member_ID, Hometown FROM member WHERE \"Member_ID\" <> 8 AND Name = \"Myron Pryor\" OR \"Level\" <= 6"} {"question": "What are the driver IDs that are both equal to 3 and less than or equal to 9, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X7aru_12.png", "TableImg_P573n_5.png"], "original_data_index": 2886, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cnyx9_12.png", "TableImg_Ii71p_5.png"], "original_data_index": 2885, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs, excluding driver ID 8, that are present in both the driver and school bus tables, where the school bus driver IDs are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nfd9x_12.png", "TableImg_263hl_5.png"], "original_data_index": 2888, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the major, student ID, advisor, age, last name, sex, city code, and first name for students who either aren't from Philadelphia or are male, or have a student ID greater than or equal to 1005 and a first name other than Shiela, or are age 22 or younger, don't have advisor 8722, and don't have the last name Lee? Also, include the same information for students where the advisor is 1148 or less and the last name isn't Kim, or are older than 17 and have a major of 600 and a first name other than Eric, or have a student ID less than 1027 and are male?", "answer": {"columns": ["Major", "StuID", "Advisor", "Age", "LName", "Sex", "city_code", "Fname"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "data": [["600", "1001", "1121", "18", "Smith", "F", "BAL", "Linda"], ["600", "1002", "7712", "19", "Kim", "F", "HKG", "Tracy"], ["600", "1003", "7792", "21", "Jones", "F", "WAS", "Shiela"], ["600", "1004", "8423", "20", "Kumar", "M", "CHI", "Dinesh"], ["600", "1005", "1121", "26", "Gompers", "M", "YYZ", "Paul"], ["600", "1006", "1148", "18", "Schultz", "M", "BAL", "Andy"], ["600", "1007", "8918", "18", "Apap", "F", "PIT", "Lisa"], ["600", "1008", "9172", "20", "Nelson", "F", "BAL", "Jandy"], ["600", "1009", "2192", "19", "Tai", "M", "YYZ", "Eric"], ["600", "1010", "2192", "17", "Lee", "M", "HOU", "Derek"], ["600", "1011", "1148", "22", "Adams", "M", "PHL", "David"], ["600", "1012", "7723", "20", "Davis", "M", "PIT", "Steven"], ["600", "1014", "8741", "18", "Norris", "M", "DAL", "Charles"], ["600", "1015", "8721", "16", "Lee", "F", "HKG", "Susan"], ["600", "1016", "2192", "17", "Schwartz", "M", "DET", "Mark"], ["600", "1017", "1148", "27", "Wilson", "M", "LON", "Bruce"], ["600", "1018", "1121", "20", "Leighton", "M", "PIT", "Michael"], ["600", "1019", "2192", "18", "Pang", "M", "WAS", "Arthur"], ["520", "1020", "7271", "22", "Thornton", "M", "NYC", "Ian"], ["520", "1021", "8722", "19", "Andreou", "M", "NYC", "George"], ["540", "1022", "8722", "17", "Woods", "M", "PHL", "Michael"], ["520", "1023", "8722", "20", "Shieber", "M", "NYC", "David"], ["540", "1024", "7271", "18", "Prater", "F", "BAL", "Stacy"], ["520", "1025", "7134", "18", "Goldman", "M", "PIT", "Mark"], ["520", "1026", "7134", "19", "Pang", "M", "HKG", "Eric"], ["520", "1027", "8723", "18", "Brody", "M", "LOS", "Paul"], ["550", "1028", "2311", "20", "Rugh", "M", "ROC", "Eric"], ["100", "1029", "2311", "17", "Han", "M", "PEK", "Jun"], ["550", "1030", "2311", "21", "Cheng", "F", "SFO", "Lisa"], ["550", "1031", "8772", "20", "Smith", "F", "PHL", "Sarah"], ["550", "1032", "8772", "20", "Brown", "M", "ATL", "Eric"], ["550", "1033", "8772", "18", "Simms", "M", "NAR", "William"], ["50", "1034", "5718", "18", "Epp", "M", "BOS", "Eric"], ["50", "1035", "5718", "26", "Schmidt", "F", "WAS", "Sarah"], ["600", "1001", "1121", "18", "Smith", "F", "BAL", "Linda"], ["600", "1002", "7712", "19", "Kim", "F", "HKG", "Tracy"], ["600", "1003", "7792", "21", "Jones", "F", "WAS", "Shiela"], ["600", "1004", "8423", "20", "Kumar", "M", "CHI", "Dinesh"], ["600", "1005", "1121", "26", "Gompers", "M", "YYZ", "Paul"], ["600", "1006", "1148", "18", "Schultz", "M", "BAL", "Andy"], ["600", "1007", "8918", "18", "Apap", "F", "PIT", "Lisa"], ["600", "1008", "9172", "20", "Nelson", "F", "BAL", "Jandy"], ["600", "1009", "2192", "19", "Tai", "M", "YYZ", "Eric"], ["600", "1010", "2192", "17", "Lee", "M", "HOU", "Derek"], ["600", "1011", "1148", "22", "Adams", "M", "PHL", "David"], ["600", "1012", "7723", "20", "Davis", "M", "PIT", "Steven"], ["600", "1014", "8741", "18", "Norris", "M", "DAL", "Charles"], ["600", "1016", "2192", "17", "Schwartz", "M", "DET", "Mark"], ["600", "1017", "1148", "27", "Wilson", "M", "LON", "Bruce"], ["600", "1018", "1121", "20", "Leighton", "M", "PIT", "Michael"], ["600", "1019", "2192", "18", "Pang", "M", "WAS", "Arthur"], ["520", "1020", "7271", "22", "Thornton", "M", "NYC", "Ian"], ["520", "1021", "8722", "19", "Andreou", "M", "NYC", "George"], ["540", "1022", "8722", "17", "Woods", "M", "PHL", "Michael"], ["520", "1023", "8722", "20", "Shieber", "M", "NYC", "David"], ["520", "1025", "7134", "18", "Goldman", "M", "PIT", "Mark"], ["520", "1026", "7134", "19", "Pang", "M", "HKG", "Eric"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Bej6o_34.png", "TableImg_Nr9jb_34.png"], "original_data_index": 2887, "original_sql": "SELECT Major, StuID, Advisor, Age, LName, Sex, city_code, Fname FROM Student WHERE city_code != \"PHL\" OR Sex = \"M\" OR \"StuID\" >= 1005 AND Fname <> \"Shiela\" OR \"Age\" <= 22 AND \"Advisor\" != 8722 AND LName <> \"Lee\" UNION ALL SELECT Major, StuID, Advisor, Age, LName, Sex, city_code, Fname FROM Student WHERE \"Advisor\" <= 1148 AND LName != \"Kim\" OR \"Age\" > 17 AND \"Major\" = 600 AND Fname != \"Eric\" OR \"StuID\" < 1027 AND Sex = \"M\""} {"question": "What are the driver IDs that are not 11 and also appear in the school bus table with IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Otruq_12.png", "TableImg_0auy3_5.png"], "original_data_index": 2889, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are greater than 3 but not present in the school bus table with driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lg959_12.png", "TableImg_Gzckg_5.png"], "original_data_index": 2890, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are both greater than or equal to 6 and also not equal to 7, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vavo4_12.png", "TableImg_F4glz_5.png"], "original_data_index": 2891, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs, excluding aircraft ID 1, that are present in both the aircraft and airport_aircraft tables, with the airport_aircraft IDs being less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qp1xz_5.png", "TableImg_7gogr_4.png"], "original_data_index": 2892, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs that are less than 2, and also the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9yq2m_12.png", "TableImg_B0701_5.png"], "original_data_index": 2894, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 4 from the aircraft table and aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ejddx_5.png", "TableImg_Ak8p8_4.png"], "original_data_index": 2895, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and not equal to 3, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Oqe5r_5.png", "TableImg_Uujzl_4.png"], "original_data_index": 2896, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the driver IDs that are either greater than or equal to 6 in the driver table or less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4p02h_12.png", "TableImg_Vzj9y_5.png"], "original_data_index": 2897, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the IATA, name, Country, ICAO, id, and City for Bergen Airport, and also for any airport where the ICAO is not EHAM, or the name is Akureyri Airport and the country is Netherlands, or the id is greater than 8, or the city is Baltimore and the IATA code is BGO?", "answer": {"columns": ["IATA", "name", "Country", "ICAO", "id", "City"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["AEY", "Akureyri Airport", "Iceland", "BIAR", "1", "Akureyri"], ["ANC", "Ted Stevens Airport", "United States", "PANC", "3", "Anchorage"], ["BCN", "El Prat Airport", "Spain", "LEBL", "5", "Barcelona"], ["BGO", "Bergen Airport", "Norway", "ENBR", "6", "Bergen"], ["BLL", "Billund Airport", "Denmark", "EKBI", "7", "Billund"], ["BOS", "Logan International Airport", "United States", "KBOS", "8", "Boston"], ["BRU", "National Airport", "Belgium", "EBBR", "9", "Brussels"], ["BWI", "Baltimore-Washington Airport", "United States", "KBWI", "4", "Baltimore"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_C78kf_9.png", "TableImg_E3c8i_9.png"], "original_data_index": 2898, "original_sql": "SELECT IATA, name, Country, ICAO, id, City FROM airport WHERE name = \"Bergen Airport\" UNION SELECT IATA, name, Country, ICAO, id, City FROM airport WHERE ICAO != \"EHAM\" OR name = \"Akureyri Airport\" AND Country = \"Netherlands\" OR \"id\" > 8 OR City = \"Baltimore\" AND IATA = \"BGO\""} {"question": "What are the customer IDs and payment methods for customers with IDs less than or equal to 2 and payment amounts not equal to 5475.26, combined with those for customers with IDs less than 2, or a payment date other than \"2018-02-05 18:44:46\", or using \"Direct Debit\", or with a payment amount of 9414.74?", "answer": {"columns": ["customer_id", "payment_method_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1", "Direct Debit"], ["2", "Direct Debit"], ["2", "Direct Debit"], ["11", "Direct Debit"], ["2", "Direct Debit"], ["14", "Direct Debit"], ["6", "Direct Debit"], ["4", "Direct Debit"], ["7", "Direct Debit"], ["6", "Direct Debit"], ["2", "Direct Debit"], ["10", "Direct Debit"], ["1", "Direct Debit"], ["12", "Credit Card"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_B6691_15.png", "TableImg_Ar3ww_15.png"], "original_data_index": 2899, "original_sql": "SELECT customer_id, payment_method_code FROM Customer_Payments WHERE \"customer_id\" <= 2 AND \"amount_payment\" != 5475.26 UNION ALL SELECT customer_id, payment_method_code FROM Customer_Payments WHERE \"customer_id\" < 2 AND datetime_payment != \"2018-02-05 18:44:46\" OR payment_method_code = \"Direct Debit\" OR \"amount_payment\" = 9414.74"} {"question": "What are the property details, including type, market date, features, prices, and address, for properties that meet any of the following criteria: shp_feature_3 is not \"None\" and the property type is \"Apartment\" and hse_feature_1 is \"None\", or the vendor requested price is greater than 192374065.8, or the date sold is not \"2012-08-19 07:36:57\" and the address is not \"084 Lakin Vista Apt. 394 Fishertown, MA 16876\" and apt_feature_2 is \"est\", or fld_feature_1 is not \"None\" and shp_feature_1 is \"None\" and oth_feature_1 is \"None\", or shp_feature_2 is not \"None\" and other_property_details is not \"None\", or fld_feature_3 is not \"None\", or hse_feature_2 is not \"None\", or the room count is less than 9, or apt_feature_1 is \"sed\", or the property name is not \"the cole\" and oth_feature_2 is not \"None\", or oth_feature_3 is not \"None\", or hse_feature_3 is \"None\", or fld_feature_2 is not \"None\", or the date on market is \"2016-05-24 09:57:45\"; or properties where shp_feature_2 is \"None\", or oth_feature_2 is not \"None\" and oth_feature_3 is \"None\", or the date sold is not \"1997-01-07 19:52:45\" and apt_feature_2 is \"aut\" and hse_feature_3 is \"None\" and shp_feature_3 is \"None\", or the vendor requested price is less than 13.4715, or the property name is not \"wall street\", or apt_feature_1 is not \"et\" and the room count is less than 1 and shp_feature_1 is not \"None\" and fld_feature_2 is not \"None\", or other_property_details is not \"None\" and the agreed selling price is not 170766.472 and the address is not \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" and apt_feature_3 is not \"None\", or hse_feature_2 is not \"None\"?", "answer": {"columns": ["property_type_code", "date_on_market", "oth_feature_1", "other_property_details", "vendor_requested_price", "date_sold", "apt_feature_1", "hse_feature_1", "shp_feature_2", "shp_feature_1", "buyer_offered_price", "property_address", "apt_feature_2", "property_name", "fld_feature_3", "apt_feature_3", "hse_feature_2", "oth_feature_2", "room_count", "oth_feature_3", "shp_feature_3", "fld_feature_2", "fld_feature_1", "property_id", "agreed_selling_price", "hse_feature_3"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Apartment", "1976-06-10 20:25:38", "", "", "13.4715", "2001-11-09 04:37:33", "fuga", "", "", "", "0.0", "24365 Ulices Run\nHomenicktown, MD 88485-6198", "odio", "vogue", "", "", "", "", "9", "", "", "", "", "8", "0.0", ""], ["Apartment", "1978-05-15 10:53:37", "", "", "2219.6778", "1971-04-14 03:23:49", "enim", "", "", "", "3520911.5258", "107 Roob Courts\nErdmanburgh, IA 42926-0873", "sit", "longacre", "", "", "", "", "5", "", "", "", "", "9", "3344706.5755", ""], ["Apartment", "1993-08-04 10:49:04", "", "", "331.0", "1984-02-01 19:54:54", "aut", "", "", "", "27537286.0", "986 Hagenes Drives\nDraketon, UT 83411-3393", "iusto", "parc coliseum", "", "", "", "", "3", "", "", "", "", "15", "2574.0", ""], ["Apartment", "2003-12-25 16:13:19", "", "", "77172926.3", "1997-01-07 19:52:45", "consequatur", "", "", "", "1.5509", "084 Lakin Vista Apt. 394\nFishertown, MA 16876", "vero", "renoir", "", "", "", "", "9", "", "", "", "", "10", "244353758.1824", ""], ["Apartment", "2016-05-06 16:53:39", "", "", "983.8596", "2012-08-19 07:36:57", "quo", "", "", "", "10.1067", "2765 Schulist Stream\nLindmouth, UT 03391-3817", "sequi", "parc east", "", "", "", "", "5", "", "", "", "", "5", "1.0012", ""], ["Apartment", "2016-05-24 09:57:45", "", "", "305.0", "1980-07-08 16:13:17", "qui", "", "", "", "2.0", "743 Ephraim Greens\nAnniemouth, HI 47084-3853", "autem", "ten tower", "", "", "", "", "5", "", "", "", "", "12", "456840888.16", ""], ["Field", "2017-09-14 15:49:23", "", "", "192374065.8", "2003-02-27 18:17:11", "nesciunt", "", "", "", "15.17", "49578 Ayden Mountains\nNew Russellhaven, UT 46626", "adipisci", "riverside", "", "", "", "", "6", "", "", "", "", "4", "4514.807", ""], ["House", "1990-05-25 23:01:51", "", "", "661536468.4429", "1990-11-14 19:16:38", "est", "", "", "", "8.7122", "098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537", "est", "the cole", "", "", "", "", "1", "", "", "", "", "2", "21769471.8328", ""], ["House", "1991-06-21 23:52:10", "", "", "372652.2909", "1979-05-13 16:58:06", "aut", "", "", "", "1.6800000000000002", "4745 Emerson Stravenue Suite 829\nSouth Garret, IN 16772-5682", "suscipit", "park", "", "", "", "", "7", "", "", "", "", "1", "4201.8", ""], ["Other", "1981-08-23 05:40:38", "", "", "6713620.9", "1997-11-07 20:22:05", "et", "", "", "", "13991131.434", "2088 Bashirian Fork Suite 337\nFaustinoport, MT 16771-9320", "est", "murray hill", "", "", "", "", "2", "", "", "", "", "11", "170766.472", ""], ["Other", "1986-11-26 04:12:18", "", "", "1337.0", "1981-06-26 21:28:28", "ut", "", "", "", "11375259.502", "062 Micaela Court Apt. 707\nMargretville, WV 51628-3617", "et", "prism", "", "", "", "", "8", "", "", "", "", "3", "5.0", ""], ["Other", "1986-12-31 10:05:32", "", "", "78.7208", "1987-12-07 07:41:27", "et", "", "", "", "2449185.2", "1474 Dibbert Fields Suite 055\nSouth Renee, IN 58286-3097", "eos", "wall street", "", "", "", "", "7", "", "", "", "", "14", "0.0", ""], ["Other", "2000-08-07 06:59:14", "", "", "2198735.095", "1973-02-24 02:56:06", "fuga", "", "", "", "0.0", "60845 Else Highway Apt. 826\nSouth Dougfort, CO 43200-4258", "aut", "chelsea", "", "", "", "", "2", "", "", "", "", "13", "44132.4621", ""], ["Shop", "1994-02-14 02:27:13", "", "", "2573.0", "1995-01-31 11:18:42", "sed", "", "", "", "0.0", "6837 Darien Views Apt. 475\nSouth Maraview, KS 77770", "culpa", "high line", "", "", "", "", "9", "", "", "", "", "6", "476919.3", ""], ["Shop", "1996-09-16 22:04:27", "", "", "150045.7568", "1998-09-15 05:26:22", "quos", "", "", "", "296733.0", "092 Paucek Highway Apt. 772\nEast Erika, IA 61358", "est", "avalon", "", "", "", "", "8", "", "", "", "", "7", "2794972.2495", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Ich5e_15.png", "TableImg_4iz04_15.png"], "original_data_index": 2893, "original_sql": "SELECT property_type_code, date_on_market, oth_feature_1, other_property_details, vendor_requested_price, date_sold, apt_feature_1, hse_feature_1, shp_feature_2, shp_feature_1, buyer_offered_price, property_address, apt_feature_2, property_name, fld_feature_3, apt_feature_3, hse_feature_2, oth_feature_2, room_count, oth_feature_3, shp_feature_3, fld_feature_2, fld_feature_1, property_id, agreed_selling_price, hse_feature_3 FROM Properties WHERE shp_feature_3 <> \"None\" AND property_type_code = \"Apartment\" AND hse_feature_1 = \"None\" OR \"vendor_requested_price\" > 192374065.8 OR date_sold <> \"2012-08-19 07:36:57\" AND property_address <> \"084 Lakin Vista Apt. 394 Fishertown, MA 16876\" AND apt_feature_2 = \"est\" OR fld_feature_1 != \"None\" AND shp_feature_1 = \"None\" AND oth_feature_1 = \"None\" OR shp_feature_2 != \"None\" AND other_property_details <> \"None\" OR fld_feature_3 != \"None\" OR hse_feature_2 <> \"None\" OR \"room_count\" < 9 OR apt_feature_1 = \"sed\" OR property_name != \"the cole\" AND oth_feature_2 <> \"None\" OR oth_feature_3 <> \"None\" OR hse_feature_3 = \"None\" OR fld_feature_2 <> \"None\" OR date_on_market = \"2016-05-24 09:57:45\" UNION SELECT property_type_code, date_on_market, oth_feature_1, other_property_details, vendor_requested_price, date_sold, apt_feature_1, hse_feature_1, shp_feature_2, shp_feature_1, buyer_offered_price, property_address, apt_feature_2, property_name, fld_feature_3, apt_feature_3, hse_feature_2, oth_feature_2, room_count, oth_feature_3, shp_feature_3, fld_feature_2, fld_feature_1, property_id, agreed_selling_price, hse_feature_3 FROM Properties WHERE shp_feature_2 = \"None\" OR oth_feature_2 <> \"None\" AND oth_feature_3 = \"None\" OR date_sold <> \"1997-01-07 19:52:45\" AND apt_feature_2 = \"aut\" AND hse_feature_3 = \"None\" AND shp_feature_3 = \"None\" OR \"vendor_requested_price\" < 13.4715 OR property_name != \"wall street\" OR apt_feature_1 <> \"et\" AND \"room_count\" < 1 AND shp_feature_1 <> \"None\" AND fld_feature_2 != \"None\" OR other_property_details <> \"None\" AND \"agreed_selling_price\" <> 170766.472 AND property_address != \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" AND apt_feature_3 != \"None\" OR hse_feature_2 != \"None\""} {"question": "Which driver IDs are not equal to 9 and are not in the school bus table where the driver ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H68ai_12.png", "TableImg_Cxgyn_5.png"], "original_data_index": 2902, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the IDs of drivers, excluding driver 8, and the IDs of school buses, excluding bus 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qej49_12.png", "TableImg_F1f0a_5.png"], "original_data_index": 2903, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are less than or equal to 7, or which driver IDs are greater than 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U8jas_12.png", "TableImg_Fvrs4_5.png"], "original_data_index": 2901, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the album IDs where the artist ID is greater than 91, but not in playlists with an ID less than 14 or a name that isn't \"Music\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197], "data": [["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["123"], ["124"], ["125"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["199"], ["200"], ["201"], ["202"], ["203"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_393we_347.png", "TableImg_Qdyre_18.png"], "original_data_index": 2900, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" > 91 EXCEPT SELECT id FROM playlists WHERE \"id\" < 14 OR name <> \"Music\""} {"question": "Which driver IDs are equal to 9 in the driver table but not greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cvafk_12.png", "TableImg_5d71a_5.png"], "original_data_index": 2907, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are both less than or equal to 8 and also not equal to 10, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bfp4t_12.png", "TableImg_G56ka_5.png"], "original_data_index": 2904, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are less than 7 but not equal to 3, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jzggk_12.png", "TableImg_Uwxeo_5.png"], "original_data_index": 2906, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What is the average number of final tables made, the sum of money rank, the poker player ID, and the sum of earnings for poker players who either made at least 42 final tables and have a poker player ID of 5, or have a money rank not equal to 58, or have earnings greater than or equal to 142800 and a people ID of 1 and a best finish less than 3, or have earnings greater than 142800 and a money rank greater than 166?", "answer": {"columns": ["AVG(Final_Table_Made)", "SUM(Money_Rank)", "Poker_Player_ID", "SUM(Earnings)"], "index": [0, 1], "data": [["", "", "", ""], ["24.75", "529.0", "1.0", "912994.0"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Xt689_5.png", "TableImg_Lf2l2_5.png"], "original_data_index": 2905, "original_sql": "SELECT AVG(Final_Table_Made), SUM(Money_Rank), Poker_Player_ID, SUM(Earnings) FROM poker_player WHERE \"Final_Table_Made\" >= 42.0 AND \"Poker_Player_ID\" = 5 OR \"Money_Rank\" != 58.0 OR \"Earnings\" >= 142800.0 AND \"People_ID\" = 1 AND \"Best_Finish\" < 3.0 UNION SELECT AVG(Final_Table_Made), SUM(Money_Rank), Poker_Player_ID, SUM(Earnings) FROM poker_player WHERE \"Earnings\" > 142800.0 AND \"Money_Rank\" > 166.0"} {"question": "What are the driver IDs that are both greater than or equal to 8 in the driver table and greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cy3zu_12.png", "TableImg_Oh3hc_5.png"], "original_data_index": 2909, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs that are greater than or equal to 1, and also the aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8u5vc_5.png", "TableImg_Uj0vy_4.png"], "original_data_index": 2910, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the IDs of drivers, excluding driver ID 1, and also the IDs of school buses, excluding ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6pbo0_12.png", "TableImg_D9b8t_5.png"], "original_data_index": 2911, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the customer IDs of customers who paid by a method other than \"Direct Debit\" on \"2018-02-27 20:08:53\", combined with the customer IDs of customers whose date of birth is not \"1995-07-17 12:13:16\" or whose phone number is not \"+14(5)2351480248\" and amount outstanding is not 8144.0 or whose cell mobile phone number is not \"081-097-3684\" or whose customer status code is not \"Bad Customer\"?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Mukov_15.png", "TableImg_Fd98u_15.png"], "original_data_index": 2908, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE payment_method_code != \"Direct Debit\" AND datetime_payment = \"2018-02-27 20:08:53\" UNION SELECT customer_id FROM Customers WHERE date_of_birth <> \"1995-07-17 12:13:16\" OR phone_number != \"+14(5)2351480248\" AND \"amount_outstanding\" <> 8144.0 OR cell_mobile_phone_number <> \"081-097-3684\" OR customer_status_code != \"Bad Customer\""} {"question": "What are the aircraft IDs that are less than 2, excluding those aircraft IDs greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_56bse_5.png", "TableImg_Vf9od_4.png"], "original_data_index": 2914, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Which driver IDs are less than 3, and which driver IDs are 3 or greater, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jbegm_12.png", "TableImg_Bt5xa_5.png"], "original_data_index": 2915, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 1, that are in the aircraft table, combined with the aircraft IDs, excluding aircraft ID 3, that are in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uwijk_5.png", "TableImg_2dobe_4.png"], "original_data_index": 2913, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the football class and enrollment for schools that are not AAA and not in Bourbon, or have a different school ID and are not AAA, not named Culver Community, and not in Marshall County, excluding schools that are not AAA and not in Bourbon, or have a school ID of 1 and a different enrollment than 316?", "answer": {"columns": ["IHSAA_Football_Class", "Enrollment"], "index": [0], "data": [["AAAA", "852"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Ogchm_8.png", "TableImg_Na7hn_8.png"], "original_data_index": 2912, "original_sql": "SELECT IHSAA_Football_Class, Enrollment FROM School WHERE IHSAA_Football_Class <> \"AAA\" AND Location != \"Bourbon\" OR School_id <> \"5\" AND IHSAA_Class != \"AAA\" AND School_name <> \"Culver Community\" AND County <> \"50 Marshall\" EXCEPT SELECT IHSAA_Football_Class, Enrollment FROM School WHERE IHSAA_Class != \"AAA\" AND Location <> \"Bourbon\" OR School_id = \"1\" AND \"Enrollment\" != 316"} {"question": "What are the aircraft IDs that are greater than or equal to 2, but not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Soq2k_5.png", "TableImg_Lqage_4.png"], "original_data_index": 2919, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the driver IDs, excluding driver ID 3, from the driver table, combined with the driver IDs, including driver ID 3, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lq1nd_12.png", "TableImg_W6lqv_5.png"], "original_data_index": 2917, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the maximum feature descriptions, excluding those that are \"Air Conditioning\" or not of type \"Security\", combined with the maximum feature descriptions that are not \"BurglarAlarm\" and have a feature ID other than 3 or are of type \"Amenity\"?", "answer": {"columns": ["MAX(feature_description)"], "index": [0, 1], "data": [["Swimming Pool."], ["Swimming Pool."]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_Y904e_3.png", "TableImg_Sgojw_3.png"], "original_data_index": 2916, "original_sql": "SELECT MAX(feature_description) FROM Other_Available_Features WHERE feature_description <> \"Air Conditioning.\" OR feature_type_code <> \"Security\" UNION ALL SELECT MAX(feature_description) FROM Other_Available_Features WHERE feature_name <> \"BurglarAlarm\" AND \"feature_id\" <> 3 OR feature_type_code = \"Amenity\""} {"question": "What are the names of contestants whose contestant number is both less than or equal to 11 and greater than or equal to 11?", "answer": {"columns": ["contestant_name"], "index": [0], "data": [["Loraine NygrenTania Mattioli"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_0hhu2_11.png", "TableImg_7nhso_11.png"], "original_data_index": 2918, "original_sql": "SELECT contestant_name FROM CONTESTANTS WHERE \"contestant_number\" <= 11 INTERSECT SELECT contestant_name FROM CONTESTANTS WHERE \"contestant_number\" >= 11"} {"question": "Which driver IDs are equal to 12 but not less than 7, considering driver IDs from the driver table and school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A1z6j_12.png", "TableImg_J9zwh_5.png"], "original_data_index": 2921, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 7, but only considering driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dq8x7_12.png", "TableImg_Iighr_5.png"], "original_data_index": 2922, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are less than 3 in the aircraft table, combined with the aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hg24q_5.png", "TableImg_A9drp_4.png"], "original_data_index": 2923, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which document IDs were mailed to an address ID greater than 3, or mailed on January 1st, 2007 at 22:32:11, or are not document ID 12, but are not draft copies with draft number 20 and a document ID less than 1?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["20"], ["23"], ["24"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Upakn_14.png", "TableImg_Gouao_8.png"], "original_data_index": 2920, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" > 3 OR mailing_date = \"2007-01-01 22:32:11\" OR \"document_id\" != 12 EXCEPT SELECT document_id FROM Draft_Copies WHERE \"draft_number\" = 20 AND \"document_id\" < 1"} {"question": "Which driver IDs, excluding driver ID 10, are in the driver table but not in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B30yb_12.png", "TableImg_B4wd5_5.png"], "original_data_index": 2924, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs, excluding driver ID 11, that are present in both the driver and school bus tables, where the driver ID is less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9nm0m_12.png", "TableImg_Dp31b_5.png"], "original_data_index": 2925, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the total of Big_Silver where Bronze is 6, or Small_Silver is greater than 10 and Gold is not 20 and Points is not 168 and Big_Silver is 14, or Club_ID is at least 6? Also, what is the total of Big_Silver where Gold is 7 and Bronze is less than 9 and Points is not 66 and Small_Silver is less than 16?", "answer": {"columns": ["SUM(Big_Silver)"], "index": [0, 1], "data": [["6.0"], [""]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_0cg59_6.png", "TableImg_Jre57_6.png"], "original_data_index": 2926, "original_sql": "SELECT SUM(Big_Silver) FROM match_result WHERE \"Bronze\" = 6 OR \"Small_Silver\" > 10 AND \"Gold\" <> 20 AND \"Points\" <> 168 AND \"Big_Silver\" = 14 OR \"Club_ID\" >= 6 UNION ALL SELECT SUM(Big_Silver) FROM match_result WHERE \"Gold\" = 7 AND \"Bronze\" < 9 AND \"Points\" <> 66 AND \"Small_Silver\" < 16"} {"question": "Which driver IDs are present in either the driver table (excluding ID 6) or the school bus table (excluding ID 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H8000_12.png", "TableImg_Vq5pt_5.png"], "original_data_index": 2928, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are less than 2 and also appear in the airport aircraft table with IDs no greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q13ob_5.png", "TableImg_Qw9nm_4.png"], "original_data_index": 2930, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs that are both less than or equal to 9 in the driver table and less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3x643_12.png", "TableImg_A1srf_5.png"], "original_data_index": 2929, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs, excluding driver ID 9, are in the driver table but not in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Grkd0_12.png", "TableImg_L5zcq_5.png"], "original_data_index": 2927, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are both less than 4 and greater than 1, considering only aircraft IDs present in both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Od15s_5.png", "TableImg_Hm5v2_4.png"], "original_data_index": 2934, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs, where one ID is 6 from the driver table, and another ID is 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["6"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8hs8w_12.png", "TableImg_6zgnn_5.png"], "original_data_index": 2935, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the Election IDs and Delegates from the election table where the first elected year was 2003 or the election ID was less than or equal to 8 and the district was greater than or equal to 2, combined with the Election IDs and Delegates where the election ID was 7 or the counties represented was not \"12.1 12A\" or the delegate was not \"Bates, Gail H. Gail H. Bates\" and the committee was not \"Environmental Matters (Vice-Chair)\" or the party was not 7 or the first elected year was less than or equal to 2003?", "answer": {"columns": ["Election_ID", "Delegate"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1", "Bates, Gail H. Gail H. Bates"], ["2", "Miller, Warren E. Warren E. Miller"], ["3", "DeBoy, Steven J. Sr. Steven J. DeBoy, Sr."], ["4", "Malone, James E. Jr. James E. Malone, Jr."], ["5", "Bobo, Elizabeth Elizabeth Bobo"], ["6", "Pendergrass, Shane E. Shane Pendergrass"], ["7", "Guzzone, Guy Guy Guzzone"], ["8", "Turner, Frank S. Frank S. Turner"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Whqqz_8.png", "TableImg_Cdznd_8.png"], "original_data_index": 2936, "original_sql": "SELECT Election_ID, Delegate FROM election WHERE \"First_Elected\" = 2003.0 OR \"Election_ID\" <= 8 AND \"District\" >= 2 UNION SELECT Election_ID, Delegate FROM election WHERE \"Election_ID\" = 7 OR Counties_Represented != \"12.1 12A\" OR Delegate != \"Bates, Gail H. Gail H. Bates\" AND Committee != \"Environmental Matters (Vice-Chair)\" OR \"Party\" != 7 OR \"First_Elected\" <= 2003.0"} {"question": "What are the driver IDs that are either less than or equal to 4, or not equal to 7, considering both the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_04jx1_12.png", "TableImg_Sgb0i_5.png"], "original_data_index": 2937, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What is the sum of Club IDs for clubs located in HHH, excluding the sum of Club IDs for members with a StuID less than 1001 and a position of Teaching Coordinator?", "answer": {"columns": ["SUM(ClubID)"], "index": [0], "data": [["3"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Emfrj_4.png", "TableImg_Muo4k_4.png"], "original_data_index": 2938, "original_sql": "SELECT SUM(ClubID) FROM Club WHERE ClubLocation = \"HHH\" EXCEPT SELECT SUM(ClubID) FROM Member_of_club WHERE \"StuID\" < 1001 AND Position = \"Teaching Coordinator\""} {"question": "Which driver IDs are present in both the driver and school bus tables, where the driver ID is greater than or equal to 1 in the driver table and less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H6iv1_12.png", "TableImg_Qj3li_5.png"], "original_data_index": 2939, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are greater than or equal to 11 but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6vshn_12.png", "TableImg_2ug2e_5.png"], "original_data_index": 2940, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the document type codes for documents that are not overdue and shipped by US, or have a document ID greater than or equal to 13, a receipt number not equal to 93, a receipt date of September 15, 1976, and other details not equal to 'n', excluding those document type codes where the document type description is 'b' and the code is not 'Paper'?", "answer": {"columns": ["document_type_code"], "index": [0], "data": [["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Ntm8h_15.png", "TableImg_96noo_3.png"], "original_data_index": 2941, "original_sql": "SELECT document_type_code FROM Documents WHERE document_status_code <> \"overdue\" AND shipping_agent_code = \"US\" OR \"document_id\" >= 13 AND receipt_number != \"93\" AND receipt_date = \"1976-09-15 19:24:17\" AND other_details <> \"n\" EXCEPT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description = \"b\" AND document_type_code != \"Paper\""} {"question": "Which employee IDs received a bonus less than 3200 or were not awarded in 2015, but not those who received a bonus of 3200 or more, were awarded in 2017, or have an ID other than 1?", "answer": {"columns": ["Employee_ID"], "index": [0], "data": [["1"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_1jhkd_6.png", "TableImg_T2xfm_6.png"], "original_data_index": 2942, "original_sql": "SELECT Employee_ID FROM evaluation WHERE \"Bonus\" < 3200.0 OR Year_awarded != \"2015\" EXCEPT SELECT Employee_ID FROM evaluation WHERE \"Bonus\" >= 3200.0 OR Year_awarded = \"2017\" OR Employee_ID <> \"1\""} {"question": "What are the draft details, document IDs, and draft numbers for drafts where the draft number is not 0 or the document ID is not 2, combined with drafts where the draft number is less than 14 or the draft details are \"m\" and the document ID is 17 or greater?", "answer": {"columns": ["draft_details", "document_id", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["a", "17", "19"], ["b", "12", "11"], ["e", "1", "0"], ["k", "1", "2"], ["k", "10", "20"], ["l", "20", "17"], ["m", "7", "10"], ["p", "13", "16"], ["r", "4", "9"], ["r", "12", "12"], ["r", "23", "9"], ["v", "2", "1"], ["v", "2", "8"], ["w", "13", "4"], ["x", "14", "14"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_M03wc_15.png", "TableImg_Gyfgu_15.png"], "original_data_index": 2943, "original_sql": "SELECT draft_details, document_id, draft_number FROM Document_Drafts WHERE \"draft_number\" <> 0 OR \"document_id\" != 2 UNION SELECT draft_details, document_id, draft_number FROM Document_Drafts WHERE \"draft_number\" < 14 OR draft_details = \"m\" AND \"document_id\" >= 17"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kp7n6_12.png", "TableImg_Iozbd_5.png"], "original_data_index": 2944, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are greater than 7 and are also present in the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ndy1f_12.png", "TableImg_R7o2j_5.png"], "original_data_index": 2945, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the total of AllergyType, excluding \"animal\" or \"Ragweed\", combined with the total of AllergyType, excluding \"Grass Pollen\" and \"animal\"?", "answer": {"columns": ["SUM(AllergyType)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_Rl736_14.png", "TableImg_Auktl_14.png"], "original_data_index": 2946, "original_sql": "SELECT SUM(AllergyType) FROM Allergy_Type WHERE AllergyType <> \"animal\" OR Allergy != \"Ragweed\" UNION ALL SELECT SUM(AllergyType) FROM Allergy_Type WHERE Allergy <> \"Grass Pollen\" AND AllergyType <> \"animal\""} {"question": "What are the driver IDs that are both greater than or equal to 8 in the driver table and greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D4o1v_12.png", "TableImg_A2nrk_5.png"], "original_data_index": 2933, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are less than 4 but not equal to 7, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wb5l7_12.png", "TableImg_9mopg_5.png"], "original_data_index": 2932, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the document IDs from the 'Documents' table where the receipt number is \"69\", other details are not \"u\", document type code is not \"Paper\", document status code is \"done\", document ID is greater than or equal to 7, or the receipt date is \"1999-04-17 14:19:32\"? Also, what are the document IDs from the 'Documents_Mailed' table where the document ID is less than 12 or the mailing date is \"1973-02-21 10:17:01\" and the mailed to address ID is not 2? Combine both sets of document IDs.", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"], ["2"], ["4"], ["4"], ["7"], ["10"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Vwdov_15.png", "TableImg_Xyeu5_14.png"], "original_data_index": 2931, "original_sql": "SELECT document_id FROM Documents WHERE receipt_number = \"69\" OR other_details != \"u\" OR document_type_code <> \"Paper\" OR document_status_code = \"done\" OR \"document_id\" >= 7 OR receipt_date = \"1999-04-17 14:19:32\" UNION ALL SELECT document_id FROM Documents_Mailed WHERE \"document_id\" < 12 OR mailing_date = \"1973-02-21 10:17:01\" AND \"mailed_to_address_id\" <> 2"} {"question": "What are the driver IDs that are less than 7, considering both drivers and school buses, and combining the results?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cgtwb_12.png", "TableImg_N3pzj_5.png"], "original_data_index": 2950, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the IDs of drivers, excluding driver 5, and the IDs of school bus drivers, excluding driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fcjdu_12.png", "TableImg_Gzlcu_5.png"], "original_data_index": 2949, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs, excluding driver ID 9, and also the driver IDs less than 9, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y4xb0_12.png", "TableImg_Irizp_5.png"], "original_data_index": 2947, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the target user IDs and trust values from the trust table where the source user ID is greater than 1 or the trust value is not 10 and the target user ID is at least 3, combined with the target user IDs and trust values where the target user ID is less than 3 or the source user ID is greater than 1 and the trust value is less than 1?", "answer": {"columns": ["target_u_id", "trust"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2", "1"], ["2", "3"], ["2", "10"], ["3", "4"], ["3", "6"], ["4", "8"], ["5", "2"], ["5", "7"], ["6", "10"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_T8fqa_9.png", "TableImg_Iighs_9.png"], "original_data_index": 2948, "original_sql": "SELECT target_u_id, trust FROM trust WHERE \"source_u_id\" > 1 OR \"trust\" != 10 AND \"target_u_id\" >= 3 UNION SELECT target_u_id, trust FROM trust WHERE \"target_u_id\" < 3 OR \"source_u_id\" > 1 AND \"trust\" < 1"} {"question": "What are the driver IDs greater than 7, considering both drivers and school buses, and combining the results?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qiv2w_12.png", "TableImg_7rn6s_5.png"], "original_data_index": 2953, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the aircraft IDs greater than 3 in the aircraft table, combined with the aircraft IDs that are at least 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ufu1f_5.png", "TableImg_Sajxb_4.png"], "original_data_index": 2951, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the driver IDs that are either less than or equal to 1 from the driver table or less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lan37_12.png", "TableImg_Za6e9_5.png"], "original_data_index": 2952, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are less than 9 but not present in the school bus table with IDs greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eduol_12.png", "TableImg_Reeex_5.png"], "original_data_index": 2954, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs greater than 2 that are not present in the airport aircraft table with aircraft IDs less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S81k5_5.png", "TableImg_A23rp_4.png"], "original_data_index": 2957, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the driver IDs that are both less than or equal to 9 in the driver table and less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qbzwo_12.png", "TableImg_Abgmo_5.png"], "original_data_index": 2956, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the school IDs for schools in the AAA class that are not in Marshall County or have a mascot other than Jimmies and are in the AAAA football class, combined with the school IDs from the budget table where the school ID is 2, or the invested amount is not 8335, or the total budget percentage budgeted is not 2.0, or the budgeted amount is less than or equal to 4979 and the year is before 2001, or the budget invested percentage is 42.9, or the total budget percentage invested is not 2.0?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["3"], ["4"], ["5"], ["7"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_Kjpxh_8.png", "TableImg_M8oay_8.png"], "original_data_index": 2955, "original_sql": "SELECT School_id FROM School WHERE IHSAA_Class = \"AAA\" AND County <> \"50 Marshall\" OR Mascot <> \"Jimmies\" AND IHSAA_Football_Class = \"AAAA\" UNION SELECT School_id FROM budget WHERE \"School_id\" = 2 OR \"Invested\" <> 8335 AND \"total_budget_percent_budgeted\" != 2.0 OR \"Budgeted\" <= 4979 AND \"Year\" < 2001 OR Budget_invested_percent = \"42.9\" OR \"total_budget_percent_invested\" <> 2.0"} {"question": "What are the aircraft IDs that are both equal to 2 in the aircraft table and less than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dt94v_5.png", "TableImg_R0n2q_4.png"], "original_data_index": 2959, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs are not equal to 1 but are not also driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_81t8d_12.png", "TableImg_9iv47_5.png"], "original_data_index": 2960, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 1 or greater, but not in the airport_aircraft table with an ID of 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ryl50_5.png", "TableImg_56khw_4.png"], "original_data_index": 2961, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are not equal to 11 but are not found in school buses with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3c51c_12.png", "TableImg_9abld_5.png"], "original_data_index": 2958, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs that are either less than or equal to 4 in the aircraft table or greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R9tyw_5.png", "TableImg_Kdyj3_4.png"], "original_data_index": 2965, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the aircraft IDs, excluding aircraft ID 3, from the aircraft table, combined with aircraft IDs less than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fgrqk_5.png", "TableImg_82ons_4.png"], "original_data_index": 2964, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 9 from the driver table and including driver IDs greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G4i0o_12.png", "TableImg_2ers9_5.png"], "original_data_index": 2962, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are either less than or equal to 11 from the driver table or greater than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dz4xa_12.png", "TableImg_X4bsc_5.png"], "original_data_index": 2963, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs, excluding aircraft ID 5, and also the aircraft IDs less than 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F2a0s_5.png", "TableImg_C24rc_4.png"], "original_data_index": 2966, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the driver IDs that are less than 9, excluding those driver IDs that are 7 or less, considering driver information from the 'driver' table and school bus information from the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ccwnx_12.png", "TableImg_Uaitw_5.png"], "original_data_index": 2968, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs that are greater than or equal to 5 and also not equal to 3, considering only those aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9tjur_5.png", "TableImg_Bmroy_4.png"], "original_data_index": 2969, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the driver IDs that appear in both the driver table (with IDs no greater than 11) and the school bus table (with IDs less than 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bhsah_12.png", "TableImg_Dftp0_5.png"], "original_data_index": 2967, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 5 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D38ps_12.png", "TableImg_Xnygs_5.png"], "original_data_index": 2972, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs, names, and distances for aircraft that are either named \"Schwitzer 2-33\" or have a distance less than 4103, and also for aircraft that are not named \"Piper Archer III\" or have an ID less than or equal to 10?", "answer": {"columns": ["aid", "name", "distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2", "Boeing 737-800", "3383"], ["4", "British Aerospace Jetstream 41", "1502"], ["5", "Embraer ERJ-145", "1530"], ["6", "SAAB 340", "2128"], ["7", "Piper Archer III", "520"], ["10", "Boeing 757-300", "4010"], ["13", "Airbus A320", "2605"], ["14", "Airbus A319", "1805"], ["15", "Boeing 727", "1504"], ["16", "Schwitzer 2-33", "30"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_E7c4i_16.png", "TableImg_Qbpg4_16.png"], "original_data_index": 2970, "original_sql": "SELECT aid, name, distance FROM aircraft WHERE name = \"Schwitzer 2-33\" OR \"distance\" < 4103 INTERSECT SELECT aid, name, distance FROM aircraft WHERE name != \"Piper Archer III\" OR \"aid\" <= 10"} {"question": "What are the head IDs, birth states, names, and ages of heads who either weren't born in California or have a head ID of 3 or greater, and also have a head ID of 5 or were not born in Connecticut?", "answer": {"columns": ["head_ID", "born_state", "name", "age"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "Alabama", "Tiger Woods", "67"], ["3", "Alabama", "K. J. Choi", "69"], ["4", "California", "Dudley Hart", "52"], ["5", "Delaware", "Jeff Maggert", "53"], ["6", "California", "Billy Mayfair", "69"], ["7", "Florida", "Stewart Cink", "50"], ["8", "California", "Nick Faldo", "56"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Wf0z7_10.png", "TableImg_724dn_10.png"], "original_data_index": 2971, "original_sql": "SELECT head_ID, born_state, name, age FROM head WHERE born_state <> \"California\" OR \"head_ID\" >= 3 INTERSECT SELECT head_ID, born_state, name, age FROM head WHERE \"head_ID\" = 5 OR born_state != \"Connecticut\""} {"question": "What are the driver IDs that are either greater than or equal to 1 in the driver table or not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6vgvy_12.png", "TableImg_Ggqnd_5.png"], "original_data_index": 2973, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are greater than or equal to 2, excluding those driver IDs that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mj9mw_12.png", "TableImg_4y9cj_5.png"], "original_data_index": 2977, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the aircraft IDs that are not equal to 4, but are not present in the airport_aircraft table with an aircraft ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xudmx_5.png", "TableImg_1rrcp_4.png"], "original_data_index": 2976, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the driver IDs that are less than or equal to 7, excluding those driver IDs that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Falyl_12.png", "TableImg_Ykbrb_5.png"], "original_data_index": 2974, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are equal to 6, but not driver IDs greater than 10, considering the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ue6x6_12.png", "TableImg_Qfms9_5.png"], "original_data_index": 2978, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs, excluding ID 12, that are present in both the driver and school bus tables, excluding ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ac4j8_12.png", "TableImg_Zocqj_5.png"], "original_data_index": 2979, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are less than or equal to 6 but not present in the school bus table with IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zp1t2_12.png", "TableImg_H1w9f_5.png"], "original_data_index": 2980, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are equal to 9, or are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cm2r2_12.png", "TableImg_Ok2hf_5.png"], "original_data_index": 2982, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs, excluding aircraft ID 1, that are also present in the airport aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5w3jc_5.png", "TableImg_Hwkva_4.png"], "original_data_index": 2981, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs are equal to 11 in the driver table, but not present in the school bus table with driver IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Thpzp_12.png", "TableImg_Jmdoa_5.png"], "original_data_index": 2983, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs that are both less than or equal to 5 and also appear in the airport aircraft table with IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fkstu_5.png", "TableImg_9zyrx_4.png"], "original_data_index": 2984, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the aircraft IDs that are either aircraft ID 2 or any aircraft ID except 5 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Oagj8_5.png", "TableImg_Qr7xs_4.png"], "original_data_index": 2985, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the IDs of drivers, excluding driver ID 2, and the IDs of school bus drivers, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wrpwf_12.png", "TableImg_Ipqxv_5.png"], "original_data_index": 2986, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Give me the name, creation date, department ID, budget in billions, and number of employees for departments that were not created in 1903 and are not named \"Commerce\", or have a ranking of 4 or less, excluding those with 208,000 or more employees, or named \"Energy\", or with a budget not equal to 10.7, or created in 1953, or with a ranking of 9 or more and a department ID less than 15.", "answer": {"columns": ["Name", "Creation", "Department_ID", "Budget_in_Billions", "Num_Employees"], "index": [0], "data": [["Interior", "1849", "5", "10.7", "71436"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Imzoy_15.png", "TableImg_59f0u_15.png"], "original_data_index": 2987, "original_sql": "SELECT Name, Creation, Department_ID, Budget_in_Billions, Num_Employees FROM department WHERE Creation != \"1903\" AND Name != \"Commerce\" OR \"Ranking\" <= 4 EXCEPT SELECT Name, Creation, Department_ID, Budget_in_Billions, Num_Employees FROM department WHERE \"Num_Employees\" >= 208000.0 OR Name = \"Energy\" OR \"Budget_in_Billions\" <> 10.7 OR Creation = \"1953\" OR \"Ranking\" >= 9 AND \"Department_ID\" < 15"} {"question": "Which driver IDs are not equal to 9 but are not present in the school bus table with driver IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I41hg_12.png", "TableImg_Kij4j_5.png"], "original_data_index": 2988, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs, excluding driver ID 1, are associated with drivers, and which driver IDs, excluding driver ID 3, are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ww8w2_12.png", "TableImg_Attym_5.png"], "original_data_index": 2989, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the employee IDs of employees who received a bonus of 3200 but are not employee ID 2, excluding those with an employee ID greater than 6?", "answer": {"columns": ["Employee_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_3yocm_6.png", "TableImg_05t35_7.png"], "original_data_index": 2990, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Employee_ID != \"2\" AND \"Bonus\" = 3200.0 EXCEPT SELECT Employee_ID FROM hiring WHERE \"Employee_ID\" > 6"} {"question": "Which driver IDs are present in both the 'driver' table (where the ID is less than 10) and the 'school_bus' table (where the ID is not 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I4lm9_12.png", "TableImg_S7sig_5.png"], "original_data_index": 2994, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the flight numbers of flights that are not going to Honolulu, have a flight number less than 13, an airline ID greater than 10, and a distance not equal to 1749, or departed on April 12, 2005 at 9:15 AM, excluding flight number 33?", "answer": {"columns": ["flno"], "index": [0], "data": [["33"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_K4z5k_10.png", "TableImg_Irmz2_10.png"], "original_data_index": 2995, "original_sql": "SELECT flno FROM flight WHERE destination <> \"Honolulu\" AND \"flno\" < 13 AND \"aid\" > 10 AND \"distance\" != 1749 OR departure_date = \"04/12/2005 09:15\" EXCEPT SELECT flno FROM flight WHERE \"flno\" <> 33"} {"question": "What are the driver IDs greater than 3 that are in the driver table but not in the school bus table, where the school bus driver IDs are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hvmo7_12.png", "TableImg_Aa85z_5.png"], "original_data_index": 2996, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are less than or equal to 4, excluding those with IDs less than 10 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_537ld_12.png", "TableImg_Kfpxg_5.png"], "original_data_index": 2997, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are not equal to 11 but are not present in the school bus table where the driver ID is less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wi8aa_12.png", "TableImg_4ll55_5.png"], "original_data_index": 2998, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "How many companies meet these criteria: profits over 11.1 billion, assets under 2265.8 billion and company ID less than 5, or market value less than or equal to 170.1 billion and sales not equal to 62.4 billion and name is Berkshire Hathaway, or headquarters is not Brazil? Also, how many people graduated from a college other than Virginia or are from the United Kingdom and are not 31 years old?", "answer": {"columns": ["COUNT(Name)"], "index": [0, 1], "data": [["19"], ["7"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_W9q21_19.png", "TableImg_Cqusm_7.png"], "original_data_index": 2999, "original_sql": "SELECT COUNT(Name) FROM company WHERE \"Profits_in_Billion\" > 11.1 OR \"Assets_in_Billion\" > 2265.8 AND \"Company_ID\" < 5.0 AND Industry <> \"Oil and gas\" OR \"Market_Value_in_Billion\" <= 170.1 AND \"Sales_in_Billion\" <> 62.4 AND Name = \"Berkshire Hathaway\" OR Headquarters != \"Brazil\" UNION ALL SELECT COUNT(Name) FROM people WHERE Graduation_College <> \"Virginia\" OR Nationality = \"United Kindom\" AND \"Age\" <> 31"} {"question": "Give me the customer status code, amount outstanding, and date they became a customer for all customers who meet at least one of the following criteria: their first name isn't Leif, their date of becoming a customer isn't November 30, 2016 at 10:37:41, their cell phone number is 739-333-6966x187 and their amount outstanding is less than or equal to 9443.0, or their customer address ID is greater than or equal to 9 and their customer ID is greater than or equal to 3, or their date of birth is September 19, 1988 at 14:45:56, or their last name isn't Kohler, or their customer status code is \"Good Customer\" and their email address isn't everette.goyette@example.org and their phone number isn't (662)490-3108, but exclude those who have a customer address ID greater than 1 and a phone number of 1-618-535-9750, or a cell phone number that is not (780)719-4206x033, or a date of birth that is not May 23, 1996 at 01:21:54 and an amount outstanding greater than or equal to 5494.0.", "answer": {"columns": ["customer_status_code", "amount_outstanding", "date_became_customer"], "index": [0], "data": [["Good Customer", "3900", "2017-04-16 05:12:21"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_4wif4_15.png", "TableImg_Q4y95_15.png"], "original_data_index": 3000, "original_sql": "SELECT customer_status_code, amount_outstanding, date_became_customer FROM Customers WHERE first_name <> \"Leif\" AND date_became_customer != \"2016-11-30 10:37:41\" AND cell_mobile_phone_number = \"739-333-6966x187\" AND \"amount_outstanding\" <= 9443.0 OR \"customer_address_id\" >= 9 AND \"customer_id\" >= 3 OR date_of_birth = \"1988-09-19 14:45:56\" OR last_name != \"Kohler\" OR customer_status_code = \"Good Customer\" AND email_address != \"everette.goyette@example.org\" AND phone_number <> \"(662)490-3108\" EXCEPT SELECT customer_status_code, amount_outstanding, date_became_customer FROM Customers WHERE \"customer_address_id\" > 1 AND phone_number = \"1-618-535-9750\" OR cell_mobile_phone_number <> \"(780)719-4206x033\" OR date_of_birth <> \"1996-05-23 01:21:54\" AND \"amount_outstanding\" >= 5494.0"} {"question": "What are the aircraft IDs that are greater than or equal to 3, excluding those aircraft IDs that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xw8ch_5.png", "TableImg_X9bk1_4.png"], "original_data_index": 3001, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the location, grade, type, and school for schools in Jakarta, Indonesia that are not \"Private Catholic\" and not \"Punahou School\", combined with the information for schools that are \"Noelani Elementary School\" or are not 4th grade, or are not public, or have a School_ID other than 7, or are not located in Los Angeles, California?", "answer": {"columns": ["Location", "Grade", "Type", "School"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Cambridge, Massachusetts", "College", "Private", "Harvard Law School"], ["Honolulu, Hawaii", "5th-12th grade", "Private", "Punahou School"], ["Honolulu, Hawaii", "Kindergarten", "Public", "Noelani Elementary School"], ["Jakarta, Indonesia", "1st-3rd grade", "Private Catholic", "St. Francis Assisi"], ["Jakarta, Indonesia", "4th grade", "Public", "State Elementary School Menteng 01"], ["Los Angeles, California", "Freshman\u2013Sophomore year", "Private", "Occidental College"], ["New York City", "Junior\u2013Senior year", "Private", "Columbia University"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Jj9oj_7.png", "TableImg_B2zdr_7.png"], "original_data_index": 3002, "original_sql": "SELECT Location, Grade, Type, School FROM school WHERE Location = \"Jakarta, Indonesia\" AND Type != \"Private Catholic\" AND School != \"Punahou School\" UNION SELECT Location, Grade, Type, School FROM school WHERE School = \"Noelani Elementary School\" OR Grade != \"4th grade\" AND Type != \"Public\" OR \"School_ID\" != 7 AND Location != \"Los Angeles, California\""} {"question": "For each country, excluding those from Denmark, and excluding airports named \"Billund Airport\" or with IATA code \"AMS\", but including those in Billund, or with an ID greater than or equal to 2, or not having ICAO code \"EKBI\", how many cities, ICAO codes, airport names, and IATA codes are there, and what is the maximum airport ID, provided that the country has more than one city, or not exactly one IATA code, or the maximum ID is less than 5? Then, exclude the results for countries where the ID is not 6, or the name is not \"Baltimore-Washington Airport\" and the city is Anchorage, and where the number of ICAO codes is less than 1, or the maximum ID is greater than 7 and the number of names is less than 1 and the number of cities is at most 3.", "answer": {"columns": ["Country", "COUNT(City)", "COUNT(ICAO)", "COUNT(name)", "COUNT(IATA)", "MAX(id)"], "index": [0, 1, 2], "data": [["Iceland", "1", "1", "1", "1", "1"], ["Netherlands", "1", "1", "1", "1", "2"], ["United States", "3", "3", "3", "3", "8"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Pqb4z_9.png", "TableImg_J8fp7_9.png"], "original_data_index": 3003, "original_sql": "SELECT Country, COUNT(City), COUNT(ICAO), COUNT(name), COUNT(IATA), MAX(id) FROM airport WHERE Country != \"Denmark\" OR name != \"Billund Airport\" OR IATA <> \"AMS\" AND City = \"Billund\" OR \"id\" >= 2 OR ICAO != \"EKBI\" GROUP BY Country HAVING COUNT(City) > 1 OR COUNT(IATA) <> 1 OR MAX(id) < 5 EXCEPT SELECT Country, COUNT(City), COUNT(ICAO), COUNT(name), COUNT(IATA), MAX(id) FROM airport WHERE \"id\" != 6 OR name <> \"Baltimore-Washington Airport\" AND City = \"Anchorage\" GROUP BY Country HAVING COUNT(ICAO) < 1 OR MAX(id) > 7 AND COUNT(name) < 1 AND COUNT(City) <= 3"} {"question": "What are the aircraft IDs that are either greater than or equal to 3 in the aircraft table, or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lh4xx_5.png", "TableImg_Gpx6w_4.png"], "original_data_index": 3004, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the aircraft IDs that are less than 1, and also the aircraft IDs that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nrm7e_5.png", "TableImg_Smsxx_4.png"], "original_data_index": 3005, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID greater than or equal to 1, but not in the airport_aircraft table with an ID of 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Usehg_5.png", "TableImg_Iws2a_4.png"], "original_data_index": 3006, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the driver IDs that are in the driver table but not in the school bus table, excluding driver ID 8 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6dep8_12.png", "TableImg_Ps6dn_5.png"], "original_data_index": 2991, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the driver IDs that are either 4 or not 10, considering the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hlnhi_12.png", "TableImg_Fjs20_5.png"], "original_data_index": 2992, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 3 from the aircraft table and aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ien5x_5.png", "TableImg_Tfvjn_4.png"], "original_data_index": 2993, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the aircraft IDs that are not 2 and are in the aircraft table but not in the airport_aircraft table, excluding any aircraft ID that is 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_636tg_5.png", "TableImg_71ws4_4.png"], "original_data_index": 3009, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the driver IDs greater than 1 from the driver table, combined with the driver IDs greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3wr6c_12.png", "TableImg_X25mt_5.png"], "original_data_index": 3007, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What temporary acting statuses are present in the management table where the department ID is at least 15 or the head ID is less than 5 and the temporary acting status is not \"Yes\", and also in the management table where the head ID is not 4 or the department ID is less than 7?", "answer": {"columns": ["temporary_acting"], "index": [0, 1], "data": [["No"], ["Yes"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_Iu11n_5.png", "TableImg_Nk2yj_5.png"], "original_data_index": 3010, "original_sql": "SELECT temporary_acting FROM management WHERE \"department_ID\" >= 15 OR \"head_ID\" < 5 AND temporary_acting != \"Yes\" INTERSECT SELECT temporary_acting FROM management WHERE \"head_ID\" <> 4 OR \"department_ID\" < 7"} {"question": "What are the driver IDs that are both greater than or equal to 10 and also not equal to 7, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qbj8f_12.png", "TableImg_Bwyf8_5.png"], "original_data_index": 3008, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are either less than or equal to 5 in the aircraft table or less than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H2fth_5.png", "TableImg_Cdm77_4.png"], "original_data_index": 3011, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What is the average property type code for properties that are not \"Other\", and what is the average property type code for \"House\" properties?", "answer": {"columns": ["AVG(property_type_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Ajfhm_15.png", "TableImg_8ziu1_5.png"], "original_data_index": 3012, "original_sql": "SELECT AVG(property_type_code) FROM Properties WHERE property_type_code != \"Other\" INTERSECT SELECT AVG(property_type_code) FROM Ref_Property_Types WHERE property_type_code = \"House\""} {"question": "What are the driver IDs, excluding driver ID 7, and also the driver IDs greater than 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Se1co_12.png", "TableImg_61p2x_5.png"], "original_data_index": 3013, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and also have an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dl2y3_5.png", "TableImg_Bt1k8_4.png"], "original_data_index": 3014, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the driver IDs, excluding driver ID 1, that are present in both the driver and school bus tables, where the school bus driver ID is 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_61myw_12.png", "TableImg_Xye8g_5.png"], "original_data_index": 3015, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are not equal to 9 and are not found in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9lpw0_12.png", "TableImg_I7ly2_5.png"], "original_data_index": 3019, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are less than 4, and also include driver ID 3, considering driver information from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uxovn_12.png", "TableImg_Xpre2_5.png"], "original_data_index": 3016, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that appear in both the driver and school bus tables, where the driver ID is no more than 9 in the driver table and no more than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8dhot_12.png", "TableImg_D4srx_5.png"], "original_data_index": 3018, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are both greater than or equal to 6 and also less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mbyqx_12.png", "TableImg_Schdg_5.png"], "original_data_index": 3021, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "For each year, what is the average branch ID and the member ID, considering records where the registration year is not 2016, or the member ID is at least 8, or the branch ID is not 1, and also considering records where the branch ID is not 1 and the member ID is greater than 5?", "answer": {"columns": ["Register_Year", "AVG(Branch_ID)", "Member_ID"], "index": [0, 1], "data": [["2016", "4.3333333333", "2"], ["2017", "5.3333333333", "6"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_W0dkw_8.png", "TableImg_Pjose_8.png"], "original_data_index": 3022, "original_sql": "SELECT Register_Year, AVG(Branch_ID), Member_ID FROM membership_register_branch WHERE Register_Year <> \"2016\" OR \"Member_ID\" >= 8 OR Branch_ID <> \"1\" UNION ALL SELECT Register_Year, AVG(Branch_ID), Member_ID FROM membership_register_branch WHERE Branch_ID <> \"1\" AND \"Member_ID\" > 5"} {"question": "What is the average bonus for each employee in 2011, excluding employee ID 2 or any bonus not equal to 3200, and also the average bonus for employees with a bonus less than or equal to 3200?", "answer": {"columns": ["Employee_ID", "AVG(Bonus)"], "index": [0, 1], "data": [["1", "3300"], ["1", "3100"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_Zlrjb_6.png", "TableImg_38dtm_6.png"], "original_data_index": 3020, "original_sql": "SELECT Employee_ID, AVG(Bonus) FROM evaluation WHERE Year_awarded = \"2011\" AND Employee_ID != \"2\" OR \"Bonus\" <> 3200.0 UNION ALL SELECT Employee_ID, AVG(Bonus) FROM evaluation WHERE \"Bonus\" <= 3200.0"} {"question": "What are the other details from documents that aren't shipped by \"UP\" or from employees where the other details aren't \"b\" or the employee ID is 3 or greater?", "answer": {"columns": ["other_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["b"], ["f"], ["h"], ["j"], ["n"], ["p"], ["q"], ["u"], ["v"], ["w"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Q4auq_15.png", "TableImg_D6xzp_6.png"], "original_data_index": 3025, "original_sql": "SELECT other_details FROM Documents WHERE shipping_agent_code <> \"UP\" UNION SELECT other_details FROM Employees WHERE other_details != \"b\" OR \"employee_id\" >= 3"} {"question": "Which member IDs are present in both the member table (excluding those named Johnny Williams and with ID 4) and the purchase table (excluding purchases from the year 2018)?", "answer": {"columns": ["Member_ID"], "index": [0], "data": [["3"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_E3oye_10.png", "TableImg_Uuluh_8.png"], "original_data_index": 3024, "original_sql": "SELECT Member_ID FROM member WHERE Name != \"Johnny Williams\" AND \"Member_ID\" != 4 INTERSECT SELECT Member_ID FROM purchase WHERE Year <> \"2018\""} {"question": "What are the driver IDs greater than 6 from the driver table, combined with the driver IDs less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vwsoi_12.png", "TableImg_J6bs0_5.png"], "original_data_index": 3023, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are less than or equal to 9, combined with the driver IDs that are greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M81da_12.png", "TableImg_K9hnj_5.png"], "original_data_index": 3027, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are less than 11 from the driver table, combined with the driver IDs that are not 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4z9x4_12.png", "TableImg_C4mf2_5.png"], "original_data_index": 3026, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are either 6 or less, or greater than 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fn2y7_12.png", "TableImg_3o07w_5.png"], "original_data_index": 3017, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are either 5 or greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K3l7s_12.png", "TableImg_Bg6bo_5.png"], "original_data_index": 3030, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs greater than 9 from the driver table, combined with the driver IDs greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Okpry_12.png", "TableImg_Vru1z_5.png"], "original_data_index": 3029, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are less than 8 from the driver table, combined with the driver IDs that are 3 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xni4v_12.png", "TableImg_6ejox_5.png"], "original_data_index": 3028, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which member IDs are in the 'member' table but not in the 'membership_register_branch' table, considering members who don't have card number \"RT91\", are level 6, don't live in \"Columbia, South Carolina\", or aren't named \"Trevard Lindley\" and have a member ID other than 7, but excluding those registered at a branch other than \"1\"?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_B0pfp_10.png", "TableImg_Qtqrp_8.png"], "original_data_index": 3031, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number != \"RT91\" OR \"Level\" = 6 OR Hometown <> \"Columbia, South Carolina\" OR Name != \"Trevard Lindley\" AND \"Member_ID\" <> 7 EXCEPT SELECT Member_ID FROM membership_register_branch WHERE Branch_ID != \"1\""} {"question": "Which drivers have an ID of 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yrzfb_12.png", "TableImg_Oa82i_5.png"], "original_data_index": 3033, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the IDs of drivers, excluding driver ID 6, and the IDs of school bus drivers, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Savx2_12.png", "TableImg_Oq03f_5.png"], "original_data_index": 3032, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which club IDs are not for the Tennis Club, or not equal to club ID 2, or have the description \"Refurbish computers; teach kids and adults about computer basics.\" and are not located in AKW, or are associated with member ID 1007, or not equal to club ID 2, or not the CTO position?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Ne347_4.png", "TableImg_Zlm2t_4.png"], "original_data_index": 3034, "original_sql": "SELECT ClubID FROM Club WHERE ClubName <> \"Tennis Club\" OR \"ClubID\" <> 2 OR ClubDesc = \"Refurbish computers; teach kids and adults about computer basics.\" AND ClubLocation != \"AKW\" UNION SELECT ClubID FROM Member_of_club WHERE \"StuID\" = 1007 OR \"ClubID\" != 2 OR Position != \"CTO\""} {"question": "What are the driver IDs that are both greater than or equal to 3 in the driver table and not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hkq7z_12.png", "TableImg_Fup5p_5.png"], "original_data_index": 3035, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs, excluding ID 3, that are either in the aircraft table or the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dbsfe_5.png", "TableImg_73m9u_4.png"], "original_data_index": 3037, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the IDs of drivers who are not driver ID 5 and also appear in the school bus table but are not school bus ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P0412_12.png", "TableImg_8c93v_5.png"], "original_data_index": 3038, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the user IDs of reviewers who have a rating of 1 or less, or a rank greater than 7, combined with the user IDs of users whose name is not Mark?", "answer": {"columns": ["u_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_I67hj_7.png", "TableImg_8ubhu_7.png"], "original_data_index": 3039, "original_sql": "SELECT u_id FROM review WHERE \"a_id\" <= 1 OR \"rank\" > 7 UNION SELECT u_id FROM useracct WHERE name <> \"Mark\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 1 from the driver table and driver IDs 10 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_61vjc_12.png", "TableImg_At87q_5.png"], "original_data_index": 3036, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What is the alphabetically first feature name that isn't \"Air Conditioning\" and also has the description \"Burglar Alarm\"?", "answer": {"columns": ["MIN(feature_name)"], "index": [0], "data": [["BurglarAlarm"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_4825p_3.png", "TableImg_1ctz4_3.png"], "original_data_index": 3042, "original_sql": "SELECT MIN(feature_name) FROM Other_Available_Features WHERE feature_description <> \"Air Conditioning.\" INTERSECT SELECT MIN(feature_name) FROM Other_Available_Features WHERE feature_description = \"Burglar Alarm\""} {"question": "Which driver IDs are less than or equal to 5 but are not driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uzsxo_12.png", "TableImg_Xq3t0_5.png"], "original_data_index": 3044, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the full names, IDs, makers, and countries of car makers, excluding those from country \"6\" and not named \"Volvo\" or with an ID other than 2, combined with the full names, IDs, makers, and countries of car makers that are not \"ford\"?", "answer": {"columns": ["FullName", "Id", "Maker", "Country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], "data": [["American Motor Company", "1", "amc", "1"], ["Volkswagen", "2", "volkswagen", "2"], ["BMW", "3", "bmw", "2"], ["General Motors", "4", "gm", "1"], ["Ford Motor Company", "5", "ford", "1"], ["Chrysler", "6", "chrysler", "1"], ["Citroen", "7", "citroen", "3"], ["Nissan Motors", "8", "nissan", "4"], ["Fiat", "9", "fiat", "5"], ["Honda", "11", "honda", "4"], ["Mazda", "12", "mazda", "4"], ["Daimler Benz", "13", "daimler benz", "2"], ["Opel", "14", "opel", "2"], ["Peugeaut", "15", "peugeaut", "3"], ["Renault", "16", "renault", "3"], ["Saab", "17", "saab", "6"], ["Subaru", "18", "subaru", "4"], ["Toyota", "19", "toyota", "4"], ["Triumph", "20", "triumph", "7"], ["Volvo", "21", "volvo", "6"], ["Kia Motors", "22", "kia", "8"], ["Hyundai", "23", "hyundai", "8"], ["American Motor Company", "1", "amc", "1"], ["Volkswagen", "2", "volkswagen", "2"], ["BMW", "3", "bmw", "2"], ["General Motors", "4", "gm", "1"], ["Chrysler", "6", "chrysler", "1"], ["Citroen", "7", "citroen", "3"], ["Nissan Motors", "8", "nissan", "4"], ["Fiat", "9", "fiat", "5"], ["Honda", "11", "honda", "4"], ["Mazda", "12", "mazda", "4"], ["Daimler Benz", "13", "daimler benz", "2"], ["Opel", "14", "opel", "2"], ["Peugeaut", "15", "peugeaut", "3"], ["Renault", "16", "renault", "3"], ["Saab", "17", "saab", "6"], ["Subaru", "18", "subaru", "4"], ["Toyota", "19", "toyota", "4"], ["Triumph", "20", "triumph", "7"], ["Volvo", "21", "volvo", "6"], ["Kia Motors", "22", "kia", "8"], ["Hyundai", "23", "hyundai", "8"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_K78ww_22.png", "TableImg_R2xwg_22.png"], "original_data_index": 3043, "original_sql": "SELECT FullName, Id, Maker, Country FROM car_makers WHERE Country <> \"6\" AND FullName != \"Volvo\" OR \"Id\" != 2 UNION ALL SELECT FullName, Id, Maker, Country FROM car_makers WHERE Maker != \"ford\""} {"question": "Which driver IDs are either 2 or not 4, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hnng3_12.png", "TableImg_Gvsd3_5.png"], "original_data_index": 3045, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs greater than 4 in the aircraft table, combined with the aircraft IDs greater than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Trvly_5.png", "TableImg_Bdymg_4.png"], "original_data_index": 3046, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Which driver IDs are greater than or equal to 1 in the driver table, but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oacls_12.png", "TableImg_Xu2iq_5.png"], "original_data_index": 3047, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs that are equal to 2, but not driver IDs that are 9 or greater, considering the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_234q0_12.png", "TableImg_00qfi_5.png"], "original_data_index": 3048, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are greater than or equal to 6, and also the driver IDs that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5kmkc_12.png", "TableImg_Rvesq_5.png"], "original_data_index": 3049, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are either less than or equal to 2, or not equal to 9, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ks5e9_12.png", "TableImg_Gjdme_5.png"], "original_data_index": 3051, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the IDs of drivers, excluding driver 4, and the IDs of school buses, excluding bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G6heu_12.png", "TableImg_X0kqx_5.png"], "original_data_index": 3041, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which store IDs are not \"Village Store\" or have an area size less than 26.69 or are named \"Neguac\" and are not store ID 3, but are not store IDs found in the store_product table where the store ID is less than or equal to 1?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_6raba_5.png", "TableImg_V8cv8_15.png"], "original_data_index": 3052, "original_sql": "SELECT Store_ID FROM store WHERE Type <> \"Village Store\" OR \"Area_size\" < 26.69 OR Store_Name = \"Neguac\" AND \"Store_ID\" <> 3 EXCEPT SELECT Store_ID FROM store_product WHERE \"Store_ID\" <= 1"} {"question": "What are the aircraft IDs that are either 1 or less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8pxcm_5.png", "TableImg_Vjbkk_4.png"], "original_data_index": 3053, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the document IDs of drafts with draft number 4 and not \"l\" as draft details, excluding those that were mailed to an address ID less than or equal to 0?", "answer": {"columns": ["document_id"], "index": [0], "data": [["13"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Zs64e_15.png", "TableImg_Ef1n0_14.png"], "original_data_index": 3054, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"draft_number\" = 4 AND draft_details <> \"l\" EXCEPT SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <= 0"} {"question": "What are the aircraft IDs that are less than 1 in the aircraft table, combined with the aircraft IDs that are less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L8r0l_5.png", "TableImg_4vto9_4.png"], "original_data_index": 3050, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 11 from the driver table and driver IDs 10 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_23kgq_12.png", "TableImg_B2s0i_5.png"], "original_data_index": 3040, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are less than 8, and also driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pv3jn_12.png", "TableImg_T0hcr_5.png"], "original_data_index": 3055, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the role code, other details, employee name, and employee ID for employees who are not named Jordyn or have an employee ID greater than 1 and other details equal to \"f\", along with the role code, other details, employee name, and employee ID for employees with an employee ID of 3 or greater?", "answer": {"columns": ["role_code", "other_details", "employee_name", "employee_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["ED", "h", "Koby", "1"], ["ED", "f", "Kenyon", "2"], ["PR", "b", "Haley", "3"], ["PT", "b", "Clemens", "5"], ["MG", "u", "Erling", "8"], ["PR", "b", "Haley", "3"], ["PT", "b", "Clemens", "5"], ["PT", "v", "Jordyn", "7"], ["MG", "u", "Erling", "8"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_Hr4ll_6.png", "TableImg_N2nyz_6.png"], "original_data_index": 3057, "original_sql": "SELECT role_code, other_details, employee_name, employee_id FROM Employees WHERE employee_name != \"Jordyn\" OR \"employee_id\" > 1 AND other_details = \"f\" UNION ALL SELECT role_code, other_details, employee_name, employee_id FROM Employees WHERE \"employee_id\" >= 3"} {"question": "What are the driver IDs that are less than or equal to 9, but not found in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B42ut_12.png", "TableImg_Croxj_5.png"], "original_data_index": 3058, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the sums of customer address IDs and phone numbers for customers meeting the first set of criteria, excluding those meeting the second set of criteria? The first set includes customers with customer IDs greater than 1, or a customer status code not equal to \"Bad Customer\" and a last name of \"Tromp\", or an email address not equal to \"afranecki@example.com\" and a date of birth of \"1993-03-08 08:48:42\", or a phone number of \"206-054-0689x05861\" and a cell mobile phone number of \"848-099-2095x785\", or a first name not equal to \"Carole\" and a customer address ID of 8, or an amount outstanding greater than 9443.0. The second set includes customers with a customer address ID less than or equal to 9 and an email address of \"kitty.hand@example.net\", or an amount outstanding less than 7256.0 and a customer ID greater than or equal to 12, or a first name not equal to \"Dianna\", or a phone number not equal to \"1-387-884-0656\", or a customer status code of \"Bad Customer\", or a date of birth not equal to \"1991-12-05 02:50:15\" and a date became customer not equal to \"2017-04-16 05:12:21\", or a last name of \"Spinka\", or a cell mobile phone number of \"+57(9)4602098297\".", "answer": {"columns": ["SUM(customer_address_id)", "phone_number"], "index": [0], "data": [["103", "+14(5)2351480248"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_Jows8_15.png", "TableImg_S7aj3_15.png"], "original_data_index": 3056, "original_sql": "SELECT SUM(customer_address_id), phone_number FROM Customers WHERE \"customer_id\" > 1 OR customer_status_code != \"Bad Customer\" AND last_name = \"Tromp\" OR email_address != \"afranecki@example.com\" AND date_of_birth = \"1993-03-08 08:48:42\" OR phone_number = \"206-054-0689x05861\" AND cell_mobile_phone_number = \"848-099-2095x785\" OR first_name != \"Carole\" AND \"customer_address_id\" = 8 OR \"amount_outstanding\" > 9443.0 EXCEPT SELECT SUM(customer_address_id), phone_number FROM Customers WHERE \"customer_address_id\" <= 9 AND email_address = \"kitty.hand@example.net\" OR \"amount_outstanding\" < 7256.0 AND \"customer_id\" >= 12 OR first_name != \"Dianna\" OR phone_number <> \"1-387-884-0656\" OR customer_status_code = \"Bad Customer\" OR date_of_birth <> \"1991-12-05 02:50:15\" AND date_became_customer != \"2017-04-16 05:12:21\" OR last_name = \"Spinka\" OR cell_mobile_phone_number = \"+57(9)4602098297\""} {"question": "What are the driver IDs greater than 4, and also the driver IDs from school buses that are not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_728c8_12.png", "TableImg_9f2wy_5.png"], "original_data_index": 3061, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 2 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pp9ie_12.png", "TableImg_Wm280_5.png"], "original_data_index": 3060, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the document IDs, mailing dates, and addresses for mailed documents, excluding those mailed on May 24, 1993, and with an address ID greater than 7 or a document ID greater than 12? Also, include all documents with an address ID greater than 3.", "answer": {"columns": ["document_id", "mailing_date", "mailed_to_address_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["2", "1977-04-01 17:03:50", "8"], ["4", "1973-02-21 10:17:01", "9"], ["12", "2007-03-20 05:22:01", "8"], ["13", "1991-05-27 14:17:37", "4"], ["14", "1986-05-16 06:25:33", "5"], ["20", "2010-11-04 04:00:16", "2"], ["20", "1982-01-14 05:50:54", "7"], ["23", "1971-11-03 12:32:14", "8"], ["24", "2013-01-27 03:29:31", "0"], ["2", "1977-04-01 17:03:50", "8"], ["4", "1973-02-21 10:17:01", "9"], ["7", "1979-09-21 10:30:52", "5"], ["12", "2007-01-01 22:32:11", "7"], ["12", "2007-03-20 05:22:01", "8"], ["13", "1991-05-27 14:17:37", "4"], ["14", "1986-05-16 06:25:33", "5"], ["20", "1982-01-14 05:50:54", "7"], ["23", "1971-11-03 12:32:14", "8"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_Vrl1k_14.png", "TableImg_Us9u6_14.png"], "original_data_index": 3059, "original_sql": "SELECT document_id, mailing_date, mailed_to_address_id FROM Documents_Mailed WHERE mailing_date != \"1993-05-24 22:13:48\" AND \"mailed_to_address_id\" > 7 OR \"document_id\" > 12 UNION ALL SELECT document_id, mailing_date, mailed_to_address_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" > 3"} {"question": "What are the IDs of albums with an ID less than 104 or an artist ID less than 50 and the title \"Beethoven: Symphony No. 6 'Pastoral' Etc.\", combined with the IDs of genres that are not \"Sci Fi & Fantasy\" or have an ID greater than or equal to 7?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_R2eln_347.png", "TableImg_2lmkc_25.png"], "original_data_index": 3062, "original_sql": "SELECT id FROM albums WHERE \"id\" < 104 OR \"artist_id\" < 50 AND title = \"Beethoven: Symphony No. 6 'Pastoral' Etc.\" UNION ALL SELECT id FROM genres WHERE name <> \"Sci Fi & Fantasy\" OR \"id\" >= 7"} {"question": "Which driver IDs are present in both the driver and school bus tables, where the driver ID is less than or equal to 8 in the driver table and less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_79zxi_12.png", "TableImg_Vaiks_5.png"], "original_data_index": 3063, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are both less than 10 and greater than 3, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jrl3j_12.png", "TableImg_Srg61_5.png"], "original_data_index": 3064, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the IDs of drivers who are not named Tim Larson, or are not Democrats and are under 45 years old, or have a driver ID other than 1 and don't live in East Hartford? Also, what are the IDs of drivers from school buses where the school ID is not 5, or have worked for 6 or fewer years and are full-time, and the driver ID is 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"], ["10"], ["4"], ["9"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zswuw_12.png", "TableImg_Ohcnq_5.png"], "original_data_index": 3065, "original_sql": "SELECT Driver_ID FROM driver WHERE Name <> \"Tim Larson\" OR Party <> \"Dem\" AND \"Age\" < 45 OR \"Driver_ID\" <> 1 AND Home_city != \"East Hartford\" UNION ALL SELECT Driver_ID FROM school_bus WHERE \"School_ID\" != 5 OR \"Years_Working\" <= 6 AND If_full_time != \"F\" AND \"Driver_ID\" = 7"} {"question": "What are the first names, ages, and sexes of students, excluding those with the last name \"Jones\", or where the advisor ID is 1148 and the sex is not \"M\", or where the age is not 18, or where the major code is not greater than 520, or where the first name is not \"Paul\". Also, include the first names, ages, and sexes of students, excluding those with the last name \"Kumar\", or where the student ID is greater than 1026, or where the advisor ID is greater than or equal to 2192, or where the first name is not \"Michael\" and the city code is \"PHL\", or where the sex is \"M\".", "answer": {"columns": ["Fname", "Age", "Sex"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67], "data": [["Linda", "18", "F"], ["Tracy", "19", "F"], ["Shiela", "21", "F"], ["Dinesh", "20", "M"], ["Paul", "26", "M"], ["Andy", "18", "M"], ["Lisa", "18", "F"], ["Jandy", "20", "F"], ["Eric", "19", "M"], ["Derek", "17", "M"], ["David", "22", "M"], ["Steven", "20", "M"], ["Charles", "18", "M"], ["Susan", "16", "F"], ["Mark", "17", "M"], ["Bruce", "27", "M"], ["Michael", "20", "M"], ["Arthur", "18", "M"], ["Ian", "22", "M"], ["George", "19", "M"], ["Michael", "17", "M"], ["David", "20", "M"], ["Stacy", "18", "F"], ["Mark", "18", "M"], ["Eric", "19", "M"], ["Paul", "18", "M"], ["Eric", "20", "M"], ["Jun", "17", "M"], ["Lisa", "21", "F"], ["Sarah", "20", "F"], ["Eric", "20", "M"], ["William", "18", "M"], ["Eric", "18", "M"], ["Sarah", "26", "F"], ["Linda", "18", "F"], ["Tracy", "19", "F"], ["Shiela", "21", "F"], ["Dinesh", "20", "M"], ["Paul", "26", "M"], ["Andy", "18", "M"], ["Lisa", "18", "F"], ["Jandy", "20", "F"], ["Eric", "19", "M"], ["Derek", "17", "M"], ["David", "22", "M"], ["Steven", "20", "M"], ["Charles", "18", "M"], ["Susan", "16", "F"], ["Mark", "17", "M"], ["Bruce", "27", "M"], ["Michael", "20", "M"], ["Arthur", "18", "M"], ["Ian", "22", "M"], ["George", "19", "M"], ["Michael", "17", "M"], ["David", "20", "M"], ["Stacy", "18", "F"], ["Mark", "18", "M"], ["Eric", "19", "M"], ["Paul", "18", "M"], ["Eric", "20", "M"], ["Jun", "17", "M"], ["Lisa", "21", "F"], ["Sarah", "20", "F"], ["Eric", "20", "M"], ["William", "18", "M"], ["Eric", "18", "M"], ["Sarah", "26", "F"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Juf9q_34.png", "TableImg_4n06a_34.png"], "original_data_index": 3066, "original_sql": "SELECT Fname, Age, Sex FROM Student WHERE LName != \"Jones\" OR \"Advisor\" = 1148 AND Sex != \"M\" OR \"Age\" <> 18 OR \"Major\" <= 520 OR Fname <> \"Paul\" UNION ALL SELECT Fname, Age, Sex FROM Student WHERE LName != \"Kumar\" OR \"StuID\" > 1026 OR \"Advisor\" >= 2192 OR Fname != \"Michael\" AND city_code = \"PHL\" OR Sex = \"M\""} {"question": "What are the driver IDs that are less than 3, and also the driver IDs that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qt8us_12.png", "TableImg_4ko51_5.png"], "original_data_index": 3068, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs that are both less than or equal to 4 in the aircraft table and greater than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_458da_5.png", "TableImg_71w3q_4.png"], "original_data_index": 3070, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs are equal to 9, and also which driver IDs are not equal to 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dk4sg_12.png", "TableImg_0rhlu_5.png"], "original_data_index": 3067, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the maximum number of issues and the publisher for books, excluding those published by Pearson, grouped by the number of issues, where the publisher is not Bertelsmann or the price is less than or equal to 2,000,000?", "answer": {"columns": ["MAX(T1.Issues)", "Publisher"], "index": [0, 1, 2, 3, 4], "data": [["1", "Springer Nature"], ["4", "Thomson Reuters"], ["5", "Bertelsmann"], ["6", "Wiley"], ["12", "Wiley"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_Uu3oh_10.png", "TableImg_Iqomz_7.png"], "original_data_index": 3069, "original_sql": "SELECT MAX(T1.Issues), T2.Publisher FROM book as T1 JOIN publication as T2 ON T1.Book_ID = T2.Book_ID WHERE Publisher <> \"Pearson\" GROUP BY Issues HAVING Publisher <> \"Bertelsmann\" OR Price <= 2000000.0"} {"question": "What are the aircraft IDs that are less than 3 in the aircraft table, combined with the aircraft IDs greater than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_12cff_5.png", "TableImg_8ur5n_4.png"], "original_data_index": 3074, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, from the aircraft table, combined with aircraft IDs greater than or equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_My5y4_5.png", "TableImg_Plhom_4.png"], "original_data_index": 3072, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the driver IDs that are less than or equal to 1, excluding those driver IDs that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y5f90_12.png", "TableImg_P4vt5_5.png"], "original_data_index": 3073, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the shipping agent descriptions, codes, and names for shipping agents that are not named \"Fedex\" or have a description other than \"t\" and a code of \"SH\", combined with those agents that have a code of \"SH\" and a description other than \"g\"?", "answer": {"columns": ["shipping_agent_description", "shipping_agent_code", "shipping_agent_name"], "index": [0, 1, 2, 3], "data": [["g", "UP", "UPS"], ["q", "US", "USPS"], ["t", "SH", "Ship"], ["w", "AL", "Airline"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Zdeaa_5.png", "TableImg_S8x56_5.png"], "original_data_index": 3071, "original_sql": "SELECT shipping_agent_description, shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_name != \"Fedex\" OR shipping_agent_description != \"t\" AND shipping_agent_code = \"SH\" UNION SELECT shipping_agent_description, shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"SH\" AND shipping_agent_description <> \"g\""} {"question": "What are the driver IDs greater than 4 from the driver table, combined with the driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Psl1q_12.png", "TableImg_Wnkpo_5.png"], "original_data_index": 3078, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs, excluding ID 2, from the aircraft table, and the aircraft IDs, excluding ID 3, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kibtc_5.png", "TableImg_Lp5mj_4.png"], "original_data_index": 3076, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the template IDs from the Documents table that are not for \"Customer reviews\" and greater than 20, combined with the template IDs from the Templates table that are not 22, not of type \"BK\", and have different effective dates than \"2001-04-18 09:29:52\" and \"1975-10-20 02:28:58\"?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["25"], ["22"], ["21"], ["25"], ["0"], ["1"], ["6"], ["7"], ["10"], ["15"], ["16"], ["18"], ["19"], ["21"], ["24"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Tagw7_15.png", "TableImg_Usp8y_20.png"], "original_data_index": 3075, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Name <> \"Customer reviews\" AND \"Template_ID\" > 20 UNION ALL SELECT Template_ID FROM Templates WHERE \"Template_ID\" != 22 AND Template_Type_Code <> \"BK\" AND Date_Effective_To <> \"2001-04-18 09:29:52\" AND Date_Effective_From <> \"1975-10-20 02:28:58\""} {"question": "For companies, find the profit in billions and the maximum market value in billions. Count the number of industries for each profit value. Consider companies where the profit is less than or equal to 14.4, or the name is not BP, or the headquarters is not in the USA. From these, select only those profit values where the industry count is exactly one. Then, find the profit in billions and the maximum market value in billions. Count the number of industries for each profit value. Consider companies where the industry is not \"Oil and gas\", the headquarters is not in the Netherlands, and the sales are 147.3 billion, or the market value is not 180.0 billion, or the company ID is less than or equal to 15.0 and the assets are less than 209.5 billion. From these, select only those profit values where the maximum market value is greater than or equal to 147.4 billion and the industry count is at most one. Finally, give me the common profit values and maximum market values from both sets.", "answer": {"columns": ["COUNT(Industry)", "Profits_in_Billion", "MAX(Market_Value_in_Billion)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1", "10.3", "202.2"], ["1", "14.2", "213.7"], ["1", "14.4", "154.8"], ["1", "15.7", "208.4"], ["1", "16.2", "164.3"], ["1", "19.0", "170.1"], ["1", "20.5", "201.9"], ["1", "20.6", "294.7"], ["1", "25.1", "237.4"], ["1", "25.7", "147.4"], ["1", "26.9", "218.0"], ["1", "30.9", "227.6"], ["1", "31.7", "159.8"], ["1", "41.1", "407.4"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Jwhf2_19.png", "TableImg_Db442_19.png"], "original_data_index": 3077, "original_sql": "SELECT COUNT(Industry), Profits_in_Billion, MAX(Market_Value_in_Billion) FROM company WHERE \"Profits_in_Billion\" <= 14.4 OR Name != \"BP\" OR Headquarters != \"USA\" GROUP BY Profits_in_Billion HAVING COUNT(Industry) = 1 INTERSECT SELECT COUNT(Industry), Profits_in_Billion, MAX(Market_Value_in_Billion) FROM company WHERE Industry != \"Oil and gas\" AND Headquarters <> \"Netherlands\" AND \"Sales_in_Billion\" = 147.3 OR \"Market_Value_in_Billion\" != 180.0 OR \"Company_ID\" <= 15.0 AND \"Assets_in_Billion\" < 209.5 GROUP BY Profits_in_Billion HAVING MAX(Market_Value_in_Billion) >= 147.4 AND COUNT(Industry) <= 1"} {"question": "What are the names and types of features that are not feature ID 3, but are also not described as \"Burglar Alarm\"?", "answer": {"columns": ["feature_name", "feature_type_code"], "index": [0], "data": [["BurglarAlarm", "Security"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_3m42r_3.png", "TableImg_5zpx0_3.png"], "original_data_index": 3079, "original_sql": "SELECT feature_name, feature_type_code FROM Other_Available_Features WHERE \"feature_id\" != 3 EXCEPT SELECT feature_name, feature_type_code FROM Other_Available_Features WHERE feature_description <> \"Burglar Alarm\""} {"question": "What are the address details where the sum of address IDs is exactly 2, and also where the sum of address IDs is less than or equal to 2?", "answer": {"columns": ["address_details", "SUM(address_id)"], "index": [0], "data": [["DE", "2"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_J4nvo_10.png", "TableImg_3dckg_10.png"], "original_data_index": 3082, "original_sql": "SELECT address_details, SUM(address_id) FROM Addresses GROUP BY address_details HAVING SUM(address_id) = 2 INTERSECT SELECT address_details, SUM(address_id) FROM Addresses GROUP BY address_details HAVING SUM(address_id) <= 2"} {"question": "What are the driver IDs that are less than 9 and also appear in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nkr8z_12.png", "TableImg_B22uy_5.png"], "original_data_index": 3081, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are less than 11 and also greater than 4, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yjokt_12.png", "TableImg_Wvs7t_5.png"], "original_data_index": 3080, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, and also the aircraft IDs less than 5, from the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rq95z_5.png", "TableImg_Xla5g_4.png"], "original_data_index": 3085, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the driver IDs, excluding driver ID 3, and also the driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bpdt5_12.png", "TableImg_75dg6_5.png"], "original_data_index": 3083, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs, excluding driver ID 2, and also the driver IDs that are less than or equal to 4, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7o9aj_12.png", "TableImg_5z03v_5.png"], "original_data_index": 3084, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the sum of customer IDs, the maximum payment amount, the maximum payment date, and the payment method code for payments, excluding those made on \"2018-02-06 13:35:58\" or by customer 2, or with an amount less than 4773.16, but not including any payments where the amount was 4032.33 and the customer ID was less than 2?", "answer": {"columns": ["SUM(customer_id)", "MAX(amount_payment)", "MAX(datetime_payment)", "payment_method_code"], "index": [0], "data": [["34", "4610.26", "2018-03-12 08:41:47", "Direct Debit"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Ac389_15.png", "TableImg_Htf67_15.png"], "original_data_index": 3086, "original_sql": "SELECT SUM(customer_id), MAX(amount_payment), MAX(datetime_payment), payment_method_code FROM Customer_Payments WHERE datetime_payment != \"2018-02-06 13:35:58\" AND \"customer_id\" <> 2 AND \"amount_payment\" < 4773.16 EXCEPT SELECT SUM(customer_id), MAX(amount_payment), MAX(datetime_payment), payment_method_code FROM Customer_Payments WHERE \"amount_payment\" = 4032.33 AND \"customer_id\" < 2"} {"question": "Which driver IDs are either less than or equal to 1, or greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rddhn_12.png", "TableImg_Ds5w4_5.png"], "original_data_index": 3088, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are either greater than or equal to 3 in the driver table or not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5vskp_12.png", "TableImg_O1t83_5.png"], "original_data_index": 3089, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and not equal to 3, considering only the aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Id3ak_5.png", "TableImg_Ch1zg_4.png"], "original_data_index": 3087, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 2 from the driver table and including only driver IDs up to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6cr2q_12.png", "TableImg_40lvx_5.png"], "original_data_index": 3091, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs that are less than or equal to 6, excluding those driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ee8h7_12.png", "TableImg_H28ww_5.png"], "original_data_index": 3090, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Find the template details and ID, along with the lowest version number, for templates effective until October 28, 1976, with empty details and type \"PPT\", but exclude those where the version number isn't 6 and the details aren't empty, or the type isn't \"PP\".", "answer": {"columns": ["Template_Details", "Template_ID", "MIN(Version_Number)"], "index": [0], "data": [["", "", ""]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_Xgj3i_20.png", "TableImg_99zf4_20.png"], "original_data_index": 3092, "original_sql": "SELECT Template_Details, Template_ID, MIN(Version_Number) FROM Templates WHERE Date_Effective_To = \"1976-10-28 10:08:50\" AND Template_Details = \"\" AND Template_Type_Code = \"PPT\" EXCEPT SELECT Template_Details, Template_ID, MIN(Version_Number) FROM Templates WHERE \"Version_Number\" <> 6 AND Template_Details <> \"\" OR Template_Type_Code <> \"PP\""} {"question": "Which member IDs are associated with members who don't have card number \"RE95\" and have a level of 6 or less, or are from \"Red Jacket, West Virginia\", but are not member IDs from the membership register branch that have a member ID greater than or equal to 3 and registered in 2016, or have a branch ID of \"4\"?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["6"], ["9"], ["10"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_X7smo_10.png", "TableImg_5z7pi_8.png"], "original_data_index": 3093, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number <> \"RE95\" AND \"Level\" <= 6 OR Hometown = \"Red Jacket, West Virginia\" EXCEPT SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" >= 3 AND Register_Year = \"2016\" OR Branch_ID = \"4\""} {"question": "Which driver IDs are equal to 1 in the driver table, but not greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Imqfq_12.png", "TableImg_1wmwh_5.png"], "original_data_index": 3094, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are all the trust values where the source user ID is less than or equal to 1, combined with trust values where the source user ID is less than 1 or the target user ID is 5 and the trust value is 7 or less?", "answer": {"columns": ["trust"], "index": [0, 1, 2, 3, 4], "data": [["10"], ["6"], ["7"], ["2"], ["7"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_Sc8p8_9.png", "TableImg_33wsq_9.png"], "original_data_index": 3096, "original_sql": "SELECT trust FROM trust WHERE \"source_u_id\" <= 1 UNION ALL SELECT trust FROM trust WHERE \"source_u_id\" < 1 OR \"target_u_id\" = 5 AND \"trust\" <= 7"} {"question": "What are the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are not equal to 5, based on the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zug75_5.png", "TableImg_5txsv_4.png"], "original_data_index": 3095, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Find the people IDs, the number of names, the number of nationalities, and the maximum height for people who were not born on August 8, 1986, grouped by people ID, where the maximum height is greater than 187.0. Exclude those people IDs, name counts, nationality counts, and maximum heights where the name isn't Sergey Grankin, or the nationality isn't Russia, or the people ID isn't 6, and the birth date isn't January 22, 1987, and the height is less than 187.0, grouped by people ID, with a name count less than or equal to 1.", "answer": {"columns": ["People_ID", "COUNT(Name)", "COUNT(Nationality)", "MAX(Height)"], "index": [0], "data": [["4", "1", "1", "193"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Pqht3_7.png", "TableImg_Cfzbe_7.png"], "original_data_index": 3097, "original_sql": "SELECT People_ID, COUNT(Name), COUNT(Nationality), MAX(Height) FROM people WHERE Birth_Date <> \"August 8, 1986\" GROUP BY People_ID HAVING MAX(Height) > 187.0 EXCEPT SELECT People_ID, COUNT(Name), COUNT(Nationality), MAX(Height) FROM people WHERE Name != \"Sergey Grankin\" OR Nationality <> \"Russia\" OR \"People_ID\" != 6 AND Birth_Date != \"January 22, 1987\" AND \"Height\" < 187.0 GROUP BY People_ID HAVING COUNT(Name) <= 1"} {"question": "Which driver IDs are less than or equal to 4, excluding those that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dfnf8_12.png", "TableImg_Rm4rz_5.png"], "original_data_index": 3100, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are equal to 12 in the driver table, or are not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_72las_12.png", "TableImg_48ac3_5.png"], "original_data_index": 3098, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are greater than 8 and also present in the school bus table with IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8bwoi_12.png", "TableImg_Dn6ur_5.png"], "original_data_index": 3101, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the shipping agent codes from the Documents table where the other details are \"m\" and the receipt date isn't \"1973-11-05 21:48:53\", or where the receipt number isn't \"79\" and the document status code isn't \"overdue\"? Also, what are the shipping agent codes from the Ref_Shipping_Agents table where the shipping agent code isn't \"AL\", or the shipping agent name isn't \"UPS\", or the shipping agent description isn't \"t\"? Combine both sets of results.", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["UP"], ["US"], ["UP"], ["US"], ["SH"], ["UP"], ["FE"], ["FE"], ["UP"], ["FE"], ["FE"], ["UP"], ["US"], ["AL"], ["FE"], ["SH"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_P5sos_15.png", "TableImg_78bll_5.png"], "original_data_index": 3099, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE other_details = \"m\" AND receipt_date != \"1973-11-05 21:48:53\" OR receipt_number != \"79\" AND document_status_code <> \"overdue\" UNION ALL SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code != \"AL\" OR shipping_agent_name <> \"UPS\" OR shipping_agent_description != \"t\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nytr6_12.png", "TableImg_L3eb8_5.png"], "original_data_index": 3102, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the IDs of people who have worked for a company for 2 years or less and have a company ID of 17 or less and a people ID of 2 or greater, or people with a people ID of 1 who did not graduate from Wisconsin\u2013Stevens Point, are not from the United States, and are not named David Butler?", "answer": {"columns": ["People_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_Bvbtz_5.png", "TableImg_Mlm7t_7.png"], "original_data_index": 3104, "original_sql": "SELECT People_ID FROM employment WHERE \"Year_working\" <= 2 AND \"Company_ID\" <= 17 AND \"People_ID\" >= 2 UNION SELECT People_ID FROM people WHERE Graduation_College <> \"Wisconsin\u2013Stevens Point\" AND \"People_ID\" = 1 AND Nationality != \"United States\" AND Name != \"David Butler\""} {"question": "What are the sum of last names, minimum customer ID, minimum date of becoming a customer, first name, customer address ID, count of customer status codes, average phone number, and sum of dates of birth for customers named Amya or those whose last name is not Koelpin, combined with the same information for customers where the amount outstanding is not 9500.0 and the first name is not Ray?", "answer": {"columns": ["SUM(last_name)", "MIN(customer_id)", "MIN(date_became_customer)", "first_name", "customer_address_id", "COUNT(customer_status_code)", "AVG(phone_number)", "SUM(date_of_birth)"], "index": [0, 1], "data": [["0", "1", "2015-06-24 03:50:04", "Marina", "1", "13", "559862207.0466923", "25920"], ["0", "1", "2015-09-25 13:59:21", "Dameon", "1", "14", "519872064.1147857", "27916"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_Mfctf_15.png", "TableImg_M5zh7_15.png"], "original_data_index": 3103, "original_sql": "SELECT SUM(last_name), MIN(customer_id), MIN(date_became_customer), first_name, customer_address_id, COUNT(customer_status_code), AVG(phone_number), SUM(date_of_birth) FROM Customers WHERE first_name = \"Amya\" OR last_name <> \"Koelpin\" UNION SELECT SUM(last_name), MIN(customer_id), MIN(date_became_customer), first_name, customer_address_id, COUNT(customer_status_code), AVG(phone_number), SUM(date_of_birth) FROM Customers WHERE \"amount_outstanding\" != 9500.0 AND first_name <> \"Ray\""} {"question": "What states have an area code greater than 740 and are not MN, and also have votes where the vote ID is less than or equal to 2 and the phone number is 7148407040, or the contestant number is not 5?", "answer": {"columns": ["state"], "index": [0, 1], "data": [["CA"], ["NY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Yzk7u_305.png", "TableImg_Pnhby_4.png"], "original_data_index": 3105, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE \"area_code\" > 740 AND state != \"MN\" INTERSECT SELECT state FROM VOTES WHERE \"vote_id\" <= 2 AND \"phone_number\" = 7148407040 OR \"contestant_number\" <> 5"} {"question": "What are the aircraft IDs that are either less than or equal to 3 in the aircraft table or less than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ek6s6_5.png", "TableImg_Jawrk_4.png"], "original_data_index": 3107, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the driver IDs that are either less than or equal to 1 in the driver table, or less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9zteh_12.png", "TableImg_4b4ij_5.png"], "original_data_index": 3109, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs greater than 9 from the driver table, combined with the driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_06rdc_12.png", "TableImg_Pu755_5.png"], "original_data_index": 3106, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 5 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8pu76_12.png", "TableImg_8h91q_5.png"], "original_data_index": 3110, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which contestant numbers are not Jessie Eichman and are less than 9, but are not in the votes where the vote was not created on \"2018-03-09 19:03:36\", or the vote ID is less than or equal to 5, or the phone number is greater than 6209222712?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2, 3], "data": [["1"], ["4"], ["7"], ["8"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_Uckl9_11.png", "TableImg_0qmpb_4.png"], "original_data_index": 3111, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name != \"Jessie Eichman\" AND \"contestant_number\" < 9 EXCEPT SELECT contestant_number FROM VOTES WHERE created <> \"2018-03-09 19:03:36\" OR \"vote_id\" <= 5 OR \"phone_number\" > 6209222712"} {"question": "What states have an area code greater than 623 or are not Indiana, and also have vote IDs that are not 5?", "answer": {"columns": ["state"], "index": [0, 1], "data": [["CA"], ["NY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Lpbbp_305.png", "TableImg_Ijp9x_4.png"], "original_data_index": 3114, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE \"area_code\" > 623 OR state <> \"IN\" INTERSECT SELECT state FROM VOTES WHERE \"vote_id\" != 5"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID greater than 1, and also the aircraft IDs in the airport_aircraft table with an ID of 5 or more?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7nny8_5.png", "TableImg_Uftmr_4.png"], "original_data_index": 3112, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the driver IDs, excluding driver ID 8, that are present in both the driver and school bus tables, where the driver ID in the school bus table is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_91685_12.png", "TableImg_9vtlo_5.png"], "original_data_index": 3113, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are equal to 3, or are driver IDs from school buses not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ypx6t_12.png", "TableImg_Ruy6d_5.png"], "original_data_index": 3115, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs that are less than 4, and also the driver IDs from school buses that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yqoyu_12.png", "TableImg_2bya0_5.png"], "original_data_index": 3116, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the IDs of drivers, excluding driver 4, and the IDs of school buses, excluding bus 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_58e81_12.png", "TableImg_58bpy_5.png"], "original_data_index": 3119, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the other details from documents that are not document ID 4 and not \"r\", combined with the other details from employees who have the role code \"ED\" and an employee ID less than 8?", "answer": {"columns": ["other_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["b"], ["f"], ["h"], ["j"], ["m"], ["n"], ["p"], ["u"], ["w"], ["x"], ["y"], ["z"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_K6y90_15.png", "TableImg_S256z_6.png"], "original_data_index": 3120, "original_sql": "SELECT other_details FROM Documents WHERE \"document_id\" <> 4 AND other_details != \"r\" UNION SELECT other_details FROM Employees WHERE role_code = \"ED\" AND \"employee_id\" < 8"} {"question": "What are the driver IDs that are greater than or equal to 2 in the driver table, combined with the driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_492si_12.png", "TableImg_G1dq1_5.png"], "original_data_index": 3117, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the document IDs that meet at least one of the following conditions in the Documents table: a receipt date of September 27, 1982, at 2:52 PM and a document status that is not \"done\"; or a receipt number of \"189\" and other details of \"h\"; or a document type that is not \"CD\"; and also have a mailing date that is not January 14, 1982, at 5:50 AM in the Documents_Mailed table, excluding document ID 12?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["4"], ["7"], ["10"], ["20"], ["23"], ["24"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_V5b1r_15.png", "TableImg_Ih2ae_14.png"], "original_data_index": 3118, "original_sql": "SELECT document_id FROM Documents WHERE receipt_date = \"1982-09-27 14:52:15\" AND document_status_code != \"done\" OR receipt_number = \"189\" AND other_details = \"h\" OR document_type_code <> \"CD\" INTERSECT SELECT document_id FROM Documents_Mailed WHERE mailing_date != \"1982-01-14 05:50:54\" AND \"document_id\" != 12"} {"question": "Which driver IDs are less than or equal to 8 but not found in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Id1l9_12.png", "TableImg_Qhu3n_5.png"], "original_data_index": 3121, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs greater than 7 from the driver table, combined with the driver IDs not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O0uh0_12.png", "TableImg_H92pk_5.png"], "original_data_index": 3122, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7 from the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Auya0_12.png", "TableImg_Xuckv_5.png"], "original_data_index": 3125, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are less than or equal to 1, but not equal to 7, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wsi7l_12.png", "TableImg_C7jwb_5.png"], "original_data_index": 3127, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are less than 5 but not equal to 4, considering only those driver IDs present in the 'driver' table and excluding those in the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yv51k_12.png", "TableImg_Nzl2e_5.png"], "original_data_index": 3126, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the document IDs and copy numbers from the circulation history where the draft number isn't 17, the copy number is 5 or greater, or the employee ID is 1 or greater, or the document ID is less than 10, but exclude any document IDs and copy numbers from the draft copies table where the copy number is not 5?", "answer": {"columns": ["document_id", "copy_number"], "index": [0], "data": [["1", "5"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_4n2ki_4.png", "TableImg_Apw26_8.png"], "original_data_index": 3128, "original_sql": "SELECT document_id, copy_number FROM Circulation_History WHERE \"draft_number\" != 17 OR \"copy_number\" >= 5 OR \"employee_id\" >= 1 OR \"document_id\" < 10 EXCEPT SELECT document_id, copy_number FROM Draft_Copies WHERE \"copy_number\" <> 5"} {"question": "What are the driver IDs that are less than 12, and also the driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dijhb_12.png", "TableImg_81fhj_5.png"], "original_data_index": 3130, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the employee IDs of employees who are not named Tim Payne, combined with the employee IDs of those who are not full-time or have a Shop ID greater than 1?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Hlh03_10.png", "TableImg_Ts700_7.png"], "original_data_index": 3129, "original_sql": "SELECT Employee_ID FROM employee WHERE Name <> \"Tim Payne\" UNION SELECT Employee_ID FROM hiring WHERE Is_full_time <> \"T\" OR \"Shop_ID\" > 1"} {"question": "What are the aircraft IDs that are less than or equal to 4, but not present in the airport aircraft table with IDs less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hjvy1_5.png", "TableImg_Rw3hd_4.png"], "original_data_index": 3131, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs greater than 2 that are in the driver table but not in the school bus table where the driver IDs are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4p249_12.png", "TableImg_Wodxa_5.png"], "original_data_index": 3132, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What is the maximum Club ID and the gender, considering male coaches, coaches named James Wong, clubs started before or in 2011, clubs in the UK region, or coaches with a rank of 1 or less and a coach ID of 4 or greater?", "answer": {"columns": ["MAX(T1.Club_ID)", "Gender"], "index": [0], "data": [["3", "M"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Em3pv_6.png", "TableImg_Xtarl_5.png"], "original_data_index": 3133, "original_sql": "SELECT MAX(T1.Club_ID), T2.Gender FROM club as T1 JOIN coach as T2 ON T1.Club_ID = T2.Club_ID WHERE Gender = \"M\" OR Club_name <> \"Gefle IF\" AND Coach_name = \"James Wong\" OR \"Start_year\" <= 2011 OR Region = \"UK\" OR \"Rank\" <= 1 AND \"Coach_ID\" >= 4"} {"question": "What is the average ClubID and the StuID for members of the \"Bootup Baltimore\" club?", "answer": {"columns": ["AVG(T1.ClubID)", "StuID"], "index": [0], "data": [["1", "1001"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_S7n6s_4.png", "TableImg_34doq_4.png"], "original_data_index": 3134, "original_sql": "SELECT AVG(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubName = \"Bootup Baltimore\""} {"question": "How many shops have employees other than employee ID 5 and are not full-time, excluding the number of shops in Jakobstad or with fewer than 6000 products or in the Lahden Stadion district and shop ID 3 or with a manager other than Mika Lehkosuo and a name other than IFK Mariehamn?", "answer": {"columns": ["COUNT(Shop_ID)"], "index": [0], "data": [["2"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_Sez8q_7.png", "TableImg_S85x8_9.png"], "original_data_index": 3135, "original_sql": "SELECT COUNT(Shop_ID) FROM hiring WHERE \"Employee_ID\" <> 5 AND Is_full_time != \"T\" EXCEPT SELECT COUNT(Shop_ID) FROM shop WHERE Location != \"Jakobstad\" OR \"Number_products\" < 6000 OR District != \"Lahden Stadion\" AND \"Shop_ID\" = 3 OR Manager_name <> \"Mika Lehkosuo\" AND Name <> \"IFK Mariehamn\""} {"question": "Which driver IDs, excluding ID 10, are present in the driver table, and also which driver IDs, up to and including ID 9, are present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8cgfe_12.png", "TableImg_Tvhdu_5.png"], "original_data_index": 3136, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that appear in both the aircraft and airport_aircraft tables, where the aircraft ID is greater than or equal to 2 in the aircraft table and not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Urvgo_5.png", "TableImg_Wlzvl_4.png"], "original_data_index": 3137, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What is the average user ID for users with IDs less than 5, combined with the average user ID for users whose names are not Rosie?", "answer": {"columns": ["AVG(u_id)"], "index": [0, 1], "data": [["2.5"], ["3.8333333333"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_0zk6f_7.png", "TableImg_Z4jkh_7.png"], "original_data_index": 3123, "original_sql": "SELECT AVG(u_id) FROM useracct WHERE \"u_id\" < 5 UNION SELECT AVG(u_id) FROM useracct WHERE name <> \"Rosie\""} {"question": "Which employee IDs meet these criteria: either the employee ID is 10, the age is greater than 32 and the city is not \"Wasps\", or the name is not \"George Chuter\", but are not in the hiring table with a start date other than \"2008\" or are not full-time and have an employee ID less than or equal to 2?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["8"], ["9"], ["10"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_4q3cg_10.png", "TableImg_L2ilb_7.png"], "original_data_index": 3124, "original_sql": "SELECT Employee_ID FROM employee WHERE \"Employee_ID\" = 10 OR \"Age\" > 32 AND City <> \"Wasps\" OR Name != \"George Chuter\" EXCEPT SELECT Employee_ID FROM hiring WHERE Start_from <> \"2008\" OR Is_full_time != \"T\" AND \"Employee_ID\" <= 2"} {"question": "Which driver IDs are equal to 11 but not associated with a school bus ID other than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H3msw_12.png", "TableImg_Jedby_5.png"], "original_data_index": 3141, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs, excluding driver ID 3, that are present in both the driver and school bus tables, where the school bus driver ID is greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rpp0m_12.png", "TableImg_0ko2g_5.png"], "original_data_index": 3138, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the lowest document status code for documents shipped by \"UP\", and what is the lowest document status code for \"mailed late\" documents that are also \"working\"?", "answer": {"columns": ["MIN(document_status_code)"], "index": [0, 1], "data": [[""], ["done"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Dmlrq_15.png", "TableImg_Tzra1_3.png"], "original_data_index": 3140, "original_sql": "SELECT MIN(document_status_code) FROM Documents WHERE shipping_agent_code = \"UP\" UNION SELECT MIN(document_status_code) FROM Ref_Document_Status WHERE document_status_description = \"mailed late\" AND document_status_code = \"working\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 1 and any driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2qvqc_12.png", "TableImg_Rrs79_5.png"], "original_data_index": 3139, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which store IDs have fewer than 990 product categories, or are in a district other than 15, or have a store ID of 1?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["1"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_X40xj_5.png", "TableImg_Lxax6_5.png"], "original_data_index": 3142, "original_sql": "SELECT Store_ID FROM store WHERE \"Number_of_product_category\" < 990.0 UNION ALL SELECT Store_ID FROM store_district WHERE \"District_ID\" != 15 OR \"Store_ID\" = 1"} {"question": "What are the aircraft IDs that are either less than or equal to 2 in the aircraft table, or less than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qd6c4_5.png", "TableImg_Qsox4_4.png"], "original_data_index": 3144, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs that are both greater than or equal to 2 in the driver table and greater than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jnzzc_12.png", "TableImg_809a3_5.png"], "original_data_index": 3143, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What is the sum of majors, the minimum city code, and the age of students advised by advisor 5718 who are not 20 years old, excluding those who are not male and not named Eric, or whose last name is not Kim and have student ID 1015, or live in city code PHL, or have a major less than 600 and are younger than 20, or are advised by advisor 2192?", "answer": {"columns": ["SUM(Major)", "MIN(city_code)", "Age"], "index": [0], "data": [["100", "BOS", "18"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_0fnwx_34.png", "TableImg_59k3y_34.png"], "original_data_index": 3145, "original_sql": "SELECT SUM(Major), MIN(city_code), Age FROM Student WHERE \"Advisor\" = 5718 AND \"Age\" != 20 EXCEPT SELECT SUM(Major), MIN(city_code), Age FROM Student WHERE Sex != \"M\" AND Fname != \"Eric\" OR LName <> \"Kim\" AND \"StuID\" = 1015 OR city_code = \"PHL\" OR \"Major\" < 600 AND \"Age\" < 20 OR \"Advisor\" = 2192"} {"question": "Which driver IDs are either 9 or less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jon04_12.png", "TableImg_Bz1u3_5.png"], "original_data_index": 3146, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the sum of coach IDs for coaches with ID less than or equal to 1 or club ID greater than 1, combined with the sum of coach IDs from player-coach records where the starting year is before or in 2012?", "answer": {"columns": ["SUM(Coach_ID)"], "index": [0, 1], "data": [["8"], ["14"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_Kpcjb_5.png", "TableImg_Whh3l_7.png"], "original_data_index": 3147, "original_sql": "SELECT SUM(Coach_ID) FROM coach WHERE \"Coach_ID\" <= 1 OR \"Club_ID\" > 1 UNION ALL SELECT SUM(Coach_ID) FROM player_coach WHERE \"Starting_year\" <= 2012"} {"question": "What is the average aid from the certificate table where the employee ID is less than or equal to 274878974, combined with the average aid from the flight table where the origin is not Los Angeles and the arrival date is not 04/12/2005 03:18 and the aid is not 3, or the flight number is greater than or equal to 7 and the destination is Chicago, or the price is not 202.45 and the departure date is not 04/12/2005 08:32?", "answer": {"columns": ["AVG(aid)"], "index": [0, 1], "data": [["7.6285714286"], ["5.5"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_6ouui_69.png", "TableImg_Qd74p_10.png"], "original_data_index": 3148, "original_sql": "SELECT AVG(aid) FROM certificate WHERE \"eid\" <= 274878974 UNION ALL SELECT AVG(aid) FROM flight WHERE origin <> \"Los Angeles\" AND arrival_date <> \"04/12/2005 03:18\" AND \"aid\" <> 3 OR \"flno\" >= 7 AND destination = \"Chicago\" OR \"price\" != 202.45 AND departure_date != \"04/12/2005 08:32\""} {"question": "What are the average employee ID, the count of cities, the count of ages, and the names of employees, meeting these conditions: the employee ID is not 2 and the age is not 36, grouped by name, where the count of cities is not 1 or the average employee ID is greater than 4.0, and also the average employee ID, the count of cities, the count of ages, and the names of employees, where the employee ID is greater than 3 or the age is not 36 and the city is not Bath and the name is Matt Stevens, grouped by name, where the average employee ID is greater than or equal to 8.0 and the count of ages is greater than or equal to 1 or the count of cities is less than 1?", "answer": {"columns": ["AVG(Employee_ID)", "COUNT(City)", "COUNT(Age)", "Name"], "index": [0, 1], "data": [["8", "1", "1", "Phil Vickery"], ["9", "1", "1", "Steve Borthwick"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Jvqia_10.png", "TableImg_Nku0l_10.png"], "original_data_index": 3149, "original_sql": "SELECT AVG(Employee_ID), COUNT(City), COUNT(Age), Name FROM employee WHERE \"Employee_ID\" <> 2 AND \"Age\" != 36 GROUP BY Name HAVING COUNT(City) <> 1 OR AVG(Employee_ID) > 4.0 INTERSECT SELECT AVG(Employee_ID), COUNT(City), COUNT(Age), Name FROM employee WHERE \"Employee_ID\" > 3 OR \"Age\" <> 36 AND City <> \"Bath\" AND Name = \"Matt Stevens\" GROUP BY Name HAVING AVG(Employee_ID) >= 8.0 AND COUNT(Age) >= 1 OR COUNT(City) < 1"} {"question": "Which driver IDs are not equal to 2 and are not present in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qh3hx_12.png", "TableImg_Qgmvq_5.png"], "original_data_index": 3153, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are not equal to 9 and are not present in the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sfnwo_12.png", "TableImg_6pa09_5.png"], "original_data_index": 3152, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs that are greater than 5 in the driver table and also less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ikcvt_12.png", "TableImg_Wodku_5.png"], "original_data_index": 3150, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What is the average name from the company table where profits are at most 20.1 billion, market value is at least 178.7 billion, and assets are not 1563.9 billion, or sales are at least 433.5 billion and the headquarters isn't in China, or the company ID is 15, and also the average name from the people table where the graduation college is not Northeastern, age is less than 37, and nationality is not United Kingdom?", "answer": {"columns": ["AVG(Name)"], "index": [0], "data": [["0"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_8dwa4_19.png", "TableImg_P9kbu_7.png"], "original_data_index": 3151, "original_sql": "SELECT AVG(Name) FROM company WHERE \"Profits_in_Billion\" <= 20.1 AND \"Market_Value_in_Billion\" >= 178.7 AND \"Assets_in_Billion\" <> 1563.9 OR \"Sales_in_Billion\" >= 433.5 AND Headquarters != \"China\" OR \"Company_ID\" = 15.0 INTERSECT SELECT AVG(Name) FROM people WHERE Graduation_College != \"Northeastern\" AND \"Age\" < 37 AND Nationality <> \"United Kindom\""} {"question": "What are the driver IDs that are equal to 5, and also the driver IDs that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kqhp1_12.png", "TableImg_Csenz_5.png"], "original_data_index": 3156, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "How many heads are there, along with their names and ages, where the age is less than 50, the name is P\u00e1draig Harrington, and the head ID is 6 or less, or who were born in Connecticut? Also, how many heads are there, along with their names and ages, where the head ID is greater than 5, the name is not Stewart Cink, the birth state is not California, and the age is greater than 53?", "answer": {"columns": ["COUNT(head_ID)", "name", "age"], "index": [0, 1], "data": [["2", "P\u00e1draig Harrington", "43"], ["1", "Franklin Langham", "67"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_K329p_10.png", "TableImg_Gtk35_10.png"], "original_data_index": 3154, "original_sql": "SELECT COUNT(head_ID), name, age FROM head WHERE \"age\" < 50.0 AND name = \"P\u00e1draig Harrington\" AND \"head_ID\" <= 6 OR born_state = \"Connecticut\" UNION ALL SELECT COUNT(head_ID), name, age FROM head WHERE \"head_ID\" > 5 AND name != \"Stewart Cink\" AND born_state != \"California\" AND \"age\" > 53.0"} {"question": "Show me the best finish, poker player ID, if a final table was made, people ID, and money rank for poker players where the poker player ID is greater than 4 or the best finish is 3 or higher. Also, show the same information for poker players where the final table wasn't 26, the poker player ID is greater than 2, and the best finish is 3 or higher, or the people ID is 2 or less.", "answer": {"columns": ["Best_Finish", "Poker_Player_ID", "Final_Table_Made", "People_ID", "Money_Rank"], "index": [0, 1, 2], "data": [["1", "1", "42", "1", "68"], ["2", "2", "10", "2", "141"], ["3", "5", "26", "7", "154"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Fgbsk_5.png", "TableImg_Z3uk3_5.png"], "original_data_index": 3155, "original_sql": "SELECT Best_Finish, Poker_Player_ID, Final_Table_Made, People_ID, Money_Rank FROM poker_player WHERE \"Poker_Player_ID\" > 4 OR \"Best_Finish\" >= 3.0 UNION SELECT Best_Finish, Poker_Player_ID, Final_Table_Made, People_ID, Money_Rank FROM poker_player WHERE \"Final_Table_Made\" != 26.0 AND \"Poker_Player_ID\" > 2 AND \"Best_Finish\" >= 3.0 OR \"People_ID\" <= 2"} {"question": "Which driver IDs are less than 2 but not found in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nqimu_12.png", "TableImg_2p20e_5.png"], "original_data_index": 3157, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the aircraft IDs that are either less than or equal to 5 or greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xt8yf_5.png", "TableImg_9tuhm_4.png"], "original_data_index": 3160, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs greater than 2 from the driver table, combined with the driver IDs greater than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kltv7_12.png", "TableImg_5c0g9_5.png"], "original_data_index": 3161, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What is the sum of employee IDs from the evaluation table, excluding employee ID 2, and then subtract the sum of employee IDs from the hiring table where the employee ID is less than 6, the start date is 2008, or the employee is not full-time and the shop ID is greater than 5?", "answer": {"columns": ["SUM(Employee_ID)"], "index": [0], "data": [["23"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_R7kxs_6.png", "TableImg_W3u9t_7.png"], "original_data_index": 3158, "original_sql": "SELECT SUM(Employee_ID) FROM evaluation WHERE Employee_ID != \"2\" EXCEPT SELECT SUM(Employee_ID) FROM hiring WHERE \"Employee_ID\" < 6 OR Start_from = \"2008\" OR Is_full_time = \"F\" AND \"Shop_ID\" > 5"} {"question": "Which aircraft IDs are not equal to 4, but are not present in the airport_aircraft table with an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sd6g2_5.png", "TableImg_9lvtz_4.png"], "original_data_index": 3162, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the aircraft IDs that are equal to 2 in the aircraft table, but not aircraft IDs less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cyaxg_5.png", "TableImg_U7o5u_4.png"], "original_data_index": 3163, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which store IDs are not ranked 10 or are not named \"Doaktown\", and also which store IDs from the store_district table have an ID less than 4?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Ztxu2_5.png", "TableImg_Bksmj_5.png"], "original_data_index": 3164, "original_sql": "SELECT Store_ID FROM store WHERE \"Ranking\" <> 10 OR Store_Name != \"Doaktown\" UNION SELECT Store_ID FROM store_district WHERE \"Store_ID\" < 4"} {"question": "What are the driver IDs, excluding driver ID 5, and also the driver IDs from school buses that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Re8vv_12.png", "TableImg_Nzub6_5.png"], "original_data_index": 3166, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are not equal to 5, but are not present in the airport_aircraft table with an aircraft ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I42nm_5.png", "TableImg_P41qj_4.png"], "original_data_index": 3165, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the IDs of drivers, excluding driver 8, and the IDs of school buses, excluding bus 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_82dmf_12.png", "TableImg_8okwh_5.png"], "original_data_index": 3167, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are greater than 2 and also present in the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6elij_5.png", "TableImg_D057y_4.png"], "original_data_index": 3168, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the aircraft IDs that appear in both the aircraft table (with IDs greater than or equal to 3) and the airport_aircraft table (with IDs greater than 1)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dz7ql_5.png", "TableImg_J244w_4.png"], "original_data_index": 3169, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 4) and the school bus table (with driver IDs no greater than 7)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jfqp1_12.png", "TableImg_Zhrb5_5.png"], "original_data_index": 3170, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs, excluding ID 3, that are present in both the aircraft and airport aircraft tables, excluding ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pwkrf_5.png", "TableImg_Akv72_4.png"], "original_data_index": 3171, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which driver IDs are greater than or equal to 8 but not present in the school bus table with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q3944_12.png", "TableImg_X0fij_5.png"], "original_data_index": 3173, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs, excluding driver ID 4, that are present in both the driver and school bus tables, where the school bus driver IDs are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gxr4u_12.png", "TableImg_1136z_5.png"], "original_data_index": 3172, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs that are less than 8 from the driver table, combined with the driver IDs that are less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cplci_12.png", "TableImg_7ou75_5.png"], "original_data_index": 3174, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the IDs of drivers who are not driver ID 4, and also the IDs of school bus drivers who are not driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dy1li_12.png", "TableImg_R6fcb_5.png"], "original_data_index": 3176, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are less than 3 in the driver table, combined with driver IDs from the school bus table that are not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dz8kc_12.png", "TableImg_23taj_5.png"], "original_data_index": 3175, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are less than or equal to 2 and not present in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N7xt9_12.png", "TableImg_6kmqf_5.png"], "original_data_index": 3177, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which shop IDs meet at least one of the following conditions: their start year is not 2011, they have full-time employees, or their employee ID is less than 3; or, their district is not \"Finnair Stadium\" and their manager's name is not \"Job Dragtsma\"?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_Aeqs8_7.png", "TableImg_3mw1t_9.png"], "original_data_index": 3178, "original_sql": "SELECT Shop_ID FROM hiring WHERE Start_from <> \"2011\" OR Is_full_time = \"T\" OR \"Employee_ID\" < 3 UNION SELECT Shop_ID FROM shop WHERE District != \"Finnair Stadium\" AND Manager_name <> \"Job Dragtsma\""} {"question": "What are the ranks from the match results where the bronze value isn't 10, and the small silver value is greater than 9, or the club ID is 1, but not including ranks from players who have at least 5490 votes, aren't Design Coordinators, aren't Jim Maloway, and aren't ranked 3rd, or don't have Winnipeg Centre as a sponsor, or are male, or have a player ID greater than 14?", "answer": {"columns": ["Rank"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_T8vpb_6.png", "TableImg_Pd044_14.png"], "original_data_index": 3179, "original_sql": "SELECT Rank FROM match_result WHERE \"Bronze\" <> 10 AND \"Small_Silver\" > 9 OR \"Club_ID\" = 1 EXCEPT SELECT Rank FROM player WHERE \"Votes\" >= 5490 AND Occupation != \"Design Coordinator\" AND Player_name != \"Jim Maloway\" AND Rank <> \"3rd\" OR Sponsor_name <> \"Winnipeg Centre\" OR Gender = \"M\" OR \"Player_ID\" > 14"} {"question": "What are the aircraft IDs that are both greater than or equal to 5 and not equal to 2, considering only those aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vwjqj_5.png", "TableImg_Yui9s_4.png"], "original_data_index": 3182, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What is the smallest store ID that is not store ID 1 or not a City Mall, and what is the smallest store ID from a district that is not district ID 15?", "answer": {"columns": ["MIN(Store_ID)"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Zwx8k_5.png", "TableImg_371kz_5.png"], "original_data_index": 3181, "original_sql": "SELECT MIN(Store_ID) FROM store WHERE \"Store_ID\" != 1 OR Type != \"City Mall\" UNION ALL SELECT MIN(Store_ID) FROM store_district WHERE \"District_ID\" <> 15"} {"question": "Which driver IDs are less than 6 but not equal to 10, considering driver IDs from the driver table and school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2mn6d_12.png", "TableImg_Ybmjz_5.png"], "original_data_index": 3183, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are not 2 and also appear in the airport aircraft table with an ID less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C3lj3_5.png", "TableImg_Gd3ed_4.png"], "original_data_index": 3184, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the sums of the dates, the minimum IDs, sums of velocities, flight numbers, and sums of altitudes for flights that meet these criteria: the company ID is less than 11, the velocity is less than 240, the altitude is 3650, the airport ID is 2, and the ID is greater than 8, or the pilot is Thompson and the flight number is not M2-F1 #73; but exclude flights where the ID is greater than 7 and the pilot is not Peterson and the company ID is less than 3, or the altitude is greater than 3650 and the flight number is not M2-F1 #64?", "answer": {"columns": ["SUM(Date)", "MIN(id)", "SUM(Velocity)", "Vehicle_Flight_number", "SUM(Altitude)"], "index": [0], "data": [["0", "1", "2295", "M2-F1 #0", "32850"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Xwgjp_13.png", "TableImg_Wayz9_13.png"], "original_data_index": 3180, "original_sql": "SELECT SUM(Date), MIN(id), SUM(Velocity), Vehicle_Flight_number, SUM(Altitude) FROM flight WHERE \"company_id\" < 11 AND \"Velocity\" < 240.0 AND \"Altitude\" = 3650.0 AND \"airport_id\" = 2 AND \"id\" > 8 OR Pilot = \"Thompson\" AND Vehicle_Flight_number <> \"M2-F1 #73\" EXCEPT SELECT SUM(Date), MIN(id), SUM(Velocity), Vehicle_Flight_number, SUM(Altitude) FROM flight WHERE \"id\" > 7 AND Pilot != \"Peterson\" AND \"company_id\" < 3 OR \"Altitude\" > 3650.0 AND Vehicle_Flight_number != \"M2-F1 #64\""} {"question": "Which driver IDs are greater than 3, excluding those with ID 3, considering driver IDs from the 'driver' and 'school_bus' tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qztzf_12.png", "TableImg_79scw_5.png"], "original_data_index": 3185, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are either less than or equal to 4 in the aircraft table or not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bd13t_5.png", "TableImg_Cui44_4.png"], "original_data_index": 3186, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Give me the shop ID, full-time status, and start date for hiring records where the shop ID is not 8, or the full-time status is not \"T\", or the start date is \"2012\" and the employee ID is 6 or greater. Also, include the shop ID, full-time status, and start date for hiring records where the start date is not \"2012\", the shop ID is not 1, and the full-time status is not \"F\".", "answer": {"columns": ["Shop_ID", "Is_full_time", "Start_from"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "T", "2003"], ["1", "T", "2009"], ["2", "F", "2010"], ["4", "T", "2012"], ["5", "T", "2013"], ["6", "T", "2008"], ["8", "F", "2011"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_26dw0_7.png", "TableImg_U3mhq_7.png"], "original_data_index": 3188, "original_sql": "SELECT Shop_ID, Is_full_time, Start_from FROM hiring WHERE \"Shop_ID\" != 8 OR Is_full_time != \"T\" OR Start_from = \"2012\" AND \"Employee_ID\" >= 6 UNION SELECT Shop_ID, Is_full_time, Start_from FROM hiring WHERE Start_from <> \"2012\" AND \"Shop_ID\" <> 1 AND Is_full_time != \"F\""} {"question": "Show me the last name, date of birth, staff ID, and date joined for staff members where the first name is Kaitlin, or the middle name is not Stephania, or the last name is not Turner, or the date left staff is not March 4, 2018, or the nickname is not nicholaus92, or the date of birth is June 3, 1995. Also, show the same information for staff members where the date of birth is not May 19, 2004, or the first name is not Titus and the staff address ID is less than or equal to 6.", "answer": {"columns": ["last_name", "date_of_birth", "staff_id", "date_joined_staff"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["Sawayn", "2010-12-08 16:55:14", "1", "2017-04-27 03:21:26"], ["Weissnat", "2015-08-01 13:22:43", "2", "2016-06-06 08:54:28"], ["Mertz", "1994-05-17 05:32:11", "3", "2018-01-02 12:24:24"], ["Hermann", "2003-01-16 06:29:11", "4", "2017-10-21 17:20:57"], ["Herzog", "2015-08-10 11:37:39", "5", "2016-05-16 20:56:53"], ["Maggio", "1998-04-27 12:55:05", "6", "2017-08-27 19:19:44"], ["Macejkovic", "2007-06-11 20:03:28", "7", "2017-06-04 14:30:41"], ["Durgan", "2005-05-02 06:23:36", "8", "2016-05-26 00:55:07"], ["Doyle", "1995-06-03 08:09:17", "9", "2017-12-22 03:06:32"], ["Rogahn", "1996-09-24 09:51:42", "10", "2016-06-05 22:22:23"], ["Jast", "2000-06-13 18:09:11", "11", "2016-05-01 02:22:45"], ["Carroll", "1996-03-09 08:19:49", "12", "2016-11-05 01:43:52"], ["Mraz", "2004-05-19 14:11:13", "13", "2016-11-13 20:44:23"], ["Kuphal", "2000-11-16 06:55:12", "14", "2017-08-30 15:08:37"], ["Turner", "1997-03-29 10:55:45", "15", "2017-02-20 18:45:20"], ["Sawayn", "2010-12-08 16:55:14", "1", "2017-04-27 03:21:26"], ["Weissnat", "2015-08-01 13:22:43", "2", "2016-06-06 08:54:28"], ["Mertz", "1994-05-17 05:32:11", "3", "2018-01-02 12:24:24"], ["Hermann", "2003-01-16 06:29:11", "4", "2017-10-21 17:20:57"], ["Herzog", "2015-08-10 11:37:39", "5", "2016-05-16 20:56:53"], ["Maggio", "1998-04-27 12:55:05", "6", "2017-08-27 19:19:44"], ["Macejkovic", "2007-06-11 20:03:28", "7", "2017-06-04 14:30:41"], ["Durgan", "2005-05-02 06:23:36", "8", "2016-05-26 00:55:07"], ["Doyle", "1995-06-03 08:09:17", "9", "2017-12-22 03:06:32"], ["Rogahn", "1996-09-24 09:51:42", "10", "2016-06-05 22:22:23"], ["Jast", "2000-06-13 18:09:11", "11", "2016-05-01 02:22:45"], ["Carroll", "1996-03-09 08:19:49", "12", "2016-11-05 01:43:52"], ["Mraz", "2004-05-19 14:11:13", "13", "2016-11-13 20:44:23"], ["Kuphal", "2000-11-16 06:55:12", "14", "2017-08-30 15:08:37"], ["Turner", "1997-03-29 10:55:45", "15", "2017-02-20 18:45:20"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Edfr4_15.png", "TableImg_Cr82b_15.png"], "original_data_index": 3187, "original_sql": "SELECT last_name, date_of_birth, staff_id, date_joined_staff FROM Staff WHERE first_name = \"Kaitlin\" OR middle_name <> \"Stephania\" OR last_name <> \"Turner\" OR date_left_staff != \"2018-03-04 17:13:53\" OR nickname != \"nicholaus92\" OR date_of_birth = \"1995-06-03 08:09:17\" UNION ALL SELECT last_name, date_of_birth, staff_id, date_joined_staff FROM Staff WHERE date_of_birth != \"2004-05-19 14:11:13\" OR first_name <> \"Titus\" AND \"staff_address_id\" <= 6"} {"question": "What are the IDs of albums with ID 319 or artist ID less than or equal to 22, combined with the IDs of employees who are not Sales Support Agents, don't have the email margaret@chinookcorp.com, are not from Canada, don't have postal code T3B 1Y7, don't have ID 6, report to someone with an ID less than or equal to 1, have the first name Nancy, are not from Lethbridge, are not from AB, or were not hired on August 14, 2002, and were born on January 9, 1968?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49], "data": [["319"], ["1"], ["4"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["34"], ["9"], ["10"], ["11"], ["271"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["32"], ["45"], ["53"], ["30"], ["44"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["8"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_Ajszy_347.png", "TableImg_Vbdto_8.png"], "original_data_index": 3190, "original_sql": "SELECT id FROM albums WHERE \"id\" = 319 OR \"artist_id\" <= 22 UNION ALL SELECT id FROM employees WHERE title <> \"Sales Support Agent\" AND email <> \"margaret@chinookcorp.com\" AND country <> \"Canada\" AND postal_code != \"T3B 1Y7\" AND \"id\" <> 6 AND \"reports_to\" <= 1.0 AND first_name = \"Nancy\" AND city != \"Lethbridge\" AND state <> \"AB\" OR hire_date <> \"2002-08-14 00:00:00\" AND birth_date = \"1968-01-09 00:00:00\""} {"question": "What are the aircraft IDs greater than 1 from the aircraft table, combined with the aircraft IDs greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aunwp_5.png", "TableImg_Kuxsz_4.png"], "original_data_index": 3189, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the club details (ID, description, location, and name) for \"Bootup Baltimore\" and also for any other clubs that are not located in \"AKW\", along with the details of the club with ID 4?", "answer": {"columns": ["ClubID", "ClubDesc", "ClubLocation", "ClubName"], "index": [0, 1], "data": [["3", "Play pen and paper games on campus.", "HHH", "Pen and Paper Gaming"], ["4", "A competitive tennis club.", "AKW", "Tennis Club"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Nddkk_4.png", "TableImg_M7ew8_4.png"], "original_data_index": 3191, "original_sql": "SELECT ClubID, ClubDesc, ClubLocation, ClubName FROM Club WHERE ClubName = \"Bootup Baltimore\" AND ClubDesc = \"Venture capital fund for student business.\" UNION SELECT ClubID, ClubDesc, ClubLocation, ClubName FROM Club WHERE ClubName != \"Bootup Baltimore\" AND ClubLocation <> \"AKW\" OR \"ClubID\" = 4"} {"question": "What are the driver IDs that are both greater than or equal to 8 and also not equal to 7, considering the driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wxwjx_12.png", "TableImg_3uerm_5.png"], "original_data_index": 3195, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the states, excluding Kansas, from the area code data, combined with the states from the votes data where the phone number isn't 5112677315 and the creation time isn't March 9, 2018, at 7:03:40 PM?", "answer": {"columns": ["state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41], "data": [["AL"], ["AR"], ["AZ"], ["CA"], ["CO"], ["CT"], ["DC"], ["DE"], ["FL"], ["GA"], ["IA"], ["ID"], ["IL"], ["IN"], ["KY"], ["LA"], ["MA"], ["MD"], ["ME"], ["MI"], ["MN"], ["MO"], ["MS"], ["MT"], ["NC"], ["NE"], ["NJ"], ["NM"], ["NY"], ["OH"], ["OK"], ["OR"], ["PA"], ["RI"], ["TN"], ["TX"], ["UT"], ["VA"], ["WA"], ["WI"], ["WV"], ["WY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_5tlpc_305.png", "TableImg_D9jdh_4.png"], "original_data_index": 3196, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE state <> \"KS\" AND \"area_code\" <= 562 UNION SELECT state FROM VOTES WHERE \"phone_number\" <> 5112677315 AND created != \"2018-03-09 19:03:40\""} {"question": "What are the aircraft IDs, excluding ID 2, from the aircraft table, and also the aircraft IDs greater than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8zvtt_5.png", "TableImg_C9pai_4.png"], "original_data_index": 3197, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the driver IDs that are equal to 8 in the driver table, but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_22109_12.png", "TableImg_05go7_5.png"], "original_data_index": 3198, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are greater than 8 but not present in the school bus table with IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1674q_12.png", "TableImg_3w6ll_5.png"], "original_data_index": 3199, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs, excluding driver ID 1, that are present in both the driver and school bus tables, but with school bus driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bjte1_12.png", "TableImg_Clu2n_5.png"], "original_data_index": 3200, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that are greater than or equal to 4, excluding those with an ID of 2, considering only the aircraft table and the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jj512_5.png", "TableImg_Mlwkt_4.png"], "original_data_index": 3201, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the aircraft IDs that are not 2, but are not also aircraft IDs that are 5 or less, considering aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ivvq0_5.png", "TableImg_7p6il_4.png"], "original_data_index": 3202, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the driver IDs that are both less than or equal to 6 and also not equal to 7, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3kay8_12.png", "TableImg_Z8uym_5.png"], "original_data_index": 3203, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Give me the age, state of birth, name, and head ID for people who are not 50 years old or whose name is Dudley Hart, excluding those born in Connecticut who have a head ID other than 1 or are 53 years old or older.", "answer": {"columns": ["age", "born_state", "name", "head_ID"], "index": [0], "data": [["52", "California", "Dudley Hart", "4"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Xf38e_10.png", "TableImg_K4si3_10.png"], "original_data_index": 3204, "original_sql": "SELECT age, born_state, name, head_ID FROM head WHERE \"age\" != 50.0 OR name = \"Dudley Hart\" EXCEPT SELECT age, born_state, name, head_ID FROM head WHERE born_state = \"Connecticut\" AND \"head_ID\" <> 1 OR \"age\" >= 53.0"} {"question": "What are the driver IDs that are less than 5 from the driver table, combined with the driver IDs that are not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8h9ti_12.png", "TableImg_Tymlv_5.png"], "original_data_index": 3205, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the club IDs of clubs that are not named \"Gefle IF\" and are not in France and are not club ID 5, along with the club IDs from match results where Big_Silver is not 12 and the rank is 4 or less, or Gold is less than 5, or Bronze is 9 and Small_Silver is 4, or the club ID is 6?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_Avbc8_6.png", "TableImg_Imnpl_6.png"], "original_data_index": 3206, "original_sql": "SELECT Club_ID FROM club WHERE Club_name != \"Gefle IF\" AND Region <> \"France\" AND \"Club_ID\" != 5 UNION SELECT Club_ID FROM match_result WHERE \"Big_Silver\" <> 12 AND \"Rank\" <= 4 OR \"Gold\" < 5 OR \"Bronze\" = 9 AND \"Small_Silver\" = 4 OR \"Club_ID\" = 6"} {"question": "What are the driver IDs that are less than or equal to 8, and also the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1egri_12.png", "TableImg_H0ppx_5.png"], "original_data_index": 3192, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are equal to 6 but not equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I0po8_12.png", "TableImg_8na4t_5.png"], "original_data_index": 3193, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the titles and IDs of items that have an ID greater than or equal to 6 and are not item ID 4?", "answer": {"columns": ["i_id", "title"], "index": [0, 1], "data": [["6", "blue hoodie"], ["7", "cup"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_9gw3g_8.png", "TableImg_K6ogv_8.png"], "original_data_index": 3194, "original_sql": "SELECT i_id, title FROM item WHERE \"i_id\" <> 4 INTERSECT SELECT i_id, title FROM item WHERE \"i_id\" >= 6"} {"question": "Which driver IDs are less than 11, and also include driver ID 3, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hi11t_12.png", "TableImg_27nwd_5.png"], "original_data_index": 3209, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are either 2 or not 10, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hkvtj_12.png", "TableImg_Cjjvn_5.png"], "original_data_index": 3208, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are not 3 and are not present in the airport_aircraft table with IDs less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C0yhx_5.png", "TableImg_0mdmi_4.png"], "original_data_index": 3210, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the aircraft IDs that are present in the airport_aircraft table with ID 2 and also present in the aircraft table, excluding aircraft ID 4?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1bibf_5.png", "TableImg_5uked_4.png"], "original_data_index": 3207, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the IDs of drivers and school buses, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z7r5r_12.png", "TableImg_Htsab_5.png"], "original_data_index": 3212, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are not 4, and what are the aircraft IDs that are 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N9uzx_5.png", "TableImg_Epxsl_4.png"], "original_data_index": 3211, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What is the average branch ID and the total registration year for members with IDs less than 8, and also for all members except member ID 1?", "answer": {"columns": ["AVG(Branch_ID)", "SUM(Register_Year)"], "index": [0, 1], "data": [["2.8571428571", "14114"], ["3.8571428571", "14114"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Biqza_8.png", "TableImg_98ura_8.png"], "original_data_index": 3214, "original_sql": "SELECT AVG(Branch_ID), SUM(Register_Year) FROM membership_register_branch WHERE \"Member_ID\" < 8 UNION SELECT AVG(Branch_ID), SUM(Register_Year) FROM membership_register_branch WHERE \"Member_ID\" != 1"} {"question": "What are the Comptroller and Year for parties that meet any of these conditions: the Party ID is less than 7 and the party is not Independence and the Attorney General is not Eliot Spitzer, or the Comptroller is Alan Hevesi, or the US Senate election was not (no election), or the year is not 2006; or the Party ID is not 3, or the Governor is Betsy McCaughey Ross and the US Senate election was Hillary Rodham Clinton and the year is after 2006, or the Attorney General is not Andrew Cuomo and the Lieutenant Governor is not David Paterson, or the Comptroller is not Alan Hevesi and the party is not Democratic?", "answer": {"columns": ["Comptroller", "Year"], "index": [0, 1, 2, 3], "data": [["Alan Hevesi", "2002"], ["Alan Hevesi", "2006"], ["Carl McCall", "1998"], ["John Faso", "2002"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Zh0ze_7.png", "TableImg_Aofuc_7.png"], "original_data_index": 3213, "original_sql": "SELECT Comptroller, Year FROM party WHERE \"Party_ID\" < 7 AND Party != \"Independence\" AND Attorney_General <> \"Eliot Spitzer\" OR Comptroller = \"Alan Hevesi\" OR US_Senate != \"(no election)\" OR \"Year\" <> 2006.0 UNION SELECT Comptroller, Year FROM party WHERE \"Party_ID\" <> 3 OR Governor = \"Betsy McCaughey Ross\" AND US_Senate = \"Hillary Rodham Clinton\" AND \"Year\" > 2006.0 OR Attorney_General <> \"Andrew Cuomo\" AND Lieutenant_Governor != \"David Paterson\" OR Comptroller != \"Alan Hevesi\" AND Party <> \"Democratic\""} {"question": "Which driver IDs are greater than or equal to 11 but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0p5wy_12.png", "TableImg_Xr9wk_5.png"], "original_data_index": 3215, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are not equal to 4 and are in the driver table but not in the school bus table, excluding driver IDs equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jssw9_12.png", "TableImg_L6tya_5.png"], "original_data_index": 3217, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs less than 2 that are not driver IDs from school buses that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mmne8_12.png", "TableImg_P1lbd_5.png"], "original_data_index": 3218, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are not 5, and also the aircraft IDs that are 5 or greater, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ax6j3_5.png", "TableImg_9yysf_4.png"], "original_data_index": 3216, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What is the average PetID for pets where the student ID is not 1001, combined with the average PetID for pets that are not dogs or are young and lightweight?", "answer": {"columns": ["AVG(PetID)"], "index": [0, 1], "data": [["2002.5"], ["2002.0"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_4z5ef_3.png", "TableImg_Huvsi_3.png"], "original_data_index": 3220, "original_sql": "SELECT AVG(PetID) FROM Has_Pet WHERE \"StuID\" <> 1001 UNION ALL SELECT AVG(PetID) FROM Pets WHERE PetType != \"dog\" OR \"pet_age\" < 2 AND \"weight\" < 13.4"} {"question": "Which driver IDs are less than 11 but not present in the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rh3u4_12.png", "TableImg_Q6dwj_5.png"], "original_data_index": 3222, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What is the average city population and the district ID, grouped by district name, where the city area is not 12 or the city population is 2793721, considering districts where the city area is 25, store ID is less than or equal to 4, the headquarters city is not Chiniot City and the district name is not Gujrat District, or the city population is less than or equal to 1526168?", "answer": {"columns": ["AVG(T1.City_Population)", "District_ID"], "index": [0, 1, 2, 3], "data": [["530438", "3"], ["89380", "4"], ["165936", "11"], ["165038", "15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_06ope_15.png", "TableImg_Bk2jp_5.png"], "original_data_index": 3219, "original_sql": "SELECT AVG(T1.City_Population), T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE \"City_Area\" = 25.0 OR \"Store_ID\" <= 4 OR Headquartered_City <> \"Chiniot City\" AND District_name <> \"Gujrat District\" OR \"City_Population\" <= 1526168.0 GROUP BY District_name HAVING City_Area <> 12.0 OR City_Population = 2793721.0"} {"question": "What are the IDs of drivers who are in both the driver and school bus tables, excluding driver ID 3 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_178zb_12.png", "TableImg_Rzf6k_5.png"], "original_data_index": 3224, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the document IDs and draft numbers for drafts in the circulation history where the draft number isn't 1 and the employee ID is less than 2 and the document ID is less than or equal to 1 or the copy number is 4? Also, what are the document IDs and draft numbers for drafts in the document drafts table where the document ID is 10, or the draft number is greater than 20, or the draft details are not \"v\"?", "answer": {"columns": ["document_id", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1", "0"], ["1", "2"], ["2", "1"], ["4", "9"], ["7", "10"], ["10", "20"], ["12", "11"], ["12", "12"], ["13", "4"], ["13", "16"], ["14", "14"], ["17", "19"], ["20", "17"], ["23", "9"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_Mu84j_4.png", "TableImg_2bc3y_15.png"], "original_data_index": 3225, "original_sql": "SELECT document_id, draft_number FROM Circulation_History WHERE \"draft_number\" != 1 AND \"employee_id\" < 2 AND \"document_id\" <= 1 OR \"copy_number\" = 4 UNION SELECT document_id, draft_number FROM Document_Drafts WHERE \"document_id\" = 10 OR \"draft_number\" > 20 OR draft_details != \"v\""} {"question": "What are the aircraft IDs of certificates where the employee ID is less than 242518965, excluding those aircraft IDs that have a flight arriving on 04/12/2005 05:03 with a distance of 1749, or going to Dallas, or where the aircraft ID is greater than 10, or the flight number is greater than 13, or originating from Los Angeles and costing less than 220.98?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3], "data": [["3"], ["11"], ["12"], ["13"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Lg352_69.png", "TableImg_N1yqd_10.png"], "original_data_index": 3223, "original_sql": "SELECT aid FROM certificate WHERE \"eid\" < 242518965 EXCEPT SELECT aid FROM flight WHERE arrival_date = \"04/12/2005 05:03\" AND \"distance\" = 1749 OR destination = \"Dallas\" OR \"aid\" > 10 OR \"flno\" > 13 OR origin = \"Los Angeles\" AND \"price\" < 220.98"} {"question": "What are the driver IDs greater than 7 that are also driver IDs equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8qj9z_12.png", "TableImg_Epw3r_5.png"], "original_data_index": 3221, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the draft numbers that appear in both the Document Drafts table where the document ID is greater than 1 or the draft number is less than 17, and in the Draft Copies table where the copy number is not 4 or the document ID is less than or equal to 23?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["8"], ["9"], ["12"], ["17"], ["20"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_0opzo_15.png", "TableImg_324hp_8.png"], "original_data_index": 3229, "original_sql": "SELECT draft_number FROM Document_Drafts WHERE \"document_id\" > 1 OR \"draft_number\" < 17 INTERSECT SELECT draft_number FROM Draft_Copies WHERE \"copy_number\" <> 4 OR \"document_id\" <= 23"} {"question": "What are the driver IDs that are equal to 5 in the driver table, combined with the driver IDs that are not equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_94fs0_12.png", "TableImg_Qz6co_5.png"], "original_data_index": 3231, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are not 12 and are in the driver table but not in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dpqda_12.png", "TableImg_Ohpc1_5.png"], "original_data_index": 3226, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are either less than or equal to 8 in the driver table or less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yy0c6_12.png", "TableImg_Rjl85_5.png"], "original_data_index": 3228, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are less than or equal to 8 but not greater than or equal to 7, considering only driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S258j_12.png", "TableImg_Klb3a_5.png"], "original_data_index": 3232, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs that are not equal to 2 and are not present in the airport aircraft table with an aircraft ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O4s08_5.png", "TableImg_Ui7pa_4.png"], "original_data_index": 3234, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the book IDs for book 4, combined with the book IDs from publications that don't have a publication date of August 2008, or have a publication ID of 3 or greater, or a book ID greater than 9, or a price of 6000000.0, or a publisher that isn't Thomson Reuters?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["1"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_37neb_10.png", "TableImg_Bs6qa_7.png"], "original_data_index": 3233, "original_sql": "SELECT Book_ID FROM book WHERE \"Book_ID\" = 4 UNION ALL SELECT Book_ID FROM publication WHERE Publication_Date != \"August 2008\" OR \"Publication_ID\" >= 3 OR \"Book_ID\" > 9 OR \"Price\" = 6000000.0 OR Publisher <> \"Thomson Reuters\""} {"question": "What are the aircraft IDs that are either 3 or greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wtji4_5.png", "TableImg_Nkycc_4.png"], "original_data_index": 3235, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the aircraft IDs that are less than 5 in the aircraft table or greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Khft7_5.png", "TableImg_R6gxr_4.png"], "original_data_index": 3236, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the IDs of drivers who are in the driver table with an ID of 4 or greater, and also in the school bus table with an ID not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_76jdl_12.png", "TableImg_Praxa_5.png"], "original_data_index": 3238, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the descriptions and names of clubs that are not located in AKW and are named \"Hopkins Student Enterprises\" and also not described as \"A competitive tennis club.\", combined with the descriptions and names of clubs located in AKW or with a club ID not equal to 3 or not described as \"Refurbish computers; teach kids and adults about computer basics.\"?", "answer": {"columns": ["ClubDesc", "ClubName"], "index": [0, 1, 2, 3], "data": [["Refurbish computers; teach kids and adults about computer basics.", "Bootup Baltimore"], ["Venture capital fund for student business.", "Hopkins Student Enterprises"], ["Play pen and paper games on campus.", "Pen and Paper Gaming"], ["A competitive tennis club.", "Tennis Club"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Euajo_4.png", "TableImg_Zde5p_4.png"], "original_data_index": 3237, "original_sql": "SELECT ClubDesc, ClubName FROM Club WHERE ClubLocation <> \"AKW\" AND \"ClubID\" <> 3 AND ClubName = \"Hopkins Student Enterprises\" AND ClubDesc <> \"A competitive tennis club.\" UNION ALL SELECT ClubDesc, ClubName FROM Club WHERE ClubLocation = \"AKW\" OR \"ClubID\" != 3 OR ClubDesc != \"Refurbish computers; teach kids and adults about computer basics.\""} {"question": "What are the driver IDs, excluding driver ID 4, from the driver table, combined with the driver IDs less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dhopq_12.png", "TableImg_Qu5uz_5.png"], "original_data_index": 3240, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which parties are associated with districts greater than 1 and representing 12.2 12B counties, or were first elected in or before 2002 and not on the Environmental Matters committee, or had Eliot Spitzer as Attorney General?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["Democratic"], ["Independence"], ["Liberal"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Krbrt_8.png", "TableImg_46u7w_7.png"], "original_data_index": 3239, "original_sql": "SELECT Party FROM election WHERE \"District\" > 1 AND Counties_Represented = \"12.2 12B\" OR \"First_Elected\" <= 2002.0 AND Committee <> \"Environmental Matters\" UNION SELECT Party FROM party WHERE Attorney_General = \"Eliot Spitzer\""} {"question": "What are the driver IDs that are present in both the driver table (excluding driver ID 10) and the school bus table (excluding driver ID 3)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zs2w4_12.png", "TableImg_1qlq4_5.png"], "original_data_index": 3241, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are equal to 8 but not present in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q1bo3_12.png", "TableImg_K6ehh_5.png"], "original_data_index": 3244, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are not 1 and are present in the aircraft table but not in the airport_aircraft table, excluding those with ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2qz1c_5.png", "TableImg_P36m6_4.png"], "original_data_index": 3243, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the maximum People IDs, maximum birth dates, and heights for people born on April 17, 1987, with a height of at least 187, and also for people who don't have the name \"Yevgeni Sivozhelez\", or have a People ID less than or equal to 7, or are not Russian, or have a height not equal to 207 and were born on April 17, 1987?", "answer": {"columns": ["MAX(People_ID)", "MAX(Birth_Date)", "Height"], "index": [0, 1], "data": [["3", "April 17, 1987", "187"], ["7", "May 26, 1986", "207"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_1endo_7.png", "TableImg_Rsyg1_7.png"], "original_data_index": 3242, "original_sql": "SELECT MAX(People_ID), MAX(Birth_Date), Height FROM people WHERE Birth_Date = \"April 17, 1987\" AND \"Height\" >= 187.0 UNION ALL SELECT MAX(People_ID), MAX(Birth_Date), Height FROM people WHERE Name <> \"Yevgeni Sivozhelez\" OR \"People_ID\" <= 7 OR Nationality <> \"Russia\" OR \"Height\" <> 207.0 AND Birth_Date = \"April 17, 1987\""} {"question": "What are the role codes and descriptions for roles that are not \"PT\" and not \"Editor\", excluding those that are \"PT\" or \"Proof Manager\"?", "answer": {"columns": ["role_code", "role_description"], "index": [0], "data": [["MG", "Manager"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Ope34_4.png", "TableImg_N8z7a_4.png"], "original_data_index": 3230, "original_sql": "SELECT role_code, role_description FROM Roles WHERE role_code != \"PT\" AND role_description <> \"Editor\" EXCEPT SELECT role_code, role_description FROM Roles WHERE role_code = \"PT\" OR role_description = \"Proof Manager\""} {"question": "What are the driver IDs greater than 10 from the driver table, combined with the driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zg2e2_12.png", "TableImg_Qil2i_5.png"], "original_data_index": 3245, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are greater than or equal to 3, and also the driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bhfvh_12.png", "TableImg_6498x_5.png"], "original_data_index": 3247, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs, excluding driver ID 6, and also any driver IDs from school buses that are 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vnu0d_12.png", "TableImg_V7yor_5.png"], "original_data_index": 3246, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the creation dates, states, contestant numbers, and vote IDs for votes where the phone number is less than or equal to 7148407040 and the state is not \"NJ \", excluding any votes from New York, or where the contestant number is less than or equal to 2 and the creation date is not \"2018-03-09 19:03:36\" and the vote ID is less than 3?", "answer": {"columns": ["created", "state", "contestant_number", "vote_id"], "index": [0], "data": [["2018-03-09 19:03:39", "CA", "3", "3"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_Nnzkv_4.png", "TableImg_0sgsu_4.png"], "original_data_index": 3248, "original_sql": "SELECT created, state, contestant_number, vote_id FROM VOTES WHERE \"phone_number\" <= 7148407040 AND state <> \"NJ \" EXCEPT SELECT created, state, contestant_number, vote_id FROM VOTES WHERE state = \"NY\" OR \"contestant_number\" <= 2 AND created != \"2018-03-09 19:03:36\" AND \"vote_id\" < 3"} {"question": "What are the aircraft IDs greater than 4, and also the aircraft IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_454hi_5.png", "TableImg_Yrl0v_4.png"], "original_data_index": 3251, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs, up to 9, are in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zovft_12.png", "TableImg_J5ps4_5.png"], "original_data_index": 3252, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, and also the aircraft IDs from airport_aircraft, excluding aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_44yuj_5.png", "TableImg_Hqld1_4.png"], "original_data_index": 3249, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the continents, country IDs, and country names of all countries, excluding country ID 8, but not including any countries with country ID 3 or continent 4?", "answer": {"columns": ["Continent", "CountryId", "CountryName"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1", "1", "usa"], ["1", "14", "mexico"], ["1", "15", "brazil"], ["2", "2", "germany"], ["2", "5", "italy"], ["2", "6", "sweden"], ["2", "7", "uk"], ["2", "9", "russia"], ["3", "4", "japan"], ["5", "11", "australia"], ["5", "12", "new zealand"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_A809o_15.png", "TableImg_6rk6y_15.png"], "original_data_index": 3250, "original_sql": "SELECT Continent, CountryId, CountryName FROM countries WHERE \"CountryId\" <> 8 EXCEPT SELECT Continent, CountryId, CountryName FROM countries WHERE \"CountryId\" = 3 OR \"Continent\" = 4"} {"question": "Which driver IDs are greater than 12 in the driver table or are less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sszkp_12.png", "TableImg_Zw7v6_5.png"], "original_data_index": 3255, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are not equal to 6, but are not present in the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gmlyb_12.png", "TableImg_7lg0n_5.png"], "original_data_index": 3256, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the IDs of albums that aren't titled \"Chill: Brazil (Disc 2)\" or don't have an artist ID of 142 and aren't ID 318, and also the IDs of media types that have an ID less than 4 or are named \"AAC audio file\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_W71g8_347.png", "TableImg_1ml7a_5.png"], "original_data_index": 3254, "original_sql": "SELECT id FROM albums WHERE title <> \"Chill: Brazil (Disc 2)\" OR \"artist_id\" != 142 AND \"id\" <> 318 INTERSECT SELECT id FROM media_types WHERE \"id\" < 4 OR name = \"AAC audio file\""} {"question": "What are the IDs of aircraft that are either Mil Mi-26, or have a maximum disk loading of 3.7 lb/ft\u00b2 (18 kg/m\u00b2) but not a total disk area of 4,900 ft\u00b2 (460 m\u00b2), or have a maximum gross weight not equal to 50,000 lb (22,680 kg), and also have an aircraft ID of 2, or an ID not equal to 1, or an airport ID less than or equal to 9?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nvohd_5.png", "TableImg_Zgzt5_4.png"], "original_data_index": 3253, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Aircraft = \"Mil Mi-26\" OR Max_disk_Loading = \"3.7 lb/ft\u00b2 (18 kg/m\u00b2)\" AND Total_disk_area <> \"4,900 ft\u00b2 (460 m\u00b2)\" OR Max_Gross_Weight <> \"50,000 lb (22,680 kg)\" INTERSECT SELECT Aircraft_ID FROM airport_aircraft WHERE \"Aircraft_ID\" = 2 OR \"ID\" != 1 OR \"Airport_ID\" <= 9"} {"question": "What are the aircraft IDs greater than or equal to 4, and what are the aircraft IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nqg30_5.png", "TableImg_Tar86_4.png"], "original_data_index": 3257, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are less than 8 but not present in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ps3kn_12.png", "TableImg_Nhqb4_5.png"], "original_data_index": 3260, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are either 5 or not 2, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xme2w_5.png", "TableImg_Fv7wn_4.png"], "original_data_index": 3259, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the aircraft IDs that are greater than or equal to 3 in the aircraft table, but not present in the airport_aircraft table with IDs greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pxgqu_5.png", "TableImg_F1fsz_4.png"], "original_data_index": 3263, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the driver IDs, excluding driver ID 8, and also the driver IDs less than 7, from the drivers and school buses tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9e9qb_12.png", "TableImg_Qlflt_5.png"], "original_data_index": 3262, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs greater than 2, and also what are the aircraft IDs greater than 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G6ds4_5.png", "TableImg_Yjnp7_4.png"], "original_data_index": 3258, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which shop IDs meet either of these conditions: the shop ID is at least 1 or the employee ID is greater than 1 and the employee is full-time, and also started in a year other than 2010?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_T8tvk_7.png", "TableImg_Zifyx_7.png"], "original_data_index": 3261, "original_sql": "SELECT Shop_ID FROM hiring WHERE \"Shop_ID\" >= 1 OR \"Employee_ID\" > 1 AND Is_full_time = \"T\" INTERSECT SELECT Shop_ID FROM hiring WHERE Start_from != \"2010\""} {"question": "Which driver IDs are greater than or equal to 8 but are not found in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Plgla_12.png", "TableImg_Yqolx_5.png"], "original_data_index": 3266, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs that are either less than or equal to 4 in the aircraft table, or greater than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eledp_5.png", "TableImg_S9650_4.png"], "original_data_index": 3267, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the driver IDs, excluding driver ID 6, that are present in both the driver and school bus tables, where the driver ID is less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dr8ht_12.png", "TableImg_Wwfsz_5.png"], "original_data_index": 3268, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the aircraft IDs greater than 4 that are not present in the airport_aircraft table with aircraft IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H1a96_5.png", "TableImg_Lw5q1_4.png"], "original_data_index": 3269, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the IDs of drivers, excluding driver 5, who are also assigned to a school bus, excluding driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T8393_12.png", "TableImg_T36mf_5.png"], "original_data_index": 3270, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the document IDs where the document ID is 1 or the draft number is less than 17 and the employee ID is 2, and also the document ID is 12 in the Documents Mailed table?", "answer": {"columns": ["document_id"], "index": [0, 1, 2], "data": [["1"], ["2"], ["12"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_2ejkr_4.png", "TableImg_Pwicc_14.png"], "original_data_index": 3271, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" = 1 OR \"draft_number\" < 17 AND \"employee_id\" = 2 UNION SELECT document_id FROM Documents_Mailed WHERE \"document_id\" = 12"} {"question": "What are the driver IDs that are either less than or equal to 3, or greater than or equal to 10, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7wqbk_12.png", "TableImg_Lloge_5.png"], "original_data_index": 3272, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are less than or equal to 10, excluding those with ID 10, considering only the driver table and the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8xdg7_12.png", "TableImg_A08hh_5.png"], "original_data_index": 3273, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which department IDs have at least one name and either more than 4487 employees or the name is \"Education\", but not those that have a name other than \"Transportation\" or a budget less than or equal to 77.6 billion and a ranking of 6 or higher, and don't have exactly one creation record?", "answer": {"columns": ["Department_ID", "COUNT(Creation)", "COUNT(Name)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "1", "1"], ["2", "1", "1"], ["3", "1", "1"], ["4", "1", "1"], ["5", "1", "1"], ["6", "1", "1"], ["7", "1", "1"], ["8", "1", "1"], ["9", "1", "1"], ["10", "1", "1"], ["11", "1", "1"], ["12", "1", "1"], ["13", "1", "1"], ["14", "1", "1"], ["15", "1", "1"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_El9w2_15.png", "TableImg_1vfmc_15.png"], "original_data_index": 3274, "original_sql": "SELECT Department_ID, COUNT(Creation), COUNT(Name) FROM department WHERE \"Num_Employees\" > 4487.0 OR Name = \"Education\" GROUP BY Department_ID HAVING COUNT(Name) >= 1 EXCEPT SELECT Department_ID, COUNT(Creation), COUNT(Name) FROM department WHERE Name != \"Transportation\" OR \"Budget_in_Billions\" <= 77.6 AND \"Ranking\" >= 6 GROUP BY Department_ID HAVING COUNT(Creation) != 1"} {"question": "What are the aircraft IDs that are either 3 or less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X64tz_5.png", "TableImg_H0myr_4.png"], "original_data_index": 3275, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Which driver IDs are equal to 10 but not present in the school bus table with driver IDs not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y0sty_12.png", "TableImg_9xbqm_5.png"], "original_data_index": 3276, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs, excluding driver ID 3, and also the driver IDs from school buses that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zq1ca_12.png", "TableImg_Qu8p1_5.png"], "original_data_index": 3277, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that are present in both the aircraft table (excluding ID 5) and the airport_aircraft table (excluding ID 2)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Id1xm_5.png", "TableImg_Iodpw_4.png"], "original_data_index": 3278, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are greater than or equal to 3 but are not driver IDs that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mgaav_12.png", "TableImg_57ymw_5.png"], "original_data_index": 3265, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What driver IDs are both equal to 9 in the driver table and greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1m8pd_12.png", "TableImg_Uon6m_5.png"], "original_data_index": 3264, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the role descriptions and codes for roles with the code \"PT\", including those that are not \"Proof Manager\"?", "answer": {"columns": ["role_description", "role_code"], "index": [0], "data": [["Photo", "PT"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Lj1ju_4.png", "TableImg_Wgcv7_4.png"], "original_data_index": 3282, "original_sql": "SELECT role_description, role_code FROM Roles WHERE role_description <> \"Proof Manager\" AND role_code = \"PT\" UNION SELECT role_description, role_code FROM Roles WHERE role_code = \"PT\""} {"question": "What are the aircraft IDs, excluding aircraft ID 2, and also aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9ghr9_5.png", "TableImg_Rwg2d_4.png"], "original_data_index": 3280, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the aircraft IDs that are not 2 and are also present in the airport-aircraft table with IDs other than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_06rta_5.png", "TableImg_Onbat_4.png"], "original_data_index": 3281, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are greater than 4 but not equal to 7, considering only those driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9x33w_12.png", "TableImg_Hj3xo_5.png"], "original_data_index": 3279, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs, excluding driver ID 12, and also the driver IDs that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nphrg_12.png", "TableImg_Lr96u_5.png"], "original_data_index": 3284, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are equal to 12 in the driver table, but not present in the school bus table where the driver ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xb8nu_12.png", "TableImg_2hi0m_5.png"], "original_data_index": 3285, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs that are not 2, and also the aircraft IDs less than 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A7ife_5.png", "TableImg_49ye8_4.png"], "original_data_index": 3286, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 3 from the driver table and driver IDs greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E64mb_12.png", "TableImg_Wywq9_5.png"], "original_data_index": 3283, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Give me the phone number, contestant number, vote ID, creation date, and state for votes where the state is NY or the contestant number is at least 2, the phone number is less than 7182887233, and the vote ID is greater than 2. Also, include votes where the contestant number is not 5 or the vote ID is less than 1.", "answer": {"columns": ["phone_number", "contestant_number", "vote_id", "created", "state"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["7182887233", "2", "1", "2018-03-09 19:03:21", "NY"], ["7148407040", "3", "2", "2018-03-09 19:03:36", "NY"], ["6209222712", "3", "3", "2018-03-09 19:03:39", "CA"], ["5112677315", "5", "5", "2018-03-09 19:03:40", "NJ\n"], ["7182887233", "2", "1", "2018-03-09 19:03:21", "NY"], ["7148407040", "3", "2", "2018-03-09 19:03:36", "NY"], ["6209222712", "3", "3", "2018-03-09 19:03:39", "CA"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_V08fx_4.png", "TableImg_69v4g_4.png"], "original_data_index": 3287, "original_sql": "SELECT phone_number, contestant_number, vote_id, created, state FROM VOTES WHERE state = \"NY\" OR \"contestant_number\" >= 2 AND \"phone_number\" < 7182887233 AND \"vote_id\" > 2 UNION ALL SELECT phone_number, contestant_number, vote_id, created, state FROM VOTES WHERE \"contestant_number\" <> 5 OR \"vote_id\" < 1"} {"question": "What are the driver IDs that are either less than or equal to 12 in the driver table or less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vdmh0_12.png", "TableImg_L9wr8_5.png"], "original_data_index": 3288, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the IDs of aircraft, excluding aircraft ID 5, that are either in the aircraft table or associated with an airport in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z6mli_5.png", "TableImg_Rgayn_4.png"], "original_data_index": 3291, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the document IDs from the Documents table where the shipping agent code is not US or the receipt number is 124, combined with the document IDs from the Draft_Copies table where the document ID is less than 23 and the copy number is not 15?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["1"], ["3"], ["7"], ["10"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"], ["1"], ["2"], ["2"], ["4"], ["10"], ["12"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Hjb28_15.png", "TableImg_9amf9_8.png"], "original_data_index": 3289, "original_sql": "SELECT document_id FROM Documents WHERE shipping_agent_code != \"US\" OR receipt_number = \"124\" UNION ALL SELECT document_id FROM Draft_Copies WHERE \"document_id\" < 23 AND \"copy_number\" != 15"} {"question": "What is the average gender and sum of rank for coaches where the rank is not 5, or the gender is not male, or the coach's name is not Jameson Tomas, or the coach ID is 3 or greater? Also, what is the average gender and sum of rank for players where the gender is male, or the sponsor name is not Winnipeg South, or the player's name is Judy Wasylycia-Leis and they live in Winnipeg, or the rank is 1st and the player ID is 10 and they have 5490 votes, or their occupation is student?", "answer": {"columns": ["AVG(Gender)", "SUM(Rank)"], "index": [0, 1], "data": [["0", "15"], ["0", "30"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_Mjgoz_5.png", "TableImg_Fh9kr_14.png"], "original_data_index": 3290, "original_sql": "SELECT AVG(Gender), SUM(Rank) FROM coach WHERE \"Rank\" <> 5 OR Gender != \"M\" OR Coach_name <> \"Jameson Tomas\" OR \"Coach_ID\" >= 3 UNION SELECT AVG(Gender), SUM(Rank) FROM player WHERE Gender = \"M\" OR Sponsor_name <> \"Winnipeg South\" OR Player_name = \"Judy Wasylycia-Leis\" AND Residence = \"Winnipeg\" OR Rank = \"1st\" AND \"Player_ID\" = 10 AND \"Votes\" = 5490 OR Occupation = \"Student\""} {"question": "Which driver IDs are not equal to 2 and are not found in the school bus table with a driver ID of 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V693m_12.png"], "original_data_index": 3294, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs, excluding driver ID 9, are in the driver table but not in the school bus table, also excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xywez_12.png", "TableImg_Uauk5_5.png"], "original_data_index": 3292, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the descriptions of other property features where the property ID is 6, or the feature ID is not 2, or the description is \"doloribus\", and also where the feature ID is not 2?", "answer": {"columns": ["property_feature_description"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["corrupti"], ["dolorem"], ["doloribus"], ["earum"], ["et"], ["modi"], ["odio"], ["quo"], ["vitae"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_779zr_15.png", "TableImg_03l4y_15.png"], "original_data_index": 3295, "original_sql": "SELECT property_feature_description FROM Other_Property_Features WHERE \"property_id\" = 6 OR \"feature_id\" <> 2 OR property_feature_description = \"doloribus\" INTERSECT SELECT property_feature_description FROM Other_Property_Features WHERE \"feature_id\" != 2"} {"question": "Which driver IDs are equal to 1 but not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vngkb_12.png", "TableImg_Rxwnb_5.png"], "original_data_index": 3293, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs that are greater than or equal to 5, and also the driver IDs from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5917m_5.png"], "original_data_index": 3296, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs that are present in both the driver and school bus tables, excluding driver ID 4 from the driver table and only including driver IDs greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ds613_12.png", "TableImg_Pur9t_5.png"], "original_data_index": 3298, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs that are less than 2 in the aircraft table, but not greater than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q3fgm_5.png", "TableImg_Acd3w_4.png"], "original_data_index": 3299, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What is the maximum property type code, excluding \"Other\", from the Properties table where either the property type code is not \"Other\", or oth_feature_2 is \"None\", and apt_feature_1 is not \"enim\", or shp_feature_3 is not \"None\", and also the maximum property type code, excluding \"Other\", from the Ref_Property_Types table?", "answer": {"columns": ["MAX(property_type_code)"], "index": [0], "data": [["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Epjhr_15.png", "TableImg_1ytmr_5.png"], "original_data_index": 3297, "original_sql": "SELECT MAX(property_type_code) FROM Properties WHERE property_type_code <> \"Other\" OR oth_feature_2 = \"None\" AND apt_feature_1 <> \"enim\" OR shp_feature_3 != \"None\" INTERSECT SELECT MAX(property_type_code) FROM Ref_Property_Types WHERE property_type_code != \"Other\""} {"question": "Which driver IDs are both less than or equal to 3 in the driver table and less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kronj_12.png", "TableImg_Qafci_5.png"], "original_data_index": 3301, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are either less than or equal to 11 from the driver table, or greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9puc2_12.png", "TableImg_Ko83f_5.png"], "original_data_index": 3303, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs that are either less than or equal to 5, or greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dzjc5_5.png", "TableImg_7opmx_4.png"], "original_data_index": 3302, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the shipping agent codes that are not named \"Ship\" or have a description other than \"k\", and also are not named \"Ship\" or have a code other than \"FE\"?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2, 3, 4], "data": [["AL"], ["FE"], ["SH"], ["UP"], ["US"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Nmnch_5.png", "TableImg_Rkmds_5.png"], "original_data_index": 3300, "original_sql": "SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name != \"Ship\" OR shipping_agent_description <> \"k\" INTERSECT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name <> \"Ship\" OR shipping_agent_code <> \"FE\""} {"question": "What is the maximum airport ID and the number of transit passengers for each airport?", "answer": {"columns": ["Transit_Passengers", "MAX(T2.Airport_ID)"], "index": [0], "data": [["38458", "9"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_91ebi_10.png", "TableImg_9m00c_4.png"], "original_data_index": 3305, "original_sql": "SELECT T1.Transit_Passengers, MAX(T2.Airport_ID) FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, from the aircraft table and also the aircraft IDs less than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M4z9p_5.png", "TableImg_Iwz92_4.png"], "original_data_index": 3307, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the aircraft IDs that are greater than or equal to 3 and also appear in the airport aircraft table, excluding aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O3s58_5.png", "TableImg_Hudha_4.png"], "original_data_index": 3306, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the aircraft IDs that are not equal to 2 and are not present in the airport_aircraft table with aircraft IDs less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Przaf_5.png", "TableImg_Mojy8_4.png"], "original_data_index": 3304, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the driver IDs, excluding ID 9, that are present in both the driver and school bus tables, where the school bus driver ID is greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wdrap_12.png", "TableImg_Bb40e_5.png"], "original_data_index": 3309, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the names of donors and their school IDs from the endowment table where the amount is 9.05 or the school ID is greater than 1, and also where the amount is 9.73 or the endowment ID is 6 or higher?", "answer": {"columns": ["donator_name", "School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["San Jos\u00e9 de Ocoa", "2"], ["Distrito Nacional", "3"], ["Valverde", "3"], ["San Crist\u00f3bal", "3"], ["Santo Domingo Este", "4"], ["Santiago", "4"], ["Duarte", "5"], ["Com. Dom. En Estados Unidos", "6"], ["La Vega", "7"], ["Peravia", "8"], ["Valverde", "3"], ["Santo Domingo Este", "4"], ["Santiago", "4"], ["Duarte", "5"], ["Com. Dom. En Estados Unidos", "6"], ["La Vega", "7"], ["Peravia", "8"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_K321v_11.png", "TableImg_1fzcx_11.png"], "original_data_index": 3311, "original_sql": "SELECT donator_name, School_id FROM endowment WHERE \"amount\" = 9.05 OR \"School_id\" > 1 UNION ALL SELECT donator_name, School_id FROM endowment WHERE \"amount\" = 9.73 OR \"endowment_id\" >= 6"} {"question": "What are the aircraft IDs that are less than or equal to 1 and are not present in the airport aircraft table with an ID not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zlbf4_5.png", "TableImg_Ehaor_4.png"], "original_data_index": 3310, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are all the different role codes, excluding \"MG\", from the Employees table, combined with the role codes from the Roles table where the description isn't \"Proof Manager\"?", "answer": {"columns": ["role_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["ED"], ["ED"], ["PR"], ["PT"], ["PT"], ["ED"], ["PT"], ["MG"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_71p74_6.png", "TableImg_Goyfn_4.png"], "original_data_index": 3308, "original_sql": "SELECT role_code FROM Employees WHERE role_code <> \"MG\" UNION ALL SELECT role_code FROM Roles WHERE role_description <> \"Proof Manager\""} {"question": "What are the aircraft IDs that are not 2, and also the aircraft IDs greater than 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cathz_5.png", "TableImg_J7luk_4.png"], "original_data_index": 3314, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the driver IDs that are both less than or equal to 4 and not equal to 10, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V8vz2_12.png", "TableImg_Z2xj7_5.png"], "original_data_index": 3315, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the car models that are not from make ID 94 or are not \"amc\" or are \"oldsmobile cutlass ls\", and also the models that are \"toyota\" and have a maker ID less than 4?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "data": [[" volkswagen"], ["amc"], ["audi"], ["bmw"], ["buick"], ["cadillac"], ["capri"], ["chevrolet"], ["chrysler"], ["citroen"], ["datsun"], ["dodge"], ["fiat"], ["ford"], ["hi"], ["honda"], ["mazda"], ["mercedes"], ["mercedes-benz"], ["mercury"], ["nissan"], ["oldsmobile"], ["opel"], ["peugeot"], ["plymouth"], ["pontiac"], ["renault"], ["saab"], ["subaru"], ["toyota"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_Cqect_406.png", "TableImg_Lzm9v_36.png"], "original_data_index": 3312, "original_sql": "SELECT Model FROM car_names WHERE \"MakeId\" != 94 OR Model != \"amc\" OR Make = \"oldsmobile cutlass ls\" UNION SELECT Model FROM model_list WHERE \"Maker\" < 4 AND Model = \"toyota\""} {"question": "What are the IDs of albums with an ID of 185 or higher, excluding the album titled \"Alcohol Fueled Brewtality Live! [Disc 1]\", and also the IDs of media types that are \"AAC audio file\" or have an ID greater than 1?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166], "data": [["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_7h29e_347.png", "TableImg_S46tq_5.png"], "original_data_index": 3313, "original_sql": "SELECT id FROM albums WHERE \"id\" >= 185 AND title != \"Alcohol Fueled Brewtality Live! [Disc 1]\" UNION ALL SELECT id FROM media_types WHERE name = \"AAC audio file\" OR \"id\" > 1"} {"question": "Which driver IDs are greater than 11, and also include driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ycemd_12.png", "TableImg_G5sgs_5.png"], "original_data_index": 3319, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 3) and the school bus table (with driver ID 10)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E801b_12.png", "TableImg_70cg6_5.png"], "original_data_index": 3317, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which vehicle IDs are used in lessons that are not lesson ID 9 and have a vehicle ID less than 2, or are completed, or have a staff ID less than 8, but are not used in trucks with vehicle IDs greater than 1?", "answer": {"columns": ["vehicle_id"], "index": [0], "data": [["1"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_Rfhdp_15.png", "TableImg_Nezxr_3.png"], "original_data_index": 3316, "original_sql": "SELECT vehicle_id FROM Lessons WHERE \"lesson_id\" != 9 AND \"vehicle_id\" < 2 OR lesson_status_code = \"Completed\" OR \"staff_id\" < 8 EXCEPT SELECT vehicle_id FROM Vehicles WHERE vehicle_details = \"Truck\" AND \"vehicle_id\" > 1"} {"question": "What are the ranks from the match results where \"Big_Silver\" is not 6 or \"Bronze\" is not 10 and \"Gold\" is greater than 13, combined with the ranks from players who are ranked \"3rd\" and have 2353 votes, or whose occupation isn't \"Student\", or whose sponsor name isn't \"Kildonan\u2014St. Paul\" and don't live in \"Brandon\" and are male?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["2nd"], ["3rd"], ["1st"], ["2nd"], ["1st"], ["2nd"], ["4th"], ["2nd"], ["3rd"], ["2nd"], ["1st"], ["1st"], ["3rd"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_4n03l_6.png", "TableImg_Vc4pw_14.png"], "original_data_index": 3318, "original_sql": "SELECT Rank FROM match_result WHERE \"Big_Silver\" <> 6 OR \"Bronze\" <> 10 AND \"Gold\" > 13 UNION ALL SELECT Rank FROM player WHERE Rank = \"3rd\" AND \"Votes\" = 2353 OR Occupation <> \"Student\" OR Sponsor_name != \"Kildonan\u2014St. Paul\" AND Residence <> \"Brandon\" AND Gender = \"M\""} {"question": "What are the aircraft IDs that are not 2 and are in the aircraft table, but not in the airport_aircraft table with IDs less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_73mpx_5.png", "TableImg_Lv667_4.png"], "original_data_index": 3322, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which aircraft IDs are not equal to 5, but are not present in the airport_aircraft table with an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3eznd_5.png", "TableImg_Cwp7j_4.png"], "original_data_index": 3321, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the IDs of male students in Baltimore or students whose last name isn't Pang or student 1034, who also have allergies other than cats?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Dezci_59.png", "TableImg_V8xsu_34.png"], "original_data_index": 3323, "original_sql": "SELECT StuID FROM Has_Allergy WHERE Allergy <> \"Cat\" INTERSECT SELECT StuID FROM Student WHERE Sex = \"M\" AND city_code = \"BAL\" OR LName <> \"Pang\" OR \"StuID\" = 1034"} {"question": "What are the names of the contestants whose number is 2 or less, combined with the names of all contestants except contestant number 10?", "answer": {"columns": ["contestant_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["Edwina Burnam"], ["Tabatha Gehling"], ["Edwina Burnam"], ["Tabatha Gehling"], ["Kelly Clauss"], ["Jessie Alloway"], ["Alana Bregman"], ["Jessie Eichman"], ["Allie Rogalski"], ["Nita Coster"], ["Kurt Walser"], ["Loraine NygrenTania Mattioli"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_0xcsd_11.png", "TableImg_Rgc3p_11.png"], "original_data_index": 3320, "original_sql": "SELECT contestant_name FROM CONTESTANTS WHERE \"contestant_number\" <= 2 UNION ALL SELECT contestant_name FROM CONTESTANTS WHERE \"contestant_number\" != 10"} {"question": "What are the driver IDs that are greater than or equal to 1 in the driver table, combined with the driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nsuox_12.png", "TableImg_Rtvlo_5.png"], "original_data_index": 3328, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs that are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 2 from the first table and aircraft ID 5 from the second?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C37yt_5.png", "TableImg_98fdf_4.png"], "original_data_index": 3327, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the aircraft IDs that are less than or equal to 1, but not aircraft IDs greater than 5, considering only the aircraft IDs?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dqilh_5.png", "TableImg_Xwcxx_4.png"], "original_data_index": 3329, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the driver IDs that are either 4 or less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uo5vo_12.png", "TableImg_2w1c0_5.png"], "original_data_index": 3324, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are either 12 or greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tsk72_12.png", "TableImg_0iebf_5.png"], "original_data_index": 3330, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs that are less than 9 and also appear in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7vhse_12.png", "TableImg_Xiznb_5.png"], "original_data_index": 3331, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs that are both less than or equal to 5 and also equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_68su7_5.png", "TableImg_09k08_4.png"], "original_data_index": 3332, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are greater than 6 but not present in the school bus table with driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6cgjx_12.png", "TableImg_Nl5bh_5.png"], "original_data_index": 3333, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the IDs of people who are at least 193cm tall, but not player IDs greater than 7?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Xu4ze_7.png", "TableImg_Yovd1_5.png"], "original_data_index": 3334, "original_sql": "SELECT People_ID FROM people WHERE \"Height\" >= 193.0 EXCEPT SELECT People_ID FROM poker_player WHERE \"People_ID\" > 7"} {"question": "What is the minimum number of transit passengers and the corresponding aircraft ID for each airport?", "answer": {"columns": ["MIN(T1.Transit_Passengers)", "ID"], "index": [0], "data": [["38458", "4"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Ppzcq_10.png", "TableImg_G8v5h_4.png"], "original_data_index": 3335, "original_sql": "SELECT MIN(T1.Transit_Passengers), T2.ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "What are the aircraft IDs that appear in both the aircraft table with an ID greater than 2 and the airport_aircraft table with an ID of 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Et3hc_5.png", "TableImg_Obfy1_4.png"], "original_data_index": 3336, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the driver IDs that are not 1 and are present in both the driver and school bus tables, with the driver ID being 4 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4af3t_12.png", "TableImg_1peml_5.png"], "original_data_index": 3337, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the names of feature types that have the code \"Amenity\" but are not \"Securiyt, eg Burglar Alarm.\", and also either do not have the code \"Amenity\" or are \"Amenity, eg Pool.\"?", "answer": {"columns": ["feature_type_name"], "index": [0], "data": [["Amenity, eg Pool."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_3t302_2.png", "TableImg_Yt5rj_2.png"], "original_data_index": 3338, "original_sql": "SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code = \"Amenity\" AND feature_type_name != \"Securiyt, eg Burglar Alarm.\" INTERSECT SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code != \"Amenity\" OR feature_type_name = \"Amenity, eg Pool.\""} {"question": "What are the driver IDs that are both less than or equal to 5 in the driver table and less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V6iuy_12.png", "TableImg_Bk0az_5.png"], "original_data_index": 3339, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are at least 4, or the driver IDs that are at most 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9n8z6_12.png", "TableImg_Gr30k_5.png"], "original_data_index": 3340, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are both less than 8 and also not equal to 10, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M5d9i_12.png", "TableImg_Rt4m4_5.png"], "original_data_index": 3341, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are not equal to 9 and are not present in the school bus table with driver IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Igpsg_12.png", "TableImg_8vx7a_5.png"], "original_data_index": 3345, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that are both greater than or equal to 3 and also equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1pfr6_5.png", "TableImg_Fpps3_4.png"], "original_data_index": 3342, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are not equal to 2 but are not also driver IDs for school buses with driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_37jki_12.png", "TableImg_X6vk6_5.png"], "original_data_index": 3344, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that are not 4, and also the aircraft IDs that are 3 or less, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ck7wu_5.png", "TableImg_4wddh_4.png"], "original_data_index": 3343, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are greater than 11 but not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ahtj_12.png", "TableImg_2r4r9_5.png"], "original_data_index": 3347, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are less than 11, and also the driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1zv8l_12.png", "TableImg_Bu85b_5.png"], "original_data_index": 3346, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Su3rp_12.png", "TableImg_30c0w_5.png"], "original_data_index": 3348, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs, excluding driver ID 1, are present in both the driver and school bus tables, and where the school bus table specifically has driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2graa_12.png", "TableImg_Qaxpe_5.png"], "original_data_index": 3349, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs, excluding ID 9, that are present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lsdiz_12.png", "TableImg_1rxdr_5.png"], "original_data_index": 3352, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which member IDs and branch IDs are associated with branches other than branch 6, and also which member IDs and branch IDs are associated with purchases where the member ID is 2 or less?", "answer": {"columns": ["Member_ID", "Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1", "1"], ["1", "3"], ["2", "2"], ["2", "3"], ["2", "4"], ["2", "5"], ["3", "1"], ["4", "1"], ["5", "5"], ["7", "2"], ["8", "8"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_37qjc_8.png", "TableImg_Zinqp_8.png"], "original_data_index": 3351, "original_sql": "SELECT Member_ID, Branch_ID FROM membership_register_branch WHERE Branch_ID <> \"6\" UNION SELECT Member_ID, Branch_ID FROM purchase WHERE \"Member_ID\" <= 2"} {"question": "What are the aircraft IDs that are equal to 4 in the aircraft table, but not aircraft IDs less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T3iqj_5.png", "TableImg_Czutv_4.png"], "original_data_index": 3350, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the names of aircraft and their total distances, excluding Airbus A340-300 if the distance is not 30, and also excluding British Aerospace Jetstream 41 if the distance is less than or equal to 6475 and aid is 8, where the total distance is no more than 8430 or not equal to 4103, respectively?", "answer": {"columns": ["name", "SUM(distance)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Airbus A319", "1805"], ["Airbus A320", "2605"], ["Boeing 727", "1504"], ["Boeing 737-800", "3383"], ["Boeing 747-400", "8430"], ["Boeing 757-300", "4010"], ["Boeing 767-400ER", "6475"], ["Boeing 777-300", "6441"], ["British Aerospace Jetstream 41", "1502"], ["Embraer ERJ-145", "1530"], ["Lockheed L1011", "6900"], ["Piper Archer III", "520"], ["SAAB 340", "2128"], ["Schwitzer 2-33", "30"], ["Tupolev 154", "4103"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_6jezu_16.png", "TableImg_Kjtq1_16.png"], "original_data_index": 3353, "original_sql": "SELECT name, SUM(distance) FROM aircraft WHERE name != \"Airbus A340-300\" OR \"distance\" = 30 GROUP BY name HAVING SUM(distance) <= 8430 UNION SELECT name, SUM(distance) FROM aircraft WHERE \"distance\" <= 6475 AND \"aid\" = 8 AND name <> \"British Aerospace Jetstream 41\" GROUP BY name HAVING SUM(distance) <> 4103"} {"question": "What are the aircraft IDs that appear in the 'aircraft' table with an ID greater than or equal to 1, combined with the aircraft IDs from the 'airport_aircraft' table that have an ID greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_27q4s_5.png", "TableImg_E6swb_4.png"], "original_data_index": 3354, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are not 4, and which driver ID is 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_14lz4_12.png", "TableImg_11719_5.png"], "original_data_index": 3356, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that are not 1 and are also present in the airport aircraft table, excluding aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X3hjl_5.png", "TableImg_B6j6d_4.png"], "original_data_index": 3357, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are greater than or equal to 8 but are not driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7cvgi_12.png", "TableImg_J4zr5_5.png"], "original_data_index": 3355, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs, excluding driver ID 8, from the driver table, and also the driver IDs, excluding driver ID 3, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qgn7n_12.png", "TableImg_3u8bk_5.png"], "original_data_index": 3359, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the document IDs and draft numbers from the Circulation History where the draft number is less than 20, combined with the document IDs and draft numbers from Document Drafts where the draft number is greater than 9?", "answer": {"columns": ["document_id", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1", "2"], ["2", "1"], ["7", "10"], ["10", "20"], ["12", "11"], ["12", "12"], ["13", "16"], ["14", "14"], ["17", "19"], ["20", "17"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_Cip8i_4.png", "TableImg_D5e3j_15.png"], "original_data_index": 3358, "original_sql": "SELECT document_id, draft_number FROM Circulation_History WHERE \"draft_number\" < 20 UNION SELECT document_id, draft_number FROM Document_Drafts WHERE \"draft_number\" > 9"} {"question": "What are the driver IDs that are less than 4 and also appear in the school bus table with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Niyof_12.png", "TableImg_Mxq9v_5.png"], "original_data_index": 3361, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are not equal to 3, but are not also aircraft IDs that are less than or equal to 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xkwno_5.png", "TableImg_Hrsk4_4.png"], "original_data_index": 3362, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs, excluding ID 6, are present in both the driver and school bus tables, excluding ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Luu32_12.png", "TableImg_Obqfg_5.png"], "original_data_index": 3363, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are less than 11 but not found in the school bus table with driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2mu4c_12.png", "TableImg_5qvzy_5.png"], "original_data_index": 3360, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are not equal to 7 but are not present in the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H5bgg_12.png", "TableImg_Sdogr_5.png"], "original_data_index": 3365, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are less than or equal to 12 but not present in the school bus table with IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ob3zb_12.png", "TableImg_4mwq2_5.png"], "original_data_index": 3364, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z3q8b_12.png", "TableImg_Ib7ac_5.png"], "original_data_index": 3366, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs, excluding driver ID 6, and also driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tt6jr_12.png", "TableImg_Zzdw4_5.png"], "original_data_index": 3367, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are either greater than or equal to 12 in the driver table or greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Grq4k_12.png", "TableImg_261b6_5.png"], "original_data_index": 3371, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are less than 7 and also greater than or equal to 3, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ib3v_12.png", "TableImg_Dpj5x_5.png"], "original_data_index": 3369, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the document IDs from the drafts where the draft details are \"m\" or the draft number isn't 19 and the document ID is greater than 17, along with the document IDs from the mailed documents where the address ID isn't 5 and the document ID isn't 12?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["7"], ["20"], ["23"], ["2"], ["4"], ["4"], ["10"], ["13"], ["20"], ["20"], ["23"], ["24"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_G5rgh_15.png", "TableImg_Ce1oj_14.png"], "original_data_index": 3370, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details = \"m\" OR \"draft_number\" != 19 AND \"document_id\" > 17 UNION ALL SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" != 5 AND \"document_id\" != 12"} {"question": "What are the party names, party IDs, and lieutenant governors for parties that are not \"Working Families\" and don't have \"Charles Schumer\" in the US Senate, or have \"Betsy McCaughey Ross\" as governor, \"Sandra Frankel\" as lieutenant governor, and a comptroller other than \"Alan Hevesi\"? Also, what are the party names, party IDs, and lieutenant governors for parties with \"David Paterson\" as lieutenant governor, or where the year is after 2002 and the party is \"Working Families\", or have \"Betsy McCaughey Ross\" as governor?", "answer": {"columns": ["Party", "Party_ID", "Lieutenant_Governor"], "index": [0, 1, 2, 3, 4, 5], "data": [["Democratic", "3", "Dennis Mehiel"], ["Democratic", "5", "David Paterson"], ["Independence", "4", "Mary Donohue"], ["Independence", "6", "David Paterson"], ["Liberal", "2", "Jonathan Reiter"], ["Working Families", "7", "David Paterson"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Asa9a_7.png", "TableImg_9e673_7.png"], "original_data_index": 3368, "original_sql": "SELECT Party, Party_ID, Lieutenant_Governor FROM party WHERE Party != \"Working Families\" AND US_Senate <> \"Charles Schumer\" OR Governor = \"Betsy McCaughey Ross\" AND Comptroller <> \"Alan Hevesi\" AND Lieutenant_Governor = \"Sandra Frankel\" UNION SELECT Party, Party_ID, Lieutenant_Governor FROM party WHERE Lieutenant_Governor = \"David Paterson\" OR \"Year\" > 2002.0 AND Party = \"Working Families\" OR Governor = \"Betsy McCaughey Ross\""} {"question": "What are the aircraft IDs that are both greater than or equal to 1 in the aircraft table and equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z2hsj_5.png", "TableImg_Ntlzr_4.png"], "original_data_index": 3372, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the driver IDs that are either at least 3 or less than 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7n6w4_12.png", "TableImg_Ngqv3_5.png"], "original_data_index": 3374, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that are both greater than or equal to 1 in the aircraft table and less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pm27f_5.png", "TableImg_9fpnj_4.png"], "original_data_index": 3373, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are greater than 3, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nhd6l_12.png", "TableImg_9t172_5.png"], "original_data_index": 3375, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are greater than or equal to 4, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2236u_12.png", "TableImg_Dhpde_5.png"], "original_data_index": 3376, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs that are greater than or equal to 6 and also less than or equal to 10, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9myjn_12.png", "TableImg_Xo1sq_5.png"], "original_data_index": 3377, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are either 3 or less than or equal to 3 in the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rg7ji_12.png", "TableImg_1dilj_5.png"], "original_data_index": 3378, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the continent IDs and names for continents with IDs less than 2, and also for continents with IDs less than 1 and the name \"asia\"?", "answer": {"columns": ["ContId", "Continent"], "index": [0], "data": [["1", "america"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_Yvj67_5.png", "TableImg_19fr3_5.png"], "original_data_index": 3380, "original_sql": "SELECT ContId, Continent FROM continents WHERE \"ContId\" < 2 UNION SELECT ContId, Continent FROM continents WHERE \"ContId\" < 1 AND Continent = \"asia\""} {"question": "Which driver IDs are not 5 from the driver table, combined with driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C7vp9_12.png", "TableImg_Wuopn_5.png"], "original_data_index": 3379, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the average club name and start year, grouped by region, for clubs in France that started before 2001, combined with the average club name and start year, grouped by region, for clubs that started in or before 2009, or have a club ID of 5 or greater, or are not located in Korea and are not named BK H\u00e4cken?", "answer": {"columns": ["AVG(Club_name)", "AVG(Start_year)", "Region"], "index": [0, 1], "data": [["", "", ""], ["0.0", "2004.0", "USA"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Oho0o_6.png", "TableImg_I4lau_6.png"], "original_data_index": 3381, "original_sql": "SELECT AVG(Club_name), AVG(Start_year), Region FROM club WHERE \"Start_year\" < 2001 AND Region = \"France\" UNION SELECT AVG(Club_name), AVG(Start_year), Region FROM club WHERE \"Start_year\" <= 2009 OR \"Club_ID\" >= 5 OR Region <> \"Korea\" AND Club_name != \"BK H\u00e4cken\""} {"question": "What are all the template type descriptions and codes, excluding those described as \"Book\", and also excluding those described as \"Advertisement\" or with the code \"AD\"?", "answer": {"columns": ["Template_Type_Description", "Template_Type_Code"], "index": [0, 1, 2, 3, 4], "data": [["Advertisement", "AD"], ["Book", "BK"], ["CV", "CV"], ["Paper", "PP"], ["Presentation", "PPT"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_H9gat_5.png", "TableImg_Fnhj6_5.png"], "original_data_index": 3384, "original_sql": "SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description <> \"Book\" UNION SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description <> \"Advertisement\" OR Template_Type_Code != \"AD\""} {"question": "What are the driver IDs, excluding driver ID 3, and also the driver IDs greater than 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eyiv2_12.png", "TableImg_D7xr1_5.png"], "original_data_index": 3383, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the property IDs and descriptions of features that are not \"dolorem\", combined with the property IDs and descriptions of features where the feature ID is 2 or the description is not \"corrupti\"?", "answer": {"columns": ["property_id", "property_feature_description"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "ad"], ["3", "cumque"], ["4", "odio"], ["6", "corrupti"], ["6", "doloribus"], ["6", "et"], ["6", "illo"], ["7", "hic"], ["9", "quo"], ["11", "vitae"], ["12", "earum"], ["13", "autem"], ["14", "modi"], ["14", "quo"], ["15", "dolorem"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Tgiym_15.png", "TableImg_Gghip_15.png"], "original_data_index": 3382, "original_sql": "SELECT property_id, property_feature_description FROM Other_Property_Features WHERE property_feature_description <> \"dolorem\" UNION SELECT property_id, property_feature_description FROM Other_Property_Features WHERE \"feature_id\" = 2 OR property_feature_description != \"corrupti\""} {"question": "What are the maximum gross weights of aircraft that either don't have a total disk area of \"872 ft\u00b2 (81.1 m\u00b2)\", or don't have a maximum gross weight of \"50,000 lb (22,680 kg)\" and aren't a \"Robinson R-22\", or don't have a description of \"Heavy-lift helicopter\", or have a maximum disk loading of \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\", or don't have an Aircraft_ID of 3, combined with the maximum gross weights of aircraft that either don't have a maximum gross weight of \"1,370 lb (635 kg)\" and have a maximum disk loading of \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\", or don't have a description of \"Tandem rotor helicopter\", or have an Aircraft_ID greater than 5?", "answer": {"columns": ["Max_Gross_Weight"], "index": [0, 1, 2, 3, 4], "data": [["1,370 lb (635 kg)"], ["123,500 lb (56,000 kg)"], ["3,200 lb (1,451 kg)"], ["50,000 lb (22,680 kg)"], ["73,500 lb (33,300 kg)"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Xljg3_5.png", "TableImg_Trr4u_5.png"], "original_data_index": 3385, "original_sql": "SELECT Max_Gross_Weight FROM aircraft WHERE Total_disk_area != \"872 ft\u00b2 (81.1 m\u00b2)\" OR Max_Gross_Weight <> \"50,000 lb (22,680 kg)\" AND Aircraft != \"Robinson R-22\" OR Description <> \"Heavy-lift helicopter\" OR Max_disk_Loading = \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" OR \"Aircraft_ID\" <> 3 UNION SELECT Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight <> \"1,370 lb (635 kg)\" AND Max_disk_Loading = \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\" OR Description != \"Tandem rotor helicopter\" OR \"Aircraft_ID\" > 5"} {"question": "Which driver IDs are less than or equal to 9, and also include driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7aifh_12.png", "TableImg_Hmh99_5.png"], "original_data_index": 3387, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs less than 4, and also any aircraft IDs that are not 2, considering data from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_81ldw_5.png", "TableImg_Akvfi_4.png"], "original_data_index": 3389, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the counts of each sex, the sum of first names, the maximum last names, city codes, ages, student IDs, and majors for students where the city code is not \"ROC\" or the age is greater than 18 and the student ID is less than 1012 and the sex is not \"M\" or the last name is not \"Prater\", combined with the counts of each sex, the sum of first names, the maximum last names, city codes, ages, student IDs, and majors for students where the student ID is less than 1019 and the sex is \"M\"?", "answer": {"columns": ["COUNT(Sex)", "SUM(Fname)", "MAX(LName)", "city_code", "Age", "StuID", "Major"], "index": [0, 1], "data": [["11", "0", "Wilson", "LON", "27", "1017", "600"], ["34", "0", "Woods", "PHL", "17", "1022", "540"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Gc15v_34.png", "TableImg_W4iag_34.png"], "original_data_index": 3386, "original_sql": "SELECT COUNT(Sex), SUM(Fname), MAX(LName), city_code, Age, StuID, Major FROM Student WHERE city_code <> \"ROC\" OR \"Age\" > 18 AND \"StuID\" < 1012 AND Sex <> \"M\" OR LName != \"Prater\" UNION SELECT COUNT(Sex), SUM(Fname), MAX(LName), city_code, Age, StuID, Major FROM Student WHERE \"StuID\" < 1019 AND Sex = \"M\""} {"question": "What are the template IDs from the 'Documents' table where the document description isn't \"y\" and other details are \"None\", or where the document ID is less than or equal to 801801, or where the document name is \"Data base\" and the template ID isn't 8? Also, what are the template IDs from the 'Templates' table where the template details are empty, or where the effective start date is \"2005-02-20 00:31:34\" and the effective end date is \"2008-01-05 14:19:28\" and the version number isn't 7? Combine these results.", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "data": [["7"], ["25"], ["6"], ["20"], ["14"], ["11"], ["10"], ["14"], ["1"], ["22"], ["21"], ["4"], ["0"], ["1"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["14"], ["15"], ["16"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_3on9m_15.png", "TableImg_Rifme_20.png"], "original_data_index": 3388, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Description != \"y\" AND Other_Details = \"None\" OR \"Document_ID\" <= 801801 OR Document_Name = \"Data base\" AND \"Template_ID\" != 8 UNION ALL SELECT Template_ID FROM Templates WHERE Template_Details = \"\" OR Date_Effective_From = \"2005-02-20 00:31:34\" AND Date_Effective_To = \"2008-01-05 14:19:28\" AND \"Version_Number\" != 7"} {"question": "What are the driver IDs that are less than 9, appearing in either the driver or school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3nap0_12.png", "TableImg_Npmw9_5.png"], "original_data_index": 3390, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are less than or equal to 12, excluding those that are not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K750t_12.png", "TableImg_Vru73_5.png"], "original_data_index": 3391, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are greater than or equal to 4 and also appear in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mtsim_12.png", "TableImg_Wk2k5_5.png"], "original_data_index": 3392, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the book IDs, prices, publishers, publication dates, and publication IDs for publications that don't have a publication ID of 7, a book ID of 3, or a publication date of April 2007, combined with those that don't have a price of 3000000.0 or a publisher of Wiley?", "answer": {"columns": ["Book_ID", "Price", "Publisher", "Publication_Date", "Publication_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "15000000", "Pearson", "August 2008", "1"], ["3", "6000000", "Thomson Reuters", "March 2008", "2"], ["4", "4100000", "Wiley", "June 2006", "3"], ["5", "3000000", "Wiley", "October 2005", "4"], ["7", "3000000", "Springer Nature", "August 2008", "5"], ["9", "2000000", "Pearson", "March 2007", "6"], ["10", "2000000", "Bertelsmann", "April 2007", "7"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_Wmcuf_7.png", "TableImg_8z165_7.png"], "original_data_index": 3393, "original_sql": "SELECT Book_ID, Price, Publisher, Publication_Date, Publication_ID FROM publication WHERE \"Publication_ID\" <> 7 OR \"Book_ID\" <> 3 OR Publication_Date != \"April 2007\" UNION SELECT Book_ID, Price, Publisher, Publication_Date, Publication_ID FROM publication WHERE \"Price\" != 3000000.0 AND Publisher <> \"Wiley\""} {"question": "What are the road address, city, and membership amount for branches that are not located on \"Valleys Place\" and have a Branch ID of 5 or greater, and also for branches that are not on \"Abbott Street\" or have a Branch ID of 4 or have a name that is not \"Brooke Greville\"?", "answer": {"columns": ["Address_road", "City", "membership_amount"], "index": [0, 1, 2, 3], "data": [["Brampton Road", "London", "1418"], ["Cecilia Avenue", "Oxford", "56"], ["Concord Road", "London", "91"], ["Glebe Street", "Oxford", "31"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Fv548_8.png", "TableImg_Gfx32_8.png"], "original_data_index": 3394, "original_sql": "SELECT Address_road, City, membership_amount FROM branch WHERE Address_road <> \"Valleys Place\" AND \"Branch_ID\" >= 5 INTERSECT SELECT Address_road, City, membership_amount FROM branch WHERE Address_road != \"Abbott Street\" OR \"Branch_ID\" = 4 OR Name != \"Brooke Greville\""} {"question": "What are the driver IDs that are equal to 5, but not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L4u0b_12.png", "TableImg_Kkzee_5.png"], "original_data_index": 3397, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs that are either less than or equal to 10 from the driver table, or less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Haedx_12.png", "TableImg_Zxlqa_5.png"], "original_data_index": 3396, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the album IDs that are either less than or equal to 93 or the media type IDs that are not \"AAC audio file\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_Snpnq_347.png", "TableImg_Dbl2u_5.png"], "original_data_index": 3395, "original_sql": "SELECT id FROM albums WHERE \"id\" <= 93 UNION SELECT id FROM media_types WHERE name <> \"AAC audio file\""} {"question": "What are the aircraft, their descriptions, the sum of their maximum disk loading, the minimum total disk area, and their maximum gross weight, excluding those with a maximum gross weight of 1,370 lb (635 kg) or a total disk area of 5,655 ft\u00b2 (526 m\u00b2), but including those that don't have a total disk area of 8,495 ft\u00b2 (789 m\u00b2) and don't meet any of these criteria: Aircraft ID greater than or equal to 4, a maximum disk loading not equal to 3.7 lb/ft\u00b2 (18 kg/m\u00b2), a maximum gross weight not equal to 73,500 lb (33,300 kg), a description not equal to \"Heavy-lift helicopter\", or an aircraft name not equal to \"Bell 206B3 JetRanger\"?", "answer": {"columns": ["Aircraft", "Description", "SUM(Max_disk_Loading)", "MIN(Total_disk_area)", "Max_Gross_Weight"], "index": [0], "data": [["CH-53E Super Stallion", "Heavy-lift helicopter", "33.2", "4,900 ft\u00b2 (460 m\u00b2)", "73,500 lb (33,300 kg)"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_8plh7_5.png", "TableImg_W2p7y_5.png"], "original_data_index": 3398, "original_sql": "SELECT Aircraft, Description, SUM(Max_disk_Loading), MIN(Total_disk_area), Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight <> \"1,370 lb (635 kg)\" AND Total_disk_area <> \"5,655 ft\u00b2 (526 m\u00b2)\" EXCEPT SELECT Aircraft, Description, SUM(Max_disk_Loading), MIN(Total_disk_area), Max_Gross_Weight FROM aircraft WHERE Total_disk_area <> \"8,495 ft\u00b2 (789 m\u00b2)\" AND \"Aircraft_ID\" >= 4 OR Max_disk_Loading != \"3.7 lb/ft\u00b2 (18 kg/m\u00b2)\" OR Max_Gross_Weight != \"73,500 lb (33,300 kg)\" OR Description != \"Heavy-lift helicopter\" OR Aircraft <> \"Bell 206B3 JetRanger\""} {"question": "What are the driver IDs that are both less than or equal to 7 and also not equal to 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U2met_12.png", "TableImg_Sm2wt_5.png"], "original_data_index": 3402, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs, excluding driver ID 6, from the driver table, combined with the driver IDs, excluding driver ID 10, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rk87j_12.png", "TableImg_2rrdi_5.png"], "original_data_index": 3401, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which school IDs are for schools not in New York City, or in 4th grade, or not Private Catholic, or with a school ID less than or equal to 3 and not Punahou School, but are not associated with a driver ID less than or equal to 4 in the school bus table?", "answer": {"columns": ["School_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_Lo2ka_7.png", "TableImg_Hkdx4_5.png"], "original_data_index": 3400, "original_sql": "SELECT School_ID FROM school WHERE Location != \"New York City\" OR Grade = \"4th grade\" OR Type <> \"Private Catholic\" OR \"School_ID\" <= 3 AND School != \"Punahou School\" EXCEPT SELECT School_ID FROM school_bus WHERE \"Driver_ID\" <= 4"} {"question": "What are the continent, the alphabetically first country name, and the country ID for countries, considering either countries that are not Australia or have a continent value less than or equal to 1, or countries with a country ID less than 3 or a country name that is not Italy?", "answer": {"columns": ["Continent", "MIN(CountryName)", "CountryId"], "index": [0, 1], "data": [["1", "brazil", "15"], ["5", "australia", "11"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_B06ss_15.png", "TableImg_E0h91_15.png"], "original_data_index": 3399, "original_sql": "SELECT Continent, MIN(CountryName), CountryId FROM countries WHERE CountryName != \"australia\" OR \"Continent\" <= 1 UNION SELECT Continent, MIN(CountryName), CountryId FROM countries WHERE \"CountryId\" < 3 OR CountryName <> \"italy\""} {"question": "What are the driver IDs that are either greater than or equal to 3 in the driver table or not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4smfu_12.png", "TableImg_9m86b_5.png"], "original_data_index": 3403, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the names and numbers of contestants whose number is 11 or greater, and also the names and numbers of contestants named \"Loraine NygrenTania Mattioli\" with a number greater than 6?", "answer": {"columns": ["contestant_name", "contestant_number"], "index": [0], "data": [["Loraine NygrenTania Mattioli", "11"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Gdh13_11.png", "TableImg_Qs4xv_11.png"], "original_data_index": 3406, "original_sql": "SELECT contestant_name, contestant_number FROM CONTESTANTS WHERE \"contestant_number\" >= 11 UNION SELECT contestant_name, contestant_number FROM CONTESTANTS WHERE \"contestant_number\" > 6 AND contestant_name = \"Loraine NygrenTania Mattioli\""} {"question": "What are the IDs of features that either have an ID of 2 or greater, or are not security features and are named \"AirCon\", or have a description that is not \"Air Conditioning.\", and also the IDs of property features that don't have the description \"odio\" and are not associated with property ID 15?", "answer": {"columns": ["feature_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["2"], ["3"], ["4"], ["4"], ["2"], ["2"], ["3"], ["4"], ["2"], ["4"], ["3"], ["3"], ["3"], ["2"], ["2"], ["4"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_E563p_3.png", "TableImg_Wymzl_15.png"], "original_data_index": 3404, "original_sql": "SELECT feature_id FROM Other_Available_Features WHERE \"feature_id\" >= 2 OR feature_type_code <> \"Security\" AND feature_name = \"AirCon\" OR feature_description != \"Air Conditioning.\" UNION ALL SELECT feature_id FROM Other_Property_Features WHERE property_feature_description != \"odio\" AND \"property_id\" <> 15"} {"question": "Which player IDs meet at least one of the following conditions: their sponsor is not \"Charleswood\u2014St. James\u2014Assiniboia\", their occupation is \"Parliamentarian\" and their rank is not \"2nd\" and they have 8734 votes, or their residence is not \"Birtle\", and are also associated with a coach ID of 1 or higher?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["10"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_1lqo8_14.png", "TableImg_00157_7.png"], "original_data_index": 3405, "original_sql": "SELECT Player_ID FROM player WHERE Sponsor_name <> \"Charleswood\u2014St. James\u2014Assiniboia\" OR Occupation = \"Parliamentarian\" AND Rank <> \"2nd\" AND \"Votes\" = 8734 OR Residence != \"Birtle\" INTERSECT SELECT Player_ID FROM player_coach WHERE \"Coach_ID\" >= 1"} {"question": "What are the driver IDs that are both greater than or equal to 6 and also not equal to 7, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hi8c7_12.png", "TableImg_Y69cw_5.png"], "original_data_index": 3408, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the property type codes for properties that have certain features or details, excluding those with the property type \"Other\" and a description that isn't \"Apartment, Flat, Condo, etc.\"?", "answer": {"columns": ["property_type_code"], "index": [0], "data": [["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_2p32t_15.png", "TableImg_Ur5cv_5.png"], "original_data_index": 3407, "original_sql": "SELECT property_type_code FROM Properties WHERE hse_feature_2 != \"None\" OR fld_feature_2 != \"None\" OR hse_feature_3 <> \"None\" OR property_name = \"high line\" AND \"buyer_offered_price\" <> 3520911.5258 OR apt_feature_1 = \"fuga\" AND property_address = \"60845 Else Highway Apt. 826 South Dougfort, CO 43200-4258\" AND fld_feature_1 = \"None\" AND property_type_code != \"House\" AND oth_feature_3 = \"None\" AND fld_feature_3 = \"None\" OR shp_feature_3 <> \"None\" AND other_property_details <> \"None\" EXCEPT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code = \"Other\" AND property_type_description <> \"Apartment, Flat, Condo, etc.\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7 and driver ID 10 respectively?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ksgth_12.png", "TableImg_Nxelu_5.png"], "original_data_index": 3409, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are not 2 and also appear in the airport aircraft table with IDs less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Whw9c_5.png", "TableImg_5dvga_4.png"], "original_data_index": 3410, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the aircraft IDs greater than 4, combined with the aircraft IDs that are at least 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G3grk_5.png", "TableImg_Dlg1m_4.png"], "original_data_index": 3414, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "How many albums are there where the artist ID isn't 90 or the title isn't \"A TempestadeTempestade Ou O Livro Dos Dias\", excluding the number of Blues genres?", "answer": {"columns": ["COUNT(id)"], "index": [0], "data": [["347"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Okp6h_347.png", "TableImg_9ktzp_25.png"], "original_data_index": 3412, "original_sql": "SELECT COUNT(id) FROM albums WHERE \"artist_id\" != 90 OR title <> \"A TempestadeTempestade Ou O Livro Dos Dias\" EXCEPT SELECT COUNT(id) FROM genres WHERE name = \"Blues\""} {"question": "What are the document IDs from the Documents_Mailed table where the ID is 12 or greater, the mailing date isn't \"1979-09-21 10:30:52\", and the address ID is greater than 3, but not found in the Draft_Copies table with an ID less than 23?", "answer": {"columns": ["document_id"], "index": [0, 1, 2], "data": [["13"], ["14"], ["23"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Fvuos_14.png", "TableImg_Vqadl_8.png"], "original_data_index": 3415, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"document_id\" >= 12 AND mailing_date <> \"1979-09-21 10:30:52\" AND \"mailed_to_address_id\" > 3 EXCEPT SELECT document_id FROM Draft_Copies WHERE \"document_id\" < 23"} {"question": "What are the driver IDs that are less than 2, and also the driver IDs that are greater than 9, considering both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vpoir_12.png", "TableImg_Zg9j9_5.png"], "original_data_index": 3417, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs greater than 6 from the driver table, combined with the driver IDs less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xurh9_12.png", "TableImg_If4on_5.png"], "original_data_index": 3416, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are greater than 8 but not also driver IDs that are less than or equal to 4, considering only the driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qb6ge_12.png", "TableImg_X9vkw_5.png"], "original_data_index": 3418, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are less than 3, and which driver IDs are greater than 9, considering only the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A3gxn_12.png", "TableImg_4zfcj_5.png"], "original_data_index": 3419, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are greater than 5, excluding any driver ID that is equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z0ng9_12.png", "TableImg_85wvx_5.png"], "original_data_index": 3420, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are in the driver table, excluding driver ID 11, or are in the school bus table with driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mvjll_12.png", "TableImg_I1w30_5.png"], "original_data_index": 3421, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Give me the employee IDs and copy numbers for records where the document ID is 1 or the employee ID is less than 2 and the draft number is no more than 1, but exclude those records where the document ID is 2.", "answer": {"columns": ["employee_id", "copy_number"], "index": [0], "data": [["1", "5"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_2ic8j_4.png", "TableImg_Jsaa4_4.png"], "original_data_index": 3422, "original_sql": "SELECT employee_id, copy_number FROM Circulation_History WHERE \"document_id\" = 1 OR \"employee_id\" < 2 AND \"draft_number\" <= 1 EXCEPT SELECT employee_id, copy_number FROM Circulation_History WHERE \"document_id\" = 2"} {"question": "What are the aircraft IDs greater than 1 that are not present in the airport aircraft table with IDs not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lrlci_5.png", "TableImg_Su3x4_4.png"], "original_data_index": 3423, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the driver IDs less than 8 from the driver table, combined with the driver IDs greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iluvy_12.png", "TableImg_Hdrxh_5.png"], "original_data_index": 3424, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the ranking and maximum creation dates for departments, excluding those with ID 12, but not including any departments where the budget isn't 11.1 billion, the creation year isn't 1989, the ID isn't 8, the number of employees isn't 71436, or the name is \"State\"?", "answer": {"columns": ["Ranking", "MAX(Creation)"], "index": [0], "data": [["15", "2002"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Ffuqh_15.png", "TableImg_Sjlf9_15.png"], "original_data_index": 3425, "original_sql": "SELECT Ranking, MAX(Creation) FROM department WHERE \"Department_ID\" <> 12 EXCEPT SELECT Ranking, MAX(Creation) FROM department WHERE \"Budget_in_Billions\" <> 11.1 AND Creation = \"1989\" AND \"Department_ID\" != 8 AND \"Num_Employees\" != 71436.0 OR Name = \"State\""} {"question": "What are the driver IDs that are greater than or equal to 2 in the driver table, combined with the driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Efh78_12.png", "TableImg_Bs8m2_5.png"], "original_data_index": 3426, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs that are either less than or equal to 7, or not equal to 4, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Elkq0_12.png", "TableImg_Bw0g1_5.png"], "original_data_index": 3427, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs, excluding driver ID 1, that are present in both the driver and school bus tables, where the school bus driver ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zr4kf_12.png", "TableImg_Vpxb2_5.png"], "original_data_index": 3413, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are both less than or equal to 5 and also not equal to 3, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F0new_12.png", "TableImg_6d6an_5.png"], "original_data_index": 3430, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the driver IDs, excluding driver 12, that are present in both the driver and school bus tables, excluding driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rnq0d_12.png", "TableImg_Alvlb_5.png"], "original_data_index": 3428, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the years of working for school bus drivers who have worked for at least 2 years, and also for those who work at school ID 5 but are not full-time?", "answer": {"columns": ["Years_Working"], "index": [0, 1, 2, 3, 4], "data": [["10"], ["8"], ["6"], ["2"], ["3"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_Dh04b_5.png", "TableImg_Cy5ow_5.png"], "original_data_index": 3431, "original_sql": "SELECT Years_Working FROM school_bus WHERE \"Years_Working\" >= 2 UNION ALL SELECT Years_Working FROM school_bus WHERE \"School_ID\" = 5 AND If_full_time <> \"T\""} {"question": "What are all the draft numbers from the Document_Drafts table where the draft details are not \"k\", and also all draft numbers from the Draft_Copies table where the document ID is at least 2 and the draft number is greater than 17, or the copy number is not 15?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["0"], ["1"], ["8"], ["9"], ["10"], ["11"], ["12"], ["4"], ["16"], ["14"], ["19"], ["17"], ["9"], ["8"], ["9"], ["20"], ["1"], ["2"], ["12"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_Kodq1_15.png", "TableImg_1idri_8.png"], "original_data_index": 3429, "original_sql": "SELECT draft_number FROM Document_Drafts WHERE draft_details <> \"k\" UNION ALL SELECT draft_number FROM Draft_Copies WHERE \"document_id\" >= 2 AND \"draft_number\" > 17 OR \"copy_number\" <> 15"} {"question": "Which driver IDs are less than 11 but not present in the school bus table with driver IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W6wz5_12.png", "TableImg_Nec0t_5.png"], "original_data_index": 3432, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are less than or equal to 9, and also what are the driver IDs greater than 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_11048_12.png", "TableImg_Ijre0_5.png"], "original_data_index": 3433, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs, excluding driver ID 1, that are present in both the driver and school bus tables, where the driver ID is less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nnb35_12.png", "TableImg_C6kpo_5.png"], "original_data_index": 3436, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the IDs of people named Semen Poltavskiy or with a People_ID not equal to 3 or a height not equal to 207.0 and a birth date not equal to July 14, 1983, combined with the IDs of poker players with a Poker_Player_ID greater than or equal to 5 or a People_ID not equal to 5 or a Money_Rank less than 166.0 and a Best_Finish less than 1.0?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Ozh4t_7.png", "TableImg_Cnx09_5.png"], "original_data_index": 3434, "original_sql": "SELECT People_ID FROM people WHERE Name = \"Semen Poltavskiy\" OR \"People_ID\" <> 3 OR \"Height\" != 207.0 AND Birth_Date <> \"July 14, 1983\" UNION SELECT People_ID FROM poker_player WHERE \"Poker_Player_ID\" >= 5 OR \"People_ID\" != 5 OR \"Money_Rank\" < 166.0 AND \"Best_Finish\" < 1.0"} {"question": "Which club IDs meet either of these conditions: the club started in or after 2005 or the club name is not BK H\u00e4cken, or the club has at least 10 small silver medals, or the club has less than 102 points, or the club has 9 or fewer bronze medals, or the club has a gold medal count that is not 13 and the club ID is less than 3?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_I1bxc_6.png", "TableImg_07up2_6.png"], "original_data_index": 3435, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" >= 2005 OR Club_name <> \"BK H\u00e4cken\" UNION ALL SELECT Club_ID FROM match_result WHERE \"Small_Silver\" >= 10 OR \"Points\" < 102 OR \"Bronze\" <= 9 OR \"Gold\" <> 13 AND \"Club_ID\" < 3"} {"question": "Which driver IDs are greater than or equal to 12 but not found in the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3a4uj_12.png", "TableImg_C0bal_5.png"], "original_data_index": 3437, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the sum of Store IDs from the 'store' table where the store type is \"City Mall\", or the ranking is less than 10 and the area size is at least 28.74 and the store name is not \"Miramichi\", or the number of product categories is not 17811, or the store ID is not 4, excluding the sum of Store IDs from the 'store_product' table where the product ID is less than or equal to 1 and the store ID is less than or equal to 1?", "answer": {"columns": ["SUM(Store_ID)"], "index": [0], "data": [["15"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_92y2i_5.png", "TableImg_Dc1bc_15.png"], "original_data_index": 3438, "original_sql": "SELECT SUM(Store_ID) FROM store WHERE Type = \"City Mall\" OR \"Ranking\" < 10 AND \"Area_size\" >= 28.74 AND Store_Name <> \"Miramichi\" OR \"Number_of_product_category\" != 17811.0 OR \"Store_ID\" != 4 EXCEPT SELECT SUM(Store_ID) FROM store_product WHERE \"Product_ID\" <= 1 AND \"Store_ID\" <= 1"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 8 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tbsxn_12.png", "TableImg_Ark5s_5.png"], "original_data_index": 3441, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the aircraft IDs that are equal to 2 but not equal to 1, considering aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z2uzd_5.png", "TableImg_Qcbqb_4.png"], "original_data_index": 3440, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the driver IDs that are both less than or equal to 8 in the driver table and less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ny5mh_12.png", "TableImg_P3ldl_5.png"], "original_data_index": 3439, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are not equal to 4 and are not present in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Upxm5_12.png", "TableImg_U913d_5.png"], "original_data_index": 3442, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are both less than 12 and also equal to 9, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Co9t9_12.png", "TableImg_3jw3c_5.png"], "original_data_index": 3445, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that are greater than 4 and also less than or equal to 5, considering only the aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8uvj9_5.png", "TableImg_9vmbd_4.png"], "original_data_index": 3444, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the user IDs from reviews where the item ID is 7 or greater, or the rating is not 6 and the account ID is less than 4, combined with the user IDs from user accounts that are not named Nancy?", "answer": {"columns": ["u_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Jayt5_7.png", "TableImg_Bn0jy_7.png"], "original_data_index": 3443, "original_sql": "SELECT u_id FROM review WHERE \"i_id\" >= 7 OR \"rating\" != 6 AND \"a_id\" < 4 UNION SELECT u_id FROM useracct WHERE name != \"Nancy\""} {"question": "What is the lowest value in the 'other_details' column from the 'Documents' table where the shipping agent isn't \"UP\" and the receipt number isn't \"61\", combined with the lowest 'other_details' value from the 'Employees' table where the role is \"PT\" or the other details aren't \"v\"?", "answer": {"columns": ["MIN(other_details)"], "index": [0, 1], "data": [["b"], ["b"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Xpg21_15.png", "TableImg_Mhnd9_6.png"], "original_data_index": 3446, "original_sql": "SELECT MIN(other_details) FROM Documents WHERE shipping_agent_code != \"UP\" AND receipt_number <> \"61\" UNION ALL SELECT MIN(other_details) FROM Employees WHERE role_code = \"PT\" OR other_details != \"v\""} {"question": "Which driver IDs are less than or equal to 3 but are not present in the school bus table with driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y7qmg_12.png", "TableImg_Ua7rq_5.png"], "original_data_index": 3449, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are both less than or equal to 10 in the driver table and equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ooxp0_12.png", "TableImg_Kca59_5.png"], "original_data_index": 3451, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs that are greater than or equal to 4, excluding any aircraft IDs that are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_21z53_5.png", "TableImg_1pch0_4.png"], "original_data_index": 3447, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs are greater than 4 in the driver table, or are not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8ucht_12.png", "TableImg_0f9jw_5.png"], "original_data_index": 3448, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the driver IDs that are either 4 or greater, or 3 or less, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8j25v_12.png", "TableImg_Pttwe_5.png"], "original_data_index": 3453, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the aircraft IDs less than 4 from the aircraft table, combined with the aircraft IDs greater than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_W9sxi_5.png", "TableImg_Jqj8r_4.png"], "original_data_index": 3455, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the driver IDs that are both equal to 7 and less than 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N6w5o_12.png", "TableImg_Gceae_5.png"], "original_data_index": 3454, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the IDs of drivers who are either in the driver table or the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_008lj_12.png", "TableImg_Iulrk_5.png"], "original_data_index": 3456, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs less than 5 that are not present in the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xs5xm_5.png", "TableImg_S9mdn_4.png"], "original_data_index": 3457, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the area size, number of product categories, ranking, store name, and type for all stores, excluding Rogersville, and also for stores where the area size is not 7.23, the ranking is not 10, or the number of product categories is greater than 1678?", "answer": {"columns": ["Area_size", "Number_of_product_category", "Ranking", "Store_Name", "Type"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["179.84", "17811", "2", "Miramichi", "City Mall"], ["26.69", "1678", "3", "Neguac", "Village Store"], ["21.73", "990", "10", "Blackville", "Village Store"], ["28.74", "793", "9", "Doaktown", "City Mall"], ["179.84", "17811", "2", "Miramichi", "City Mall"], ["26.69", "1678", "3", "Neguac", "Village Store"], ["28.74", "793", "9", "Doaktown", "City Mall"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_Cqk09_5.png", "TableImg_Jfdb3_5.png"], "original_data_index": 3458, "original_sql": "SELECT Area_size, Number_of_product_category, Ranking, Store_Name, Type FROM store WHERE Store_Name != \"Rogersville\" UNION ALL SELECT Area_size, Number_of_product_category, Ranking, Store_Name, Type FROM store WHERE \"Area_size\" <> 7.23 AND \"Ranking\" <> 10 OR \"Number_of_product_category\" > 1678.0"} {"question": "What are the driver IDs that are equal to 5, excluding those driver IDs that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Leef5_12.png", "TableImg_L7v25_5.png"], "original_data_index": 3459, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the smallest value in the 'other_details' column from the 'Documents' table, excluding rows where 'receipt_number' is \"19\", and also the smallest value in the 'other_details' column from the 'Employees' table, excluding rows where 'employee_name' is \"Koby\" or 'other_details' is not \"f\"?", "answer": {"columns": ["MIN(other_details)"], "index": [0], "data": [["b"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_1qmmy_15.png", "TableImg_Z8m2i_6.png"], "original_data_index": 3461, "original_sql": "SELECT MIN(other_details) FROM Documents WHERE receipt_number != \"19\" INTERSECT SELECT MIN(other_details) FROM Employees WHERE employee_name != \"Koby\" OR other_details <> \"f\""} {"question": "What is the maximum earnings and the sum of People IDs for poker players where the Poker Player ID is less than or equal to 3 or the Final Table Made value is not 26, combined with the maximum earnings and the sum of People IDs for players where Final Table Made is 26, People ID is less than or equal to 5, and Money Rank is less than or equal to 154, or the Poker Player ID is less than or equal to 2?", "answer": {"columns": ["MAX(Earnings)", "SUM(People_ID)"], "index": [0, 1], "data": [["596462", "14"], ["476090", "3"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Wwzlf_5.png", "TableImg_Eis5k_5.png"], "original_data_index": 3460, "original_sql": "SELECT MAX(Earnings), SUM(People_ID) FROM poker_player WHERE \"Poker_Player_ID\" <= 3 OR \"Final_Table_Made\" <> 26.0 UNION ALL SELECT MAX(Earnings), SUM(People_ID) FROM poker_player WHERE \"Final_Table_Made\" = 26.0 AND \"People_ID\" <= 5 AND \"Money_Rank\" <= 154.0 OR \"Poker_Player_ID\" <= 2"} {"question": "What are the driver IDs, excluding driver ID 12, from the driver table, and also the driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ihr7_12.png", "TableImg_Ygexz_5.png"], "original_data_index": 3462, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs that are less than or equal to 9 and also appear in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qrn6j_12.png", "TableImg_56fkc_5.png"], "original_data_index": 3463, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are greater than 3 and also appear in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ynb8r_12.png", "TableImg_Iefnl_5.png"], "original_data_index": 3464, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are greater than or equal to 5, excluding those driver IDs that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kgyhc_12.png", "TableImg_Couok_5.png"], "original_data_index": 3465, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the aircraft IDs that are greater than or equal to 1 in the aircraft table, but not in the airport_aircraft table where the aircraft ID is less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7ms0k_5.png", "TableImg_B98eq_4.png"], "original_data_index": 3450, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the store IDs of stores that have a store ID of 2 or higher and are not named Blackville, or have a ranking of 10 or higher, or are not a City Mall? Also, what are the store IDs from any district with a district ID greater than 11?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["3"], ["4"], ["5"], ["1"], ["2"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Smn6x_5.png", "TableImg_Utu33_5.png"], "original_data_index": 3452, "original_sql": "SELECT Store_ID FROM store WHERE \"Store_ID\" >= 2 AND Store_Name != \"Blackville\" OR \"Ranking\" >= 10 OR Type != \"City Mall\" UNION ALL SELECT Store_ID FROM store_district WHERE \"District_ID\" > 11"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 12 from the driver table and driver IDs 3 and above from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_65z67_12.png", "TableImg_Vmpx3_5.png"], "original_data_index": 3466, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are less than 9, excluding any driver IDs from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mow06_12.png", "TableImg_Nzhcd_5.png"], "original_data_index": 3467, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are not equal to 3, but are not also driver IDs from school buses with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7lg1e_12.png", "TableImg_Hszv2_5.png"], "original_data_index": 3468, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which employee IDs are associated with copy numbers of 5 or more and not document ID 20, or employee IDs greater than 8? Also, include employee IDs where other details aren't \"f\", employee IDs are greater than 5, or the employee name isn't \"Haley\" or the role code isn't \"MG\"?", "answer": {"columns": ["employee_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["1"], ["2"], ["3"], ["5"], ["7"], ["8"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_7o3qh_4.png", "TableImg_Abj5t_6.png"], "original_data_index": 3469, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"copy_number\" >= 5 AND \"document_id\" != 20 OR \"employee_id\" > 8 UNION ALL SELECT employee_id FROM Employees WHERE other_details != \"f\" AND \"employee_id\" > 5 OR employee_name <> \"Haley\" OR role_code <> \"MG\""} {"question": "What are the driver IDs that are less than 9 but not greater than 7, considering only the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qt85v_12.png", "TableImg_Fovyp_5.png"], "original_data_index": 3472, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the aircraft IDs less than 5 that are not present in the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O0esy_5.png", "TableImg_9fwn7_4.png"], "original_data_index": 3473, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What is the smallest store ID that is either less than 5 in the store_district table or has a product ID of 1 or less, or is store ID 2 in the store_product table?", "answer": {"columns": ["MIN(Store_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_Kffal_5.png", "TableImg_R7ktj_15.png"], "original_data_index": 3471, "original_sql": "SELECT MIN(Store_ID) FROM store_district WHERE \"Store_ID\" < 5 UNION SELECT MIN(Store_ID) FROM store_product WHERE \"Product_ID\" <= 1 OR \"Store_ID\" = 2"} {"question": "How many districts are there for each city, excluding Khanewal District, where the city is not Bahawalnagar City, the store ID is at least 1, and the city population is greater than 314617?", "answer": {"columns": ["COUNT(T1.District_ID)", "District_ID"], "index": [0], "data": [["1", "3"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Nsa3l_15.png", "TableImg_Qo5c1_5.png"], "original_data_index": 3470, "original_sql": "SELECT COUNT(T1.District_ID), T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE District_name <> \"Khanewal District\" GROUP BY Headquartered_City HAVING Headquartered_City <> \"Bahawalnagar City\" AND Store_ID >= 1 AND City_Population > 314617.0"} {"question": "What are the driver IDs that are both greater than or equal to 1 and also less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_28qii_12.png", "TableImg_4c2as_5.png"], "original_data_index": 3476, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are greater than or equal to 5, but not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0s8vv_12.png", "TableImg_Ejfrf_5.png"], "original_data_index": 3477, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are in the driver table, excluding driver ID 2, or are in the school bus table with a driver ID of 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8vvzu_12.png", "TableImg_I2wt6_5.png"], "original_data_index": 3475, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the IDs of the certificate holders with an ID greater than or equal to 355548984, combined with the IDs of flights that did not originate in Los Angeles, or departed on a different date or time than April 12, 2005 at 9:30 AM, and had a flight number other than 387, and arrived on a different date or time than April 12, 2005 at 10:03 AM, or had a distance other than 2551, or went to Boston and had an ID less than 2 and a price greater than 425.98?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41], "data": [["8"], ["9"], ["6"], ["3"], ["13"], ["14"], ["7"], ["1"], ["12"], ["2"], ["7"], ["14"], ["2"], ["3"], ["5"], ["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"], ["11"], ["12"], ["15"], ["3"], ["4"], ["5"], ["6"], ["8"], ["7"], ["1"], ["3"], ["2"], ["6"], ["3"], ["9"], ["7"], ["5"], ["9"], ["10"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Fv9lm_69.png", "TableImg_Uu6d6_10.png"], "original_data_index": 3474, "original_sql": "SELECT aid FROM certificate WHERE \"eid\" >= 355548984 UNION ALL SELECT aid FROM flight WHERE origin <> \"Los Angeles\" OR departure_date != \"04/12/2005 09:30\" AND \"flno\" <> 387 AND arrival_date != \"04/12/2005 10:03\" OR \"distance\" <> 2551 OR destination = \"Boston\" AND \"aid\" < 2 AND \"price\" > 425.98"} {"question": "What are the driver IDs that are 8 or greater, excluding those driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rnzeo_12.png", "TableImg_3upa9_5.png"], "original_data_index": 3479, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs less than 12 that are in the driver table but not in the school bus table, where the school bus driver IDs are 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G16ed_12.png", "TableImg_Nsx7f_5.png"], "original_data_index": 3478, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are both greater than or equal to 7 in the driver table and less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ru4b_12.png", "TableImg_Mrv8x_5.png"], "original_data_index": 3483, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs greater than 3 that are present in both the aircraft and airport-aircraft tables, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jekc3_5.png", "TableImg_Xxm7m_4.png"], "original_data_index": 3480, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 7) and the school bus table (specifically driver ID 4)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wesij_12.png", "TableImg_Pa4c1_5.png"], "original_data_index": 3482, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What is the sum of School IDs from the budget table where Invested is greater than 95542, or School ID is not 2 and Year is less than or equal to 2005, or Budgeted is less than or equal to 61283, excluding the sum of School IDs from the endowment table where endowment ID is less than 11 and amount is less than or equal to 8.82, or School ID is less than or equal to 3?", "answer": {"columns": ["SUM(School_id)"], "index": [0], "data": [["24"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_0vt5j_8.png", "TableImg_2vg1s_11.png"], "original_data_index": 3481, "original_sql": "SELECT SUM(School_id) FROM budget WHERE \"Invested\" > 95542 OR \"School_id\" <> 2 AND \"Year\" <= 2005 OR \"Budgeted\" <= 61283 EXCEPT SELECT SUM(School_id) FROM endowment WHERE \"endowment_id\" < 11 AND \"amount\" <= 8.82 OR \"School_id\" <= 3"} {"question": "Which driver IDs are less than or equal to 10, but not equal to 7, and are present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bi79g_12.png", "TableImg_Qxnq1_5.png"], "original_data_index": 3485, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the IDs of students who are allergic to nuts and have an ID less than or equal to 1005, and also satisfy at least one of the following conditions: are not female, are 17 years old, have a last name other than Prater and live outside of PIT, have a major code less than 550, have an ID less than 1024, or have an advisor other than 7712?", "answer": {"columns": ["StuID"], "index": [0, 1], "data": [["1004"], ["1005"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Iar9c_59.png", "TableImg_1e8ez_34.png"], "original_data_index": 3486, "original_sql": "SELECT StuID FROM Has_Allergy WHERE Allergy = \"Nuts\" AND \"StuID\" <= 1005 INTERSECT SELECT StuID FROM Student WHERE Sex <> \"F\" OR \"Age\" = 17 OR LName <> \"Prater\" AND city_code != \"PIT\" OR \"Major\" < 550 OR \"StuID\" < 1024 OR \"Advisor\" <> 7712"} {"question": "What are the driver IDs that are less than 11 and present in both the driver and school bus tables, with the driver IDs in the driver table being less than 11 and the driver IDs in the school bus table being less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cxkku_12.png", "TableImg_F7pfy_5.png"], "original_data_index": 3484, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are not equal to 6 and are not present in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C2ijb_12.png", "TableImg_C8r6x_5.png"], "original_data_index": 3489, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the aircraft IDs that are greater than or equal to 4 and also not equal to 3, considering only the aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lh64u_5.png", "TableImg_Ztfs9_4.png"], "original_data_index": 3490, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What is the minimum document status code for documents with an ID of 20 or higher, excluding those of type \"CD\", shipping agent \"SH\", and other details \"u\", or with a status of \"overdue\" and receipt number \"69\", that also have an \"overdue\" status in the reference table?", "answer": {"columns": ["MIN(document_status_code)"], "index": [0], "data": [["overdue"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_9evvb_15.png", "TableImg_Q37yv_3.png"], "original_data_index": 3488, "original_sql": "SELECT MIN(document_status_code) FROM Documents WHERE \"document_id\" >= 20 AND document_type_code != \"CD\" AND shipping_agent_code != \"SH\" AND other_details != \"u\" OR document_status_code = \"overdue\" AND receipt_number = \"69\" INTERSECT SELECT MIN(document_status_code) FROM Ref_Document_Status WHERE document_status_code = \"overdue\""} {"question": "How many vehicles have an ID less than or equal to 1 or are not vans, and how many vehicles have an ID less than or equal to 3 and are not trucks?", "answer": {"columns": ["COUNT(vehicle_id)"], "index": [0, 1], "data": [["3"], ["2"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Br7si_3.png", "TableImg_08q8o_3.png"], "original_data_index": 3491, "original_sql": "SELECT COUNT(vehicle_id) FROM Vehicles WHERE \"vehicle_id\" <= 1 OR vehicle_details <> \"Van\" UNION ALL SELECT COUNT(vehicle_id) FROM Vehicles WHERE \"vehicle_id\" <= 3 AND vehicle_details <> \"Truck\""} {"question": "Which driver IDs are either 9 or greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sr798_12.png", "TableImg_P3z0h_5.png"], "original_data_index": 3492, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which aircraft IDs are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 1 from the aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tk7ql_5.png", "TableImg_K66hc_4.png"], "original_data_index": 3493, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the IDs of documents that are both a \"Paper\" document type and have a copy number of 15, an employee ID that is not 8, or a draft number that is not 20, excluding document ID 10?", "answer": {"columns": ["document_id"], "index": [0, 1], "data": [["2"], ["20"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Hmc76_4.png", "TableImg_Mhpa4_15.png"], "original_data_index": 3494, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" <> 10 AND \"copy_number\" = 15 AND \"employee_id\" <> 8 OR \"draft_number\" <> 20 INTERSECT SELECT document_id FROM Documents WHERE document_type_code = \"Paper\""} {"question": "What are the driver IDs that are greater than or equal to 12, and also the driver IDs from school buses that are not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cqm58_12.png", "TableImg_Hc6cu_5.png"], "original_data_index": 3496, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the descriptions and IDs of property features where the property ID is at least 4 or the feature ID is not 4 and the description isn't \"quo\", combined with the descriptions and IDs of features where the property ID is at most 7, the feature ID is at least 4, and the description is \"vitae\"?", "answer": {"columns": ["property_feature_description", "feature_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["ad", "2"], ["autem", "2"], ["corrupti", "3"], ["cumque", "2"], ["dolorem", "3"], ["doloribus", "3"], ["earum", "4"], ["et", "3"], ["hic", "2"], ["illo", "2"], ["modi", "4"], ["odio", "3"], ["quo", "3"], ["quo", "4"], ["vitae", "4"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Ybgq7_15.png", "TableImg_H3hcb_15.png"], "original_data_index": 3495, "original_sql": "SELECT property_feature_description, feature_id FROM Other_Property_Features WHERE \"property_id\" >= 4 OR \"feature_id\" != 4 AND property_feature_description != \"quo\" UNION SELECT property_feature_description, feature_id FROM Other_Property_Features WHERE \"property_id\" <= 7 AND \"feature_id\" >= 4 AND property_feature_description = \"vitae\""} {"question": "What are the driver IDs that are either less than or equal to 11 from the driver table or not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_487tz_12.png", "TableImg_7ne5k_5.png"], "original_data_index": 3497, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the property type descriptions that are not \"Field\" and also not \"Apartment, Flat, Condo, etc.\"?", "answer": {"columns": ["property_type_description"], "index": [0, 1, 2], "data": [["House, Bungalow, etc."], ["Other, to be determined."], ["Shop, Retail Outlet."]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_7l6fv_5.png", "TableImg_Dp3bv_5.png"], "original_data_index": 3498, "original_sql": "SELECT property_type_description FROM Ref_Property_Types WHERE property_type_code != \"Field\" INTERSECT SELECT property_type_description FROM Ref_Property_Types WHERE property_type_description != \"Apartment, Flat, Condo, etc.\""} {"question": "What are the driver IDs that are either less than or equal to 1 from the driver table, or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vqc76_12.png", "TableImg_I13ee_5.png"], "original_data_index": 3499, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and greater than 1, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3z7k2_5.png", "TableImg_Tlm5b_4.png"], "original_data_index": 3500, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the feature type codes for features that are not \"AirCon\" and don't have the description \"Swimming Pool.\", combined with the feature type codes that are not \"Amenity\" or have the name \"Amenity, eg Pool.\"?", "answer": {"columns": ["feature_type_code"], "index": [0, 1], "data": [["Amenity"], ["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_7ccjo_3.png", "TableImg_Q5iir_2.png"], "original_data_index": 3501, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE feature_name != \"AirCon\" AND feature_description != \"Swimming Pool.\" UNION SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code <> \"Amenity\" OR feature_type_name = \"Amenity, eg Pool.\""} {"question": "Which driver IDs are either less than or equal to 7 from the driver table, or greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kxoo9_12.png", "TableImg_Wn33d_5.png"], "original_data_index": 3502, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs, excluding driver ID 11, are in the driver table but not in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1jdwn_12.png", "TableImg_Yisxf_5.png"], "original_data_index": 3506, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are not 2 and are present in the aircraft table but not in the airport_aircraft table (excluding aircraft ID 5)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_98bxa_5.png", "TableImg_Aair1_4.png"], "original_data_index": 3503, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the county IDs, names, populations, and zip codes for counties that have a county ID less than 4 and a population not equal to 90000, or a name that is not \"Baltimore County\", and also have a county ID less than 1 or a zip code of \"D02\"?", "answer": {"columns": ["County_Id", "County_name", "Population", "Zip_code"], "index": [0], "data": [["3", "Colony", "79000", "D02"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_O0083_5.png", "TableImg_Z2z74_5.png"], "original_data_index": 3505, "original_sql": "SELECT County_Id, County_name, Population, Zip_code FROM county WHERE \"County_Id\" < 4 AND \"Population\" != 90000.0 OR County_name != \"Baltimore County\" INTERSECT SELECT County_Id, County_name, Population, Zip_code FROM county WHERE \"County_Id\" < 1 OR Zip_code = \"D02\""} {"question": "Which driver IDs are either driver ID 4 or school bus driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ao17c_12.png", "TableImg_Vog3w_5.png"], "original_data_index": 3509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are greater than or equal to 10 and also appear in the school bus table with IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Htxt5_12.png", "TableImg_U4fx8_5.png"], "original_data_index": 3508, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs, excluding driver ID 2, are in the driver table but not in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wy2qk_12.png", "TableImg_Y3cre_5.png"], "original_data_index": 3507, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs greater than 7, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ppar5_12.png", "TableImg_R2pve_5.png"], "original_data_index": 3511, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs that are both less than or equal to 7 and also appear in the school bus table with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7spp5_12.png", "TableImg_Zpoq3_5.png"], "original_data_index": 3510, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs less than 12 who are not also driver IDs greater than 7, considering only the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8x133_12.png", "TableImg_Bzktu_5.png"], "original_data_index": 3512, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the document status codes for documents shipped by agent \"SH\", and also the document status codes that are \"working\" but not described as \"mailed late\"?", "answer": {"columns": ["document_status_code"], "index": [0], "data": [["working"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Ired9_15.png", "TableImg_85sb5_3.png"], "original_data_index": 3515, "original_sql": "SELECT document_status_code FROM Documents WHERE shipping_agent_code = \"SH\" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> \"mailed late\" AND document_status_code = \"working\""} {"question": "What are the driver IDs, excluding driver ID 11, and also the driver IDs less than 3, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uca7k_12.png", "TableImg_Trt5p_5.png"], "original_data_index": 3514, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are less than 11 but not equal to 7, considering only those present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3gedr_12.png", "TableImg_Qqrm7_5.png"], "original_data_index": 3513, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the document status codes that are not \"mailed late\" or not \"working\", combined with the document status codes that are not \"currently working on\" or are \"done\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2], "data": [["done"], ["overdue"], ["working"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Wvkci_3.png", "TableImg_8a8ma_3.png"], "original_data_index": 3504, "original_sql": "SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description != \"mailed late\" OR document_status_code <> \"working\" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> \"currently working on\" OR document_status_code = \"done\""} {"question": "What are the departure dates, address IDs, and nicknames of staff members, excluding those with the nickname \"bkunze\", but not including those whose middle name isn't \"Madelyn\"?", "answer": {"columns": ["date_left_staff", "staff_address_id", "nickname"], "index": [0], "data": [["2018-03-08 05:16:29", "13", "weldon.kling"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Mz1z9_15.png", "TableImg_3vcvy_15.png"], "original_data_index": 3518, "original_sql": "SELECT date_left_staff, staff_address_id, nickname FROM Staff WHERE nickname != \"bkunze\" EXCEPT SELECT date_left_staff, staff_address_id, nickname FROM Staff WHERE middle_name <> \"Madelyn\""} {"question": "What are the driver IDs that are less than or equal to 1, and also the driver IDs that are greater than or equal to 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ail7m_12.png", "TableImg_V0fmx_5.png"], "original_data_index": 3516, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What is the average feature ID for features that are not \"Burglar Alarm\" or have a feature ID of 4, combined with the average feature ID for property 6?", "answer": {"columns": ["AVG(feature_id)"], "index": [0, 1], "data": [["2.75"], ["3.0"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Wojmr_3.png", "TableImg_Henzs_15.png"], "original_data_index": 3519, "original_sql": "SELECT AVG(feature_id) FROM Other_Available_Features WHERE feature_description <> \"Burglar Alarm\" OR \"feature_id\" = 4 UNION SELECT AVG(feature_id) FROM Other_Property_Features WHERE \"property_id\" = 6"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3oq60_12.png", "TableImg_Gw08i_5.png"], "original_data_index": 3517, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the minimum document name and template ID, along with other details, document ID, and description, for documents where the template ID is not 22, or other details are not \"None\", or the document name is not \"How Google people work\" and the document ID is not 33930? Also, what are the minimum document name and template ID, along with other details, document ID, and description, for documents where the document ID is 2394, or the template ID is 10 and other details are \"None\", or the document description is not \"y\"? Combine these results.", "answer": {"columns": ["MIN(Document_Name)", "MIN(Template_ID)", "Other_Details", "Document_ID", "Document_Description"], "index": [0, 1], "data": [["A history of Arts", "1", "", "33930", "z"], ["A history of Arts", "1", "", "33930", "z"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_39f0u_15.png", "TableImg_333e6_15.png"], "original_data_index": 3523, "original_sql": "SELECT MIN(Document_Name), MIN(Template_ID), Other_Details, Document_ID, Document_Description FROM Documents WHERE \"Template_ID\" != 22 OR Other_Details <> \"None\" OR Document_Name <> \"How Google people work\" AND \"Document_ID\" <> 33930 UNION ALL SELECT MIN(Document_Name), MIN(Template_ID), Other_Details, Document_ID, Document_Description FROM Documents WHERE \"Document_ID\" = 2394 OR \"Template_ID\" = 10 AND Other_Details = \"None\" OR Document_Description <> \"y\""} {"question": "What are the student IDs of students who belong to a club with an ID less than or equal to 1, excluding student ID 1010, and also either have a major of 600 or higher, or a first name other than David and are male, or have a student ID other than 1005?", "answer": {"columns": ["StuID"], "index": [0], "data": [["1001"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_V6qsp_4.png", "TableImg_Dnu5g_34.png"], "original_data_index": 3524, "original_sql": "SELECT StuID FROM Member_of_club WHERE \"ClubID\" <= 1 AND \"StuID\" != 1010 INTERSECT SELECT StuID FROM Student WHERE \"Major\" >= 600 OR Fname <> \"David\" AND Sex = \"M\" OR \"StuID\" <> 1005"} {"question": "What are the driver IDs, excluding driver ID 9, and also the driver IDs less than 7, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zxhfr_12.png", "TableImg_Nt36k_5.png"], "original_data_index": 3525, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the different role codes, considering those from employees who have other details not equal to \"h\" or are \"PR\", and also role codes from roles that are \"PT\" or have a description of \"Manager\"?", "answer": {"columns": ["role_code"], "index": [0, 1, 2, 3], "data": [["ED"], ["MG"], ["PR"], ["PT"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_Ekkyj_6.png", "TableImg_Tk5nz_4.png"], "original_data_index": 3526, "original_sql": "SELECT role_code FROM Employees WHERE other_details <> \"h\" OR role_code = \"PR\" UNION SELECT role_code FROM Roles WHERE role_code = \"PT\" OR role_description = \"Manager\""} {"question": "What are the aircraft IDs that are either equal to 2 or not equal to 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X2nd3_5.png", "TableImg_0imyl_4.png"], "original_data_index": 3527, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Give me the employee ID, age, name, and city for employees who are either ID 8 or higher, not 43 years old, or live in Bristol, but exclude those whose name isn't Louis Deacon, don't live in Wasps, and aren't employee ID 9.", "answer": {"columns": ["Employee_ID", "Age", "Name", "City"], "index": [0, 1, 2, 3], "data": [["5", "29", "Tim Payne", "Wasps"], ["8", "40", "Phil Vickery", "Wasps"], ["9", "32", "Steve Borthwick", "Bath"], ["10", "36", "Louis Deacon", "Leicester"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_29gbs_10.png", "TableImg_Ki6ct_10.png"], "original_data_index": 3528, "original_sql": "SELECT Employee_ID, Age, Name, City FROM employee WHERE \"Employee_ID\" >= 8 OR \"Age\" != 43 OR City = \"Bristol\" EXCEPT SELECT Employee_ID, Age, Name, City FROM employee WHERE Name <> \"Louis Deacon\" AND City <> \"Wasps\" AND \"Employee_ID\" != 9"} {"question": "What are the driver IDs that are either less than or equal to 8, or are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oa1fq_12.png", "TableImg_Ts4vp_5.png"], "original_data_index": 3529, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs, excluding ID 1, that are in the aircraft table, combined with the aircraft IDs greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O32vr_5.png", "TableImg_Vlnfu_4.png"], "original_data_index": 3530, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the template type descriptions and codes, excluding those with code \"PP\" or description \"Presentation\", and also excluding those with description \"Advertisement\" or code \"AD\"?", "answer": {"columns": ["Template_Type_Description", "Template_Type_Code"], "index": [0, 1, 2, 3], "data": [["Book", "BK"], ["CV", "CV"], ["Paper", "PP"], ["Presentation", "PPT"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Yr31y_5.png", "TableImg_1iggm_5.png"], "original_data_index": 3531, "original_sql": "SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code <> \"PP\" OR Template_Type_Description <> \"Presentation\" INTERSECT SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != \"Advertisement\" OR Template_Type_Code <> \"AD\""} {"question": "Which driver IDs are greater than 6 but not equal to 9 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5srs1_12.png", "TableImg_Xaklm_5.png"], "original_data_index": 3532, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs, excluding driver ID 5, and also the driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R71u9_12.png", "TableImg_7bvvb_5.png"], "original_data_index": 3533, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are equal to 9 in the driver table but not less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6qpfb_12.png", "TableImg_Iu66r_5.png"], "original_data_index": 3534, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are less than 2 but not equal to 9, considering only those present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F1n14_12.png", "TableImg_Cuazo_5.png"], "original_data_index": 3535, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs, excluding ID 10, from the driver table, and also the driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rc5gg_12.png", "TableImg_Jhu9a_5.png"], "original_data_index": 3521, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the IDs of drivers, excluding driver 2, and the IDs of school buses, excluding bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O9j40_12.png", "TableImg_R07jk_5.png"], "original_data_index": 3522, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are less than 9 but not equal to 3, considering only those IDs present in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Orgm2_12.png", "TableImg_7e570_5.png"], "original_data_index": 3520, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs, excluding ID 5, that are present in both the aircraft and airport_aircraft tables, but not with ID 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aq7pg_5.png", "TableImg_Al850_4.png"], "original_data_index": 3539, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the aircraft IDs that are less than 3 in the aircraft table, but not present in the airport_aircraft table with IDs 2 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I7kow_5.png", "TableImg_Gy5f4_4.png"], "original_data_index": 3537, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "For reviews, how many reviews are there, what is the maximum article ID, and how many item IDs are there, grouped by user ID, where the user ID is not 2 and the rating is 7 or less, or where the user ID is not 2 or the item ID is less than 7?", "answer": {"columns": ["COUNT(rank)", "u_id", "MAX(a_id)", "COUNT(i_id)"], "index": [0, 1], "data": [["2", "1", "6", "2"], ["5", "1", "6", "5"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Wy39s_7.png", "TableImg_Tnnnc_7.png"], "original_data_index": 3538, "original_sql": "SELECT COUNT(rank), u_id, MAX(a_id), COUNT(i_id) FROM review WHERE \"u_id\" <> 2 AND \"rating\" <= 7 UNION SELECT COUNT(rank), u_id, MAX(a_id), COUNT(i_id) FROM review WHERE \"u_id\" != 2 OR \"i_id\" < 7"} {"question": "What are the aircraft IDs that are less than 4 in the aircraft table, combined with the aircraft IDs that are greater than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qbf3h_5.png", "TableImg_2t0nz_4.png"], "original_data_index": 3536, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which aircraft have ID 2 or aircraft ID 5, considering aircraft and airport information?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uipvw_5.png", "TableImg_Pb1wu_4.png"], "original_data_index": 3543, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the driver IDs that are either less than or equal to 3, or greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I1q55_12.png", "TableImg_Fd6iz_5.png"], "original_data_index": 3541, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are both less than or equal to 11 and present in the driver table, and also less than or equal to 9 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y6c6i_12.png", "TableImg_Z6gjs_5.png"], "original_data_index": 3540, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are either less than or equal to 6 from the driver table, or greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_48if8_12.png", "TableImg_9ho1d_5.png"], "original_data_index": 3542, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are either greater than or equal to 5 in the driver table or not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dja5z_12.png", "TableImg_8uyke_5.png"], "original_data_index": 3547, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the IDs of drivers, excluding driver 3, and also the IDs of school bus drivers, excluding driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Djsrz_12.png", "TableImg_Yyx18_5.png"], "original_data_index": 3544, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What allergies are not \"Dog\" or are of the \"animal\" type, and also have an allergy type that isn't \"animal\"?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["Anchovies"], ["Eggs"], ["Grass Pollen"], ["Milk"], ["Nuts"], ["Ragweed"], ["Shellfish"], ["Soy"], ["Tree Pollen"], ["Wheat"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_J6baz_14.png", "TableImg_0qwud_14.png"], "original_data_index": 3545, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE Allergy <> \"Dog\" OR AllergyType = \"animal\" INTERSECT SELECT Allergy FROM Allergy_Type WHERE AllergyType <> \"animal\""} {"question": "What is the maximum aircraft ID and total distance for Tupolev 154 aircraft or aircraft with an ID less than or equal to 16, combined with the maximum aircraft ID and total distance for flights with a price of 220.98 or flights with an aircraft ID less than or equal to 9, not going to New York, and not arriving or departing on specific dates and times, with flight numbers greater than or equal to 13 and a distance of 7487?", "answer": {"columns": ["MAX(aid)", "SUM(distance)"], "index": [0, 1], "data": [["16", "58486"], ["9", "3498"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_Mu6hv_16.png", "TableImg_P2txm_10.png"], "original_data_index": 3546, "original_sql": "SELECT MAX(aid), SUM(distance) FROM aircraft WHERE name = \"Tupolev 154\" OR \"aid\" <= 16 UNION ALL SELECT MAX(aid), SUM(distance) FROM flight WHERE \"price\" = 220.98 OR \"aid\" <= 9 AND destination != \"New York\" AND arrival_date != \"04/12/2005 08:45\" AND departure_date != \"04/12/2005 07:03\" AND \"flno\" >= 13 AND \"distance\" = 7487"} {"question": "What are the aircraft IDs, excluding aircraft ID 2, from the aircraft table, combined with the aircraft IDs, excluding aircraft ID 5, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jj21y_5.png", "TableImg_Jwzkj_4.png"], "original_data_index": 3550, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the IDs of drivers who are not driver 4 and also drive a school bus, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dnzo4_12.png", "TableImg_Nhoqh_5.png"], "original_data_index": 3548, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs, excluding driver ID 1, and also including driver IDs greater than or equal to 9, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jn69c_12.png", "TableImg_4nhbw_5.png"], "original_data_index": 3549, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are not equal to 2, but are not also driver IDs from the school bus table with IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uh6yp_12.png", "TableImg_Xvt26_5.png"], "original_data_index": 3554, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 9, and where the driver ID is greater than or equal to 1?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8xqrc_12.png", "TableImg_5itjy_5.png"], "original_data_index": 3557, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are not equal to 1 but are not also driver IDs from school buses with IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_578jf_12.png", "TableImg_Dde4z_5.png"], "original_data_index": 3556, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are either greater than or equal to 8, or equal to 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ptd2n_12.png", "TableImg_Bos8i_5.png"], "original_data_index": 3552, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the shipping agent codes from the Documents table where the receipt number isn't \"80\", the code is \"UP\", or the document type is \"Paper\" and the document ID isn't 4 and the receipt date isn't \"1996-05-31 06:51:58\"? Also, what are the shipping agent codes from the Ref_Shipping_Agents table where the code isn't \"FE\" or the description is \"t\"? Combine all these results.", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["UP"], ["US"], ["UP"], ["SH"], ["UP"], ["US"], ["UP"], ["FE"], ["UP"], ["FE"], ["UP"], ["FE"], ["FE"], ["AL"], ["UP"], ["US"], ["AL"], ["SH"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Balgc_15.png", "TableImg_08vi7_5.png"], "original_data_index": 3555, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE receipt_number <> \"80\" OR shipping_agent_code = \"UP\" OR document_type_code = \"Paper\" AND \"document_id\" != 4 AND receipt_date != \"1996-05-31 06:51:58\" UNION ALL SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code <> \"FE\" OR shipping_agent_description = \"t\""} {"question": "What are the driver IDs that are equal to 1, but not driver IDs greater than 4, considering only the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Utrz8_12.png", "TableImg_R1qhs_5.png"], "original_data_index": 3558, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the minimum item ID and the item ID from the review table, where the reviewer ID is greater than 3 and the user ID is 1 and the title is \"blue hoodie\", or where the rank is greater than 6?", "answer": {"columns": ["MIN(T1.i_id)", "i_id"], "index": [0], "data": [["7", "7"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_7equ6_8.png", "TableImg_7fiyt_7.png"], "original_data_index": 3559, "original_sql": "SELECT MIN(T1.i_id), T2.i_id FROM item as T1 JOIN review as T2 ON T1.i_id = T2.i_id WHERE \"a_id\" > 3 AND \"u_id\" = 1 AND title = \"blue hoodie\" OR \"rank\" > 6"} {"question": "What are the album IDs and titles for \"Chronicle, Vol. 1\" that are not also employee IDs and titles for employees who don't live in Lethbridge?", "answer": {"columns": ["id", "title"], "index": [0], "data": [["54", "Chronicle, Vol. 1"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_Fe44o_347.png", "TableImg_8br9w_8.png"], "original_data_index": 3560, "original_sql": "SELECT id, title FROM albums WHERE title = \"Chronicle, Vol. 1\" EXCEPT SELECT id, title FROM employees WHERE city <> \"Lethbridge\""} {"question": "How many food allergies are there, and how many allergies other than anchovies exist for students with IDs of 1004 or higher?", "answer": {"columns": ["COUNT(Allergy)"], "index": [0, 1], "data": [["7"], ["52"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_Y40td_14.png", "TableImg_P5v6z_59.png"], "original_data_index": 3561, "original_sql": "SELECT COUNT(Allergy) FROM Allergy_Type WHERE AllergyType = \"food\" UNION SELECT COUNT(Allergy) FROM Has_Allergy WHERE Allergy != \"Anchovies\" AND \"StuID\" >= 1004"} {"question": "What are the aircraft IDs less than 5 that are not present in the airport aircraft table with IDs less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F8ktl_5.png", "TableImg_A0ysg_4.png"], "original_data_index": 3562, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs, excluding driver ID 12, from the driver table, and also the driver IDs greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F8ltd_12.png", "TableImg_20aoh_5.png"], "original_data_index": 3565, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the makers and model IDs for Renault models, or where the maker value is less than or equal to 20, combined with the makers and model IDs for Buick models where the maker value is greater than or equal to 21 and the model ID is greater than or equal to 25?", "answer": {"columns": ["Maker", "ModelId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "data": [["1", "1"], ["2", "2"], ["2", "31"], ["3", "3"], ["4", "4"], ["4", "5"], ["4", "7"], ["4", "21"], ["4", "25"], ["5", "6"], ["5", "13"], ["5", "19"], ["6", "8"], ["6", "11"], ["6", "24"], ["6", "35"], ["7", "9"], ["8", "10"], ["8", "20"], ["9", "12"], ["10", "14"], ["11", "15"], ["12", "16"], ["13", "17"], ["13", "18"], ["14", "22"], ["15", "23"], ["16", "26"], ["17", "27"], ["18", "28"], ["19", "29"], ["19", "36"], ["20", "30"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_676kg_36.png", "TableImg_Zlsob_36.png"], "original_data_index": 3564, "original_sql": "SELECT Maker, ModelId FROM model_list WHERE Model = \"renault\" OR \"Maker\" <= 20 UNION SELECT Maker, ModelId FROM model_list WHERE \"Maker\" >= 21 AND \"ModelId\" >= 25 AND Model = \"buick\""} {"question": "What are the district IDs where the city area is less than or equal to 75, or the headquarters is Kasur City, or the district ID is greater than 9, or the district name is Bahawalpur District and the city population is not 89380? Also, what are the district IDs from the store district table where the store ID is not 1? Combine both sets of district IDs.", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["15"], ["11"], ["4"], ["3"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_1l6fz_15.png", "TableImg_Vl8h3_5.png"], "original_data_index": 3563, "original_sql": "SELECT District_ID FROM district WHERE \"City_Area\" <= 75.0 OR Headquartered_City = \"Kasur City\" OR \"District_ID\" > 9 OR District_name = \"Bahawalpur District\" AND \"City_Population\" <> 89380.0 UNION ALL SELECT District_ID FROM store_district WHERE \"Store_ID\" != 1"} {"question": "For each club that isn't \"Hopkins Student Enterprises\", how many clubs have a president, and what are the student IDs, where the president's description isn't \"Refurbish computers; teach kids and adults about computer basics.\" or the student ID is less than or equal to 1007?", "answer": {"columns": ["SUM(T1.ClubID)", "StuID"], "index": [0], "data": [["1", "1001"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Cdxd7_4.png", "TableImg_Czco4_4.png"], "original_data_index": 3566, "original_sql": "SELECT SUM(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE Position = \"President\" AND ClubName <> \"Hopkins Student Enterprises\" GROUP BY ClubName HAVING ClubDesc <> \"Refurbish computers; teach kids and adults about computer basics.\" AND Position = \"President\" OR StuID <= 1007"} {"question": "Which driver IDs, excluding driver ID 7, are present in the driver table, and which driver IDs, greater than or equal to 10, are present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_05i2e_12.png", "TableImg_Px8ed_5.png"], "original_data_index": 3567, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are either 5 or not 3, considering both driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_26uso_12.png", "TableImg_Gfknt_5.png"], "original_data_index": 3568, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are greater than or equal to 7, but not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X6t0u_12.png", "TableImg_2wbvh_5.png"], "original_data_index": 3569, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are less than or equal to 1, excluding those driver IDs that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J5fu0_12.png", "TableImg_0dbs6_5.png"], "original_data_index": 3571, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are greater than or equal to 8 and also not equal to 3, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uo3or_12.png", "TableImg_F2v3w_5.png"], "original_data_index": 3572, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the IDs of drivers, excluding driver 7, and also the IDs of school bus drivers, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0po5w_12.png", "TableImg_9aya0_5.png"], "original_data_index": 3570, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are greater than or equal to 6 in the driver table, but not present in the school bus table with driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bg3zq_12.png", "TableImg_Iywck_5.png"], "original_data_index": 3573, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs that are both less than 11 and also equal to 9, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y09bo_12.png", "TableImg_Oqe2x_5.png"], "original_data_index": 3576, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs that are both assigned to a driver and assigned to a school bus, and are greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U9uog_12.png", "TableImg_Jvleh_5.png"], "original_data_index": 3577, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs that are not 3 and are present in the aircraft table but not in the airport_aircraft table, excluding any aircraft IDs less than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tso7c_5.png", "TableImg_F2z7y_4.png"], "original_data_index": 3574, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Which school IDs meet at least one of these conditions: the year is before or equal to 2006, the total budgeted percentage is less than 2.0, the budgeted amount is not 6803 and the school ID is not 1, or the invested amount is greater than 2134, or the total invested percentage is not 2.0, but are not associated with the donator \"Monte Plata\"?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_An2ft_8.png", "TableImg_Sqoqb_11.png"], "original_data_index": 3575, "original_sql": "SELECT School_id FROM budget WHERE \"Year\" <= 2006 OR \"total_budget_percent_budgeted\" < 2.0 OR \"Budgeted\" <> 6803 AND \"School_id\" <> 1 OR \"Invested\" > 2134 OR \"total_budget_percent_invested\" <> 2.0 EXCEPT SELECT School_id FROM endowment WHERE donator_name = \"Monte Plata\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 11 from the driver table and driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M4ceu_12.png", "TableImg_Dhfw0_5.png"], "original_data_index": 3579, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the smallest document IDs from the circulation history where the document ID is less than 10 or the draft number is less than 2, excluding the smallest document IDs from the documents mailed table where the address ID is not 9 and the document ID is 12?", "answer": {"columns": ["MIN(document_id)"], "index": [0], "data": [["1"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Bcavd_4.png", "TableImg_0bd3s_14.png"], "original_data_index": 3578, "original_sql": "SELECT MIN(document_id) FROM Circulation_History WHERE \"document_id\" < 10 OR \"draft_number\" < 2 EXCEPT SELECT MIN(document_id) FROM Documents_Mailed WHERE \"mailed_to_address_id\" != 9 AND \"document_id\" = 12"} {"question": "What are the driver IDs that are either greater than or equal to 1 in the driver table or greater than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ujtf0_12.png", "TableImg_Dibb2_5.png"], "original_data_index": 3581, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are both less than or equal to 9 and also not equal to 9, based on the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cazv6_12.png", "TableImg_Gc97g_5.png"], "original_data_index": 3583, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs, excluding ID 3, that appear in both the aircraft and airport_aircraft tables, where the airport_aircraft IDs are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6oxsl_5.png", "TableImg_Eod1i_4.png"], "original_data_index": 3582, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the flight IDs where the flight ID is less than 2, or the pilot is not Peterson, or the date is not November 8, 1963 and the velocity is less than 240.0 and the vehicle flight number is not M2-F1 #21 and the airport ID is not 4, or the company ID is not 9? Also, what are the IDs of operate companies where the ID is 8 or less, the company wasn't incorporated in Hong Kong, the name is Hong Kong Airport Services, the group equity shareholding is 100.0, the principal activities aren't catering services, and the type isn't a joint venture?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_Suodd_13.png", "TableImg_4fnfy_14.png"], "original_data_index": 3580, "original_sql": "SELECT id FROM flight WHERE \"id\" < 2 OR Pilot <> \"Peterson\" OR Date != \"November 8, 1963\" AND \"Velocity\" < 240.0 AND Vehicle_Flight_number <> \"M2-F1 #21\" AND \"airport_id\" != 4 OR \"company_id\" != 9 UNION SELECT id FROM operate_company WHERE \"id\" <= 8 AND Incorporated_in <> \"Hong Kong\" AND name = \"Hong Kong Airport Services\" AND \"Group_Equity_Shareholding\" = 100.0 AND Principal_activities != \"Catering services\" AND Type != \"Joint Venture\""} {"question": "What are the driver IDs greater than 3, and also any driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9p1nl_12.png", "TableImg_O8dds_5.png"], "original_data_index": 3585, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs greater than 4, and also the aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4csjp_5.png", "TableImg_Twjko_4.png"], "original_data_index": 3584, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the driver IDs that are either less than or equal to 1, or not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q2xk1_12.png", "TableImg_9rdg7_5.png"], "original_data_index": 3586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are less than or equal to 2, excluding those driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G1l66_12.png", "TableImg_109dj_5.png"], "original_data_index": 3589, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the IDs of drivers who are in both the driver and school bus tables, excluding driver ID 9 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ppgz9_12.png", "TableImg_H7wgv_5.png"], "original_data_index": 3588, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are less than or equal to 11 but not present in the school bus table with IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R3es0_12.png", "TableImg_Ixr9h_5.png"], "original_data_index": 3591, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the item and author IDs, grouped by review rank, where the author ID is not 5 or the user ID is less than or equal to 2 and the title is not \"pear\"?", "answer": {"columns": ["i_id", "a_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "1"], ["1", "2"], ["4", "3"], ["5", "5"], ["3", "6"], ["7", "7"], ["7", "4"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_2s7tn_8.png", "TableImg_Djbiw_7.png"], "original_data_index": 3590, "original_sql": "SELECT T1.i_id, T2.a_id FROM item as T1 JOIN review as T2 ON T1.i_id == T2.i_id GROUP BY rank HAVING a_id <> 5 OR u_id <= 2 AND title <> \"pear\""} {"question": "What are the driver IDs that are either greater than or equal to 1 in the driver table or not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_34pux_12.png", "TableImg_Xm3bg_5.png"], "original_data_index": 3592, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the IDs of albums by artist 153 that are not titled \"Appetite for Destruction\" or have an ID other than 44, along with the IDs of playlists named \"Music\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["1"], ["8"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_Clgqu_347.png", "TableImg_Umqt5_18.png"], "original_data_index": 3595, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" = 153 AND title <> \"Appetite for Destruction\" OR \"id\" <> 44 UNION ALL SELECT id FROM playlists WHERE name = \"Music\""} {"question": "Which driver IDs are less than or equal to 11 but not equal to 3, considering only those present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rx2d6_12.png", "TableImg_B6o7q_5.png"], "original_data_index": 3596, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs, excluding ID 1, that appear in both the aircraft table and the airport_aircraft table, where the airport_aircraft table's aircraft ID is greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eh3n9_5.png", "TableImg_Rryt1_4.png"], "original_data_index": 3594, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which store IDs meet these criteria: the store's ranking is 1 or less, the area size is 7.23, and the number of product categories is less than 793, or the store ID is not 1; but exclude any store IDs where the store ID is greater than 2 or the district ID is less than 15?", "answer": {"columns": ["Store_ID"], "index": [0], "data": [["2"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_5jaq7_5.png", "TableImg_Poi62_5.png"], "original_data_index": 3593, "original_sql": "SELECT Store_ID FROM store WHERE \"Ranking\" <= 1 AND \"Area_size\" = 7.23 AND \"Number_of_product_category\" < 793.0 OR \"Store_ID\" <> 1 EXCEPT SELECT Store_ID FROM store_district WHERE \"Store_ID\" > 2 OR \"District_ID\" < 15"} {"question": "What allergies are either shellfish related to food allergies or are not associated with student ID 1023?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["Anchovies"], ["Cat"], ["Dog"], ["Eggs"], ["Grass Pollen"], ["Milk"], ["Nuts"], ["Ragweed"], ["Shellfish"], ["Soy"], ["Tree Pollen"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_A3gga_14.png", "TableImg_U8pp8_59.png"], "original_data_index": 3598, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType = \"food\" AND Allergy = \"Shellfish\" UNION SELECT Allergy FROM Has_Allergy WHERE \"StuID\" <> 1023"} {"question": "What are the driver IDs, excluding driver ID 7, that are present in both the driver and school bus tables, where the school bus driver IDs are no greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uled6_12.png", "TableImg_L3ojy_5.png"], "original_data_index": 3597, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs greater than 8 from the driver table, combined with the driver IDs greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uurdh_12.png", "TableImg_7aog7_5.png"], "original_data_index": 3599, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are either greater than or equal to 10 in the driver table, or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H72tr_12.png", "TableImg_H4icw_5.png"], "original_data_index": 3600, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What is the average region and maximum start year, along with the club name and ID, for clubs in Korea that started after 1998, combined with the same information for clubs not in France?", "answer": {"columns": ["AVG(Region)", "MAX(Start_year)", "Club_name", "Club_ID"], "index": [0, 1], "data": [["0", "2001", "Gefle IF", "4"], ["0", "2009", "AIK", "1"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Tnime_6.png", "TableImg_G7owq_6.png"], "original_data_index": 3601, "original_sql": "SELECT AVG(Region), MAX(Start_year), Club_name, Club_ID FROM club WHERE Region = \"Korea\" AND \"Start_year\" > 1998 UNION SELECT AVG(Region), MAX(Start_year), Club_name, Club_ID FROM club WHERE Region <> \"France\""} {"question": "What are the feature type codes for features with ID 4 that are not \"Swimming Pool,\" combined with the feature type codes for feature types that are not named \"Amenity, eg Pool.\" and are not \"Amenity\"?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_E38ah_3.png", "TableImg_Y0t1s_2.png"], "original_data_index": 3602, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE \"feature_id\" = 4 AND feature_description != \"Swimming Pool.\" UNION SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\" AND feature_type_code != \"Amenity\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7 from the driver table and driver IDs 9 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iexgq_12.png", "TableImg_10nb4_5.png"], "original_data_index": 3604, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that are either greater than or equal to 5 in the aircraft table or not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1g3tb_5.png", "TableImg_1y36o_4.png"], "original_data_index": 3606, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the aircraft IDs greater than 5 from the aircraft table, combined with the aircraft IDs less than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J4zk7_5.png", "TableImg_Bgm50_4.png"], "original_data_index": 3603, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What is the sum of customer IDs for customers with the last name \"Bernhard\", or email \"kitty.hand@example.net\", or a cell phone number not equal to \"(780)719-4206x033\", or an outstanding amount greater than 3900.0, excluding the sum of customer IDs from lessons where the lesson time is \"9\", or the lesson date is not \"2018-03-07 16:12:36\" and the customer ID is 11, or the lesson ID is less than or equal to 3, or the vehicle ID is less than 2, or the lesson status is not \"Cancelled\", or the price is not 495.0?", "answer": {"columns": ["SUM(customer_id)"], "index": [0], "data": [["114"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_Agzto_15.png", "TableImg_Sr71g_15.png"], "original_data_index": 3605, "original_sql": "SELECT SUM(customer_id) FROM Customers WHERE last_name = \"Bernhard\" OR email_address = \"kitty.hand@example.net\" OR cell_mobile_phone_number != \"(780)719-4206x033\" OR \"amount_outstanding\" > 3900.0 EXCEPT SELECT SUM(customer_id) FROM Lessons WHERE lesson_time = \"9\" OR lesson_date <> \"2018-03-07 16:12:36\" AND \"customer_id\" = 11 OR \"lesson_id\" <= 3 OR \"vehicle_id\" < 2 OR lesson_status_code <> \"Cancelled\" OR \"price\" <> 495.0"} {"question": "What are the driver IDs greater than 5 from the driver table, combined with the driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7pnwi_12.png", "TableImg_1adp9_5.png"], "original_data_index": 3609, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs that are not equal to 9, but are not present in the school bus table with driver IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_68lqv_12.png", "TableImg_F7qna_5.png"], "original_data_index": 3607, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the employee IDs awarded in years other than 2017, excluding those from shop 5 or with employee ID not equal to 5 or are full-time?", "answer": {"columns": ["MIN(Employee_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_8gcn0_6.png", "TableImg_Z2jra_7.png"], "original_data_index": 3608, "original_sql": "SELECT MIN(Employee_ID) FROM evaluation WHERE Year_awarded != \"2017\" EXCEPT SELECT MIN(Employee_ID) FROM hiring WHERE \"Shop_ID\" = 5 OR \"Employee_ID\" <> 5 OR Is_full_time = \"T\""} {"question": "Which driver IDs are greater than or equal to 12 but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F5s2x_12.png", "TableImg_Ayua0_5.png"], "original_data_index": 3610, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs that are equal to 8, but not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_17ufe_12.png", "TableImg_E4y2j_5.png"], "original_data_index": 3611, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the driver IDs that are assigned to drivers but not to school buses, excluding driver ID 6 and driver ID 3 respectively?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Opx8y_12.png", "TableImg_6w3op_5.png"], "original_data_index": 3612, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are less than or equal to 4, or which driver IDs are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1r5z2_12.png", "TableImg_Thl53_5.png"], "original_data_index": 3615, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the aircraft IDs that are not equal to 2, but are not present in the airport_aircraft table with an aircraft ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2c5ps_5.png", "TableImg_24i2p_4.png"], "original_data_index": 3614, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "How many properties have a feature ID less than 2, and how many properties have a non-\"None\" value for oth_feature_3 and a vendor requested price greater than 13.4715 and a non-\"None\" value for fld_feature_1, or a date on the market of \"2016-05-06 16:53:39\", or a non-\"None\" value for oth_feature_2 and a \"None\" value for fld_feature_2 and a non-\"None\" value for shp_feature_2?", "answer": {"columns": ["COUNT(property_id)"], "index": [0, 1], "data": [["0"], ["1"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_Hhi6g_15.png", "TableImg_8lbvk_15.png"], "original_data_index": 3613, "original_sql": "SELECT COUNT(property_id) FROM Other_Property_Features WHERE \"feature_id\" < 2 UNION ALL SELECT COUNT(property_id) FROM Properties WHERE oth_feature_3 <> \"None\" AND \"vendor_requested_price\" > 13.4715 AND fld_feature_1 != \"None\" OR date_on_market = \"2016-05-06 16:53:39\" OR oth_feature_2 != \"None\" AND fld_feature_2 = \"None\" AND shp_feature_2 != \"None\""} {"question": "Which driver IDs are less than 10, and also which driver IDs are 4 or greater, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5j648_12.png", "TableImg_Ewpcr_5.png"], "original_data_index": 3616, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs, excluding driver 12, and also the driver IDs from school buses that are 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L6n60_12.png", "TableImg_Fbhva_5.png"], "original_data_index": 3617, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the other details from documents that are not document ID 801801, or not template ID 11, or not named \"Summer Show\", combined with the other details from paragraphs where the paragraph ID is 7 and the document ID is not 3830, or the paragraph text is not \"Japan\"?", "answer": {"columns": ["Other_Details"], "index": [0], "data": [[""]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_Ogeks_15.png", "TableImg_Uq1yy_15.png"], "original_data_index": 3618, "original_sql": "SELECT Other_Details FROM Documents WHERE \"Document_ID\" != 801801 OR \"Template_ID\" <> 11 OR Document_Name <> \"Summer Show\" UNION SELECT Other_Details FROM Paragraphs WHERE \"Paragraph_ID\" = 7 AND \"Document_ID\" != 3830 OR Paragraph_Text != \"Japan\""} {"question": "Is \"food\" the only allergy type listed in the Allergy_Type table?", "answer": {"columns": ["AllergyType"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["food"], ["food"], ["food"], ["food"], ["food"], ["food"], ["food"], ["environmental"], ["environmental"], ["environmental"], ["animal"], ["animal"], ["animal"], ["animal"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_V3k6v_14.png", "TableImg_Ddeny_14.png"], "original_data_index": 3619, "original_sql": "SELECT AllergyType FROM Allergy_Type WHERE AllergyType = \"food\" NOT IN (SELECT AllergyType FROM Allergy_Type WHERE AllergyType <> \"food\")"} {"question": "What are the album IDs for artist 90 that are not genre IDs less than or equal to 16?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_1ncpc_347.png", "TableImg_9fqam_25.png"], "original_data_index": 3620, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" = 90 EXCEPT SELECT id FROM genres WHERE \"id\" <= 16"} {"question": "Which driver IDs, excluding driver ID 3, are in the driver table but not in the school bus table where the driver ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_94mf0_12.png", "TableImg_Iptlt_5.png"], "original_data_index": 3621, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are less than or equal to 1, and also the driver IDs from school buses that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1zkgp_12.png", "TableImg_Pbkvk_5.png"], "original_data_index": 3622, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which aircraft IDs appear in both the aircraft table and the airport_aircraft table, where the aircraft ID is at least 5 in the aircraft table and greater than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dqdj4_5.png", "TableImg_3ixfp_4.png"], "original_data_index": 3625, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the aircraft IDs that are not 5 and also appear in airport aircraft with IDs less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_46fui_5.png", "TableImg_5f52u_4.png"], "original_data_index": 3623, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the shop IDs from the hiring table where the start year isn't 2003, combined with the shop IDs from the shop table where the shop name is FF Jaro and the district is Magnum Areena, or the number of products is less than 10000, or the shop ID is greater than 6, or the manager's name isn't Ilkka M\u00e4kel\u00e4?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_Ssgy8_7.png", "TableImg_Uqeii_9.png"], "original_data_index": 3624, "original_sql": "SELECT Shop_ID FROM hiring WHERE Start_from != \"2003\" UNION SELECT Shop_ID FROM shop WHERE Name = \"FF Jaro\" AND District = \"Magnum Areena\" OR \"Number_products\" < 10000 OR \"Shop_ID\" > 6 OR Manager_name != \"Ilkka M\u00e4kel\u00e4\""} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 4 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V7mhy_12.png", "TableImg_Sgcgd_5.png"], "original_data_index": 3628, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 8 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yjqjw_12.png", "TableImg_Paaqj_5.png"], "original_data_index": 3629, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the IDs of drivers, excluding driver 11, and the IDs of school buses, excluding bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F6e51_12.png", "TableImg_Bxza3_5.png"], "original_data_index": 3626, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the names and sales in billions for companies that don't have assets of 2265.8 billion, combined with the names and sales in billions for companies that are not Volkswagen Group or are in the oil and gas industry and have sales less than or equal to 216.2 billion and profits less than 15.9 billion?", "answer": {"columns": ["Name", "Sales_in_Billion"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["Agricultural Bank of China", "62.4"], ["BP", "375.5"], ["Berkshire Hathaway", "143.7"], ["Chevron", "236.3"], ["China Construction Bank", "68.7"], ["Citigroup", "102.6"], ["ExxonMobil", "433.5"], ["Gazprom", "117.6"], ["General Electric", "147.3"], ["HSBC", "102.0"], ["Industrial and Commercial Bank of China", "82.6"], ["JPMorgan Chase", "110.8"], ["PetroChina", "310.1"], ["Petrobras", "145.9"], ["Royal Dutch Shell", "470.2"], ["Total", "216.2"], ["Volkswagen Group", "221.9"], ["Walmart", "447.0"], ["Wells Fargo", "87.6"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Tw19x_19.png", "TableImg_Sjofl_19.png"], "original_data_index": 3627, "original_sql": "SELECT Name, Sales_in_Billion FROM company WHERE \"Assets_in_Billion\" <> 2265.8 UNION SELECT Name, Sales_in_Billion FROM company WHERE Name <> \"Volkswagen Group\" OR Industry = \"Oil and gas\" AND \"Sales_in_Billion\" <= 216.2 AND \"Profits_in_Billion\" < 15.9"} {"question": "What are the aircraft IDs that are not equal to 4, but are not present in the airport aircraft table with IDs greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ywxln_5.png", "TableImg_O9r26_4.png"], "original_data_index": 3631, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs that are both 4 or greater and also less than 10, considering only the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hgkgj_12.png", "TableImg_4dp1u_5.png"], "original_data_index": 3630, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that appear in both the aircraft table (with IDs greater than or equal to 1) and the airport_aircraft table (with IDs greater than 1)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yslr6_5.png", "TableImg_L2jer_4.png"], "original_data_index": 3632, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What is the sum of People IDs from the people table where the nationality is Russia, or the name is not Semen Poltavskiy, or the height is not 182.0, or the People ID is greater than or equal to 7 and the birth date is not August 16, 1982? Also, what is the sum of People IDs from the poker player table where the money rank is 58.0, or the poker player ID is not 3, or the best finish is 1.0, or the earnings are 476090.0 and the People ID is less than or equal to 6 and the final table made is less than or equal to 21.0?", "answer": {"columns": ["SUM(People_ID)"], "index": [0, 1], "data": [["28"], ["21"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Fzfja_7.png", "TableImg_Eb6st_5.png"], "original_data_index": 3633, "original_sql": "SELECT SUM(People_ID) FROM people WHERE Nationality = \"Russia\" OR Name != \"Semen Poltavskiy\" OR \"Height\" != 182.0 OR \"People_ID\" >= 7 AND Birth_Date != \"August 16, 1982\" UNION ALL SELECT SUM(People_ID) FROM poker_player WHERE \"Money_Rank\" = 58.0 OR \"Poker_Player_ID\" != 3 OR \"Best_Finish\" = 1.0 OR \"Earnings\" = 476090.0 AND \"People_ID\" <= 6 AND \"Final_Table_Made\" <= 21.0"} {"question": "What are the document type codes and descriptions for all document types except \"Paper\", and also for any document type with a description of \"u\"?", "answer": {"columns": ["document_type_code", "document_type_description"], "index": [0, 1, 2], "data": [["CD", "b"], ["Hard Drive", "f"], ["Paper", "u"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Hddrv_3.png", "TableImg_566i5_3.png"], "original_data_index": 3635, "original_sql": "SELECT document_type_code, document_type_description FROM Ref_Document_Types WHERE document_type_code <> \"Paper\" AND document_type_description <> \"u\" UNION ALL SELECT document_type_code, document_type_description FROM Ref_Document_Types WHERE document_type_description = \"u\""} {"question": "Which driver IDs are greater than 11, excluding those with ID 9, considering only the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W00da_12.png", "TableImg_V2we8_5.png"], "original_data_index": 3634, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs that are less than 12, excluding those driver IDs that are greater than 10 and are also present in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N3rgg_12.png", "TableImg_Uxb4w_5.png"], "original_data_index": 3636, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the member and branch IDs for members who are not member ID 4 and also not registered in the year 2016?", "answer": {"columns": ["Member_ID", "Branch_ID"], "index": [0, 1], "data": [["3", "1"], ["6", "6"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_N3ini_8.png", "TableImg_Nogpv_8.png"], "original_data_index": 3637, "original_sql": "SELECT Member_ID, Branch_ID FROM membership_register_branch WHERE \"Member_ID\" != 4 INTERSECT SELECT Member_ID, Branch_ID FROM membership_register_branch WHERE Register_Year <> \"2016\""} {"question": "Which driver IDs are equal to 4 in the driver table, or less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7dy3u_12.png", "TableImg_30bwu_5.png"], "original_data_index": 3640, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs that are less than 9, and also the driver IDs from school buses that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B9yms_12.png", "TableImg_Zhayr_5.png"], "original_data_index": 3641, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What is the highest user ID from reviews where the article ID is less than or equal to 1, the item ID is not 7, or the rating is 5, but not the highest user ID from user accounts where the name is not Emily and the user ID is less than 7?", "answer": {"columns": ["MAX(u_id)"], "index": [0], "data": [["2"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_G2l5f_7.png", "TableImg_Gh8bv_7.png"], "original_data_index": 3638, "original_sql": "SELECT MAX(u_id) FROM review WHERE \"a_id\" <= 1 OR \"i_id\" <> 7 OR \"rating\" = 5 EXCEPT SELECT MAX(u_id) FROM useracct WHERE name <> \"Emily\" AND \"u_id\" < 7"} {"question": "Which driver IDs are not 8, and which driver ID is 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Og6bs_12.png", "TableImg_Puobf_5.png"], "original_data_index": 3639, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the product IDs sold at store 3 and store 5?", "answer": {"columns": ["Product_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["4"], ["1"], ["2"], ["3"], ["4"], ["6"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_67rix_15.png", "TableImg_4wtoy_15.png"], "original_data_index": 3642, "original_sql": "SELECT Product_ID FROM store_product WHERE \"Store_ID\" = 3 UNION ALL SELECT Product_ID FROM store_product WHERE \"Store_ID\" = 5"} {"question": "Which driver IDs are less than or equal to 11 but not present in the school bus table with IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xm8j6_12.png", "TableImg_2acqd_5.png"], "original_data_index": 3643, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the document IDs that are in the drafts but not mailed to address 5 on a date other than November 3, 1971?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["10"], ["12"], ["13"], ["17"], ["20"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Qxlpl_15.png", "TableImg_Ocnvd_14.png"], "original_data_index": 3644, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" <> 23 EXCEPT SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" = 5 AND mailing_date <> \"1971-11-03 12:32:14\""} {"question": "What are the aircraft IDs that are less than 3, but not greater than 2, based on the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D9r0n_5.png", "TableImg_Vnrcx_4.png"], "original_data_index": 3645, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs are not equal to 9 but are not present in the school bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_90jqc_12.png", "TableImg_Raxfc_5.png"], "original_data_index": 3648, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0uogb_12.png", "TableImg_329r9_5.png"], "original_data_index": 3646, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID less than or equal to 1, combined with the aircraft IDs from the airport_aircraft table that have an ID less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qhu8u_5.png", "TableImg_Qiyg6_4.png"], "original_data_index": 3647, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the aircraft IDs that are both less than or equal to 4 and present in the aircraft table, and also less than or equal to 1 and present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_62xug_5.png", "TableImg_6ee49_4.png"], "original_data_index": 3650, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the driver IDs, excluding ID 10, that are present in both the driver and school bus tables, where the school bus driver ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dt2ll_12.png", "TableImg_Rr97c_5.png"], "original_data_index": 3652, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "How many documents meet these criteria: the employee ID is greater than 1, or the draft number is less than 1 and the copy number is less than 10, or the document ID is greater than or equal to 1, but exclude the count of documents where the document ID is not 20?", "answer": {"columns": ["COUNT(document_id)"], "index": [0], "data": [["4"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_8odxj_4.png", "TableImg_Ldmz3_8.png"], "original_data_index": 3651, "original_sql": "SELECT COUNT(document_id) FROM Circulation_History WHERE \"employee_id\" > 1 OR \"draft_number\" < 1 AND \"copy_number\" < 10 OR \"document_id\" >= 1 EXCEPT SELECT COUNT(document_id) FROM Draft_Copies WHERE \"document_id\" <> 20"} {"question": "What states are associated with area codes 504 or greater, and what states had votes created on March 9, 2018, at 19:03:36, excluding vote ID 3, excluding California, where the phone number is less than 6209222712 and the contestant number is 2 or less?", "answer": {"columns": ["state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190], "data": [["LA"], ["NM"], ["MN"], ["MA"], ["WA"], ["CA"], ["TX"], ["OH"], ["IA"], ["NY"], ["MI"], ["NY"], ["AZ"], ["CA"], ["VA"], ["OR"], ["NJ"], ["MO"], ["CA"], ["FL"], ["CA"], ["IA"], ["WA"], ["OH"], ["PA"], ["VA"], ["MO"], ["IN"], ["NM"], ["OK"], ["NY"], ["MI"], ["MS"], ["AZ"], ["NH"], ["SD"], ["KY"], ["NY"], ["WI"], ["NJ"], ["PA"], ["MN"], ["OH"], ["TN"], ["MI"], ["MA"], ["IL"], ["CA"], ["KS"], ["AZ"], ["CA"], ["CA"], ["CA"], ["IL"], ["NY"], ["MO"], ["IA"], ["NY"], ["CA"], ["MN"], ["MO"], ["CA"], ["MS"], ["CA"], ["GA"], ["MI"], ["TX"], ["FL"], ["ND"], ["NV"], ["VA"], ["NC"], ["GA"], ["CA"], ["IL"], ["IA"], ["TX"], ["CA"], ["WI"], ["NY"], ["PA"], ["NY"], ["CO"], ["CO"], ["PA"], ["FL"], ["TN"], ["NJ"], ["MI"], ["TX"], ["OH"], ["CA"], ["FL"], ["VA"], ["CA"], ["GA"], ["MN"], ["CA"], ["IN"], ["MS"], ["GA"], ["FL"], ["IL"], ["MA"], ["NV"], ["IL"], ["MA"], ["KS"], ["FL"], ["UT"], ["VT"], ["SC"], ["VA"], ["CA"], ["TX"], ["HI"], ["MI"], ["IN"], ["FL"], ["PA"], ["IL"], ["MO"], ["TX"], ["CA"], ["NC"], ["TX"], ["CA"], ["TX"], ["PA"], ["SC"], ["NY"], ["IL"], ["NJ"], ["FL"], ["NJ"], ["MA"], ["CA"], ["KY"], ["CT"], ["NJ"], ["FL"], ["SC"], ["TN"], ["AR"], ["IL"], ["PA"], ["TN"], ["TX"], ["FL"], ["MI"], ["AK"], ["NJ"], ["CA"], ["NC"], ["GA"], ["KS"], ["NY"], ["TX"], ["CA"], ["NY"], ["OK"], ["NC"], ["WI"], ["CA"], ["FL"], ["AZ"], ["TN"], ["CA"], ["TX"], ["OH"], ["TX"], ["FL"], ["MI"], ["CA"], ["CA"], ["MN"], ["FL"], ["TX"], ["NM"], ["CT"], ["CO"], ["OR"], ["TX"], ["NJ"], ["MO"], ["MA"], ["TX"], ["NC"], ["NC"], ["LA"], ["MI"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_B6vb5_305.png", "TableImg_1sm0x_4.png"], "original_data_index": 3649, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE \"area_code\" >= 504 UNION ALL SELECT state FROM VOTES WHERE created = \"2018-03-09 19:03:36\" AND \"vote_id\" <> 3 AND state != \"CA\" AND \"phone_number\" < 6209222712 AND \"contestant_number\" <= 2"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 9 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eoe72_12.png", "TableImg_6opjw_5.png"], "original_data_index": 3654, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 10 from the driver table and driver IDs less than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6pmqt_12.png", "TableImg_Dz260_5.png"], "original_data_index": 3653, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the minimum airport ID and the pilot for flights that meet the following criteria: the airport IATA code is BLL and the altitude is not 3650.0, and the airport ID is not 1, or the airport name is Bergen Airport, or the company ID is at least 11 and the country is Belgium and the velocity is not 240.0 and the date is October 25, 1963, or the city is Akureyri, or the pilot is not Thompson, grouped by vehicle flight number, and the velocity is greater than 240.0 or the pilot is Thompson?", "answer": {"columns": ["MIN(T1.id)", "Pilot"], "index": [0, 1], "data": [["1", "Thompson"], ["6", "Thompson"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_80ew9_9.png", "TableImg_Bz7fc_13.png"], "original_data_index": 3655, "original_sql": "SELECT MIN(T1.id), T2.Pilot FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA = \"BLL\" AND \"Altitude\" <> 3650.0 AND \"airport_id\" <> 1 OR name = \"Bergen Airport\" OR \"company_id\" >= 11 AND Country = \"Belgium\" AND \"Velocity\" <> 240.0 AND Date = \"October 25, 1963\" OR City = \"Akureyri\" OR Pilot <> \"Thompson\" GROUP BY Vehicle_Flight_number HAVING Velocity > 240.0 OR Pilot = \"Thompson\""} {"question": "Which driver IDs are less than 5 but not present in the school bus table with IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J5bhp_12.png", "TableImg_68jb3_5.png"], "original_data_index": 3656, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs that are either 1 or greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0fytj_5.png", "TableImg_Ovax7_4.png"], "original_data_index": 3660, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the IDs of albums with an ID of 217 or higher, or any album that isn't titled \"Fear Of The Dark\", and also the ID of playlist 12?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_L2mar_347.png", "TableImg_Wsww7_18.png"], "original_data_index": 3658, "original_sql": "SELECT id FROM albums WHERE \"id\" >= 217 OR title <> \"Fear Of The Dark\" UNION SELECT id FROM playlists WHERE \"id\" = 12"} {"question": "What are the driver IDs that are both greater than or equal to 4 in the driver table and greater than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O5qne_12.png", "TableImg_6btmo_5.png"], "original_data_index": 3659, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which contestant numbers are greater than 8 but not found in votes with a vote ID of 2 or higher, or where the state isn't CA, or where the contestant number is less than 2, or where the phone number is 5112677315 or less?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2], "data": [["9"], ["10"], ["11"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_Embf2_11.png", "TableImg_3xyp7_4.png"], "original_data_index": 3657, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE \"contestant_number\" > 8 EXCEPT SELECT contestant_number FROM VOTES WHERE \"vote_id\" >= 2 OR state <> \"CA\" AND \"contestant_number\" < 2 OR \"phone_number\" <= 5112677315"} {"question": "Which driver IDs are less than 7 but not present in the school bus table with IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1eund_12.png", "TableImg_Tqm80_5.png"], "original_data_index": 3663, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs that are both less than 10 and also appear in the school bus table with IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Go2jm_12.png", "TableImg_O446y_5.png"], "original_data_index": 3664, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are all the document type codes where the description is not \"f\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1], "data": [["CD"], ["Paper"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Ar7od_3.png", "TableImg_Dy6ah_3.png"], "original_data_index": 3662, "original_sql": "SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description != \"f\" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description <> \"f\""} {"question": "What are the driver IDs greater than 8 that are present in both the driver and school bus tables, excluding driver ID 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_83qnf_12.png", "TableImg_Hgh3x_5.png"], "original_data_index": 3661, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are greater than or equal to 9 but not found in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ua62s_12.png", "TableImg_16y3o_5.png"], "original_data_index": 3665, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are not equal to 4 and are present in the driver table but not in the school bus table, where the school bus table only includes driver IDs greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sx929_12.png", "TableImg_Ri91c_5.png"], "original_data_index": 3666, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs that are greater than or equal to 2, excluding those driver IDs that are not equal to 3, considering only the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G7wg3_12.png", "TableImg_Cbpfl_5.png"], "original_data_index": 3667, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What school types are found in schools that are not Occidental College, and also in schools where the school ID is less than or equal to 2 or the school is not Harvard Law School?", "answer": {"columns": ["Type"], "index": [0, 1, 2], "data": [["Private"], ["Private Catholic"], ["Public"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_1qkr8_7.png", "TableImg_192ly_7.png"], "original_data_index": 3668, "original_sql": "SELECT Type FROM school WHERE School != \"Occidental College\" INTERSECT SELECT Type FROM school WHERE \"School_ID\" <= 2 OR School != \"Harvard Law School\""} {"question": "What are the aircraft IDs that are either ID 4 from the aircraft table or greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2dpku_5.png", "TableImg_D6rgw_4.png"], "original_data_index": 3669, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the employee IDs and bonuses for employees who received a bonus of at least 2900 in 2016, and also for those who received exactly 2900 as a bonus, based on the evaluation data?", "answer": {"columns": ["Employee_ID", "Bonus"], "index": [0, 1, 2], "data": [["1", "2900"], ["10", "4000"], ["1", "2900"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_7hb53_6.png", "TableImg_Sql7q_6.png"], "original_data_index": 3670, "original_sql": "SELECT Employee_ID, Bonus FROM evaluation WHERE \"Bonus\" >= 2900.0 AND Year_awarded = \"2016\" UNION ALL SELECT Employee_ID, Bonus FROM evaluation WHERE \"Bonus\" = 2900.0"} {"question": "What is the sum of company IDs and the average of years worked for employees with a people ID greater than 2, a company ID of 13 or more, and 3 or fewer years worked, combined with the sum of company IDs and the average of years worked for employees with a company ID of 15 or more?", "answer": {"columns": ["SUM(Company_ID)", "AVG(Year_working)"], "index": [0, 1], "data": [["", ""], ["32.0", "2.5"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_Vlhj4_5.png", "TableImg_Zsa35_5.png"], "original_data_index": 3671, "original_sql": "SELECT SUM(Company_ID), AVG(Year_working) FROM employment WHERE \"People_ID\" > 2 AND \"Company_ID\" >= 13 AND \"Year_working\" <= 3 UNION ALL SELECT SUM(Company_ID), AVG(Year_working) FROM employment WHERE \"Company_ID\" >= 15"} {"question": "What are the IDs of flights with flight number \"M2-F1 #64\" and ID greater than 2, or velocity less than 240, or airport ID less than or equal to 4, that also have IDs present in operate companies where principal activities are not \"Airline\" or name is not \"Cathay Pacific Cargo\" and group equity shareholding is less than 100, and ID is greater than 5?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_Ni3mb_13.png", "TableImg_Vjlrk_14.png"], "original_data_index": 3672, "original_sql": "SELECT id FROM flight WHERE Vehicle_Flight_number = \"M2-F1 #64\" AND \"id\" > 2 OR \"Velocity\" < 240.0 OR \"airport_id\" <= 4 INTERSECT SELECT id FROM operate_company WHERE Principal_activities != \"Airline\" OR name != \"Cathay Pacific Cargo\" AND \"Group_Equity_Shareholding\" < 100.0 AND \"id\" > 5"} {"question": "What are the driver IDs that are either 12 from the driver table or 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sm68s_12.png", "TableImg_Adqn1_5.png"], "original_data_index": 3674, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are less than 3 but not equal to 4, considering only driver IDs from the 'driver' table and excluding those from the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I5bb5_12.png", "TableImg_Plcgg_5.png"], "original_data_index": 3673, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are not equal to 2 but are not present in the school bus table with driver IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_47714_12.png", "TableImg_E234s_5.png"], "original_data_index": 3676, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What states have area codes less than or equal to 979, excluding California, and also either have a phone number of 7182887233 or are not New Jersey?", "answer": {"columns": ["state"], "index": [0], "data": [["NY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Ie2fj_305.png", "TableImg_79m3h_4.png"], "original_data_index": 3675, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE \"area_code\" <= 979 AND state <> \"CA\" INTERSECT SELECT state FROM VOTES WHERE \"phone_number\" = 7182887233 OR state <> \"NJ \""} {"question": "What are the driver IDs greater than 5 that are not driver IDs from school buses that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5qxa9_12.png", "TableImg_Xt5e7_5.png"], "original_data_index": 3677, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that appear in the 'aircraft' table more than 5 times or in the 'airport_aircraft' table at least 2 times?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4x2av_5.png", "TableImg_I80tb_4.png"], "original_data_index": 3678, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the driver IDs that are either 4 or greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7s9ts_12.png", "TableImg_C97dh_5.png"], "original_data_index": 3679, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are not 12, and also which driver ID is 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Izv69_12.png", "TableImg_95hva_5.png"], "original_data_index": 3680, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the IDs of albums that are not by artist 127 and not album 117, or have the title \"BBC Sessions [Disc 1] live\", and also the IDs of playlists named \"Audiobooks\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["4"], ["6"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_Out5z_347.png", "TableImg_9kgf1_18.png"], "original_data_index": 3682, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" <> 127 AND \"id\" <> 117 OR title = \"BBC Sessions [Disc 1] live\" UNION ALL SELECT id FROM playlists WHERE name = \"Audiobooks\""} {"question": "Which driver IDs, excluding driver ID 12, are present in both the driver and school bus tables, where the school bus driver IDs are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lccgd_12.png", "TableImg_Hhsk1_5.png"], "original_data_index": 3681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are both less than 11 and present in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7gw2i_12.png", "TableImg_Uxxy5_5.png"], "original_data_index": 3683, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are less than 12 and also appear in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8ie1f_12.png", "TableImg_Ae84b_5.png"], "original_data_index": 3686, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 10 from the driver table and driver IDs greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Byl1a_12.png", "TableImg_3u64w_5.png"], "original_data_index": 3684, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the company IDs where the working year is 2 or less, or where the people ID is less than 4, the company ID is 17 or greater, and the working year is not 1?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2], "data": [["7"], ["11"], ["15"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_2ui89_5.png", "TableImg_N9u4h_5.png"], "original_data_index": 3685, "original_sql": "SELECT Company_ID FROM employment WHERE \"Year_working\" <= 2 UNION SELECT Company_ID FROM employment WHERE \"People_ID\" < 4 AND \"Company_ID\" >= 17 AND \"Year_working\" != 1"} {"question": "What is the average aircraft ID for each aircraft, considering data from the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID", "AVG(T2.Aircraft_ID)"], "index": [0], "data": [["2", "2.75"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eeu3w_5.png", "TableImg_4khtb_4.png"], "original_data_index": 3690, "original_sql": "SELECT T1.Aircraft_ID, AVG(T2.Aircraft_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the flight IDs, distances, and arrival dates for flights where the flight ID is greater than 3 and the arrival date is \"04/12/2005 12:02\", or the distance is 1251, or the flight number is less than or equal to 2, or the destination is \"Washington D.C.\" and the price is not 261.56, or the departure date is \"04/12/2005 06:30\", excluding flights where the flight number is not 34 and the flight ID is greater than or equal to 5, or the price is greater than 375.23 and the destination is not \"Washington D.C.\" and the arrival date is not \"04/12/2005 08:45\" and the departure date is not \"04/12/2005 07:03\" and the origin is \"Los Angeles\"?", "answer": {"columns": ["aid", "distance", "arrival_date"], "index": [0, 1], "data": [["1", "2308", "04/12/2005 09:40"], ["2", "1251", "04/12/2005 07:05"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Axbvc_10.png", "TableImg_Tmwxh_10.png"], "original_data_index": 3693, "original_sql": "SELECT aid, distance, arrival_date FROM flight WHERE \"aid\" > 3 AND arrival_date = \"04/12/2005 12:02\" OR \"distance\" = 1251 OR \"flno\" <= 2 OR destination = \"Washington D.C.\" AND \"price\" != 261.56 OR departure_date = \"04/12/2005 06:30\" EXCEPT SELECT aid, distance, arrival_date FROM flight WHERE \"flno\" <> 34 AND \"aid\" >= 5 OR \"price\" > 375.23 AND destination <> \"Washington D.C.\" AND arrival_date != \"04/12/2005 08:45\" AND departure_date <> \"04/12/2005 07:03\" AND origin = \"Los Angeles\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 2 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S6ucm_12.png", "TableImg_U3wft_5.png"], "original_data_index": 3692, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the document ID, copy number, and draft number for records in the Circulation_History table where the document ID is less than or equal to 20 and the draft number is greater than 2, or where the employee ID is less than or equal to 1 and the copy number is not 4? Also, what are the document ID, copy number, and draft number from the Draft_Copies table where the document ID is greater than 1 and the draft number is not 9, or where the copy number is not 10?", "answer": {"columns": ["document_id", "copy_number", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["20", "15", "17"], ["1", "5", "2"], ["10", "10", "20"], ["2", "5", "8"], ["4", "6", "9"], ["23", "15", "9"], ["10", "10", "20"], ["2", "4", "1"], ["1", "5", "2"], ["20", "15", "17"], ["12", "10", "12"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_Lv8rr_4.png", "TableImg_L76fo_8.png"], "original_data_index": 3688, "original_sql": "SELECT document_id, copy_number, draft_number FROM Circulation_History WHERE \"document_id\" <= 20 AND \"draft_number\" > 2 OR \"employee_id\" <= 1 AND \"copy_number\" != 4 UNION ALL SELECT document_id, copy_number, draft_number FROM Draft_Copies WHERE \"document_id\" > 1 AND \"draft_number\" != 9 OR \"copy_number\" <> 10"} {"question": "How many companies have a market value in billions, grouped by people ID, where the market value is less than or equal to 213.7, or the company name is \"Industrial and Commercial Bank of China\", or the profits are not 20.1 and the industry is not \"Conglomerate\", or the assets are 1563.9 and the working year is less than or equal to 1, or the people ID is greater than 3, or the sales are 447.0, or the headquarters is not \"China\"?", "answer": {"columns": ["COUNT(T1.Market_Value_in_Billion)", "People_ID"], "index": [0], "data": [["5", "3"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Aavjd_19.png", "TableImg_Pvx7t_5.png"], "original_data_index": 3694, "original_sql": "SELECT COUNT(T1.Market_Value_in_Billion), T2.People_ID FROM company as T1 JOIN employment as T2 ON T1.Company_ID = T2.Company_ID WHERE \"Market_Value_in_Billion\" <= 213.7 OR Name = \"Industrial and Commercial Bank of China\" OR \"Profits_in_Billion\" <> 20.1 AND Industry <> \"Conglomerate\" OR \"Assets_in_Billion\" = 1563.9 AND \"Year_working\" <= 1 OR \"People_ID\" > 3 OR \"Sales_in_Billion\" = 447.0 OR Headquarters <> \"China\""} {"question": "What are the driver IDs that are greater than or equal to 5, and also the driver IDs that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5gzg1_12.png", "TableImg_5rcje_5.png"], "original_data_index": 3696, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 10 from the driver table and driver IDs 3 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nmwij_12.png", "TableImg_Lf7fl_5.png"], "original_data_index": 3695, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs, excluding driver ID 12, that are present in both the driver and school bus tables, where the school bus driver ID is 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6b20v_12.png", "TableImg_2mvfg_5.png"], "original_data_index": 3697, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are less than 3, and also the driver ID 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_10rdr_12.png", "TableImg_H6url_5.png"], "original_data_index": 3698, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that are equal to 3, but not equal to 4, based on driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y32ny_12.png", "TableImg_Epjpo_5.png"], "original_data_index": 3699, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 2 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gr9ro_12.png", "TableImg_Ydf3m_5.png"], "original_data_index": 3701, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the distance and aid values from the aircraft table where the aircraft name isn't \"Boeing 757-300\", or the aid is at least 14, or the distance is less than 1502? Also, what are the distance and aid values from the flight table where the origin isn't \"Chicago\", or the distance is at least 1251 and the destination is \"Sydney\", or the aid is at least 1, or the departure date isn't \"04/12/2005 07:03\"? Combine the results from both.", "answer": {"columns": ["distance", "aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], "data": [["30", "16"], ["520", "7"], ["802", "10"], ["1251", "2"], ["1502", "4"], ["1504", "15"], ["1530", "5"], ["1749", "3"], ["1749", "9"], ["1805", "14"], ["2128", "6"], ["2308", "1"], ["2551", "5"], ["2551", "7"], ["2605", "13"], ["2606", "6"], ["3383", "2"], ["4103", "8"], ["5478", "9"], ["6441", "11"], ["6475", "12"], ["6900", "9"], ["7120", "3"], ["7487", "3"], ["8430", "1"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_7zhm1_16.png", "TableImg_Omig4_10.png"], "original_data_index": 3700, "original_sql": "SELECT distance, aid FROM aircraft WHERE name <> \"Boeing 757-300\" OR \"aid\" >= 14 OR \"distance\" < 1502 UNION SELECT distance, aid FROM flight WHERE origin != \"Chicago\" OR \"distance\" >= 1251 AND destination = \"Sydney\" OR \"aid\" >= 1 OR departure_date != \"04/12/2005 07:03\""} {"question": "Which coach IDs are associated with coaches whose rank is not 5, or with players who started coaching after 2012?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_7rvu0_5.png", "TableImg_Wi2a9_7.png"], "original_data_index": 3704, "original_sql": "SELECT Coach_ID FROM coach WHERE \"Rank\" != 5 UNION SELECT Coach_ID FROM player_coach WHERE \"Starting_year\" > 2012"} {"question": "What are the driver IDs that are either greater than or equal to 4 in the driver table, or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nbsug_12.png", "TableImg_L0lbo_5.png"], "original_data_index": 3705, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are both less than or equal to 8 and also not equal to 4, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0um8x_12.png", "TableImg_Y9tq9_5.png"], "original_data_index": 3706, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that are less than 5, but not equal to 1, considering only the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H8fut_5.png", "TableImg_D6xlm_4.png"], "original_data_index": 3691, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs, excluding driver ID 1, are in the driver table but not in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oa9e4_12.png", "TableImg_F7tu5_5.png"], "original_data_index": 3703, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are greater than or equal to 9, and also the driver IDs from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ydk3f_12.png", "TableImg_Bygq7_5.png"], "original_data_index": 3707, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the ages and majors of students who either have a major of 550, a first name other than Arthur, or a student ID less than or equal to 1022 and a sex other than M or a city code that is not BAL, or who are under 20 years old, or have a major less than or equal to 100 and a city code of ROC, or a last name other than Lee and an advisor other than 8722, or a first name other than Lisa?", "answer": {"columns": ["Age", "Major"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["16", "600"], ["17", "100"], ["17", "540"], ["17", "600"], ["18", "50"], ["18", "520"], ["18", "540"], ["18", "550"], ["18", "600"], ["19", "520"], ["19", "600"], ["20", "520"], ["20", "550"], ["20", "600"], ["21", "550"], ["21", "600"], ["22", "520"], ["22", "600"], ["26", "50"], ["26", "600"], ["27", "600"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Zxtzx_34.png", "TableImg_Ud2st_34.png"], "original_data_index": 3708, "original_sql": "SELECT Age, Major FROM Student WHERE \"Major\" = 550 OR Fname != \"Arthur\" OR \"StuID\" <= 1022 AND Sex != \"M\" OR city_code <> \"BAL\" UNION SELECT Age, Major FROM Student WHERE \"Age\" <= 19 OR \"Major\" <= 100 AND city_code = \"ROC\" OR LName <> \"Lee\" AND \"Advisor\" <> 8722 OR Fname != \"Lisa\""} {"question": "What are the driver IDs that are less than 5 from the driver table, combined with the driver IDs that are less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pyl3r_12.png", "TableImg_Hdxcc_5.png"], "original_data_index": 3709, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs greater than or equal to 11 that are in the driver table but not in the school bus table, excluding any driver with ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nfs88_12.png", "TableImg_Id6or_5.png"], "original_data_index": 3710, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs, excluding driver ID 7, that are present in both the driver and school bus tables, where the school bus driver IDs are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Towop_12.png", "TableImg_4n93c_5.png"], "original_data_index": 3711, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are not equal to 11, but are not found on school buses with IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_19vi1_12.png", "TableImg_10uii_5.png"], "original_data_index": 3712, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the store and district IDs where the district ID is 15 or less and the store ID is greater than 2, and also where the store ID is not 3 and the district ID is 4 or greater?", "answer": {"columns": ["Store_ID", "District_ID"], "index": [0], "data": [["4", "4"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_Cah7l_5.png", "TableImg_Piz30_5.png"], "original_data_index": 3714, "original_sql": "SELECT Store_ID, District_ID FROM store_district WHERE \"District_ID\" <= 15 AND \"Store_ID\" > 2 INTERSECT SELECT Store_ID, District_ID FROM store_district WHERE \"Store_ID\" != 3 AND \"District_ID\" >= 4"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 7 and driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_61aqa_12.png", "TableImg_Xmt4v_5.png"], "original_data_index": 3715, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs, excluding driver ID 4, that are present in both the driver table and the school bus table, where the driver ID is less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I4xvs_12.png", "TableImg_Ftj5c_5.png"], "original_data_index": 3716, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the aircraft IDs that appear in the aircraft table but not in the airport_aircraft table, where the aircraft ID is greater than 1 in both tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8b08g_5.png", "TableImg_Uqxsz_4.png"], "original_data_index": 3717, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs that are either 8 or greater from the driver table, or greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D1irz_12.png", "TableImg_4m9rp_5.png"], "original_data_index": 3719, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the descriptions and codes of shipping agents, excluding those named \"UPS\" or with a description of \"k\" and a code other than \"US\", combined with the descriptions and codes of agents with the code \"US\" or a description other than \"q\" and the name \"USPS\"?", "answer": {"columns": ["shipping_agent_description", "shipping_agent_code"], "index": [0, 1, 2, 3, 4], "data": [["q", "US"], ["w", "AL"], ["k", "FE"], ["t", "SH"], ["q", "US"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_86uvw_5.png", "TableImg_Kgste_5.png"], "original_data_index": 3702, "original_sql": "SELECT shipping_agent_description, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name <> \"UPS\" OR shipping_agent_description = \"k\" AND shipping_agent_code != \"US\" UNION ALL SELECT shipping_agent_description, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"US\" OR shipping_agent_description != \"q\" AND shipping_agent_name = \"USPS\""} {"question": "Which driver IDs are present in both the driver and school bus tables, where the driver ID is no more than 5 in the driver table and no more than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qzu5l_12.png", "TableImg_U8nbw_5.png"], "original_data_index": 3713, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What is the average employee ID, name, and salary for employees who are not Lawrence Sperry, and also what is the average employee ID, name, and salary for employees who are not Linda Davis or whose salary is less than or equal to 205187?", "answer": {"columns": ["AVG(eid)", "name", "salary"], "index": [0, 1], "data": [["365155946.1666667", "James Smith", "120433"], ["365973091.483871", "James Smith", "120433"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Shf2f_31.png", "TableImg_Izuxr_31.png"], "original_data_index": 3718, "original_sql": "SELECT AVG(eid), name, salary FROM employee WHERE name != \"Lawrence Sperry\" UNION SELECT AVG(eid), name, salary FROM employee WHERE name <> \"Linda Davis\" OR \"salary\" <= 205187"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and also appear in the airport aircraft table with IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wtohq_5.png", "TableImg_Vf57l_4.png"], "original_data_index": 3720, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the aircraft IDs that are not 5, but are not also aircraft IDs greater than 5 that are associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lna1v_5.png", "TableImg_Li3t6_4.png"], "original_data_index": 3721, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the aircraft IDs, excluding aircraft ID 2, from the aircraft table, combined with the aircraft IDs, excluding aircraft ID 1, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ngbl0_5.png", "TableImg_Gfph9_4.png"], "original_data_index": 3724, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are not equal to 11 but are not found in the school bus table with driver IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D3a7g_12.png", "TableImg_Vs8or_5.png"], "original_data_index": 3726, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are either 4, or not 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A8ld5_12.png", "TableImg_Xnsaj_5.png"], "original_data_index": 3725, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are greater than or equal to 3 and also appear in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K10gz_12.png", "TableImg_Vhzfk_5.png"], "original_data_index": 3727, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 3 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Awdt9_12.png", "TableImg_Jbx5w_5.png"], "original_data_index": 3728, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are either less than or equal to 3 in the driver table or greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L5740_12.png", "TableImg_7ov4i_5.png"], "original_data_index": 3729, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 1 from the driver table and driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2o74f_12.png", "TableImg_Lh92e_5.png"], "original_data_index": 3730, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are not equal to 9 and are not present in the school bus table with driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uxkl7_12.png", "TableImg_Jgf5o_5.png"], "original_data_index": 3731, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs, excluding driver ID 12, are in the driver table, and also which driver ID 4 is in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W0oh1_12.png", "TableImg_269dp_5.png"], "original_data_index": 3732, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the years and member IDs from the purchase table where the branch ID is not \"3\", combined with the years and member IDs where the branch ID is not \"1\" and the total pounds are less than or equal to 430.29, or the member ID is less than or equal to 2?", "answer": {"columns": ["Year", "Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["2018", "2"], ["2018", "2"], ["2017", "3"], ["2018", "3"], ["2018", "4"], ["2018", "6"], ["2018", "1"], ["2018", "2"], ["2018", "3"], ["2018", "6"], ["2018", "2"], ["2018", "2"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_8d8or_8.png", "TableImg_W1lfz_8.png"], "original_data_index": 3733, "original_sql": "SELECT Year, Member_ID FROM purchase WHERE Branch_ID != \"3\" UNION ALL SELECT Year, Member_ID FROM purchase WHERE Branch_ID <> \"1\" AND \"Total_pounds\" <= 430.29 OR \"Member_ID\" <= 2"} {"question": "What are the names and user IDs of all users, excluding Roxi, and also those with a user ID of 2, plus any user with a user ID of 7 or less?", "answer": {"columns": ["name", "u_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["Helen", "1"], ["Terry", "3"], ["Nancy", "4"], ["Rosie", "5"], ["Emily", "7"], ["Helen", "1"], ["Mark", "2"], ["Terry", "3"], ["Nancy", "4"], ["Rosie", "5"], ["Roxi", "6"], ["Emily", "7"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_4oved_7.png", "TableImg_25olb_7.png"], "original_data_index": 3734, "original_sql": "SELECT name, u_id FROM useracct WHERE name <> \"Roxi\" AND \"u_id\" <> 2 UNION ALL SELECT name, u_id FROM useracct WHERE \"u_id\" <= 7"} {"question": "What are the driver IDs that are either greater than or equal to 3 in the driver table or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_41ayb_12.png", "TableImg_Fdnf6_5.png"], "original_data_index": 3735, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs greater than 4 who are not also driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pdwoy_12.png", "TableImg_Int0f_5.png"], "original_data_index": 3736, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are either less than or equal to 8 in the driver table or less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H8p9a_12.png", "TableImg_Pbc6e_5.png"], "original_data_index": 3722, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are all the aid values from the certificate table where aid is 12 or greater, combined with all aid values from the flight table where aid is not 3 or the destination is not Washington D.C.?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["12"], ["12"], ["13"], ["12"], ["13"], ["14"], ["15"], ["12"], ["13"], ["14"], ["12"], ["14"], ["12"], ["15"], ["1"], ["3"], ["2"], ["6"], ["3"], ["9"], ["7"], ["5"], ["9"], ["10"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_S0eqw_69.png", "TableImg_G389c_10.png"], "original_data_index": 3723, "original_sql": "SELECT aid FROM certificate WHERE \"aid\" >= 12 UNION ALL SELECT aid FROM flight WHERE \"aid\" != 3 OR destination != \"Washington D.C.\""} {"question": "Which driver IDs are not equal to 5 and are not found in the school bus table with driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ivla2_12.png", "TableImg_4lznp_5.png"], "original_data_index": 3739, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What car models are not \"volkswagen\" or have a \"MakeId\" less than or equal to 142, and also appear in the model list with a \"ModelId\" not equal to 4 and a \"Maker\" not equal to 4, excluding \"datsun\"?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "data": [["amc"], ["audi"], ["bmw"], ["cadillac"], ["capri"], ["chevrolet"], ["chrysler"], ["citroen"], ["datsun"], ["dodge"], ["fiat"], ["ford"], ["hi"], ["honda"], ["mazda"], ["mercedes"], ["mercedes-benz"], ["mercury"], ["nissan"], ["oldsmobile"], ["opel"], ["peugeot"], ["plymouth"], ["pontiac"], ["renault"], ["saab"], ["subaru"], ["toyota"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_U5v2y_406.png", "TableImg_Lbzwb_36.png"], "original_data_index": 3737, "original_sql": "SELECT Model FROM car_names WHERE Model <> \"volkswagen\" OR \"MakeId\" <= 142 INTERSECT SELECT Model FROM model_list WHERE \"ModelId\" <> 4 OR \"Maker\" <> 4 AND Model <> \"datsun\""} {"question": "What are the maximum PetIDs and corresponding StuIDs for pets with PetIDs less than 2003, combined with the maximum PetIDs and StuIDs for pets with PetID equal to 2002 or StuID greater than 1001?", "answer": {"columns": ["MAX(PetID)", "StuID"], "index": [0, 1], "data": [["2002", "1002"], ["2003", "1002"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Gzzps_3.png", "TableImg_Ntxpj_3.png"], "original_data_index": 3738, "original_sql": "SELECT MAX(PetID), StuID FROM Has_Pet WHERE \"PetID\" < 2003 UNION SELECT MAX(PetID), StuID FROM Has_Pet WHERE \"PetID\" = 2002 OR \"StuID\" > 1001"} {"question": "What are the driver IDs, excluding driver ID 10, and also the driver IDs less than 3, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q7su3_12.png", "TableImg_Zfh7c_5.png"], "original_data_index": 3741, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the copy numbers, document IDs, and draft numbers for copies where the copy number is 5 or greater, the document ID is not 4, and the draft number is less than 20, or where the draft number is less than 1?", "answer": {"columns": ["copy_number", "document_id", "draft_number"], "index": [0, 1, 2, 3, 4], "data": [["5", "1", "2"], ["5", "2", "8"], ["10", "12", "12"], ["15", "20", "17"], ["15", "23", "9"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_Cnlat_8.png", "TableImg_7h7jn_8.png"], "original_data_index": 3742, "original_sql": "SELECT copy_number, document_id, draft_number FROM Draft_Copies WHERE \"copy_number\" >= 5 AND \"document_id\" <> 4 AND \"draft_number\" < 20 UNION SELECT copy_number, document_id, draft_number FROM Draft_Copies WHERE \"draft_number\" < 1"} {"question": "What are the driver IDs that are either 9 or less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gqmlc_12.png", "TableImg_U8ll8_5.png"], "original_data_index": 3744, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that are less than or equal to 3, excluding those aircraft IDs greater than 2 that are also present in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I6n67_5.png", "TableImg_9x49s_4.png"], "original_data_index": 3743, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the driver IDs that are both greater than or equal to 1 and also less than or equal to 4, considering only those driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Axsli_12.png", "TableImg_Quugd_5.png"], "original_data_index": 3745, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs, excluding driver ID 5, and also driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nxyhj_12.png", "TableImg_Rmw1c_5.png"], "original_data_index": 3748, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 9, and where the driver ID is greater than 1?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qj88p_12.png", "TableImg_Zv8lq_5.png"], "original_data_index": 3746, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and not equal to 1, considering only those aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5zzxv_5.png", "TableImg_T6lxp_4.png"], "original_data_index": 3747, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the IDs of drivers, excluding driver 10, and also the IDs of school bus drivers, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6riro_12.png", "TableImg_B82vs_5.png"], "original_data_index": 3751, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What is the earliest year worked and the total company ID, grouped by people ID, for employment records where the year worked is 3 or less, the people ID is 2, or the company ID is 13 or less, combined with records where the people ID is less than 4?", "answer": {"columns": ["MIN(Year_working)", "People_ID", "SUM(Company_ID)"], "index": [0, 1], "data": [["1", "1", "46"], ["1", "1", "39"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_Jxxm4_5.png", "TableImg_Eb9r1_5.png"], "original_data_index": 3750, "original_sql": "SELECT MIN(Year_working), People_ID, SUM(Company_ID) FROM employment WHERE \"Year_working\" <= 3 OR \"People_ID\" = 2 OR \"Company_ID\" <= 13 UNION ALL SELECT MIN(Year_working), People_ID, SUM(Company_ID) FROM employment WHERE \"People_ID\" < 4"} {"question": "What are the document type codes for documents that aren't shipped by UP and have receipt number 117, plus all document type codes that aren't CD?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2], "data": [["CD"], ["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_K4zd9_15.png", "TableImg_Axxp4_3.png"], "original_data_index": 3749, "original_sql": "SELECT document_type_code FROM Documents WHERE shipping_agent_code != \"UP\" AND receipt_number = \"117\" UNION ALL SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code <> \"CD\""} {"question": "Which driver IDs are either less than or equal to 9 in the driver table or less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vtqhu_12.png", "TableImg_Veib0_5.png"], "original_data_index": 3740, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are less than 6, and also the driver IDs from school buses that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2yr3z_12.png", "TableImg_Nnrqc_5.png"], "original_data_index": 3756, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that appear in both the aircraft table with an ID of 5 or greater and the airport_aircraft table with an ID greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eu9ie_5.png", "TableImg_W4bob_4.png"], "original_data_index": 3752, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the driver IDs, excluding ID 10, that are present in the driver table, combined with the driver IDs, excluding ID 3, that are present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9zeu6_12.png", "TableImg_Zwhn1_5.png"], "original_data_index": 3754, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are less than 4 but not equal to 4, considering only driver IDs from the 'driver' table and excluding those from the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iem1g_12.png", "TableImg_Uojgt_5.png"], "original_data_index": 3757, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 8) and the school bus table (with driver ID 4)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6x953_12.png", "TableImg_J54y8_5.png"], "original_data_index": 3758, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the area codes and contestant numbers, grouped by the creation date, where the vote ID is no more than 5 and the contestant number is at least 3?", "answer": {"columns": ["area_code", "contestant_number"], "index": [0, 1], "data": [["212", "3"], ["209", "3"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Zffmc_305.png", "TableImg_Pat88_4.png"], "original_data_index": 3759, "original_sql": "SELECT T1.area_code, T2.contestant_number FROM AREA_CODE_STATE as T1 JOIN VOTES as T2 ON T1.state == T2.state GROUP BY created HAVING vote_id <= 5 AND contestant_number >= 3"} {"question": "Which driver IDs are greater than or equal to 8, but not present in the school bus table except for driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mrcun_12.png", "TableImg_Ss47r_5.png"], "original_data_index": 3760, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the IDs of players who are not male, or are retired, and also have a player ID greater than 6, or have 14097 votes, or are not ranked 2nd, or don't live in Brandon? Also, what are the player IDs from the player-coach table where the player ID is not 14 and the coach ID is not 5?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["1"], ["2"], ["3"], ["4"], ["6"], ["10"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_86xdp_14.png", "TableImg_Azcgp_7.png"], "original_data_index": 3761, "original_sql": "SELECT Player_ID FROM player WHERE Gender != \"M\" OR Occupation = \"Retired\" AND \"Player_ID\" > 6 OR \"Votes\" = 14097 OR Rank <> \"2nd\" OR Residence <> \"Brandon\" UNION ALL SELECT Player_ID FROM player_coach WHERE \"Player_ID\" != 14 AND \"Coach_ID\" <> 5"} {"question": "What are the driver IDs that are less than 9 from the driver table, combined with the driver IDs that are less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J18os_12.png", "TableImg_Fll3m_5.png"], "original_data_index": 3762, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the aircraft IDs that are either 4 or greater, or less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ou4ch_5.png", "TableImg_Rkbkr_4.png"], "original_data_index": 3764, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the driver IDs greater than 12 from the driver table, combined with the driver IDs greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sshzh_12.png", "TableImg_Qehw8_5.png"], "original_data_index": 3763, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Show me the contestant number, phone number, and creation date for votes where the contestant number is less than 2 and the state isn't CA and the phone number isn't 6209222712, or the vote ID isn't 5. Also, show me the contestant number, phone number, and creation date for votes created on March 9, 2018, at 7:03:40 PM, or where the contestant number is not 3.", "answer": {"columns": ["contestant_number", "phone_number", "created"], "index": [0, 1, 2, 3, 4], "data": [["2", "7182887233", "2018-03-09 19:03:21"], ["3", "7148407040", "2018-03-09 19:03:36"], ["3", "6209222712", "2018-03-09 19:03:39"], ["2", "7182887233", "2018-03-09 19:03:21"], ["5", "5112677315", "2018-03-09 19:03:40"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_3wmvs_4.png", "TableImg_2ktne_4.png"], "original_data_index": 3765, "original_sql": "SELECT contestant_number, phone_number, created FROM VOTES WHERE \"contestant_number\" < 2 AND state != \"CA\" AND \"phone_number\" != 6209222712 OR \"vote_id\" != 5 UNION ALL SELECT contestant_number, phone_number, created FROM VOTES WHERE created = \"2018-03-09 19:03:40\" OR \"contestant_number\" <> 3"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 7 from the driver table and including only driver IDs less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oyhhn_12.png", "TableImg_Pggct_5.png"], "original_data_index": 3766, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are either 3 or not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zh2mv_12.png", "TableImg_Pui53_5.png"], "original_data_index": 3767, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are less than or equal to 7, but not found in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_56vog_12.png", "TableImg_1u5cr_5.png"], "original_data_index": 3768, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs that are greater than 3 and also have an ID of 5 or more, considering both the aircraft and airport-aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P3esz_5.png", "TableImg_K7b1y_4.png"], "original_data_index": 3769, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs, excluding ID 10, are present in both the driver and school bus tables, also excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ytdh1_12.png", "TableImg_Q6zg9_5.png"], "original_data_index": 3755, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the aircraft IDs that are either less than or equal to 3 in the aircraft table, or greater than or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_821fb_5.png", "TableImg_1bhph_4.png"], "original_data_index": 3771, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the driver IDs, excluding driver ID 7, that are present in both the driver and school bus tables, where the driver ID is less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K51eh_12.png", "TableImg_Ob5f7_5.png"], "original_data_index": 3773, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs that are either 2 from the aircraft table or less than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4gvsf_5.png", "TableImg_6xai5_4.png"], "original_data_index": 3772, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the maximum page size, DPI, interface, color pages per minute, dimensions, product ID, and product name for products that either don't use USB 2.0, have a product ID less than 6, have a DPI greater than 600, aren't the ScanShell 3000DN, or have different dimensions than 298 x 209 x 99, or have color pages per minute less than 3.0, use USB 2.0, aren't the Canon imageFORMULA P-150, have a DPI not equal to 600, or have different dimensions than 280 x 95 x 40?", "answer": {"columns": ["max_page_size", "dpi", "interface", "pages_per_minute_color", "dimensions", "product_id", "product"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["A4", "600", "USB 2.0", "30", "301 x 160 x 158", "1", "Fujitsu fi-6130 A4 Series Scanner"], ["A4", "600", "USB 2.0", "28", "303 x 94 x 60", "2", "Plustek MobileOffice D28 Corporate"], ["A4", "600", "USB 2.0", "4", "289 x 51 x 38", "3", "Xerox Travel Scanner 100"], ["A4", "600", "USB 2.0", "3", "300 x 50 x 45", "4", "ScanShell 3000DN"], ["216mm x 356mm", "600", "USB 2.0", "10", "280 x 95 x 40", "5", "Canon imageFORMULA P-150"], ["A4", "600", "USB 2.0", "30", "301 x 160 x 158", "1", "Fujitsu fi-6130 A4 Series Scanner"], ["A4", "600", "USB 2.0", "28", "303 x 94 x 60", "2", "Plustek MobileOffice D28 Corporate"], ["A4", "600", "USB 2.0", "4", "289 x 51 x 38", "3", "Xerox Travel Scanner 100"], ["A4", "600", "USB 2.0", "3", "300 x 50 x 45", "4", "ScanShell 3000DN"], ["216mm x 356mm", "600", "USB 2.0", "10", "280 x 95 x 40", "5", "Canon imageFORMULA P-150"], ["216mm x 355mm", "600", "USB 2.0", "36", "298 x 209 x 99", "6", "Canon DR-2080C"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Paznp_6.png", "TableImg_Uoqq0_6.png"], "original_data_index": 3770, "original_sql": "SELECT max_page_size, dpi, interface, pages_per_minute_color, dimensions, product_id, product FROM product WHERE interface <> \"USB 2.0\" AND \"product_id\" < 6 AND \"dpi\" > 600.0 AND product <> \"ScanShell 3000DN\" AND \"pages_per_minute_color\" <> 3.0 OR dimensions <> \"298 x 209 x 99\" UNION ALL SELECT max_page_size, dpi, interface, pages_per_minute_color, dimensions, product_id, product FROM product WHERE \"pages_per_minute_color\" < 3.0 OR interface = \"USB 2.0\" OR product <> \"Canon imageFORMULA P-150\" OR \"dpi\" != 600.0 OR dimensions != \"280 x 95 x 40\""} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID greater than 1, but not in the airport_aircraft table with an ID that is not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tj64u_5.png", "TableImg_Nwx9r_4.png"], "original_data_index": 3774, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the driver IDs greater than 3 from the driver table, combined with the driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M1i2x_12.png", "TableImg_Jwgqr_5.png"], "original_data_index": 3775, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the IDs of the addresses that received mailed documents, where the address ID is less than or equal to zero and the mailing date is not February 21, 1973, or the document ID is greater than 12, and also the mailing date is not November 7, 1992, or the document ID is greater than 20 and the address ID is greater than 3?", "answer": {"columns": ["mailed_to_address_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["0"], ["2"], ["4"], ["5"], ["7"], ["8"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_Xax84_14.png", "TableImg_Ix4kt_14.png"], "original_data_index": 3777, "original_sql": "SELECT mailed_to_address_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <= 0 AND mailing_date <> \"1973-02-21 10:17:01\" OR \"document_id\" > 12 INTERSECT SELECT mailed_to_address_id FROM Documents_Mailed WHERE mailing_date != \"1992-11-07 15:03:41\" OR \"document_id\" > 20 AND \"mailed_to_address_id\" > 3"} {"question": "What are the enrollment, maximum location, average school name, sum of county, and IHSAA football class for schools that either aren't class A in football, have school ID 6, have enrollment less than 379, are class AAA, or aren't named New Prairie 1 and don't have the Redskins mascot and are located in Knox? Also, what are the same statistics for schools located in Walkerton that aren't class A in IHSAA, aren't named Bremen, or have an enrollment of 601 or less?", "answer": {"columns": ["Enrollment", "MAX(Location)", "AVG(School_name)", "SUM(County)", "IHSAA_Football_Class"], "index": [0, 1], "data": [["605", "Walkerton", "0", "433", "AAA"], ["605", "Walkerton", "0", "312", "AAA"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Aurcj_8.png", "TableImg_Kgbzi_8.png"], "original_data_index": 3776, "original_sql": "SELECT Enrollment, MAX(Location), AVG(School_name), SUM(County), IHSAA_Football_Class FROM School WHERE IHSAA_Football_Class != \"A\" OR School_id = \"6\" OR \"Enrollment\" < 379 OR IHSAA_Class = \"AAA\" OR School_name != \"New Prairie 1\" AND Mascot != \"Redskins\" AND Location = \"Knox\" UNION ALL SELECT Enrollment, MAX(Location), AVG(School_name), SUM(County), IHSAA_Football_Class FROM School WHERE Location = \"Walkerton\" AND IHSAA_Class <> \"A\" AND School_name != \"Bremen\" OR \"Enrollment\" <= 601"} {"question": "What are the genders and ranks of coaches who are not male, or whose coach ID is less than 3 and club ID is not 3, or whose name is not James Wong? Also, what are the genders and ranks of players who are not ranked 3rd?", "answer": {"columns": ["Gender", "Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["M", "1"], ["F", "2"], ["M", "3"], ["M", "5"], ["M", "2nd"], ["F", "1st"], ["M", "2nd"], ["M", "1st"], ["M", "2nd"], ["M", "4th"], ["M", "2nd"], ["F", "2nd"], ["M", "1st"], ["F", "1st"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_6zqyi_5.png", "TableImg_9j7pf_14.png"], "original_data_index": 3778, "original_sql": "SELECT Gender, Rank FROM coach WHERE Gender <> \"M\" OR \"Coach_ID\" < 3 AND \"Club_ID\" <> 3 OR Coach_name <> \"James Wong\" UNION ALL SELECT Gender, Rank FROM player WHERE Rank <> \"3rd\""} {"question": "Which driver IDs are greater than 5 in the driver table or greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lpy37_12.png", "TableImg_An2z3_5.png"], "original_data_index": 3779, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs that are less than 1, and also the aircraft IDs that are greater than 3, considering the aircraft and airport-aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3r0wm_5.png", "TableImg_Xth9t_4.png"], "original_data_index": 3780, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the driver IDs from the driver table that are at least 1, combined with the driver IDs from the school bus table that are at least 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_18jmk_12.png", "TableImg_Nnp1c_5.png"], "original_data_index": 3782, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the aircraft IDs that are not 4, and also what is the aircraft ID that is 1, considering both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kwh92_5.png", "TableImg_Yo9lf_4.png"], "original_data_index": 3783, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the IDs of all aircraft, excluding aircraft ID 5, that are either listed in the aircraft table or in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vnpxs_5.png", "TableImg_Kop4u_4.png"], "original_data_index": 3784, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Give me the customer details including amount outstanding, date became customer, customer status code, phone number, email address, customer address ID, first name, last name, and customer ID for customers who meet the following criteria: either their customer ID is less than 4 and their customer address ID is not 1, or their date of becoming a customer is not \"2016-02-17 08:26:23\", or their date of birth is \"1996-05-23 01:21:54\" and their last name is not \"Koelpin\", or their cell mobile phone number is not \"081-097-3684\"; and also meet these criteria: their cell mobile phone number is not \"+57(9)4602098297\" and their customer address ID is not 9, or their phone number is not \"(662)490-3108\" and their first name is \"Dameon\" and their customer ID is less than 6, or their date of birth is not \"1994-05-07 01:32:16\" and their last name is not \"Terry\".", "answer": {"columns": ["amount_outstanding", "date_became_customer", "customer_status_code", "phone_number", "email_address", "customer_address_id", "first_name", "last_name", "customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["255", "2016-05-11 17:03:48", "Bad Customer", "07278206718", "everette.goyette@example.org", "13", "Carole", "Bernhard", "1"], ["1000", "2017-11-25 01:42:26", "Bad Customer", "1-387-884-0656", "nichole59@example.com", "1", "Rylan", "Goodwin", "10"], ["2099", "2016-05-13 07:38:23", "Bad Customer", "417.136.2900x672", "myrl.lind@example.net", "9", "Omer", "Leuschke", "12"], ["2255", "2016-09-04 23:08:20", "Good Customer", "192-395-2411", "wehner.harold@example.com", "7", "Sigrid", "Schmeler", "13"], ["3751", "2016-07-22 15:53:44", "Good Customer", "218.550.1362", "afranecki@example.com", "8", "Jordy", "Tromp", "4"], ["3900", "2017-04-16 05:12:21", "Good Customer", "1-673-962-8158x7646", "kozey.citlalli@example.org", "9", "Amya", "Spinka", "6"], ["5494", "2016-03-18 06:14:18", "Good Customer", "1-875-045-0806", "ehowell@example.com", "10", "Estelle", "Grant", "14"], ["5687", "2017-11-12 04:34:44", "Bad Customer", "1-618-535-9750", "asha.kilback@example.org", "2", "Millie", "Bruen", "5"], ["7093", "2016-02-17 08:26:23", "Bad Customer", "753.921.0871", "mariela28@example.org", "12", "Leif", "Mertz", "9"], ["7256", "2015-11-16 22:52:14", "Bad Customer", "+14(5)2351480248", "huel.jana@example.org", "10", "Genevieve", "Terry", "2"], ["8144", "2015-06-24 03:50:04", "Bad Customer", "(662)490-3108", "mayert.judy@example.com", "1", "Marina", "Koelpin", "7"], ["9332", "2015-09-25 13:59:21", "Bad Customer", "(729)396-4354x3576", "kitty.hand@example.net", "1", "Dameon", "Sanford", "15"], ["9443", "2016-04-08 00:28:15", "Good Customer", "374-483-2758x85087", "hilario.sporer@example.org", "10", "Clara", "Ortiz", "3"], ["9447", "2016-11-30 10:37:41", "Good Customer", "(297)122-0086", "karina.carroll@example.net", "13", "Ray", "Kohler", "11"], ["9500", "2017-10-05 14:15:46", "Bad Customer", "206-054-0689x05861", "kroberts@example.org", "10", "Dianna", "Trantow", "8"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_1pt6v_15.png", "TableImg_1k9ee_15.png"], "original_data_index": 3781, "original_sql": "SELECT amount_outstanding, date_became_customer, customer_status_code, phone_number, email_address, customer_address_id, first_name, last_name, customer_id FROM Customers WHERE \"customer_id\" < 4 AND \"customer_address_id\" <> 1 OR date_became_customer != \"2016-02-17 08:26:23\" OR date_of_birth = \"1996-05-23 01:21:54\" AND last_name != \"Koelpin\" OR cell_mobile_phone_number <> \"081-097-3684\" INTERSECT SELECT amount_outstanding, date_became_customer, customer_status_code, phone_number, email_address, customer_address_id, first_name, last_name, customer_id FROM Customers WHERE cell_mobile_phone_number <> \"+57(9)4602098297\" AND \"customer_address_id\" != 9 OR phone_number <> \"(662)490-3108\" AND first_name = \"Dameon\" AND \"customer_id\" < 6 OR date_of_birth <> \"1994-05-07 01:32:16\" AND last_name <> \"Terry\""} {"question": "Which driver IDs, excluding driver ID 3, are found in the driver table, and which driver IDs, up to and including 7, are found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hysn7_12.png", "TableImg_Ruwnd_5.png"], "original_data_index": 3788, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are either greater than or equal to 3 in the driver table or less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6s1er_12.png", "TableImg_Nc93o_5.png"], "original_data_index": 3790, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs less than 4, and also any aircraft IDs that are not 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1kpgv_5.png", "TableImg_Efx32_4.png"], "original_data_index": 3786, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the driver IDs, names, and home cities of drivers who are not affiliated with the \"Dem\" party, and also the driver IDs, names, and home cities of drivers who are 36 years old and live in Bethel, or are not affiliated with the \"Dem\" party, or do not have the name \"Timothy Ackert\" and have a driver ID greater than 3?", "answer": {"columns": ["Driver_ID", "Name", "Home_city"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2", "Dan Carter", "Bethel"], ["4", "Angel Acre", "Hartford"], ["5", "Brandon McGee", "Hartford"], ["6", "Edwin Vargas", "Hartford"], ["7", "Douglas McCrory", "Hartford"], ["8", "Timothy Ackert", "Coventry"], ["9", "Jason Rojas", "East Hartford"], ["10", "Henry Genga", "East Hartford"], ["11", "Tim Larson", "East Hartford"], ["12", "Geoff Luxenberg", "Manchester"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_Aymno_12.png", "TableImg_S7aaz_12.png"], "original_data_index": 3785, "original_sql": "SELECT Driver_ID, Name, Home_city FROM driver WHERE Party != \"Dem\" UNION SELECT Driver_ID, Name, Home_city FROM driver WHERE \"Age\" = 36 AND Home_city = \"Bethel\" OR Party != \"Dem\" OR Name != \"Timothy Ackert\" AND \"Driver_ID\" > 3"} {"question": "What are the driver IDs that are either less than or equal to 3 in the driver table or greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mq8n9_12.png", "TableImg_G9wfz_5.png"], "original_data_index": 3789, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which school IDs are in the budget table for years other than 1999, or with a budgeted amount less than or equal to 6803, a school ID greater than or equal to 4, and a total budget percentage invested of 2.2, or with an invested amount greater than or equal to 5840; and also which school IDs are in the endowment table where the donor name is not \"Com. Dom. En Estados Unidos\", or the amount is 9.73, or the endowment ID is not 3 and the school ID is greater than 2?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_Dt1oi_8.png", "TableImg_3y2m8_11.png"], "original_data_index": 3791, "original_sql": "SELECT School_id FROM budget WHERE \"Year\" != 1999 OR \"Budgeted\" <= 6803 AND \"School_id\" >= 4 AND \"total_budget_percent_invested\" = 2.2 OR \"Invested\" >= 5840 UNION SELECT School_id FROM endowment WHERE donator_name <> \"Com. Dom. En Estados Unidos\" OR \"amount\" = 9.73 OR \"endowment_id\" != 3 AND \"School_id\" > 2"} {"question": "Which driver IDs are greater than or equal to 9, but not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ph6ve_12.png", "TableImg_0h9d2_5.png"], "original_data_index": 3795, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the aircraft IDs that appear in both the aircraft table (with IDs greater than 1) and the airport_aircraft table (with IDs not equal to 1)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K62k2_5.png", "TableImg_Ahtay_4.png"], "original_data_index": 3796, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the driver IDs that are greater than or equal to 1, excluding those driver IDs that are less than 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Abp75_12.png", "TableImg_8hzkm_5.png"], "original_data_index": 3797, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are either less than or equal to 6, or greater than or equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T9o5p_12.png", "TableImg_Biqgo_5.png"], "original_data_index": 3798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the aircraft IDs that are either equal to 1 in the aircraft table or less than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4o1ig_5.png", "TableImg_Uzwdh_4.png"], "original_data_index": 3792, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the driver IDs that are either 8 or less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ay4hh_12.png", "TableImg_9q1mc_5.png"], "original_data_index": 3801, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the aircraft IDs that are less than or equal to 3, but not the aircraft IDs that are greater than or equal to 3, based on the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3ci77_5.png", "TableImg_8n63n_4.png"], "original_data_index": 3802, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the driver IDs less than 10 from the driver table, combined with the driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xf2zs_12.png", "TableImg_Uleos_5.png"], "original_data_index": 3794, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs that are less than 2, excluding any aircraft ID that is equal to 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cypzb_5.png", "TableImg_2e5nr_4.png"], "original_data_index": 3804, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the names of companies headquartered in the USA, combined with the names of people who are not British, are not Darryl Kennedy, are older than 27, and either have a People_ID other than 5 or graduated from Virginia?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["Berkshire Hathaway"], ["Chevron"], ["Citigroup"], ["ExxonMobil"], ["General Electric"], ["JPMorgan Chase"], ["Jerry Corcoran"], ["Tim Naegeli"], ["Tom Sheehey"], ["Walmart"], ["Wells Fargo"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_2fqxm_19.png", "TableImg_Mcvdv_7.png"], "original_data_index": 3805, "original_sql": "SELECT Name FROM company WHERE Headquarters = \"USA\" UNION SELECT Name FROM people WHERE Nationality != \"United Kindom\" AND \"People_ID\" != 5 AND \"Age\" > 27 AND Name <> \"Darryl Kennedy\" OR Graduation_College = \"Virginia\""} {"question": "What are the aircraft IDs that are both less than or equal to 16 and have an employee ID greater than 567354612?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Oo5ne_16.png", "TableImg_1w4af_69.png"], "original_data_index": 3806, "original_sql": "SELECT aid FROM aircraft WHERE \"aid\" <= 16 INTERSECT SELECT aid FROM certificate WHERE \"eid\" > 567354612"} {"question": "Which driver IDs are less than or equal to 4 but are not found in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M3min_12.png", "TableImg_W4mlj_5.png"], "original_data_index": 3807, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the major, sex, last name, advisor, and student ID for students who meet any of the following criteria: their major is greater than 600, their sex is male, their student ID is less than or equal to 1004, their first name is not Lisa and their last name is Kumar and their advisor is greater than or equal to 1121 and their age is greater than 27, or their city code is HOU; or for students whose first name is not Ian and their student ID is less than 1035 and their advisor is less than 1121 and their sex is not male, or their city code is not PIT, or their age is 19?", "answer": {"columns": ["Major", "Sex", "LName", "Advisor", "StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "data": [["50", "F", "Schmidt", "5718", "1035"], ["50", "M", "Epp", "5718", "1034"], ["100", "M", "Han", "2311", "1029"], ["520", "M", "Andreou", "8722", "1021"], ["520", "M", "Brody", "8723", "1027"], ["520", "M", "Goldman", "7134", "1025"], ["520", "M", "Pang", "7134", "1026"], ["520", "M", "Shieber", "8722", "1023"], ["520", "M", "Thornton", "7271", "1020"], ["540", "F", "Prater", "7271", "1024"], ["540", "M", "Woods", "8722", "1022"], ["550", "F", "Cheng", "2311", "1030"], ["550", "F", "Smith", "8772", "1031"], ["550", "M", "Brown", "8772", "1032"], ["550", "M", "Rugh", "2311", "1028"], ["550", "M", "Simms", "8772", "1033"], ["600", "F", "Jones", "7792", "1003"], ["600", "F", "Kim", "7712", "1002"], ["600", "F", "Lee", "8721", "1015"], ["600", "F", "Nelson", "9172", "1008"], ["600", "F", "Smith", "1121", "1001"], ["600", "M", "Adams", "1148", "1011"], ["600", "M", "Davis", "7723", "1012"], ["600", "M", "Gompers", "1121", "1005"], ["600", "M", "Kumar", "8423", "1004"], ["600", "M", "Lee", "2192", "1010"], ["600", "M", "Leighton", "1121", "1018"], ["600", "M", "Norris", "8741", "1014"], ["600", "M", "Pang", "2192", "1019"], ["600", "M", "Schultz", "1148", "1006"], ["600", "M", "Schwartz", "2192", "1016"], ["600", "M", "Tai", "2192", "1009"], ["600", "M", "Wilson", "1148", "1017"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_7o73a_34.png", "TableImg_2rkqe_34.png"], "original_data_index": 3808, "original_sql": "SELECT Major, Sex, LName, Advisor, StuID FROM Student WHERE \"Major\" > 600 OR Sex = \"M\" OR \"StuID\" <= 1004 OR Fname <> \"Lisa\" AND LName = \"Kumar\" AND \"Advisor\" >= 1121 AND \"Age\" > 27 OR city_code = \"HOU\" UNION SELECT Major, Sex, LName, Advisor, StuID FROM Student WHERE Fname <> \"Ian\" AND \"StuID\" < 1035 AND \"Advisor\" < 1121 AND Sex != \"M\" OR city_code != \"PIT\" OR \"Age\" = 19"} {"question": "What are the coach IDs and starting years for coaches with ID 1 or players with ID 4 or higher, combined with the coach IDs and starting years for coaches whose starting year isn't 2011 and coach ID isn't 5?", "answer": {"columns": ["Coach_ID", "Starting_year"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "2010"], ["1", "2011"], ["1", "2012"], ["2", "2013"], ["3", "2011"], ["3", "2012"], ["5", "2010"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_1u5gc_7.png", "TableImg_E3d4j_7.png"], "original_data_index": 3809, "original_sql": "SELECT Coach_ID, Starting_year FROM player_coach WHERE \"Coach_ID\" = 1 OR \"Player_ID\" >= 4 UNION SELECT Coach_ID, Starting_year FROM player_coach WHERE \"Starting_year\" <> 2011 AND \"Coach_ID\" <> 5"} {"question": "What are the aircraft IDs that are less than or equal to 2, but not aircraft IDs greater than 1 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cyf7e_5.png", "TableImg_Qtgeu_4.png"], "original_data_index": 3810, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are not equal to 3 and are not present in the school bus table with driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uzecj_12.png", "TableImg_Abb8z_5.png"], "original_data_index": 3811, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the average altitude, minimum pilot, airport ID, sum of dates, and velocity for flights where the airport ID is less than 6 and the flight ID is not 13, or the vehicle flight number is not \"M2-F1 #73\" and the altitude is not 3650.0, or the velocity is greater than 240.0, excluding the results where the velocity is less than 240.0, or the date is October 25, 1963 and the altitude is less than 3650.0, or the flight ID is not 3 and the airport ID is less than or equal to 1 and the pilot is Thompson, or the company ID is not 5?", "answer": {"columns": ["AVG(Altitude)", "MIN(Pilot)", "airport_id", "SUM(Date)", "Velocity"], "index": [0], "data": [["3244.4444444444", "Peterson", "5", "0", "240"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Vmec3_13.png", "TableImg_178sj_13.png"], "original_data_index": 3812, "original_sql": "SELECT AVG(Altitude), MIN(Pilot), airport_id, SUM(Date), Velocity FROM flight WHERE \"airport_id\" < 6 AND \"id\" <> 13 OR Vehicle_Flight_number <> \"M2-F1 #73\" AND \"Altitude\" <> 3650.0 OR \"Velocity\" > 240.0 EXCEPT SELECT AVG(Altitude), MIN(Pilot), airport_id, SUM(Date), Velocity FROM flight WHERE \"Velocity\" < 240.0 OR Date = \"October 25, 1963\" AND \"Altitude\" < 3650.0 OR \"id\" <> 3 AND \"airport_id\" <= 1 AND Pilot = \"Thompson\" OR \"company_id\" <> 5"} {"question": "What are the staff ID, lesson ID, vehicle ID, lesson time, lesson date, and lesson status code for all lessons, excluding those on March 7, 2018 at 4:12:36 PM, and also those with lesson ID greater than 8 and customer ID less than or equal to 9, or a price not equal to 495 and lesson status is cancelled and staff ID less than 15, or vehicle ID less than or equal to 2?", "answer": {"columns": ["staff_id", "lesson_id", "vehicle_id", "lesson_time", "lesson_date", "lesson_status_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["8", "1", "3", "5", "2018-02-28 10:55:36", "Cancelled"], ["11", "3", "2", "3", "2018-03-03 15:10:16", "Cancelled"], ["1", "4", "2", "9", "2018-03-17 19:02:07", "Completed"], ["3", "5", "2", "9", "2018-03-12 00:41:59", "Completed"], ["4", "6", "2", "6", "2018-03-07 22:03:49", "Completed"], ["11", "7", "1", "9", "2018-03-08 16:05:05", "Cancelled"], ["8", "8", "2", "2", "2018-03-21 06:48:45", "Completed"], ["4", "9", "2", "9", "2018-03-05 20:05:33", "Completed"], ["5", "10", "2", "4", "2018-02-26 02:36:35", "Cancelled"], ["15", "11", "1", "2", "2018-03-04 06:55:46", "Cancelled"], ["12", "12", "2", "2", "2018-03-16 07:08:52", "Cancelled"], ["12", "13", "1", "5", "2018-03-05 18:05:31", "Completed"], ["11", "14", "1", "5", "2018-03-07 11:53:32", "Cancelled"], ["8", "15", "1", "9", "2018-03-06 21:48:51", "Cancelled"], ["8", "1", "3", "5", "2018-02-28 10:55:36", "Cancelled"], ["14", "2", "3", "6", "2018-03-07 16:12:36", "Cancelled"], ["11", "3", "2", "3", "2018-03-03 15:10:16", "Cancelled"], ["1", "4", "2", "9", "2018-03-17 19:02:07", "Completed"], ["3", "5", "2", "9", "2018-03-12 00:41:59", "Completed"], ["4", "6", "2", "6", "2018-03-07 22:03:49", "Completed"], ["11", "7", "1", "9", "2018-03-08 16:05:05", "Cancelled"], ["8", "8", "2", "2", "2018-03-21 06:48:45", "Completed"], ["4", "9", "2", "9", "2018-03-05 20:05:33", "Completed"], ["5", "10", "2", "4", "2018-02-26 02:36:35", "Cancelled"], ["15", "11", "1", "2", "2018-03-04 06:55:46", "Cancelled"], ["12", "12", "2", "2", "2018-03-16 07:08:52", "Cancelled"], ["12", "13", "1", "5", "2018-03-05 18:05:31", "Completed"], ["11", "14", "1", "5", "2018-03-07 11:53:32", "Cancelled"], ["8", "15", "1", "9", "2018-03-06 21:48:51", "Cancelled"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_2bawg_15.png", "TableImg_9gv4p_15.png"], "original_data_index": 3813, "original_sql": "SELECT staff_id, lesson_id, vehicle_id, lesson_time, lesson_date, lesson_status_code FROM Lessons WHERE lesson_date <> \"2018-03-07 16:12:36\" UNION ALL SELECT staff_id, lesson_id, vehicle_id, lesson_time, lesson_date, lesson_status_code FROM Lessons WHERE \"lesson_id\" > 8 AND \"customer_id\" <= 9 OR \"price\" != 495.0 AND lesson_status_code = \"Cancelled\" AND \"staff_id\" < 15 OR \"vehicle_id\" <= 2"} {"question": "What are the IDs of drivers who have an ID of 5 or greater, and also the IDs of drivers who are not assigned to school bus with ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vpwpw_12.png", "TableImg_2rgy1_5.png"], "original_data_index": 3799, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are less than 2, and also which driver IDs from the school bus table are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fs2s4_12.png", "TableImg_Rn9ap_5.png"], "original_data_index": 3814, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the item IDs that have either a rank other than 6, a rating not equal to 5, or an ID less than or equal to 1, and also have a rating of 5 and a user ID greater than 1?", "answer": {"columns": ["i_id"], "index": [0], "data": [["1"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Or8yl_7.png", "TableImg_D2be7_7.png"], "original_data_index": 3803, "original_sql": "SELECT i_id FROM review WHERE \"rank\" != 6 OR \"rating\" <> 5 OR \"i_id\" <= 1 INTERSECT SELECT i_id FROM review WHERE \"rating\" = 5 AND \"u_id\" > 1"} {"question": "What are the driver IDs, excluding driver ID 7, from the driver table, combined with driver IDs from the school bus table that are 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0iwid_12.png", "TableImg_Bs2qy_5.png"], "original_data_index": 3818, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the publication IDs for publications that are not published by Pearson, or have a publication ID less than 4, a publication date of October 2005, and a price greater than 6,000,000, or have a book ID not equal to 4, but exclude those publications with a publication ID not equal to 6, a price greater than or equal to 2,000,000, and a publication date of June 2006?", "answer": {"columns": ["Publication_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_Rol6i_7.png", "TableImg_Zoihs_7.png"], "original_data_index": 3819, "original_sql": "SELECT Publication_ID FROM publication WHERE Publisher <> \"Pearson\" OR \"Publication_ID\" < 4 AND Publication_Date = \"October 2005\" AND \"Price\" > 6000000.0 OR \"Book_ID\" <> 4 EXCEPT SELECT Publication_ID FROM publication WHERE \"Publication_ID\" <> 6 AND \"Price\" >= 2000000.0 AND Publication_Date = \"June 2006\""} {"question": "What are the type, maximum group equity shareholding, ID, average name, sum of principal activities, and incorporation location for \"Air China Cargo\" companies not incorporated in China, combined with the same information for companies that are either not \"Cathay Pacific Services Limited\" or have an ID other than 11 and are a subsidiary not incorporated in Taiwan?", "answer": {"columns": ["Type", "MAX(Group_Equity_Shareholding)", "id", "AVG(name)", "SUM(Principal_activities)", "Incorporated_in"], "index": [0, 1], "data": [["", "", "", "", "", ""], ["Subsidiary", "100.0", "4.0", "0.0", "0.0", "Hong Kong"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Doiu6_14.png", "TableImg_5imc3_14.png"], "original_data_index": 3820, "original_sql": "SELECT Type, MAX(Group_Equity_Shareholding), id, AVG(name), SUM(Principal_activities), Incorporated_in FROM operate_company WHERE name = \"Air China Cargo\" AND Incorporated_in != \"China\" UNION ALL SELECT Type, MAX(Group_Equity_Shareholding), id, AVG(name), SUM(Principal_activities), Incorporated_in FROM operate_company WHERE name != \"Cathay Pacific Services Limited\" OR \"id\" != 11 AND Type = \"Subsidiary\" AND Incorporated_in <> \"Taiwan\""} {"question": "What are the driver IDs, excluding driver ID 7, and also the driver IDs greater than 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4rbue_12.png", "TableImg_Gicks_5.png"], "original_data_index": 3821, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "How many roles are not \"Proof Manager\" and what is the longest description, and also, how many \"PT\" roles are not \"Photo\" and what is the longest description?", "answer": {"columns": ["COUNT(role_code)", "MAX(role_description)"], "index": [0, 1], "data": [["0", ""], ["3", "Photo"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Ptp54_4.png", "TableImg_Jfclq_4.png"], "original_data_index": 3822, "original_sql": "SELECT COUNT(role_code), MAX(role_description) FROM Roles WHERE role_description != \"Proof Manager\" UNION SELECT COUNT(role_code), MAX(role_description) FROM Roles WHERE role_description <> \"Photo\" AND role_code = \"PT\""} {"question": "What are the aircraft IDs that are both less than or equal to 4 and also less than 5, considering only the aircraft IDs present in the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fcjbc_5.png", "TableImg_3140j_4.png"], "original_data_index": 3823, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the names and user IDs of users named Rosie or with a user ID greater than or equal to 1, combined with the names and user IDs of all users except Helen?", "answer": {"columns": ["name", "u_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["Helen", "1"], ["Mark", "2"], ["Terry", "3"], ["Nancy", "4"], ["Rosie", "5"], ["Roxi", "6"], ["Emily", "7"], ["Mark", "2"], ["Terry", "3"], ["Nancy", "4"], ["Rosie", "5"], ["Roxi", "6"], ["Emily", "7"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_Ykh6l_7.png", "TableImg_3jz80_7.png"], "original_data_index": 3824, "original_sql": "SELECT name, u_id FROM useracct WHERE name = \"Rosie\" OR \"u_id\" >= 1 UNION ALL SELECT name, u_id FROM useracct WHERE name <> \"Helen\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 2 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U137u_12.png", "TableImg_Kj47f_5.png"], "original_data_index": 3825, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 4 from the driver table and driver IDs 7 and above from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vbs7s_12.png", "TableImg_Ffg4e_5.png"], "original_data_index": 3826, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 5 from the driver table and driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3e1ud_12.png", "TableImg_Yk0n1_5.png"], "original_data_index": 3827, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the item IDs of items that are not titled \"orange\" and have an ID of 3, combined with the item IDs from reviews where the author ID is 3 or the item ID is 1?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["1"], ["1"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_W6gc1_8.png", "TableImg_Q5e7o_7.png"], "original_data_index": 3828, "original_sql": "SELECT i_id FROM item WHERE title != \"orange\" AND \"i_id\" = 3 UNION ALL SELECT i_id FROM review WHERE \"a_id\" = 3 OR \"i_id\" = 1"} {"question": "Which driver IDs are greater than or equal to 2, but not equal to 9, and are present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bha53_12.png", "TableImg_Jy470_5.png"], "original_data_index": 3829, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are greater than 9, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Itkk2_12.png", "TableImg_Tlwit_5.png"], "original_data_index": 3830, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the aircraft IDs that are less than or equal to 3 in the aircraft table, but not present in the airport_aircraft table with aircraft IDs less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ov54e_5.png", "TableImg_2rj6r_4.png"], "original_data_index": 3815, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the driver IDs that are greater than 2 and also appear in the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wjto4_12.png", "TableImg_Vls2e_5.png"], "original_data_index": 3817, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are equal to 11 but not associated with a school bus where the driver ID is not 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Epijr_12.png", "TableImg_B59nr_5.png"], "original_data_index": 3834, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that are either aircraft ID 4 or any aircraft ID except 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kv56u_5.png", "TableImg_Iwi5c_4.png"], "original_data_index": 3835, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs, excluding driver ID 10, are in the driver table, and which driver IDs, up to and including 4, are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T165x_12.png", "TableImg_X4wkz_5.png"], "original_data_index": 3836, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are either 4 or not 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2xgsy_12.png", "TableImg_Nfuz1_5.png"], "original_data_index": 3832, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the names of branches where the membership amount is not 91, excluding any names that are also members with a level greater than 6, or are not named Corey Peters, or don't live in Fort Campbell, Kentucky, or have a member ID less than 10, or have a card number that isn't SLB51?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Alexandre"], ["Brooke Greville"], ["Cochrane"], ["Popert"], ["Stanley"], ["Taverner"], ["Zytogorski"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_4kx04_8.png", "TableImg_0kzcc_10.png"], "original_data_index": 3840, "original_sql": "SELECT Name FROM branch WHERE membership_amount != \"91\" EXCEPT SELECT Name FROM member WHERE \"Level\" > 6 OR Name != \"Corey Peters\" OR Hometown != \"Fort Campbell, Kentucky\" OR \"Member_ID\" < 10 OR Card_Number <> \"SLB51\""} {"question": "Which driver IDs are present in both the driver and school bus tables, excluding driver ID 6 from the driver table and driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E71d6_12.png", "TableImg_Hjvay_5.png"], "original_data_index": 3841, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are either less than or equal to 4 in the driver table or less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_En0ze_12.png", "TableImg_0sweq_5.png"], "original_data_index": 3842, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are less than 9 and also appear in the school bus records with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ir6zb_12.png", "TableImg_Iwbu2_5.png"], "original_data_index": 3843, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs, excluding driver ID 4, that are present in both the driver and school bus tables, where the driver ID is less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5wngy_12.png", "TableImg_Pkcm5_5.png"], "original_data_index": 3844, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are both less than or equal to 10 and also not equal to 7, considering only those drivers who are in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_40zgg_12.png", "TableImg_Qthuz_5.png"], "original_data_index": 3845, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are greater than 5 and also appear in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tuqwy_12.png", "TableImg_Gvtol_5.png"], "original_data_index": 3846, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are in the driver table but not ID 1, and also which driver IDs are in the school bus table with ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Btjy9_12.png", "TableImg_Uus29_5.png"], "original_data_index": 3847, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the aircraft IDs that are either greater than or equal to 4 in the aircraft table, or less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6bpxr_5.png", "TableImg_R4iyn_4.png"], "original_data_index": 3848, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the freight metric tonnes and the maximum aircraft ID for each airport?", "answer": {"columns": ["Freight_Metric_Tonnes", "MAX(T2.ID)"], "index": [0], "data": [["3", "4"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Zdtwy_10.png", "TableImg_Px3fk_4.png"], "original_data_index": 3849, "original_sql": "SELECT T1.Freight_Metric_Tonnes, MAX(T2.ID) FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "What are the driver IDs that are both less than 12 and also equal to 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y26ji_12.png", "TableImg_B1r1b_5.png"], "original_data_index": 3850, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs, excluding driver ID 3, from the driver table, and also the driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S4uc4_12.png", "TableImg_Aeolu_5.png"], "original_data_index": 3851, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Give me the student ID, sex, average major, and city code for all students, including those whose last name isn't Gompers, and also those whose major is less than or equal to 550, or are older than 19, or are not female, or live in BAL, or have a student ID of 1030 or greater, or whose first name isn't Jandy and last name isn't Han.", "answer": {"columns": ["StuID", "Sex", "AVG(Major)", "city_code"], "index": [0, 1], "data": [["1001", "F", "525.7575757576", "BAL"], ["1001", "F", "527.9411764706", "BAL"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_7agbf_34.png", "TableImg_Jtdtj_34.png"], "original_data_index": 3852, "original_sql": "SELECT StuID, Sex, AVG(Major), city_code FROM Student WHERE LName != \"Gompers\" UNION SELECT StuID, Sex, AVG(Major), city_code FROM Student WHERE \"Major\" <= 550 OR \"Age\" > 19 OR Sex != \"F\" OR city_code = \"BAL\" OR \"StuID\" >= 1030 OR Fname <> \"Jandy\" AND LName <> \"Han\""} {"question": "What are the driver IDs that are less than 8 and also appear in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qzuha_12.png", "TableImg_Xmliy_5.png"], "original_data_index": 3853, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the sum of the document type descriptions where the description is not \"b\" and the code is \"Hard Drive\", combined with the sum of the document type descriptions where the description is \"u\" and the code is not \"Paper\"?", "answer": {"columns": ["SUM(document_type_description)"], "index": [0, 1], "data": [["0.0"], [""]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_5pe45_3.png", "TableImg_Gck2q_3.png"], "original_data_index": 3831, "original_sql": "SELECT SUM(document_type_description) FROM Ref_Document_Types WHERE document_type_description != \"b\" AND document_type_code = \"Hard Drive\" UNION ALL SELECT SUM(document_type_description) FROM Ref_Document_Types WHERE document_type_description = \"u\" AND document_type_code != \"Paper\""} {"question": "Which driver IDs are equal to 9 in the driver table, and which driver IDs are less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nyk0z_12.png", "TableImg_Tuzoj_5.png"], "original_data_index": 3839, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the club IDs, excluding club ID 2, and also including club IDs from members who are in clubs with ID 4 or higher and are not CTOs?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_4ugvl_4.png", "TableImg_Mxr7f_4.png"], "original_data_index": 3856, "original_sql": "SELECT ClubID FROM Club WHERE \"ClubID\" != 2 UNION ALL SELECT ClubID FROM Member_of_club WHERE \"ClubID\" >= 4 AND Position <> \"CTO\""} {"question": "What are the driver IDs that are 6 or greater, but not 7 or greater, based on the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uyhdn_12.png", "TableImg_Z06vn_5.png"], "original_data_index": 3857, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the album IDs less than 224 or not titled \"Live [Disc 2]\", and what are the genre IDs where the name isn't \"Latin\" or the ID isn't 3?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Uasln_347.png", "TableImg_Lj9mz_25.png"], "original_data_index": 3858, "original_sql": "SELECT id FROM albums WHERE \"id\" < 224 OR title != \"Live [Disc 2]\" UNION SELECT id FROM genres WHERE name <> \"Latin\" OR \"id\" != 3"} {"question": "What is the sum of all 'aid' values from the 'certificate' table where the 'eid' is 269734834 or 'aid' is less than or equal to 3, excluding the sum of 'aid' values from the 'flight' table where 'aid' is less than 9, the price is not 425.98, the destination is Los Angeles, the departure date is 04/12/2005 09:30, and the flight number is less than 99?", "answer": {"columns": ["SUM(aid)"], "index": [0], "data": [["152"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_T4bog_69.png", "TableImg_Rwau2_10.png"], "original_data_index": 3859, "original_sql": "SELECT SUM(aid) FROM certificate WHERE \"eid\" = 269734834 OR \"aid\" <= 3 EXCEPT SELECT SUM(aid) FROM flight WHERE \"aid\" < 9 AND \"price\" != 425.98 AND destination = \"Los Angeles\" AND departure_date = \"04/12/2005 09:30\" AND \"flno\" < 99"} {"question": "What is the highest property type code from the Properties table where apt_feature_3 isn't \"None\", or oth_feature_1 is \"None\", or date_on_market is \"2016-05-06 16:53:39\", or fld_feature_1 isn't \"None\" and shp_feature_2 isn't \"None\" and property_name isn't \"chelsea\", and also the highest property type code from the Ref_Property_Types table where the code is \"Shop\"?", "answer": {"columns": ["MAX(property_type_code)"], "index": [0, 1], "data": [["Apartment"], ["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_09c16_15.png", "TableImg_Wh8ts_5.png"], "original_data_index": 3860, "original_sql": "SELECT MAX(property_type_code) FROM Properties WHERE apt_feature_3 != \"None\" OR oth_feature_1 = \"None\" OR date_on_market = \"2016-05-06 16:53:39\" OR fld_feature_1 <> \"None\" AND shp_feature_2 != \"None\" AND property_name != \"chelsea\" UNION ALL SELECT MAX(property_type_code) FROM Ref_Property_Types WHERE property_type_code = \"Shop\""} {"question": "Which driver IDs are either less than or equal to 9 in the driver table or greater than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ze9n_12.png", "TableImg_Xkw34_5.png"], "original_data_index": 3861, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are not equal to 10, but are not found in the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lrlz4_12.png", "TableImg_75t5z_5.png"], "original_data_index": 3862, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are either greater than or equal to 7 in the driver table, or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A846h_12.png", "TableImg_1bi9b_5.png"], "original_data_index": 3864, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What is the sum of the IDs from the airport table where the city is not Anchorage and the ICAO code is LEBL, combined with the sum of the IDs from the flight table where the pilot is not Thompson and the company ID is not 5 or the airport ID is 2 or the velocity is greater than 240 or the date is not May 19, 1964 or the altitude is greater than 3650 or the ID is not 12?", "answer": {"columns": ["SUM(id)"], "index": [0, 1], "data": [["5"], ["91"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Ljao2_9.png", "TableImg_63chf_13.png"], "original_data_index": 3863, "original_sql": "SELECT SUM(id) FROM airport WHERE City <> \"Anchorage\" AND ICAO = \"LEBL\" UNION ALL SELECT SUM(id) FROM flight WHERE Pilot <> \"Thompson\" AND \"company_id\" <> 5 OR \"airport_id\" = 2 OR \"Velocity\" > 240.0 OR Date != \"May 19, 1964\" OR \"Altitude\" > 3650.0 OR \"id\" <> 12"} {"question": "What are the aircraft IDs that are not 5, but are not present in the airport_aircraft table with an ID other than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M65rc_5.png", "TableImg_Kx4ax_4.png"], "original_data_index": 3865, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the names of aircraft that are not aircraft ID 5 and have a distance of 6900 or less, and are not a Boeing 727, combined with the names of employees where the employee ID is 159542516 and the name is Angela Martinez, or whose salary is not 289950?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41], "data": [["Boeing 737-800"], ["British Aerospace Jetstream 41"], ["SAAB 340"], ["Piper Archer III"], ["Tupolev 154"], ["Schwitzer 2-33"], ["Lockheed L1011"], ["Boeing 757-300"], ["Boeing 777-300"], ["Boeing 767-400ER"], ["Airbus A320"], ["Airbus A319"], ["James Smith"], ["Mary Johnson"], ["John Williams"], ["Lisa Walker"], ["Larry West"], ["Karen Scott"], ["Lawrence Sperry"], ["Michael Miller"], ["Patricia Jones"], ["Robert Brown"], ["Angela Martinez"], ["Joseph Thompson"], ["Linda Davis"], ["Richard Jackson"], ["William Ward"], ["Chad Stewart"], ["Betty Adams"], ["Michael Miller"], ["Dorthy Lewis"], ["Barbara Wilson"], ["William Moore"], ["Haywood Kelly"], ["Elizabeth Taylor"], ["David Anderson"], ["Jennifer Thomas"], ["Donald King"], ["Mark Young"], ["Eric Cooper"], ["William Jones"], ["Milo Brooks"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Sb69w_16.png", "TableImg_R6irr_31.png"], "original_data_index": 3866, "original_sql": "SELECT name FROM aircraft WHERE \"aid\" != 5 AND \"distance\" <= 6900 AND name != \"Boeing 727\" UNION ALL SELECT name FROM employee WHERE \"eid\" = 159542516 AND name = \"Angela Martinez\" OR \"salary\" != 289950"} {"question": "Which driver IDs are not equal to 9 but are not present in the school bus table where the driver ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Htryr_12.png", "TableImg_Aag75_5.png"], "original_data_index": 3867, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are less than 2, and also the driver IDs from school buses that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E5kxj_12.png", "TableImg_4kyuv_5.png"], "original_data_index": 3868, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs, excluding driver ID 8, that are present in both the driver and school bus tables, but with school bus driver IDs limited to those less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Klnty_12.png", "TableImg_Qmkqm_5.png"], "original_data_index": 3855, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What is the maximum branch name, excluding any branch where the membership amount is not \"11\" and the address road is not \"Abbey Rise\", or the branch ID is 7 and the city is London, or the open year is not \"2013\", but also excluding any member where the card number is \"MLB4\" or the name is \"Micah Johnson\" or the member ID is greater than 9 and the hometown is not \"Red Jacket, West Virginia\"?", "answer": {"columns": ["MAX(Name)"], "index": [0], "data": [["Zytogorski"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_H102z_8.png", "TableImg_R8rjb_10.png"], "original_data_index": 3871, "original_sql": "SELECT MAX(Name) FROM branch WHERE membership_amount <> \"11\" AND Address_road != \"Abbey Rise\" OR \"Branch_ID\" = 7 AND City = \"London\" OR Open_year != \"2013\" EXCEPT SELECT MAX(Name) FROM member WHERE Card_Number = \"MLB4\" OR Name = \"Micah Johnson\" OR \"Member_ID\" > 9 AND Hometown != \"Red Jacket, West Virginia\""} {"question": "What is the average club name and the maximum club ID for clubs that are not \"Gefle IF\" or have a club ID less than 1 and are not in the UK, combined with the average club name and maximum club ID for clubs not in Russia, started before 2001, and are not \"Djurg\u00e5rdens IF\"?", "answer": {"columns": ["AVG(Club_name)", "MAX(Club_ID)"], "index": [0, 1], "data": [["0", "2"], ["0", "6"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_J8up3_6.png", "TableImg_Yqaka_6.png"], "original_data_index": 3872, "original_sql": "SELECT AVG(Club_name), MAX(Club_ID) FROM club WHERE Club_name <> \"Gefle IF\" OR \"Club_ID\" < 1 AND Region <> \"UK\" UNION SELECT AVG(Club_name), MAX(Club_ID) FROM club WHERE Region <> \"Russia\" AND \"Start_year\" < 2001 AND Club_name <> \"Djurg\u00e5rdens IF\""} {"question": "How many aircraft have a distance less than 2128 or are named \"Airbus A319\", and what are the corresponding employee IDs?", "answer": {"columns": ["COUNT(T1.distance)", "eid"], "index": [0], "data": [["20", "142519864"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Niz8z_16.png", "TableImg_2xny5_69.png"], "original_data_index": 3854, "original_sql": "SELECT COUNT(T1.distance), T2.eid FROM aircraft as T1 JOIN certificate as T2 ON T1.aid = T2.aid WHERE \"distance\" < 2128 OR name = \"Airbus A319\""} {"question": "Which driver IDs are in either the driver table (excluding driver ID 2) or the school bus table (with driver IDs greater than 4)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cp5cs_12.png", "TableImg_B4k62_5.png"], "original_data_index": 3873, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are less than 9 but not present in the school bus table with IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G2nfn_12.png", "TableImg_Xg30x_5.png"], "original_data_index": 3874, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are greater than 10, or are driver IDs from school buses that are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oq10r_12.png", "TableImg_C27m9_5.png"], "original_data_index": 3875, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the driver IDs that are present in both the driver and school bus tables, excluding driver ID 4 from the driver table and including driver IDs greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G8ufs_12.png", "TableImg_1bskz_5.png"], "original_data_index": 3876, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the IDs of pets belonging to students with IDs less than or equal to 1001, combined with the IDs of cats that weigh 12.0, are younger than 2, and have pet IDs greater than 2002?", "answer": {"columns": ["PetID"], "index": [0], "data": [["2001"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Kzi4e_3.png", "TableImg_As60a_3.png"], "original_data_index": 3877, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"StuID\" <= 1001 UNION SELECT PetID FROM Pets WHERE \"PetID\" > 2002 AND \"weight\" = 12.0 AND PetType = \"cat\" AND \"pet_age\" < 2"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID of 2 or greater, but not in the airport_aircraft table with an ID greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Odkdf_5.png", "TableImg_W3f6o_4.png"], "original_data_index": 3878, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs are less than 2, but not driver IDs that are 10 or greater, considering only the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1jipp_12.png", "TableImg_08q6h_5.png"], "original_data_index": 3880, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the type, area size, and number of product categories for stores that meet the following criteria: they are not \"City Mall\", have a store ID less than or equal to 3, a ranking less than 2, an area size not equal to 28.74, and a number of product categories not equal to 1678, or are named \"Doaktown\"; and also meet these criteria: have a number of product categories equal to 1678, or are not \"Village Store\", or have a store ID greater than or equal to 4, or are not named \"Doaktown\" and have an area size less than or equal to 26.69 and a ranking not equal to 10?", "answer": {"columns": ["Type", "Area_size", "Number_of_product_category"], "index": [0, 1], "data": [["City Mall", "28.74", "793"], ["Village Store", "7.23", "1170"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_Vy8zc_5.png", "TableImg_B9utc_5.png"], "original_data_index": 3879, "original_sql": "SELECT Type, Area_size, Number_of_product_category FROM store WHERE Type != \"City Mall\" AND \"Store_ID\" <= 3 AND \"Ranking\" < 2 AND \"Area_size\" <> 28.74 AND \"Number_of_product_category\" <> 1678.0 OR Store_Name = \"Doaktown\" INTERSECT SELECT Type, Area_size, Number_of_product_category FROM store WHERE \"Number_of_product_category\" = 1678.0 OR Type <> \"Village Store\" OR \"Store_ID\" >= 4 OR Store_Name <> \"Doaktown\" AND \"Area_size\" <= 26.69 AND \"Ranking\" != 10"} {"question": "Which driver IDs are greater than 6 and also greater than or equal to 9, considering only those present in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lcg3r_12.png", "TableImg_4vs2g_5.png"], "original_data_index": 3881, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What is the sum of all continents except \"america\", excluding the sum of continents where the continent value is 2?", "answer": {"columns": ["SUM(Continent)"], "index": [0], "data": [["0"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_Pjkj9_5.png", "TableImg_Vlxao_15.png"], "original_data_index": 3882, "original_sql": "SELECT SUM(Continent) FROM continents WHERE Continent <> \"america\" EXCEPT SELECT SUM(Continent) FROM countries WHERE \"Continent\" = 2"} {"question": "What car models are not \"chevrolet\" or have a \"MakeId\" other than 263 or are \"dodge d200\", and also have a \"Maker\" other than 16 or a \"ModelId\" other than 29?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "data": [["amc"], ["audi"], ["bmw"], ["buick"], ["cadillac"], ["capri"], ["chevrolet"], ["chrysler"], ["citroen"], ["datsun"], ["dodge"], ["fiat"], ["ford"], ["hi"], ["honda"], ["mazda"], ["mercedes"], ["mercedes-benz"], ["mercury"], ["nissan"], ["oldsmobile"], ["opel"], ["peugeot"], ["plymouth"], ["pontiac"], ["renault"], ["saab"], ["subaru"], ["toyota"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_6nxa4_406.png", "TableImg_576h4_36.png"], "original_data_index": 3883, "original_sql": "SELECT Model FROM car_names WHERE Model != \"chevrolet\" OR \"MakeId\" <> 263 OR Make = \"dodge d200\" INTERSECT SELECT Model FROM model_list WHERE \"Maker\" <> 16 OR \"ModelId\" <> 29"} {"question": "Which driver IDs, excluding driver ID 4, are associated with drivers, and which driver IDs greater than 3 are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3a9oi_12.png", "TableImg_Avzoc_5.png"], "original_data_index": 3869, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are not 6 and also appear in the school bus table with a driver ID of 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zzxa1_12.png", "TableImg_1sb4m_5.png"], "original_data_index": 3870, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What is the average title for items that are not \"comb\" or have an i_id not equal to 1, and also the average title for items with an i_id greater than 5?", "answer": {"columns": ["AVG(title)"], "index": [0], "data": [["0"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_9fqoi_8.png", "TableImg_Hodjl_8.png"], "original_data_index": 3887, "original_sql": "SELECT AVG(title) FROM item WHERE title <> \"comb\" OR \"i_id\" != 1 INTERSECT SELECT AVG(title) FROM item WHERE \"i_id\" > 5"} {"question": "What are the nationalities of people who are not from the United States and are not 25 years old or graduated from Iowa, combined with the nationalities of people whose name is not Tim Naegeli or whose People ID is not 2 and are not from the United States and are 37 years old?", "answer": {"columns": ["Nationality"], "index": [0, 1], "data": [["United Kindom"], ["United States"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_5xnni_7.png", "TableImg_Wjnz2_7.png"], "original_data_index": 3886, "original_sql": "SELECT Nationality FROM people WHERE Nationality != \"United States\" AND \"Age\" != 25 OR Graduation_College = \"Iowa\" UNION SELECT Nationality FROM people WHERE Name <> \"Tim Naegeli\" OR \"People_ID\" != 2 AND Nationality <> \"United States\" AND \"Age\" = 37"} {"question": "What are the IDs of drivers who have an ID greater than 1, combined with the IDs of school buses that don't have an ID of 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Unx6y_12.png", "TableImg_6vr3z_5.png"], "original_data_index": 3884, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are greater than 8 but not equal to 10, considering only those IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wk7dk_12.png", "TableImg_Ti4ig_5.png"], "original_data_index": 3885, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are not equal to 2, but are not present in the airport aircraft table with IDs greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3rctg_5.png", "TableImg_77vua_4.png"], "original_data_index": 3889, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the staff IDs from lessons that weren't priced at 306.0, were on March 12, 2018, at 00:41:59, and weren't cancelled, or had a lesson time of 9, or had a vehicle ID greater than 2 and a customer ID not equal to 8? Also, what are the staff IDs from the staff table where the staff ID is greater than 15, and they didn't leave on March 4, 2018, at 17:13:53, or didn't join on June 6, 2016, at 08:54:28, and their date of birth isn't April 27, 1998, at 12:55:05, or their middle name isn't Liam, and their first name isn't Kaitlin, and their nickname isn't nicholaus92, and their last name isn't Hermann?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Knbap_15.png", "TableImg_6b4d7_15.png"], "original_data_index": 3888, "original_sql": "SELECT staff_id FROM Lessons WHERE \"price\" != 306.0 AND lesson_date = \"2018-03-12 00:41:59\" AND lesson_status_code <> \"Cancelled\" OR lesson_time = \"9\" OR \"vehicle_id\" > 2 AND \"customer_id\" <> 8 UNION SELECT staff_id FROM Staff WHERE \"staff_id\" > 15 AND date_left_staff != \"2018-03-04 17:13:53\" OR date_joined_staff != \"2016-06-06 08:54:28\" AND date_of_birth <> \"1998-04-27 12:55:05\" OR middle_name != \"Liam\" AND first_name <> \"Kaitlin\" AND nickname != \"nicholaus92\" AND last_name <> \"Hermann\""} {"question": "What are the aircraft IDs greater than 5, combined with the aircraft IDs from airport_aircraft that are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rqa4q_5.png", "TableImg_Es6fy_4.png"], "original_data_index": 3892, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are not from East Hartford, have an ID greater than 3, are 36 years old, are not named Douglas McCrory, or are affiliated with the Democratic party, but are not full-time school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Orrlq_12.png", "TableImg_Dz5rw_5.png"], "original_data_index": 3890, "original_sql": "SELECT Driver_ID FROM driver WHERE Home_city != \"East Hartford\" AND \"Driver_ID\" > 3 OR \"Age\" = 36 OR Name != \"Douglas McCrory\" OR Party = \"Dem\" EXCEPT SELECT Driver_ID FROM school_bus WHERE If_full_time = \"T\""} {"question": "What are the election details, including the election ID, party, district, delegate, counties represented, and committee, for elections where the delegate is not Guzzone, Guy Guy Guzzone and the election ID is 5 or greater, combined with the election details for elections where the election ID is less than 7 and the delegate is not DeBoy, Steven J. Sr. and the committee is not Ways and Means, or the counties represented is not 13, or the first elected year is before 1994?", "answer": {"columns": ["Election_ID", "Party", "District", "Delegate", "Counties_Represented", "Committee"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5", "3", "2", "Bobo, Elizabeth Elizabeth Bobo", "12.2 12B", "Environmental Matters"], ["8", "7", "3", "Turner, Frank S. Frank S. Turner", "13", "Ways and Means"], ["1", "1", "1", "Bates, Gail H. Gail H. Bates", "09.1 9A", "Appropriations"], ["2", "1", "1", "Miller, Warren E. Warren E. Miller", "09.1 9A", "Economic Matters"], ["3", "2", "2", "DeBoy, Steven J. Sr. Steven J. DeBoy, Sr.", "12.1 12A", "Appropriations"], ["4", "2", "3", "Malone, James E. Jr. James E. Malone, Jr.", "12.1 12A", "Environmental Matters (Vice-Chair)"], ["5", "3", "2", "Bobo, Elizabeth Elizabeth Bobo", "12.2 12B", "Environmental Matters"], ["6", "4", "1", "Pendergrass, Shane E. Shane Pendergrass", "13", "Health and Government Operations"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_6nhry_8.png", "TableImg_Yukhh_8.png"], "original_data_index": 3891, "original_sql": "SELECT Election_ID, Party, District, Delegate, Counties_Represented, Committee FROM election WHERE Delegate != \"Guzzone, Guy Guy Guzzone\" AND \"Election_ID\" >= 5 AND \"District\" > 1 UNION ALL SELECT Election_ID, Party, District, Delegate, Counties_Represented, Committee FROM election WHERE \"Election_ID\" < 7 AND Delegate != \"DeBoy, Steven J. Sr. Steven J. DeBoy, Sr.\" AND Committee != \"Ways and Means\" OR Counties_Represented != \"13\" OR \"First_Elected\" < 1994.0"} {"question": "What are the aircraft IDs greater than 1 that are not present in the airport aircraft table with IDs not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3wri8_5.png", "TableImg_Cji0v_4.png"], "original_data_index": 3893, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the aircraft IDs that are equal to 2 in the aircraft table, but not aircraft IDs that are less than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V9f0u_5.png", "TableImg_359hy_4.png"], "original_data_index": 3895, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the driver IDs greater than 3 that are not also driver IDs less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L5s3t_12.png", "TableImg_E58hk_5.png"], "original_data_index": 3896, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Give me the shop ID, full-time status, and employee ID for employees who are not employee 2, are not full-time, and started in 2008, or for shops with an ID less than 5. Also, include the shop ID, full-time status, and employee ID for employees with an ID less than 7.", "answer": {"columns": ["Shop_ID", "Is_full_time", "Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1", "T", "1"], ["1", "T", "2"], ["4", "T", "4"], ["2", "F", "6"], ["1", "T", "1"], ["1", "T", "2"], ["8", "F", "3"], ["4", "T", "4"], ["5", "T", "5"], ["2", "F", "6"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_2tr6h_7.png", "TableImg_Jbv0z_7.png"], "original_data_index": 3894, "original_sql": "SELECT Shop_ID, Is_full_time, Employee_ID FROM hiring WHERE \"Employee_ID\" <> 2 AND Is_full_time = \"F\" AND Start_from = \"2008\" OR \"Shop_ID\" < 5 UNION ALL SELECT Shop_ID, Is_full_time, Employee_ID FROM hiring WHERE \"Employee_ID\" < 7"} {"question": "What are the driver IDs greater than 3 from the driver table, combined with the driver IDs greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3uzdn_12.png", "TableImg_0m769_5.png"], "original_data_index": 3897, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the club IDs of Halmstads BK if they are not in the USA, have a start year of 2005 or later, and have a club ID of 6, combined with the club IDs of coaches whose rank is greater than 5 or whose club ID is not 3 and coach ID is less than or equal to 5?", "answer": {"columns": ["Club_ID"], "index": [0], "data": [["1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Ggdql_6.png", "TableImg_Uuy8d_5.png"], "original_data_index": 3900, "original_sql": "SELECT Club_ID FROM club WHERE Region <> \"USA\" AND \"Club_ID\" = 6 AND Club_name = \"Halmstads BK\" AND \"Start_year\" >= 2005 UNION SELECT Club_ID FROM coach WHERE \"Rank\" > 5 OR \"Club_ID\" <> 3 AND \"Coach_ID\" <= 5"} {"question": "What are the driver IDs that are either 2 or less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_036y0_12.png", "TableImg_Chy0o_5.png"], "original_data_index": 3903, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the district IDs, either where the store ID is not 2 or the district ID is greater than 4, and also where the district ID is 15 or less?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["15"], ["15"], ["11"], ["4"], ["3"], ["15"], ["15"], ["11"], ["4"], ["3"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_Ely69_5.png", "TableImg_Hfo10_5.png"], "original_data_index": 3898, "original_sql": "SELECT District_ID FROM store_district WHERE \"Store_ID\" != 2 OR \"District_ID\" > 4 UNION ALL SELECT District_ID FROM store_district WHERE \"District_ID\" <= 15"} {"question": "What are the aircraft IDs that are less than 3, but not those aircraft IDs that are greater than 5, considering only the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fj8r5_5.png", "TableImg_13isp_4.png"], "original_data_index": 3906, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the aircraft IDs, excluding aircraft ID 5, and also the aircraft IDs from airport-aircraft, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_W5rao_5.png", "TableImg_8xqta_4.png"], "original_data_index": 3901, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the document IDs from the Documents_Mailed table that were mailed on April 1, 1977, at 5:03:50 PM, excluding document ID 24 or with a mailed to address ID greater than or equal to 2, combined with the document IDs from the Draft_Copies table where the draft number is greater than 20 and the copy number is greater than or equal to 5?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["20"], ["23"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Ag7go_14.png", "TableImg_Kvpbv_8.png"], "original_data_index": 3905, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE mailing_date = \"1977-04-01 17:03:50\" AND \"document_id\" <> 24 OR \"mailed_to_address_id\" >= 2 UNION SELECT document_id FROM Draft_Copies WHERE \"draft_number\" > 20 AND \"copy_number\" >= 5"} {"question": "What is the highest rank from the match results where the club ID is not 4 and the points are not 139, or the gold is 6, or the small silver is not 4, combined with the highest rank from the players where the gender is female and the residence is not Oakbank, or the sponsor name is not Saint Boniface, or the occupation is retired and the rank is not 1st, or the player name is not Pat Martin and the player ID is less than 11?", "answer": {"columns": ["MAX(Rank)"], "index": [0, 1], "data": [["6"], ["4th"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_62mcn_6.png", "TableImg_E4w1l_14.png"], "original_data_index": 3909, "original_sql": "SELECT MAX(Rank) FROM match_result WHERE \"Club_ID\" <> 4 AND \"Points\" <> 139 OR \"Gold\" = 6 OR \"Small_Silver\" <> 4 UNION ALL SELECT MAX(Rank) FROM player WHERE Gender = \"F\" AND Residence != \"Oakbank\" OR Sponsor_name <> \"Saint Boniface\" OR Occupation = \"Retired\" AND Rank <> \"1st\" OR Player_name != \"Pat Martin\" AND \"Player_ID\" < 11"} {"question": "What are the aircraft IDs, excluding ID 3, from the aircraft table, combined with aircraft IDs greater than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8915p_5.png", "TableImg_Pdlyl_4.png"], "original_data_index": 3910, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the aircraft IDs that are not 4 and are not present in the airport_aircraft table with an ID other than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ee31o_5.png", "TableImg_Hb3e0_4.png"], "original_data_index": 3911, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs, excluding driver ID 6, are in the driver table, and which driver IDs, including driver ID 4 and above, are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W20p3_12.png", "TableImg_54ao2_5.png"], "original_data_index": 3912, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the document IDs from the Documents table that are not \"Hard Drive\" documents, don't have \"h\" in their other details, aren't shipped by \"US\", and weren't received on \"2015-04-03 09:36:19\", or have a document ID less than 24, or have a document status that is not \"working\", or have a receipt number of \"34\"? Also, what are the document IDs from the Draft_Copies table where the copy number is less than 6, the draft number is less than 8, and the document ID is 20 or less? Combine all these document IDs together.", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["25"], ["1"], ["2"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_O7i48_15.png", "TableImg_C81m4_8.png"], "original_data_index": 3913, "original_sql": "SELECT document_id FROM Documents WHERE document_type_code <> \"Hard Drive\" AND other_details <> \"h\" AND shipping_agent_code <> \"US\" AND receipt_date <> \"2015-04-03 09:36:19\" OR \"document_id\" < 24 OR document_status_code <> \"working\" OR receipt_number = \"34\" UNION ALL SELECT document_id FROM Draft_Copies WHERE \"copy_number\" < 6 AND \"draft_number\" < 8 AND \"document_id\" <= 20"} {"question": "Which driver IDs are greater than 11 or equal to 7, considering driver and school bus information separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ojh9_12.png", "TableImg_Dc3ps_5.png"], "original_data_index": 3914, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What is the average aircraft ID for British Aerospace Jetstream 41 aircraft that don't have a distance of 1805, excluding the average aircraft ID from certificates associated with employee ID 567354612?", "answer": {"columns": ["AVG(aid)"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_U3koi_16.png", "TableImg_2qbmw_69.png"], "original_data_index": 3915, "original_sql": "SELECT AVG(aid) FROM aircraft WHERE \"distance\" <> 1805 AND name = \"British Aerospace Jetstream 41\" EXCEPT SELECT AVG(aid) FROM certificate WHERE \"eid\" = 567354612"} {"question": "Which driver IDs are less than 11 but not present in the school bus table with IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cvb5x_12.png", "TableImg_Co6pw_5.png"], "original_data_index": 3916, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What is the maximum writer and average title length for books that are not \"The Black Lamb\", excluding those where \"Issues\" is not equal to 12?", "answer": {"columns": ["MAX(Writer)", "AVG(Title)"], "index": [0], "data": [["Michael Moorcock", "0"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_0gzw0_10.png", "TableImg_Rdghe_10.png"], "original_data_index": 3917, "original_sql": "SELECT MAX(Writer), AVG(Title) FROM book WHERE Title != \"The Black Lamb\" EXCEPT SELECT MAX(Writer), AVG(Title) FROM book WHERE \"Issues\" <> 12.0"} {"question": "What are the driver IDs that are greater than or equal to 5, excluding those driver IDs that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aarv8_12.png", "TableImg_9z91h_5.png"], "original_data_index": 3919, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs, excluding driver ID 11, from the driver table, combined with driver IDs from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H9975_12.png", "TableImg_Gwhw3_5.png"], "original_data_index": 3918, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the aircraft IDs that are not 4 and also appear in the airport_aircraft table with an ID of 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qxt9l_5.png", "TableImg_I30hp_4.png"], "original_data_index": 3920, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the years of employment for people with IDs less than 7 and working in year 1, combined with the years of employment for those with company IDs less than or equal to 13, or working in year 2 or later, or with people IDs greater than 2?", "answer": {"columns": ["Year_working"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["1"], ["2"], ["3"], ["4"], ["1"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_3wybf_5.png", "TableImg_W0c10_5.png"], "original_data_index": 3921, "original_sql": "SELECT Year_working FROM employment WHERE \"People_ID\" < 7 AND \"Year_working\" = 1 UNION ALL SELECT Year_working FROM employment WHERE \"Company_ID\" <= 13 OR \"Year_working\" >= 2 OR \"People_ID\" > 2"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 1, excluding any driver IDs from the school_bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q5vwd_12.png", "TableImg_Nqxf3_5.png"], "original_data_index": 662, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those that are not 11 from the driver table, and those less than or equal to 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0a8fv_12.png", "TableImg_Aajvq_5.png"], "original_data_index": 767, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Could you give me the IDs of companies that either don't have profits of 11.1 billion, or don't have a market value of 294.7 billion, or are in the Banking industry, but only if those companies also have employees with IDs greater than or equal to 2?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["11"], ["13"], ["17"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_0u8in_19.png", "TableImg_Pqnm0_5.png"], "original_data_index": 591, "original_sql": "SELECT Company_ID FROM company WHERE \"Profits_in_Billion\" != 11.1 OR \"Market_Value_in_Billion\" != 294.7 OR Industry = \"Banking\" INTERSECT SELECT Company_ID FROM employment WHERE \"People_ID\" >= 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 2, and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Njrki_12.png", "TableImg_I48zz_5.png"], "original_data_index": 960, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Could you list the driver IDs that are both greater than 7 and also less than or equal to 10, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vaw41_12.png", "TableImg_Qegqk_5.png"], "original_data_index": 1023, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me the driver ID that is exactly 8, but only if that driver ID is not also greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8k6y3_12.png", "TableImg_Uqe1o_5.png"], "original_data_index": 1096, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs, excluding driver ID 7, are also school bus driver IDs, excluding school bus driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G1low_12.png", "TableImg_Ig9mz_5.png"], "original_data_index": 1373, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me the paragraph text, paragraph ID, document ID, and other details for all paragraphs where the document ID is less than 3, combined with the paragraph text, paragraph ID, document ID, and other details for paragraphs where the document ID is not 80, or the paragraph ID is greater than 510442723, or the other details are not \"None\"?", "answer": {"columns": ["Paragraph_Text", "Paragraph_ID", "Document_ID", "Other_Details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Brazil", "571212310", "16514113", ""], ["Fiji", "9946", "385906526", ""], ["Indonesia", "243399026", "651512", ""], ["Ireland", "765713812", "16514113", ""], ["Jersey", "241", "651512", ""], ["Korea", "7", "2394", ""], ["Korea", "510442723", "2394", ""], ["Micronesia", "608931827", "80", ""], ["Palestinian Territory", "65", "50123", ""], ["Papua New Guinea", "946335436", "3540024", ""], ["Senegal", "1104059", "3830", ""], ["Somalia", "9", "3", ""], ["UK", "3708", "33930", ""], ["Ukraine", "280120913", "2394", ""]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_Ln0sq_15.png", "TableImg_Du3w2_15.png"], "original_data_index": 1164, "original_sql": "SELECT Paragraph_Text, Paragraph_ID, Document_ID, Other_Details FROM Paragraphs WHERE \"Document_ID\" < 3 UNION SELECT Paragraph_Text, Paragraph_ID, Document_ID, Other_Details FROM Paragraphs WHERE \"Document_ID\" != 80 OR \"Paragraph_ID\" > 510442723 OR Other_Details <> \"None\""} {"question": "Could you list the staff IDs from the Lessons table where the lesson time isn't \"2\", or the vehicle ID isn't 2 and the customer ID is 13, or the price is at least 223 and the lesson ID is greater than 12, or the staff ID is at most 11 and the lesson status code isn't \"Cancelled\", and also include all staff IDs from the Staff table where the middle name is \"Duane\"?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["8"], ["14"], ["11"], ["1"], ["3"], ["4"], ["11"], ["8"], ["4"], ["5"], ["12"], ["11"], ["8"], ["8"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Nt0yy_15.png", "TableImg_Bt2rk_15.png"], "original_data_index": 1130, "original_sql": "SELECT staff_id FROM Lessons WHERE lesson_time <> \"2\" OR \"vehicle_id\" != 2 AND \"customer_id\" = 13 OR \"price\" >= 223.0 AND \"lesson_id\" > 12 OR \"staff_id\" <= 11 AND lesson_status_code != \"Cancelled\" UNION ALL SELECT staff_id FROM Staff WHERE middle_name = \"Duane\""} {"question": "Can you give me the total School IDs for schools in Elkhart that are not in the AAA football class, or don't have the mascot \"Lancers\", aren't in \"75 Starke\" county, and aren't in the AAA class, combined with the total School IDs from the budget table where the budget invested percent is 42.9, or the year isn't 2003, or the budgeted amount is less than or equal to 3666, or the School ID is 5, or the invested amount is less than or equal to 2134?", "answer": {"columns": ["SUM(School_id)"], "index": [0, 1], "data": [["14"], ["24"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_1h24z_8.png", "TableImg_Juic3_8.png"], "original_data_index": 1419, "original_sql": "SELECT SUM(School_id) FROM School WHERE IHSAA_Football_Class <> \"AAA\" OR Mascot != \"Lancers\" AND County <> \"75 Starke\" AND IHSAA_Class <> \"AAA\" AND Location = \"Elkhart\" UNION SELECT SUM(School_id) FROM budget WHERE Budget_invested_percent = \"42.9\" OR \"Year\" != 2003 AND \"Budgeted\" <= 3666 OR \"School_id\" = 5 OR \"Invested\" <= 2134"} {"question": "What aircraft IDs are greater than 2 when grouped, excluding aircraft IDs greater than 1 when grouped in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y82yj_5.png", "TableImg_5mn9m_4.png"], "original_data_index": 1514, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 7 and are also not equal to 7, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rpyn7_12.png", "TableImg_T7ku5_5.png"], "original_data_index": 1809, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Could you show me the receipt number, other details, receipt date, document status code, shipping agent code, document ID, and document type code for all documents where the receipt number is 37, or the shipping agent code is UP and the document status is overdue, along with the same information for documents where the other details are \"w\" and the receipt date is September 15, 1976 at 7:24 PM?", "answer": {"columns": ["receipt_number", "other_details", "receipt_date", "document_status_code", "shipping_agent_code", "document_id", "document_type_code"], "index": [0, 1], "data": [["37", "r", "1986-12-14 14:18:59", "overdue", "UP", "15", "CD"], ["8", "m", "1976-09-15 19:24:17", "overdue", "UP", "10", "Paper"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_0xz5j_15.png", "TableImg_4o7oj_15.png"], "original_data_index": 1864, "original_sql": "SELECT receipt_number, other_details, receipt_date, document_status_code, shipping_agent_code, document_id, document_type_code FROM Documents WHERE receipt_number = \"37\" OR shipping_agent_code = \"UP\" AND document_status_code = \"overdue\" UNION SELECT receipt_number, other_details, receipt_date, document_status_code, shipping_agent_code, document_id, document_type_code FROM Documents WHERE other_details = \"w\" AND receipt_date = \"1976-09-15 19:24:17\""} {"question": "Can you list all vehicle details, excluding \"Truck\", and also list vehicle details excluding \"Car\" or where the vehicle ID is not 3?", "answer": {"columns": ["vehicle_details"], "index": [0, 1, 2], "data": [["Car"], ["Truck"], ["Van"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Vojj1_3.png", "TableImg_5e4ha_3.png"], "original_data_index": 1990, "original_sql": "SELECT vehicle_details FROM Vehicles WHERE vehicle_details != \"Truck\" UNION SELECT vehicle_details FROM Vehicles WHERE vehicle_details != \"Car\" OR \"vehicle_id\" <> 3"} {"question": "Could you give me the IDs that are both album IDs with an artist ID less than or equal to 90, and media type IDs that are either 3 or have a name that isn't \"MPEG audio file\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_1jolt_347.png", "TableImg_18ahg_5.png"], "original_data_index": 2248, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" <= 90 INTERSECT SELECT id FROM media_types WHERE \"id\" = 3 OR name <> \"MPEG audio file\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 2, and also a list of driver IDs from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2ady3_12.png", "TableImg_D8be9_5.png"], "original_data_index": 2300, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the names of companies with sales of at least 145.9 billion or a Company ID of 15, or that are not in the Banking industry, along with the names of people who didn't graduate from Northeastern or whose People ID is not 6?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["ExxonMobil"], ["General Electric"], ["Royal Dutch Shell"], ["PetroChina"], ["Berkshire Hathaway"], ["Petrobras"], ["BP"], ["Chevron"], ["Gazprom"], ["Walmart"], ["Volkswagen Group"], ["Total"], ["Reggie Lewis"], ["Brad Lohaus"], ["Tom Sheehey"], ["Darryl Kennedy"], ["David Butler"], ["Tim Naegeli"], ["Jerry Corcoran"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_Y81u2_19.png", "TableImg_4v8eo_7.png"], "original_data_index": 2400, "original_sql": "SELECT Name FROM company WHERE \"Sales_in_Billion\" >= 145.9 AND \"Company_ID\" = 15.0 OR Industry != \"Banking\" UNION ALL SELECT Name FROM people WHERE Graduation_College <> \"Northeastern\" OR \"People_ID\" <> 6"} {"question": "What aircraft IDs are both greater than or equal to 1 in the aircraft table and greater than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4h2el_5.png", "TableImg_Rjc76_4.png"], "original_data_index": 2500, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which aircraft IDs are both equal to 1 in the aircraft table and less than or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ut8pn_5.png", "TableImg_Ruwdk_4.png"], "original_data_index": 2975, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs that are greater than 12 from the driver table, combined with a list of driver IDs that are greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vke89_12.png", "TableImg_V0498_5.png"], "original_data_index": 2854, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 7 and those from the school bus table that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7jn8w_12.png", "TableImg_1mhw4_5.png"], "original_data_index": 2638, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are less than 8 from the driver table, combined with a list of driver IDs that are less than 4 from the school bus table, making sure to only include each driver ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uqk50_12.png", "TableImg_X5efg_5.png"], "original_data_index": 2729, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you list the titles and IDs of items with ID 4 that are not named \"pear\", excluding any items with titles of \"blue hoodie\" and IDs other than 3?", "answer": {"columns": ["title", "i_id"], "index": [0], "data": [["avocado", "4"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_Zs8cj_8.png", "TableImg_Gi3uf_8.png"], "original_data_index": 3108, "original_sql": "SELECT title, i_id FROM item WHERE \"i_id\" = 4 AND title != \"pear\" EXCEPT SELECT title, i_id FROM item WHERE \"i_id\" <> 3 AND title = \"blue hoodie\""} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 8 or greater, combined with a list of driver IDs from the school bus table where the driver ID is exactly 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S61mn_12.png", "TableImg_01f1f_5.png"], "original_data_index": 3159, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, including those greater than 1 from the driver list and those greater than or equal to 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4hka4_12.png", "TableImg_Jlub7_5.png"], "original_data_index": 3227, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "For aircraft that are not Airbus A319 and have an employee ID of 142519864, can you list the aircraft IDs from both the aircraft and certificate tables, grouping by employee ID?", "answer": {"columns": ["aid -1", "aid -2"], "index": [0], "data": [["1", "1"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Fgidm_16.png", "TableImg_G9q7x_69.png"], "original_data_index": 3325, "original_sql": "SELECT T1.aid, T2.aid FROM aircraft as T1 JOIN certificate as T2 ON T1.aid == T2.aid GROUP BY eid HAVING name <> \"Airbus A319\" AND eid = 142519864"} {"question": "Can you give me a list of driver IDs that are 12 or less, excluding any driver IDs that appear in the school bus list, except for driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F8py6_12.png", "TableImg_Gwgc2_5.png"], "original_data_index": 3326, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs appear in the driver table, excluding driver ID 12, and also appear as driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mzlyr_12.png", "TableImg_Nipyf_5.png"], "original_data_index": 3411, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are not 9 and are also not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5p7nf_12.png", "TableImg_Mm2qn_5.png"], "original_data_index": 3551, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are greater than 11, excluding those driver IDs from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bi2wa_12.png", "TableImg_Fgc6y_5.png"], "original_data_index": 3687, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are both greater than or equal to 7 in the driver table and greater than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fpr0k_12.png", "TableImg_Qgu3o_5.png"], "original_data_index": 3487, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of all the driver IDs, excluding driver ID 7, that appear in either the driver list or the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fgrtp_12.png", "TableImg_4vlwf_5.png"], "original_data_index": 3689, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What is the average club ID and the student ID for members of the \"Bootup Baltimore\" club, grouped by club location, specifically for clubs located in \"AKW\"?", "answer": {"columns": ["AVG(T1.ClubID)", "StuID"], "index": [0], "data": [["1", "1001"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Briva_4.png", "TableImg_Nuc78_4.png"], "original_data_index": 3753, "original_sql": "SELECT AVG(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubName = \"Bootup Baltimore\" GROUP BY ClubLocation HAVING ClubLocation = \"AKW\""} {"question": "Can you list all the feature type codes from the Other_Available_Features table where the feature description is not \"Swimming Pool.\", or the feature name is \"Pool\", or the feature type code is not \"Security\", or the feature ID is greater than 3, combined with all the feature type codes from the Ref_Feature_Types table that are not \"Security\"?", "answer": {"columns": ["feature_type_code"], "index": [0, 1], "data": [["Amenity"], ["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Xtg2x_3.png", "TableImg_Vuh80_2.png"], "original_data_index": 3787, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE feature_description <> \"Swimming Pool.\" OR feature_name = \"Pool\" OR feature_type_code <> \"Security\" OR \"feature_id\" > 3 UNION SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code <> \"Security\""} {"question": "Which driver IDs, excluding driver ID 7, are in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qvhz9_12.png", "TableImg_5qhlf_5.png"], "original_data_index": 3793, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs less than or equal to 10 from the driver table, excluding any driver IDs greater than 10 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nqla3_12.png", "TableImg_Mgoe3_5.png"], "original_data_index": 3800, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the aircraft IDs that are greater than 4, excluding those aircraft IDs that are less than or equal to 3 and also appear in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hlay5_5.png", "TableImg_Ga4mb_4.png"], "original_data_index": 3816, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the average district IDs for each store, considering only stores with IDs of 1 or higher, or districts with an ID of 3, combined with the average district IDs for each store, considering only districts that don't have an ID of 15?", "answer": {"columns": ["Store_ID", "AVG(District_ID)"], "index": [0, 1], "data": [["1", "9.6"], ["3", "6.0"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_He8tx_5.png", "TableImg_12ewx_5.png"], "original_data_index": 3833, "original_sql": "SELECT Store_ID, AVG(District_ID) FROM store_district WHERE \"Store_ID\" >= 1 OR \"District_ID\" = 3 UNION SELECT Store_ID, AVG(District_ID) FROM store_district WHERE \"District_ID\" != 15"} {"question": "Can you give me a list of driver IDs that are not 4 from the driver table, but only include those driver IDs that are also not 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0nv7w_12.png", "TableImg_Vvtof_5.png"], "original_data_index": 3837, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are both not equal to 6 and greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I0zmn_12.png", "TableImg_Z6q4u_5.png"], "original_data_index": 3553, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is greater than 12, combined with a list of driver IDs from the school_bus table where the driver ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ecmx_12.png", "TableImg_Zk60z_5.png"], "original_data_index": 3587, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What is the smallest aircraft ID associated with each airport ID, excluding airport ID 9?", "answer": {"columns": ["MIN(T1.Aircraft_ID)", "Airport_ID"], "index": [0], "data": [["1", "2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ynm6j_5.png", "TableImg_4wc2h_4.png"], "original_data_index": 3899, "original_sql": "SELECT MIN(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID WHERE \"Airport_ID\" <> 9"} {"question": "Which aircraft IDs, excluding aircraft ID 3, are also aircraft IDs less than 5 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lt13t_5.png", "TableImg_U44k6_4.png"], "original_data_index": 3904, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you list the aircraft IDs that appear more than once in the aircraft table, excluding aircraft ID 1, but then remove any aircraft IDs from that list that also appear more than once in the airport_aircraft table with an aircraft ID greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6jhbl_5.png", "TableImg_8e1g5_4.png"], "original_data_index": 3902, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Could you give me a list of shipping agent codes from the Documents table where either the other details are not \"p\", the document status is not \"done\", the receipt date is not \"1996-07-27 03:30:40\", the document ID is 17, and the document type is not \"Paper\", and the shipping agent code is \"FE\", but excluding any shipping agent codes that are also in the Ref_Shipping_Agents table where the shipping agent name is not \"UPS\"?", "answer": {"columns": ["shipping_agent_code"], "index": [0], "data": [["UP"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Hyyqq_15.png", "TableImg_Lfm34_5.png"], "original_data_index": 3838, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE other_details != \"p\" OR document_status_code <> \"done\" AND receipt_date != \"1996-07-27 03:30:40\" AND \"document_id\" = 17 AND document_type_code != \"Paper\" AND shipping_agent_code = \"FE\" EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name <> \"UPS\""} {"question": "Can you give me the rank, rating, and i_id from the review table for all entries where the rank is exactly 6, combined with all entries where the rank is less than 7?", "answer": {"columns": ["rank", "rating", "i_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "10", "1"], ["2", "5", "1"], ["3", "7", "4"], ["4", "7", "5"], ["5", "5", "3"], ["6", "6", "7"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Zz12q_7.png", "TableImg_Nmf36_7.png"], "original_data_index": 3922, "original_sql": "SELECT rank, rating, i_id FROM review WHERE \"rank\" = 6 UNION SELECT rank, rating, i_id FROM review WHERE \"rank\" < 7"} {"question": "Which aircraft IDs belong to both Airbus A320 aircraft and certificates that are not certificate ID 2?", "answer": {"columns": ["aid"], "index": [0], "data": [["13"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Ip5jx_16.png", "TableImg_Wqgh3_69.png"], "original_data_index": 3907, "original_sql": "SELECT aid FROM aircraft WHERE name = \"Airbus A320\" INTERSECT SELECT aid FROM certificate WHERE \"aid\" <> 2"} {"question": "What is the highest club ID and the gender of coaches, considering only coaches who are male, or clubs that are not named \"Gefle IF\", or coaches named \"James Wong\" where the average start year is no more than 2011 and the region is the \"UK\" and the minimum rank is no more than 1, or coaches with an ID of 4 or greater?", "answer": {"columns": ["MAX(T1.Club_ID)", "Gender"], "index": [0], "data": [["3", "M"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_P1oh0_6.png", "TableImg_Xkb6g_5.png"], "original_data_index": 3908, "original_sql": "SELECT MAX(T1.Club_ID), T2.Gender FROM club as T1 JOIN coach as T2 ON T1.Club_ID = T2.Club_ID WHERE Gender = \"M\" OR Club_name <> \"Gefle IF\" OR Coach_name = \"James Wong\" AND AVG(Start_year) <= 2011 AND Region = \"UK\" AND MIN(Rank) <= 1 OR Coach_ID >= 4"} {"question": "Which driver IDs are both greater than 5 and present in the driver table, and also greater than or equal to 7 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2ntc5_12.png", "TableImg_4yug1_5.png"], "original_data_index": 3924, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12 from the driver table and excluding driver ID 7 from the school bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mcqwd_12.png", "TableImg_6hkmg_5.png"], "original_data_index": 3923, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are equal to 12 in the driver table, but not equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sf1ym_12.png", "TableImg_64see_5.png"], "original_data_index": 3926, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Could you list the County IDs for counties named Manning, excluding those with a population less than 21,000 and a zip code of D21?", "answer": {"columns": ["County_Id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_Mpoyj_5.png", "TableImg_S859f_5.png"], "original_data_index": 3927, "original_sql": "SELECT County_Id FROM county WHERE County_name = \"Manning\" NOT IN (SELECT County_Id FROM county WHERE \"Population\" < 21000.0 AND Zip_code = \"D21\")"} {"question": "Can you give me the branch IDs for branches that either opened in 2013, are located on Cecilia Avenue, have a membership amount other than 11, or have a Branch ID greater than 1 and are located in London, excluding any branch IDs from the membership register that were registered in 2016 and have a Branch ID of 1?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Ne16t_8.png", "TableImg_Rpcv3_8.png"], "original_data_index": 3925, "original_sql": "SELECT Branch_ID FROM branch WHERE Open_year = \"2013\" OR Address_road = \"Cecilia Avenue\" OR membership_amount != \"11\" OR \"Branch_ID\" > 1 AND City = \"London\" EXCEPT SELECT Branch_ID FROM membership_register_branch WHERE Register_Year = \"2016\" AND Branch_ID = \"1\""} {"question": "Which driver IDs, that are less than 10, are present in both the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3tw44_12.png", "TableImg_Qc278_5.png"], "original_data_index": 3928, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "For books published by Thomson Reuters, can you show me each book's ID and its price, grouped by the writer?", "answer": {"columns": ["Book_ID", "Price"], "index": [0], "data": [["3", "6000000"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_Byxid_10.png", "TableImg_Nhawg_7.png"], "original_data_index": 3930, "original_sql": "SELECT T1.Book_ID, T2.Price FROM book as T1 JOIN publication as T2 ON T1.Book_ID == T2.Book_ID GROUP BY Writer HAVING Publisher = \"Thomson Reuters\""} {"question": "Can you list all aircraft IDs that are greater than or equal to 3, considering both the aircraft and airport aircraft datasets?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_91ss5_5.png", "TableImg_Ovv2f_4.png"], "original_data_index": 3931, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs that are not equal to 4, but exclude any driver IDs that are less than 10 and are also in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q9dmi_12.png", "TableImg_8ybqo_5.png"], "original_data_index": 3933, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are equal to 5, but not less than or equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8bc5a_12.png", "TableImg_5hgxf_5.png"], "original_data_index": 3932, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you show me the description, total disk area, aircraft ID, and max disk loading for aircraft that are either Robinson R-22s with an aircraft ID of 5 or less, or have a description that isn't \"Turboshaft utility helicopter\", combined with aircraft that either have a description that isn't \"Turboshaft utility helicopter\", or are Bell 206B3 JetRangers with an aircraft ID greater than 5, a max disk loading that isn't \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\", and a total disk area that isn't \"8,495 ft\u00b2 (789 m\u00b2)\", or have a max gross weight that isn't \"1,370 lb (635 kg)\"?", "answer": {"columns": ["Description", "Total_disk_area", "Aircraft_ID", "Max_disk_Loading"], "index": [0, 1, 2, 3, 4], "data": [["Heavy-lift helicopter", "4,900 ft\u00b2 (460 m\u00b2)", "5", "15 lb/ft\u00b2 (72 kg/m\u00b2)"], ["Heavy-lift helicopter", "8,495 ft\u00b2 (789 m\u00b2)", "4", "14.5 lb/ft\u00b2 (71 kg/m\u00b2)"], ["Light utility helicopter", "497 ft\u00b2 (46.2 m\u00b2)", "1", "2.6 lb/ft\u00b2 (14 kg/m\u00b2)"], ["Tandem rotor helicopter", "5,655 ft\u00b2 (526 m\u00b2)", "3", "8.8 lb/ft\u00b2 (43 kg/m\u00b2)"], ["Turboshaft utility helicopter", "872 ft\u00b2 (81.1 m\u00b2)", "2", "3.7 lb/ft\u00b2 (18 kg/m\u00b2)"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_K4z0l_5.png", "TableImg_Xskop_5.png"], "original_data_index": 3929, "original_sql": "SELECT Description, Total_disk_area, Aircraft_ID, Max_disk_Loading FROM aircraft WHERE \"Aircraft_ID\" <= 5 AND Aircraft = \"Robinson R-22\" OR Description != \"Turboshaft utility helicopter\" UNION SELECT Description, Total_disk_area, Aircraft_ID, Max_disk_Loading FROM aircraft WHERE Description != \"Turboshaft utility helicopter\" OR \"Aircraft_ID\" > 5 AND Aircraft = \"Bell 206B3 JetRanger\" AND Max_disk_Loading != \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" AND Total_disk_area <> \"8,495 ft\u00b2 (789 m\u00b2)\" OR Max_Gross_Weight != \"1,370 lb (635 kg)\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 6 or greater, and those from the school bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4zqlr_12.png", "TableImg_Ackp8_5.png"], "original_data_index": 3936, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which aircraft IDs, excluding ID 3, are present in the aircraft table but not in the airport_aircraft table, also excluding ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C8pil_5.png", "TableImg_Zr8bv_4.png"], "original_data_index": 3937, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you list the continent and country ID for countries where either the continent number is less than 4 or the country name is \"uk\" and the country ID is less than 4, and also list the continent and country ID for countries where the country name is \"germany\" or the continent number is 2 or greater?", "answer": {"columns": ["Continent", "CountryId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], "data": [["1", "1"], ["2", "2"], ["2", "3"], ["3", "4"], ["2", "5"], ["2", "6"], ["2", "7"], ["3", "8"], ["2", "9"], ["1", "14"], ["1", "15"], ["2", "2"], ["2", "3"], ["3", "4"], ["2", "5"], ["2", "6"], ["2", "7"], ["3", "8"], ["2", "9"], ["4", "10"], ["5", "11"], ["5", "12"], ["4", "13"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_Oe1kk_15.png", "TableImg_Ycvs5_15.png"], "original_data_index": 3938, "original_sql": "SELECT Continent, CountryId FROM countries WHERE \"Continent\" < 4 OR CountryName = \"uk\" AND \"CountryId\" < 4 UNION ALL SELECT Continent, CountryId FROM countries WHERE CountryName = \"germany\" OR \"Continent\" >= 2"} {"question": "Which driver IDs are both greater than 7 in the driver table and greater than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tozzs_12.png", "TableImg_J0ga6_5.png"], "original_data_index": 3939, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are not 4, and also less than or equal to 3, from both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P4bts_12.png", "TableImg_Mbwzr_5.png"], "original_data_index": 3941, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Could you list the document IDs and draft numbers from the circulation history for entries where the draft number is less than 1, the copy number is 5, the employee ID is 2 or greater, or the document ID is 2 or greater, combined with a list of document IDs and draft numbers from the document drafts where the draft number is less than 9 and the draft details are not \"r\"?", "answer": {"columns": ["document_id", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["20", "17"], ["1", "2"], ["2", "1"], ["10", "20"], ["1", "0"], ["1", "2"], ["2", "1"], ["2", "8"], ["13", "4"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_72dcf_4.png", "TableImg_Nbc6u_15.png"], "original_data_index": 3940, "original_sql": "SELECT document_id, draft_number FROM Circulation_History WHERE \"draft_number\" < 1 OR \"copy_number\" = 5 OR \"employee_id\" >= 2 OR \"document_id\" >= 2 UNION ALL SELECT document_id, draft_number FROM Document_Drafts WHERE \"draft_number\" < 9 AND draft_details <> \"r\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 5, and combine that with a list of aircraft IDs from the airport_aircraft table that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Murcz_5.png", "TableImg_N3l8l_4.png"], "original_data_index": 3942, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you list the aircraft IDs that are greater than or equal to 2, and also list the aircraft IDs from the airport aircraft table that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hqubb_5.png", "TableImg_Cjdrb_4.png"], "original_data_index": 3944, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding those driver IDs from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9x5s5_12.png", "TableImg_H1d1d_5.png"], "original_data_index": 3943, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me the ID of aircraft that has an ID of 3, excluding any aircraft that has an ID of 2 and is associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E60ws_5.png", "TableImg_Yk8me_4.png"], "original_data_index": 3934, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you list all the role descriptions, including those that are not \"Photo\" or have a role code of \"PR\", and also include any role descriptions that are not \"Editor\"?", "answer": {"columns": ["role_description"], "index": [0, 1, 2, 3], "data": [["Editor"], ["Manager"], ["Photo"], ["Proof Manager"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Lam9q_4.png", "TableImg_36p3r_4.png"], "original_data_index": 3948, "original_sql": "SELECT role_description FROM Roles WHERE role_description != \"Photo\" OR role_code = \"PR\" UNION SELECT role_description FROM Roles WHERE role_description <> \"Editor\""} {"question": "Which driver has an ID of 9 and also drives a school bus, but not one with an ID of 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yagjs_12.png", "TableImg_Ia2mt_5.png"], "original_data_index": 3949, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the earliest city name among employees who live in Wasps, and also the earliest city name among all employees except those with ID 10 or those not living in Bath or those not named Matt Stevens?", "answer": {"columns": ["MIN(City)"], "index": [0, 1], "data": [["Wasps"], ["Bath"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_2qdtb_10.png", "TableImg_Df16p_10.png"], "original_data_index": 3950, "original_sql": "SELECT MIN(City) FROM employee WHERE City = \"Wasps\" UNION ALL SELECT MIN(City) FROM employee WHERE \"Employee_ID\" != 10 OR City != \"Bath\" OR Name != \"Matt Stevens\""} {"question": "Which aircraft IDs are both greater than or equal to 4 in the aircraft table and greater than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tzq19_5.png", "TableImg_B87yw_4.png"], "original_data_index": 3951, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs, first from the driver table excluding driver ID 3, and then from the school bus table excluding driver ID 4, combining the two lists and removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R49mi_12.png", "TableImg_Lv450_5.png"], "original_data_index": 3952, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8i881_12.png", "TableImg_Rsd3j_5.png"], "original_data_index": 3953, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 12, and those from the school bus table with driver IDs 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nrfqh_12.png", "TableImg_Omrjn_5.png"], "original_data_index": 3954, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What role codes are assigned to employees with \"v\" in their other details or an employee ID of 2 or greater, but are not associated with the role description \"Photo\"?", "answer": {"columns": ["role_code"], "index": [0, 1, 2], "data": [["ED"], ["MG"], ["PR"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_I84tc_6.png", "TableImg_1p7kb_4.png"], "original_data_index": 3955, "original_sql": "SELECT role_code FROM Employees WHERE other_details = \"v\" OR \"employee_id\" >= 2 INTERSECT SELECT role_code FROM Roles WHERE role_description != \"Photo\""} {"question": "Can you give me the student IDs that are both in the club member list where the club ID is greater than 1 or the student ID is less than 1008 or the position is Vice-President, and also in the student list where the age is not 21 or the first name is Bruce?", "answer": {"columns": ["StuID"], "index": [0], "data": [["1007"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_Wn003_4.png", "TableImg_Lq6kf_34.png"], "original_data_index": 3956, "original_sql": "SELECT StuID FROM Member_of_club WHERE \"ClubID\" > 1 AND \"StuID\" < 1008 OR Position = \"Vice-President\" INTERSECT SELECT StuID FROM Student WHERE \"Age\" != 21 OR Fname = \"Bruce\""} {"question": "Could you give me a list of cities that appear both in a list of employee cities excluding Andrew Sheridan and employees who are not 23 years old, or are from Bristol and have an employee ID greater than 2, and in a list of employee cities where employees are from Bristol and are 30 years old?", "answer": {"columns": ["City"], "index": [0], "data": [["Bristol"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_J697q_10.png", "TableImg_9y1k8_10.png"], "original_data_index": 3947, "original_sql": "SELECT City FROM employee WHERE Name <> \"Andrew Sheridan\" AND \"Age\" != 23 OR City = \"Bristol\" AND \"Employee_ID\" > 2 INTERSECT SELECT City FROM employee WHERE City = \"Bristol\" AND \"Age\" = 30"} {"question": "Can you give me the IDs of documents that were mailed, either with document ID 2, a non-zero mailing address ID, or mailed on January 27, 2013, but excluding those documents that have a copy number less than 5 or a document ID greater than or equal to 12 in the draft copies?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["10"], ["13"], ["14"], ["24"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Uyjxy_14.png", "TableImg_9srac_8.png"], "original_data_index": 3958, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"document_id\" = 2 OR \"mailed_to_address_id\" != 0 OR mailing_date = \"2013-01-27 03:29:31\" EXCEPT SELECT document_id FROM Draft_Copies WHERE \"copy_number\" < 5 OR \"document_id\" >= 12"} {"question": "Can you give me the IDs of drivers who are not driver 11 and who also have IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wmkl0_12.png", "TableImg_2obw8_5.png"], "original_data_index": 3959, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 5, combined with a list of driver IDs from the school_bus table that are not equal to 7, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0h1cm_12.png", "TableImg_2780s_5.png"], "original_data_index": 3960, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs, excluding driver ID 1, are present in the driver table and also present in the school_bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Umxz0_12.png", "TableImg_42k28_5.png"], "original_data_index": 3961, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are both less than or equal to 11 in the driver table and less than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2dhjb_12.png", "TableImg_Fjm4x_5.png"], "original_data_index": 3962, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 5, combined with a list of driver IDs from the school_bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nuln9_12.png", "TableImg_Muaqd_5.png"], "original_data_index": 3963, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What is the total enrollment and total budget percentage budgeted for schools named \"New Prairie 1\" or schools where the total budget percentage invested is less than or equal to 2.0, excluding schools with the mascot \"Lions\"?", "answer": {"columns": ["SUM(T1.Enrollment)", "total_budget_percent_budgeted"], "index": [0], "data": [["3307", "2"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_Axqwk_8.png", "TableImg_Nq25r_8.png"], "original_data_index": 3964, "original_sql": "SELECT SUM(T1.Enrollment), T2.total_budget_percent_budgeted FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE Mascot <> \"Lions\" AND School_name = \"New Prairie 1\" OR total_budget_percent_invested <= 2.0"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 11 and not equal to 7, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R0h7s_12.png", "TableImg_Ickiw_5.png"], "original_data_index": 3965, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are less than or equal to 3, excluding any driver IDs greater than 9 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4d0p5_12.png", "TableImg_E1umk_5.png"], "original_data_index": 3946, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs less than 8 are also driver IDs equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sb7ue_12.png", "TableImg_B9yzi_5.png"], "original_data_index": 3966, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the smallest first name and the total date of birth for customers, considering those who don't have a customer ID of 15, or whose last name isn't Terry and have an amount outstanding of 2099, or whose customer date isn't October 5, 2017 at 2:15 PM and have the email kitty.hand@example.net, or whose birthdate isn't February 10, 1991 at 12:42 AM, combined with the smallest first name and total date of birth for staff, considering those who didn't leave on March 8, 2018 at 4:23 AM and have a staff address ID of 7 or higher, or whose nickname is ledner.jamie and whose first name isn't Eulalia, or whose birthdate isn't June 13, 2000 at 6:09 PM?", "answer": {"columns": ["MIN(first_name)", "SUM(date_of_birth)"], "index": [0, 1], "data": [["Amya", "29912"], ["Camylle", "28035"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_Frwkz_15.png", "TableImg_Isu9l_15.png"], "original_data_index": 3945, "original_sql": "SELECT MIN(first_name), SUM(date_of_birth) FROM Customers WHERE \"customer_id\" <> 15 OR last_name != \"Terry\" AND \"amount_outstanding\" = 2099.0 OR date_became_customer != \"2017-10-05 14:15:46\" AND email_address = \"kitty.hand@example.net\" OR date_of_birth != \"1991-02-10 00:42:17\" UNION SELECT MIN(first_name), SUM(date_of_birth) FROM Staff WHERE date_left_staff <> \"2018-03-08 04:23:14\" AND \"staff_address_id\" >= 7 OR nickname = \"ledner.jamie\" AND first_name <> \"Eulalia\" OR date_of_birth != \"2000-06-13 18:09:11\""} {"question": "Can you list the driver IDs, including those from the driver table that are 10 or greater, and those from the school bus table that are 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C2jqw_12.png", "TableImg_G58o4_5.png"], "original_data_index": 3957, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver has an ID of 5, but is not a driver with an ID less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ycjcm_12.png", "TableImg_6b70u_5.png"], "original_data_index": 3968, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are less than 2 from the driver table, excluding any driver IDs less than 10 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uc56h_12.png", "TableImg_Cdqnx_5.png"], "original_data_index": 3970, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 8 or higher, and those from the school bus table that are 4 or lower?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jheh8_12.png", "TableImg_6e7sm_5.png"], "original_data_index": 3969, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of all the 'other details' from documents that aren't document ID 24, combined with a list of 'other details' from employees, excluding those that are \"f\" and those belonging to employees named \"Jordyn\"?", "answer": {"columns": ["other_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["z"], ["h"], ["h"], ["q"], ["w"], ["m"], ["n"], ["y"], ["u"], ["r"], ["p"], ["x"], ["b"], ["u"], ["h"], ["b"], ["b"], ["u"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Lsi7j_15.png", "TableImg_Hu855_6.png"], "original_data_index": 3967, "original_sql": "SELECT other_details FROM Documents WHERE \"document_id\" != 24 UNION ALL SELECT other_details FROM Employees WHERE other_details != \"f\" AND employee_name <> \"Jordyn\""} {"question": "Can you list the driver IDs from the driver table that are less than or equal to 5, and combine that with a list of driver IDs from the school_bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7yfw4_12.png", "TableImg_Cdarn_5.png"], "original_data_index": 3974, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, where each ID is 3 or greater, but excluding any driver IDs that also appear in the school bus table, unless that ID is 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ttafm_12.png", "TableImg_4er77_5.png"], "original_data_index": 3972, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are both less than 12 and also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Trqxz_12.png", "TableImg_Zmiwm_5.png"], "original_data_index": 3973, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 1, excluding the driver ID 10 if it appears in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1tllo_12.png", "TableImg_Wchl1_5.png"], "original_data_index": 3976, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Could you give me a list of driver IDs, including driver ID 3 from the driver table and any driver IDs greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7nijt_12.png", "TableImg_Svkcp_5.png"], "original_data_index": 3977, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list all driver IDs that are less than 7 from the driver table, combined with all driver IDs that are not equal to 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I3xd2_12.png", "TableImg_Ijwi0_5.png"], "original_data_index": 3975, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Could you list the Aircraft IDs that are greater than 2 and also less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ufl1u_5.png", "TableImg_Zofwc_4.png"], "original_data_index": 3979, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 5, and those from the school bus table where the driver ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R0nkm_12.png", "TableImg_653l7_5.png"], "original_data_index": 3980, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs, excluding driver ID 7, are present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T4gu1_12.png", "TableImg_1hcjj_5.png"], "original_data_index": 3982, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs that are less than or equal to 10 and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gwmts_12.png", "TableImg_Pfygh_5.png"], "original_data_index": 3983, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 1 from the driver table, combined with a list of driver IDs that are 10 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fpcfh_12.png", "TableImg_M32g8_5.png"], "original_data_index": 3978, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you show me the year and invested amount from the budget table where the total budget percent budgeted is greater than 1.3, and also show me the year and invested amount where the total budget percent budgeted is 2.0, the school ID is not 2, the budgeted amount is not 61283, and the total budget percent invested is 2.0, or where the invested amount is greater than or equal to 8335 and the year is less than or equal to 2005, or where the budget invested percent is not equal to 159.3?", "answer": {"columns": ["Year", "Invested"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1999", "2134"], ["2000", "5840"], ["2001", "8335"], ["2002", "8335"], ["2003", "85249"], ["2004", "95542"], ["2006", "146102"], ["1999", "2134"], ["2001", "8335"], ["2002", "8335"], ["2003", "85249"], ["2004", "95542"], ["2005", "140102"], ["2006", "146102"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Gs4y7_8.png", "TableImg_Wzd0l_8.png"], "original_data_index": 3981, "original_sql": "SELECT Year, Invested FROM budget WHERE \"total_budget_percent_budgeted\" > 1.3 UNION ALL SELECT Year, Invested FROM budget WHERE \"total_budget_percent_budgeted\" = 2.0 AND \"School_id\" != 2 AND \"Budgeted\" != 61283 AND \"total_budget_percent_invested\" = 2.0 OR \"Invested\" >= 8335 AND \"Year\" <= 2005 OR Budget_invested_percent <> \"159.3\""} {"question": "Which driver IDs, excluding driver ID 2, are also driver IDs less than 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z14m8_12.png", "TableImg_Mlnsn_5.png"], "original_data_index": 3985, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are both less than or equal to 7 and also equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pla12_12.png", "TableImg_N62tf_5.png"], "original_data_index": 3986, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list the Aircraft IDs from the aircraft table where the Aircraft ID is 1, and also list the Aircraft IDs from the airport_aircraft table where the Aircraft ID is greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ptaeg_5.png", "TableImg_Hy02y_4.png"], "original_data_index": 3984, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding any driver IDs that are 10 or greater and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ehpat_12.png", "TableImg_33xsp_5.png"], "original_data_index": 3987, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of all Aircraft IDs, excluding ID 3, from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sz3od_5.png", "TableImg_Fzh5s_4.png"], "original_data_index": 3990, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Could you list all the feature type names, excluding \"Amenity, eg Pool.\" when the feature type code is not \"Security\", and also include feature type names that are not \"Securiyt, eg Burglar Alarm.\" or have a feature type code that is not \"Amenity\"?", "answer": {"columns": ["feature_type_name"], "index": [0, 1], "data": [["Amenity, eg Pool."], ["Securiyt, eg Burglar Alarm."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Xcgrv_2.png", "TableImg_Yueem_2.png"], "original_data_index": 3988, "original_sql": "SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_name != \"Amenity, eg Pool.\" AND feature_type_code <> \"Security\" UNION SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_name <> \"Securiyt, eg Burglar Alarm.\" OR feature_type_code != \"Amenity\""} {"question": "Which driver IDs are both not equal to 5 and also less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L8soi_12.png", "TableImg_6u36y_5.png"], "original_data_index": 3991, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are not 7 and are also less than or equal to 9, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ocl2p_12.png", "TableImg_6tmb4_5.png"], "original_data_index": 3993, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of member IDs from the member table, excluding those with card number RT91, or a hometown other than Collierville, Tennessee, or a name other than Matt Lentz, and whose member ID is less than or equal to 4, but excluding any member IDs that appear in the membership register branch table for the year 2017?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_3gg22_10.png", "TableImg_Iltza_8.png"], "original_data_index": 3992, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number != \"RT91\" OR Hometown <> \"Collierville, Tennessee\" AND Name <> \"Matt Lentz\" AND \"Member_ID\" <= 4 EXCEPT SELECT Member_ID FROM membership_register_branch WHERE Register_Year = \"2017\""} {"question": "Can you give me a list of driver IDs that are less than 12, but exclude any driver IDs less than 10 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Igcks_12.png", "TableImg_S9kst_5.png"], "original_data_index": 3971, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 3, excluding any driver IDs that are also in the school_bus table with a driver ID of 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bby7q_12.png", "TableImg_Uhdm6_5.png"], "original_data_index": 3989, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of Driver IDs, including Driver ID 10 from the driver table and Driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fcvlu_12.png", "TableImg_K7k2e_5.png"], "original_data_index": 3994, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of aircraft IDs that are greater than 1 and also not equal to 2, considering only the unique aircraft IDs from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bdg2i_5.png", "TableImg_Rafaf_4.png"], "original_data_index": 3997, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me the average road address, latest opening year, name, average branch ID, and average city for branches that opened in 2001 in London, excluding Zytogorski and branches on Oaks Crescent, or those with a branch ID not equal to 7 or membership amount not equal to 91, but then remove any results that also include branches not on Concord Road and not opened in 2001, or those in Oxford?", "answer": {"columns": ["AVG(Address_road)", "MAX(Open_year)", "Name", "AVG(Branch_ID)", "AVG(City)"], "index": [0], "data": [["0", "2014", "Taverner", "4.1428571429", "0"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Z9cum_8.png", "TableImg_Y5urd_8.png"], "original_data_index": 3996, "original_sql": "SELECT AVG(Address_road), MAX(Open_year), Name, AVG(Branch_ID), AVG(City) FROM branch WHERE \"Branch_ID\" != 7 OR membership_amount != \"91\" AND Address_road != \"Oaks Crescent\" AND Open_year = \"2001\" AND Name != \"Zytogorski\" AND City = \"London\" EXCEPT SELECT AVG(Address_road), MAX(Open_year), Name, AVG(Branch_ID), AVG(City) FROM branch WHERE Address_road <> \"Concord Road\" AND Open_year <> \"2001\" OR City = \"Oxford\""} {"question": "Can you give me a list of driver IDs, where each ID is 12 or greater, but only include those IDs that are not also in the list of school bus driver IDs, excluding driver ID 9 from that list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sugun_12.png", "TableImg_Gh1iw_5.png"], "original_data_index": 3995, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are less than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Osoww_12.png", "TableImg_X0qsx_5.png"], "original_data_index": 3999, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 7, combining results from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Whgi0_12.png", "TableImg_Rkjhj_5.png"], "original_data_index": 4000, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list all tree pollen allergies, excluding those also listed in the Has_Allergy table where either the allergy is tree pollen or the student ID is not 1031, from the Allergy_Type table where the allergy type is not animal?", "answer": {"columns": ["Allergy"], "index": [0], "data": [["Wheat"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_Uylu4_14.png", "TableImg_Hg2tb_59.png"], "original_data_index": 3998, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE Allergy = \"Tree Pollen\" OR AllergyType <> \"animal\" EXCEPT SELECT Allergy FROM Has_Allergy WHERE Allergy = \"Tree Pollen\" OR \"StuID\" != 1031"} {"question": "What are the average employee ID, role code, and employee name for employees with other details marked as \"u\", combined with the average employee ID, role code, and employee name for employees whose employee ID is less than or equal to 1 or whose name is not \"Kenyon\" and other details are marked as \"u\"?", "answer": {"columns": ["AVG(employee_id)", "role_code", "employee_name"], "index": [0, 1], "data": [["4.5", "ED", "Koby"], ["8.0", "MG", "Erling"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_Jnq0w_6.png", "TableImg_0pik6_6.png"], "original_data_index": 4001, "original_sql": "SELECT AVG(employee_id), role_code, employee_name FROM Employees WHERE other_details = \"u\" UNION SELECT AVG(employee_id), role_code, employee_name FROM Employees WHERE \"employee_id\" <= 1 OR employee_name != \"Kenyon\" AND other_details = \"u\""} {"question": "Which driver IDs are both less than 8 and greater than 4, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O8d5m_12.png", "TableImg_Q3cxe_5.png"], "original_data_index": 4003, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 12 or greater, combined with a list of driver IDs from the school_bus table where the driver ID is exactly 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tc8pi_12.png", "TableImg_Sgdxc_5.png"], "original_data_index": 4005, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5 from the driver table and driver ID 4 from the school bus table, making sure to only list each driver ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_84hye_12.png", "TableImg_84zzt_5.png"], "original_data_index": 4002, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are greater than 3 and also not equal to 3, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1kvu3_12.png", "TableImg_Ur2qt_5.png"], "original_data_index": 4004, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the maximum value of \"temporary_acting\" in the management table when either the department ID is not 15, the head ID is at least 10, or temporary_acting is \"No\", combined with the maximum value of \"temporary_acting\" when the department ID is 2 and temporary_acting is not \"Yes\"?", "answer": {"columns": ["MAX(temporary_acting)"], "index": [0, 1], "data": [[""], ["Yes"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_J1rco_5.png", "TableImg_Ajp49_5.png"], "original_data_index": 4009, "original_sql": "SELECT MAX(temporary_acting) FROM management WHERE \"department_ID\" != 15 OR \"head_ID\" >= 10 OR temporary_acting = \"No\" UNION SELECT MAX(temporary_acting) FROM management WHERE \"department_ID\" = 2 AND temporary_acting != \"Yes\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 8 and appear in the driver table, and also less than 7 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H6m0y_12.png", "TableImg_0zahs_5.png"], "original_data_index": 4006, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 8, but also excluding any driver IDs that appear in the school_bus table with a driver ID greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nq4yb_12.png", "TableImg_41rzc_5.png"], "original_data_index": 4007, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1abzf_12.png", "TableImg_7eo6s_5.png"], "original_data_index": 4008, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are both greater than or equal to 1 and appear in the driver table, and also less than 4 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rcbk1_12.png", "TableImg_Zp9ic_5.png"], "original_data_index": 4011, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of feature IDs from the available features table where the ID is less than 2 and the description is not \"Swimming Pool,\" combined with a list of feature IDs from the property features table where the property ID is less than 13, the feature ID is less than 3, and the feature description is \"ad\"?", "answer": {"columns": ["feature_id"], "index": [0], "data": [["2"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Afm87_3.png", "TableImg_0ijw5_15.png"], "original_data_index": 4010, "original_sql": "SELECT feature_id FROM Other_Available_Features WHERE \"feature_id\" < 2 AND feature_description <> \"Swimming Pool.\" UNION SELECT feature_id FROM Other_Property_Features WHERE \"property_id\" < 13 AND \"feature_id\" < 3 AND property_feature_description = \"ad\""} {"question": "Which driver IDs, excluding driver ID 7, are present in the driver table but not in the school_bus table, excluding driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0cacs_12.png", "TableImg_4rra1_5.png"], "original_data_index": 4012, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Could you list the template type codes that are either \"PPT\" with the description \"Paper\", or \"PP\" with a description that is not \"CV\"?", "answer": {"columns": ["Template_Type_Code"], "index": [0], "data": [["PP"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Nmvv4_5.png", "TableImg_Vqgze_5.png"], "original_data_index": 4013, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = \"PPT\" AND Template_Type_Description = \"Paper\" UNION SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = \"PP\" AND Template_Type_Description <> \"CV\""} {"question": "Which store IDs are both not equal to 2 in the district store table and either greater than or equal to 2 in the store product table, or have a product ID greater than 1 in the store product table?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_A2kj4_5.png", "TableImg_Sauw3_15.png"], "original_data_index": 4014, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" != 2 INTERSECT SELECT Store_ID FROM store_product WHERE \"Store_ID\" >= 2 OR \"Product_ID\" > 1"} {"question": "Can you show me the aircraft movements from the airport table along with the corresponding ID from the airport_aircraft table, matching them by airport ID?", "answer": {"columns": ["Aircraft_Movements", "ID"], "index": [0, 1, 2, 3], "data": [["112227", "1"], ["263653", "2"], ["478693", "3"], ["76517", "4"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Ij6y1_10.png", "TableImg_7bu0p_4.png"], "original_data_index": 4015, "original_sql": "SELECT T1.Aircraft_Movements, T2.ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Can you give me a list of driver IDs that are less than 3, along with a list of driver IDs from the school bus records that are 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zaxf4_12.png", "TableImg_Eg8sz_5.png"], "original_data_index": 4016, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs less than 7 from the driver table, excluding any driver IDs less than 10 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6yzue_12.png", "TableImg_5h0c8_5.png"], "original_data_index": 4019, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "For clubs located in AKW, what are the club IDs and the member of club IDs?", "answer": {"columns": ["ClubID -1", "ClubID -2"], "index": [0], "data": [["1", "1"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Cugt7_4.png", "TableImg_Sjt6h_4.png"], "original_data_index": 4017, "original_sql": "SELECT T1.ClubID, T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID == T2.ClubID GROUP BY ClubLocation HAVING ClubLocation = \"AKW\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 1, excluding any driver IDs greater than 4 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gpdby_12.png", "TableImg_2qh7c_5.png"], "original_data_index": 4018, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Could you list all document status codes, including those from documents that aren't of type \"Paper\" and weren't received on \"2005-09-30 00:10:02\", along with status codes from the document status reference table that are either not \"overdue\" or have a description of \"currently working on\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["working"], ["working"], ["overdue"], ["working"], ["working"], ["overdue"], ["working"], ["overdue"], ["working"], ["done"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_4qc7v_15.png", "TableImg_3qojq_3.png"], "original_data_index": 4020, "original_sql": "SELECT document_status_code FROM Documents WHERE document_type_code != \"Paper\" AND receipt_date != \"2005-09-30 00:10:02\" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code != \"overdue\" OR document_status_description = \"currently working on\""} {"question": "Can you list all aircraft IDs that are equal to 3 from the aircraft table, and combine that with a list of all aircraft IDs that are not equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fqu3f_5.png", "TableImg_Rx4uj_4.png"], "original_data_index": 4021, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 1, and those from the school_bus table where the ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nwsef_12.png", "TableImg_1rdm3_5.png"], "original_data_index": 4025, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are less than 8, but exclude any driver IDs less than 3 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M3ls1_12.png", "TableImg_Q54u5_5.png"], "original_data_index": 4022, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Could you give me the document IDs that are both from document drafts with draft numbers greater than 4, document IDs of 7 or higher, and draft details not equal to \"x\", and also from documents mailed where the mailing date isn't \"1977-04-01 17:03:50\" or the mailed-to address ID is 4 or less and the document ID is 14?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["10"], ["12"], ["13"], ["20"], ["23"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_J2fwj_15.png", "TableImg_7yc8r_14.png"], "original_data_index": 4023, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"draft_number\" > 4 AND \"document_id\" >= 7 AND draft_details != \"x\" INTERSECT SELECT document_id FROM Documents_Mailed WHERE mailing_date <> \"1977-04-01 17:03:50\" OR \"mailed_to_address_id\" <= 4 AND \"document_id\" = 14"} {"question": "Which aircraft IDs, that are less than or equal to 1, are present in both the aircraft and airport_aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ych7z_5.png", "TableImg_N5k8r_4.png"], "original_data_index": 4024, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 2, but also excluding any driver IDs that appear in the school_bus table with a driver ID of 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I8s13_12.png", "TableImg_N270w_5.png"], "original_data_index": 4028, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are both less than or equal to 7 and also equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qzsvw_12.png", "TableImg_F72je_5.png"], "original_data_index": 4026, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list all aircraft IDs less than 2 from both the aircraft and airport_aircraft tables, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hbg7r_5.png", "TableImg_7kjon_4.png"], "original_data_index": 4027, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are both not equal to 5 and also greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gadj7_12.png", "TableImg_3zhkd_5.png"], "original_data_index": 4032, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are less than or equal to 11, excluding any driver IDs that are not equal to 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E9ej2_12.png", "TableImg_Hktel_5.png"], "original_data_index": 4031, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the years of working for all school bus drivers who either aren't driver number 7, or work full time, or have more than 3 years of experience, combined with the years of working for all school bus drivers who don't work full time?", "answer": {"columns": ["Years_Working"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["6"], ["8"], ["10"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_S0n0c_5.png", "TableImg_Wg9xj_5.png"], "original_data_index": 4029, "original_sql": "SELECT Years_Working FROM school_bus WHERE \"Driver_ID\" <> 7 OR If_full_time = \"T\" OR \"Years_Working\" > 3 UNION SELECT Years_Working FROM school_bus WHERE If_full_time <> \"T\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 6 or greater, and those from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J64xq_12.png", "TableImg_Uwb8q_5.png"], "original_data_index": 4030, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are greater than 6, excluding any driver IDs that are less than or equal to 4 and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6o7vd_12.png", "TableImg_Yd021_5.png"], "original_data_index": 4033, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs, excluding driver ID 11, are also school bus driver IDs, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pl7xq_12.png", "TableImg_Ivcd4_5.png"], "original_data_index": 4035, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "For each aircraft, what is the average aircraft ID associated with it in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID", "AVG(T2.Aircraft_ID)"], "index": [0], "data": [["2", "2.75"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yk513_5.png", "TableImg_8mto9_4.png"], "original_data_index": 4036, "original_sql": "SELECT T1.Aircraft_ID, AVG(T2.Aircraft_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs, first from the driver table excluding driver ID 8, and then from the school bus table including only driver IDs less than 9, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9t2pf_12.png", "TableImg_Iudzr_5.png"], "original_data_index": 4037, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and any driver IDs less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J489z_12.png", "TableImg_63w9p_5.png"], "original_data_index": 4034, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, combining those that are not equal to 1 from the driver table with those less than 10 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E502n_12.png", "TableImg_Z8ftt_5.png"], "original_data_index": 4041, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the Book IDs and Publishers from the publication table, excluding Wiley, where the Book ID is not 1, the Publication ID is not 5, the Price is not 15000000, and the Publication Date is June 2006, but then remove any results where the Publication ID is 1 or the Price is 4100000?", "answer": {"columns": ["Book_ID", "Publisher"], "index": [0, 1, 2, 3], "data": [["3", "Thomson Reuters"], ["7", "Springer Nature"], ["9", "Pearson"], ["10", "Bertelsmann"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_Eup0b_7.png", "TableImg_Kc9os_7.png"], "original_data_index": 4042, "original_sql": "SELECT Book_ID, Publisher FROM publication WHERE Publisher <> \"Wiley\" OR \"Book_ID\" != 1 AND \"Publication_ID\" != 5 AND \"Price\" != 15000000.0 AND Publication_Date = \"June 2006\" EXCEPT SELECT Book_ID, Publisher FROM publication WHERE \"Publication_ID\" = 1 OR \"Price\" = 4100000.0"} {"question": "Could you show me the total disk area of each aircraft along with its corresponding ID from the airport aircraft table?", "answer": {"columns": ["Total_disk_area", "ID"], "index": [0, 1, 2, 3], "data": [["4,900 ft\u00b2 (460 m\u00b2)", "1"], ["497 ft\u00b2 (46.2 m\u00b2)", "2"], ["872 ft\u00b2 (81.1 m\u00b2)", "3"], ["5,655 ft\u00b2 (526 m\u00b2)", "4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6uu1w_5.png", "TableImg_8mqzw_4.png"], "original_data_index": 4043, "original_sql": "SELECT T1.Total_disk_area, T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What document type codes are both \"Hard Drive\" or not described as \"b\", and also not described as \"b\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1], "data": [["Hard Drive"], ["Paper"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Qcob5_3.png", "TableImg_Vdleq_3.png"], "original_data_index": 4044, "original_sql": "SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code = \"Hard Drive\" OR document_type_description != \"b\" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description <> \"b\""} {"question": "Can you give me the member IDs of members who either are named Matt Lentz, or have a card number that isn't LCB7 and a level of 6 or higher, or are from Fort Campbell, Kentucky, or have a member ID less than 9, combined with the member IDs of members who are not named Matt Lentz, have a member ID of 4, are from Red Jacket, West Virginia, and have a card number that isn't RT91?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_J7rl5_10.png", "TableImg_5hy13_10.png"], "original_data_index": 4045, "original_sql": "SELECT Member_ID FROM member WHERE Name = \"Matt Lentz\" OR Card_Number != \"LCB7\" AND \"Level\" >= 6 OR Hometown = \"Fort Campbell, Kentucky\" OR \"Member_ID\" < 9 UNION SELECT Member_ID FROM member WHERE Name != \"Matt Lentz\" AND \"Member_ID\" = 4 AND Hometown = \"Red Jacket, West Virginia\" AND Card_Number <> \"RT91\""} {"question": "Which driver IDs are both less than or equal to 11 in the driver table and greater than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mwnk5_12.png", "TableImg_Ods3f_5.png"], "original_data_index": 4046, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are greater than 9 and also greater than 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1423k_12.png", "TableImg_62a0r_5.png"], "original_data_index": 4047, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of aircraft IDs from the aircraft table that are less than or equal to 5, excluding any aircraft IDs that are also in the airport_aircraft table and are less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dz43t_5.png", "TableImg_9apnv_4.png"], "original_data_index": 4048, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which driver IDs, excluding driver ID 9, are in the driver table but not in the school bus table where the driver ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B1o76_12.png", "TableImg_G5o6n_5.png"], "original_data_index": 4049, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver has an ID of 6, but is not a driver with an ID other than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eaocq_12.png", "TableImg_Ltmjx_5.png"], "original_data_index": 4039, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the highest user ID from reviews with a rating of 7, an article ID not equal to 5, and an item ID of 7 or higher, combined with the highest user ID from user accounts where the user ID is 3 or higher and the name is not Emily?", "answer": {"columns": ["MAX(u_id)"], "index": [0, 1], "data": [[""], ["6.0"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_98ki5_7.png", "TableImg_00trj_7.png"], "original_data_index": 4038, "original_sql": "SELECT MAX(u_id) FROM review WHERE \"rating\" = 7 AND \"a_id\" <> 5 AND \"i_id\" >= 7 UNION SELECT MAX(u_id) FROM useracct WHERE \"u_id\" >= 3 AND name != \"Emily\""} {"question": "Can you find the maximum aircraft ID, the number of aircraft, the description, the number of maximum disk loading values, and the number of total disk area values for aircraft where the total disk area is 872 ft\u00b2 (81.1 m\u00b2), the maximum gross weight is 73,500 lb (33,300 kg), or the maximum disk loading is 14.5 lb/ft\u00b2 (71 kg/m\u00b2), grouped by description, only including groups with fewer than two aircraft, and then find the intersection of those results with the maximum aircraft ID, the number of aircraft, the description, the number of maximum disk loading values, and the number of total disk area values for aircraft that are not a Robinson R-22, grouped by description, only including groups where the number of maximum disk loading values is not equal to one, or the number of total disk area values is greater than or equal to one, and the number of aircraft is one, and the maximum aircraft ID is less than three?", "answer": {"columns": ["MAX(Aircraft_ID)", "COUNT(Aircraft)", "Description", "COUNT(Max_disk_Loading)", "COUNT(Total_disk_area)"], "index": [0], "data": [["2", "1", "Turboshaft utility helicopter", "1", "1"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Gsd79_5.png", "TableImg_Bi2j8_5.png"], "original_data_index": 4040, "original_sql": "SELECT MAX(Aircraft_ID), COUNT(Aircraft), Description, COUNT(Max_disk_Loading), COUNT(Total_disk_area) FROM aircraft WHERE Total_disk_area = \"872 ft\u00b2 (81.1 m\u00b2)\" OR Max_Gross_Weight = \"73,500 lb (33,300 kg)\" OR Max_disk_Loading = \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" GROUP BY Description HAVING COUNT(Aircraft) < 2 INTERSECT SELECT MAX(Aircraft_ID), COUNT(Aircraft), Description, COUNT(Max_disk_Loading), COUNT(Total_disk_area) FROM aircraft WHERE Aircraft <> \"Robinson R-22\" GROUP BY Description HAVING COUNT(Max_disk_Loading) <> 1 OR COUNT(Total_disk_area) >= 1 AND COUNT(Aircraft) = 1 AND MAX(Aircraft_ID) < 3"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 9 or greater, combined with a list of driver IDs from the school_bus table where the ID is exactly 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4lxw2_12.png", "TableImg_Vwbok_5.png"], "original_data_index": 4053, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver ID is both equal to 10 in the driver table and not equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jfmtg_12.png", "TableImg_Cbcrr_5.png"], "original_data_index": 4050, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list the Room ID, bed type, and room name for all rooms that are either modern, not room MWC, have a maximum occupancy of two or less, and are named \"Thrift and accolade\" or have a number of beds not equal to one, along with all rooms that have a base price of 175 or more?", "answer": {"columns": ["RoomId", "bedType", "roomName"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["AOB", "Queen", "Abscond or bolster"], ["CAS", "King", "Convoke and sanguine"], ["FNA", "King", "Frugal not apropos"], ["IBD", "Queen", "Immutable before decorum"], ["MWC", "Double", "Mendicant with cryptic"], ["RTE", "Queen", "Riddle to exculpate"], ["TAA", "Double", "Thrift and accolade"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_V8k00_10.png", "TableImg_Pqhqr_10.png"], "original_data_index": 4052, "original_sql": "SELECT RoomId, bedType, roomName FROM Rooms WHERE decor = \"modern\" AND RoomId <> \"MWC\" AND \"maxOccupancy\" <= 2 AND roomName = \"Thrift and accolade\" OR \"beds\" <> 1 UNION SELECT RoomId, bedType, roomName FROM Rooms WHERE \"basePrice\" >= 175"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 3, but then remove any of those IDs that also appear in the airport_aircraft table with an ID of 3 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8yh08_5.png", "TableImg_Xb0y2_4.png"], "original_data_index": 4051, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 12, combined with a list of driver IDs from the school_bus table where the ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ayj5s_12.png", "TableImg_L8zq3_5.png"], "original_data_index": 4057, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the aircraft IDs that are less than or equal to 3, excluding those aircraft IDs that are also greater than or equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q1n2e_5.png", "TableImg_6grgn_4.png"], "original_data_index": 4056, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you list all driver IDs from the driver table that are 12 or greater, and combine that with a list of all driver IDs from the school_bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Leruf_12.png", "TableImg_06tgf_5.png"], "original_data_index": 4054, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which customer IDs are both not 10 and have the phone number 753.921.0871, and also have a lesson time of 9, a price not equal to 340, a customer ID greater than 8, a lesson ID of 4, a lesson date not equal to 2018-03-04 06:55:46, or a lesson status code that is not completed?", "answer": {"columns": ["customer_id"], "index": [0], "data": [["9"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_Gk4iz_15.png", "TableImg_5wxvd_15.png"], "original_data_index": 4055, "original_sql": "SELECT customer_id FROM Customers WHERE \"customer_id\" <> 10 AND phone_number = \"753.921.0871\" INTERSECT SELECT customer_id FROM Lessons WHERE lesson_time = \"9\" OR \"price\" <> 340.0 OR \"customer_id\" > 8 OR \"lesson_id\" = 4 OR lesson_date != \"2018-03-04 06:55:46\" OR lesson_status_code <> \"Completed\""} {"question": "Could you give me the document IDs that are both greater than or equal to 1 and also have a draft number less than 2, or draft details that are not \"v\" and a document ID that is not 7?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["10"], ["12"], ["13"], ["14"], ["17"], ["20"], ["23"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Yefqn_15.png", "TableImg_3kgzc_15.png"], "original_data_index": 4058, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" >= 1 INTERSECT SELECT document_id FROM Document_Drafts WHERE \"draft_number\" < 2 OR draft_details != \"v\" AND \"document_id\" != 7"} {"question": "What are the average PetID and minimum StuID for pets with a PetID of 2003 or higher, and also the average PetID and minimum StuID for pets with a StuID less than 1001?", "answer": {"columns": ["AVG(PetID)", "MIN(StuID)"], "index": [0, 1], "data": [["2003.0", "1002.0"], ["", ""]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Q3bj6_3.png", "TableImg_Uhssf_3.png"], "original_data_index": 4060, "original_sql": "SELECT AVG(PetID), MIN(StuID) FROM Has_Pet WHERE \"PetID\" >= 2003 UNION ALL SELECT AVG(PetID), MIN(StuID) FROM Has_Pet WHERE \"StuID\" < 1001"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 2 and also not equal to 9, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oohj5_12.png", "TableImg_87jcf_5.png"], "original_data_index": 4061, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Could you give me a list of all documents, showing their ID, shipping agent code, other details, receipt number, receipt date, document type code, and document status code, including those that either have a receipt date other than September 15, 1976, and a document ID less than or equal to 4, and a document status code that isn't \"working\", and a document type code that isn't \"Hard Drive\", or a shipping agent code that isn't \"FE\", or other details that aren't \"x\", along with all documents that either have a document status code that isn't \"overdue\", and a receipt date that isn't April 21, 2008, and a document type code that isn't \"CD\", and a shipping agent code of \"UP\", or a document ID of 4?", "answer": {"columns": ["document_id", "shipping_agent_code", "other_details", "receipt_number", "receipt_date", "document_type_code", "document_status_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["1", "UP", "z", "19", "2008-04-21 20:42:25", "CD", "working"], ["2", "US", "h", "34", "1974-05-08 00:00:46", "Paper", "done"], ["3", "UP", "h", "93", "2014-12-25 17:22:44", "Paper", "done"], ["4", "US", "q", "80", "1973-11-05 21:48:53", "Paper", "done"], ["7", "SH", "w", "61", "1982-09-27 14:52:15", "CD", "working"], ["10", "UP", "m", "8", "1976-09-15 19:24:17", "Paper", "overdue"], ["12", "US", "n", "69", "1996-05-31 06:51:58", "Hard Drive", "overdue"], ["13", "UP", "y", "79", "2015-04-03 09:36:19", "CD", "working"], ["14", "FE", "u", "117", "2017-07-02 17:39:09", "CD", "working"], ["15", "UP", "r", "37", "1986-12-14 14:18:59", "CD", "overdue"], ["17", "FE", "p", "55", "1983-09-26 09:32:56", "Paper", "done"], ["20", "UP", "x", "189", "1996-07-27 03:30:40", "Paper", "working"], ["23", "FE", "b", "124", "1999-04-17 14:19:32", "Hard Drive", "working"], ["24", "FE", "j", "114", "2005-09-30 00:10:02", "Hard Drive", "working"], ["25", "AL", "u", "83", "1985-11-05 17:59:34", "Hard Drive", "overdue"], ["3", "UP", "h", "93", "2014-12-25 17:22:44", "Paper", "done"], ["4", "US", "q", "80", "1973-11-05 21:48:53", "Paper", "done"], ["20", "UP", "x", "189", "1996-07-27 03:30:40", "Paper", "working"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_4amah_15.png", "TableImg_Hh8zs_15.png"], "original_data_index": 4059, "original_sql": "SELECT document_id, shipping_agent_code, other_details, receipt_number, receipt_date, document_type_code, document_status_code FROM Documents WHERE receipt_date <> \"1976-09-15 19:24:17\" AND \"document_id\" <= 4 AND document_status_code != \"working\" AND document_type_code != \"Hard Drive\" OR shipping_agent_code != \"FE\" OR other_details <> \"x\" UNION ALL SELECT document_id, shipping_agent_code, other_details, receipt_number, receipt_date, document_type_code, document_status_code FROM Documents WHERE document_status_code != \"overdue\" AND receipt_date != \"2008-04-21 20:42:25\" AND document_type_code <> \"CD\" AND shipping_agent_code = \"UP\" OR \"document_id\" = 4"} {"question": "Can you give me the driver IDs that are less than 5 from the driver table and also greater than or equal to 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1m80b_12.png", "TableImg_U2wp7_5.png"], "original_data_index": 4064, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are both greater than 3 and used by school buses with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8h90s_12.png", "TableImg_54m07_5.png"], "original_data_index": 4062, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 5 or greater, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2mnlb_12.png", "TableImg_Wize6_5.png"], "original_data_index": 4063, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of branch names for branches that either opened in 2009 or are not located in London, combined with a list of member names for members who either don't have a Member ID of 7 and aren't from Louisville, Kentucky, or whose name isn't Ventrell Jenkins, whose card number isn't MLB4, and whose level is 4 or below?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["Popert"], ["Zytogorski"], ["Taverner"], ["Brooke Greville"], ["Jeremy Jarmon"], ["Ventrell Jenkins"], ["Braxton Kelley"], ["Micah Johnson"], ["Trevard Lindley"], ["David Jones"], ["Matt Lentz"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_Osj5n_8.png", "TableImg_Ahnxm_10.png"], "original_data_index": 4065, "original_sql": "SELECT Name FROM branch WHERE Open_year = \"2009\" OR City != \"London\" UNION ALL SELECT Name FROM member WHERE \"Member_ID\" != 7 AND Hometown != \"Louisville, Kentucky\" OR Name != \"Ventrell Jenkins\" AND Card_Number <> \"MLB4\" AND \"Level\" <= 4"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 2, from both the aircraft and airport_aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bscce_5.png", "TableImg_3xpkg_4.png"], "original_data_index": 4067, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of aircraft IDs that are both less than or equal to 1 and not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G2bwt_5.png", "TableImg_T4hp2_4.png"], "original_data_index": 4068, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of album IDs that are greater than 46, have an artist ID less than or equal to 90, and don't have the title \"A Real Dead One\", combined with a list of playlist IDs that are greater than or equal to 2 or don't have the name \"Classical 101 - Deep Cuts\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["122"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["185"], ["186"], ["197"], ["198"], ["204"], ["247"], ["259"], ["271"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_Reoae_347.png", "TableImg_9w6d3_18.png"], "original_data_index": 4066, "original_sql": "SELECT id FROM albums WHERE \"id\" > 46 AND \"artist_id\" <= 90 AND title != \"A Real Dead One\" UNION SELECT id FROM playlists WHERE \"id\" >= 2 OR name <> \"Classical 101 - Deep Cuts\""} {"question": "Could you list the shop IDs from the hiring records where employee ID is 6, or where the employee is not full-time, didn't start in 2012, and the shop ID is less than 5, combined with the shop IDs from the shop records where the name isn't KuPS, the district isn't Finnair Stadium, and the manager is Kai Nyyss\u00f6nen, or where the location isn't Espoo?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_Geklt_7.png", "TableImg_Cmgdw_9.png"], "original_data_index": 4071, "original_sql": "SELECT Shop_ID FROM hiring WHERE \"Employee_ID\" = 6 OR Is_full_time != \"T\" AND Start_from != \"2012\" AND \"Shop_ID\" < 5 UNION ALL SELECT Shop_ID FROM shop WHERE Name <> \"KuPS\" AND District <> \"Finnair Stadium\" AND Manager_name = \"Kai Nyyss\u00f6nen\" AND \"Number_products\" <> 3516 OR Location != \"Espoo\""} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 11 or greater, combined with a list of driver IDs from the school_bus table where the ID is 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1873k_12.png", "TableImg_Dcyr9_5.png"], "original_data_index": 4073, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 4 or greater, and those from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vhvtb_12.png", "TableImg_7ipbb_5.png"], "original_data_index": 4070, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver has an ID of 4 and also has a driver ID greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mw38s_12.png", "TableImg_6suck_5.png"], "original_data_index": 4074, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me the branch IDs of branches that either have a membership amount of 1418, are located in London on Oaks Crescent, are named Zytogorski, or opened in 2009 with a branch ID of 3 or less, but excluding any branch IDs that appear in the membership register for the year 2016 with a member ID of 1 or greater?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Uc5vs_8.png", "TableImg_Jrujq_8.png"], "original_data_index": 4075, "original_sql": "SELECT Branch_ID FROM branch WHERE membership_amount = \"1418\" OR City = \"London\" AND Address_road = \"Oaks Crescent\" OR Name = \"Zytogorski\" OR Open_year = \"2009\" AND \"Branch_ID\" <= 3 EXCEPT SELECT Branch_ID FROM membership_register_branch WHERE Register_Year = \"2016\" AND \"Member_ID\" >= 1"} {"question": "Can you give me a list of driver IDs, including those that are exactly 11 from the driver table, and those that are 3 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zxgva_12.png", "TableImg_Kg946_5.png"], "original_data_index": 4077, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 6 from the driver table, combined with a list of driver IDs that are exactly 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z5s7l_12.png", "TableImg_Grjlj_5.png"], "original_data_index": 4076, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver IDs greater than 10 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z6gp9_12.png", "TableImg_E9i66_5.png"], "original_data_index": 4078, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 3, and combine that with a list of all aircraft IDs from the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9wp52_5.png", "TableImg_Aeggu_4.png"], "original_data_index": 4079, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of aircraft names where the distance is not 3383, combined with a list of employee names where the employee ID is less than or equal to 574489456?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], "data": [["Airbus A319"], ["Airbus A320"], ["Airbus A340-300"], ["Angela Martinez"], ["Barbara Wilson"], ["Betty Adams"], ["Boeing 727"], ["Boeing 747-400"], ["Boeing 757-300"], ["Boeing 767-400ER"], ["Boeing 777-300"], ["British Aerospace Jetstream 41"], ["Chad Stewart"], ["David Anderson"], ["Donald King"], ["Dorthy Lewis"], ["Elizabeth Taylor"], ["Embraer ERJ-145"], ["Eric Cooper"], ["George Wright"], ["Haywood Kelly"], ["James Smith"], ["John Williams"], ["Joseph Thompson"], ["Karen Scott"], ["Larry West"], ["Lawrence Sperry"], ["Linda Davis"], ["Lisa Walker"], ["Lockheed L1011"], ["Mark Young"], ["Mary Johnson"], ["Michael Miller"], ["Patricia Jones"], ["Piper Archer III"], ["Richard Jackson"], ["Robert Brown"], ["SAAB 340"], ["Schwitzer 2-33"], ["Tupolev 154"], ["William Jones"], ["William Moore"], ["William Ward"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Ovfur_16.png", "TableImg_Y5k58_31.png"], "original_data_index": 4080, "original_sql": "SELECT name FROM aircraft WHERE \"distance\" <> 3383 UNION SELECT name FROM employee WHERE \"eid\" <= 574489456"} {"question": "Which driver IDs, excluding driver ID 11, appear in the driver table but not in the school_bus table, also excluding driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J7qd3_12.png", "TableImg_Wq69h_5.png"], "original_data_index": 4081, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Could you list the item IDs that either don't have the title \"cup\" or have an item ID of 3, and are also associated with reviews that have a rank of 1 or higher?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Yqq5j_8.png", "TableImg_V8fvb_7.png"], "original_data_index": 4072, "original_sql": "SELECT i_id FROM item WHERE title != \"cup\" OR \"i_id\" = 3 INTERSECT SELECT i_id FROM review WHERE \"rank\" >= 1"} {"question": "Which driver IDs, excluding driver ID 7, are not also driver IDs greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J5zua_12.png", "TableImg_1t181_5.png"], "original_data_index": 4085, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of all Driver IDs, including those from the driver table where the ID is 1 or greater, combined with those from the school_bus table where the ID is not 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wqg7z_12.png", "TableImg_5i0sk_5.png"], "original_data_index": 4086, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are greater than 11, excluding those driver IDs that are also greater than 3 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8isqh_12.png", "TableImg_8te5y_5.png"], "original_data_index": 4087, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the average document ID from the Documents table, considering documents where the shipping agent code is not \"FE\", or the receipt date is \"1973-11-05 21:48:53\", or the document status code is not \"done\" and the document type code is not \"Paper\", or the receipt number is \"189\", or the document ID is not 17 and other details are \"n\", combined with the average document ID from the Documents_Mailed table, considering records where the document ID is less than 2 and the mailed to address ID is greater than 7, or the mailing date is not \"1999-05-22 23:21:07\"?", "answer": {"columns": ["AVG(document_id)"], "index": [0, 1], "data": [["12.3571428571"], ["12.6923076923"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_4qcns_15.png", "TableImg_Mgv27_14.png"], "original_data_index": 4088, "original_sql": "SELECT AVG(document_id) FROM Documents WHERE shipping_agent_code <> \"FE\" OR receipt_date = \"1973-11-05 21:48:53\" OR document_status_code <> \"done\" AND document_type_code != \"Paper\" OR receipt_number = \"189\" OR \"document_id\" != 17 AND other_details = \"n\" UNION ALL SELECT AVG(document_id) FROM Documents_Mailed WHERE \"document_id\" < 2 AND \"mailed_to_address_id\" > 7 OR mailing_date <> \"1999-05-22 23:21:07\""} {"question": "Can you list all the vehicle details that are \"Car\", excluding the vehicle with ID 3, and also include the vehicle details for the vehicle with ID 3?", "answer": {"columns": ["vehicle_details"], "index": [0], "data": [["Car"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Ikgmw_3.png", "TableImg_66osn_3.png"], "original_data_index": 4089, "original_sql": "SELECT vehicle_details FROM Vehicles WHERE vehicle_details = \"Car\" AND \"vehicle_id\" != 3 UNION ALL SELECT vehicle_details FROM Vehicles WHERE \"vehicle_id\" = 3"} {"question": "Can you give me a list of aircraft IDs that are greater than 3, and also include aircraft IDs from the airport aircraft list that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8bv79_5.png", "TableImg_Ks0k2_4.png"], "original_data_index": 4090, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Could you list the document IDs and draft numbers for all drafts that either have draft details that are not \"x\" or have a draft number less than 2?", "answer": {"columns": ["document_id", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1", "0"], ["1", "2"], ["2", "1"], ["2", "8"], ["4", "9"], ["7", "10"], ["10", "20"], ["12", "11"], ["12", "12"], ["13", "4"], ["13", "16"], ["17", "19"], ["20", "17"], ["23", "9"], ["1", "0"], ["2", "1"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Rksb9_15.png", "TableImg_Fwkwy_15.png"], "original_data_index": 4091, "original_sql": "SELECT document_id, draft_number FROM Document_Drafts WHERE draft_details <> \"x\" UNION ALL SELECT document_id, draft_number FROM Document_Drafts WHERE \"draft_number\" < 2"} {"question": "Can you give me a list of vehicle IDs that meet these conditions from the lessons table: either the customer ID is not 13 and the lesson ID is 6, or the vehicle ID is not 2, or the staff ID is 1 and the lesson status is completed, or the price is 295, or the lesson date is March 7, 2018 at 4:12:36 PM, or the lesson time is not 5; but only if those vehicle IDs also have vehicle details that are not \"Truck\" in the vehicles table?", "answer": {"columns": ["vehicle_id"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_G0u0w_15.png", "TableImg_Sxcup_3.png"], "original_data_index": 4092, "original_sql": "SELECT vehicle_id FROM Lessons WHERE \"customer_id\" != 13 AND \"lesson_id\" = 6 OR \"vehicle_id\" != 2 OR \"staff_id\" = 1 AND lesson_status_code = \"Completed\" OR \"price\" = 295.0 OR lesson_date = \"2018-03-07 16:12:36\" OR lesson_time <> \"5\" INTERSECT SELECT vehicle_id FROM Vehicles WHERE vehicle_details <> \"Truck\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 1 from the driver table, combined with a list of driver IDs that are less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P6syd_12.png", "TableImg_Us2ag_5.png"], "original_data_index": 4093, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 5, combined with a list of driver IDs from the school_bus table that are not equal to 7, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1q4yt_12.png", "TableImg_7ghf5_5.png"], "original_data_index": 4083, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me the IDs of drivers whose IDs are greater than 6, excluding the IDs of school bus drivers whose IDs are greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A0ojs_12.png", "TableImg_2v8fj_5.png"], "original_data_index": 4084, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding the driver ID 9 if it appears in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_752hr_12.png", "TableImg_R0bh9_5.png"], "original_data_index": 4082, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs, where each ID is less than or equal to 9, excluding the driver ID 9 if it appears in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hpjcx_12.png", "TableImg_Z9yea_5.png"], "original_data_index": 4094, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 4 or greater, and those from the school bus table that are 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qgshu_12.png", "TableImg_N2f0x_5.png"], "original_data_index": 4095, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list the aircraft IDs that are greater than or equal to 4 from the aircraft table, and combine that with a list of aircraft IDs that are greater than or equal to 2 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z414m_5.png", "TableImg_Diq74_4.png"], "original_data_index": 4097, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Could you list the parties from the election table, excluding those also found in the party table where the year is 1998 or later and Charles Schumer is not a US Senator, considering only parties where either the counties represented are not 13, or the district is greater than 3 and the delegate is not Guy Guzzone, or the committee is not Ways and Means, or the party is less than or equal to 2?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_9xjnx_8.png", "TableImg_C8srw_7.png"], "original_data_index": 4096, "original_sql": "SELECT Party FROM election WHERE Counties_Represented <> \"13\" OR \"District\" > 3 AND Delegate != \"Guzzone, Guy Guy Guzzone\" OR Committee <> \"Ways and Means\" OR \"Party\" <= 2 EXCEPT SELECT Party FROM party WHERE \"Year\" >= 1998.0 AND US_Senate <> \"Charles Schumer\""} {"question": "Can you list the aircraft IDs, excluding aircraft ID 1, from the aircraft table, and combine that with a list of aircraft IDs, excluding aircraft ID 3, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_83ckh_5.png", "TableImg_46sti_4.png"], "original_data_index": 4098, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of driver IDs that are greater than 5 from the driver table, combined with a list of driver IDs that are greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_99747_12.png", "TableImg_Zkj4s_5.png"], "original_data_index": 4100, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me the earliest start year, the number of regions, and the club name for clubs excluding \"BK H\u00e4cken\" or with a Club ID other than 1 and a start year other than 2009, or from a region other than \"USA\", combined with the earliest start year, the number of regions, and the club name for clubs named \"Halmstads BK\" or that started in 2011 or earlier?", "answer": {"columns": ["MIN(Start_year)", "COUNT(Region)", "Club_name"], "index": [0, 1], "data": [["1998", "6", "BK H\u00e4cken"], ["1998", "6", "BK H\u00e4cken"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_7affh_6.png", "TableImg_Sqiea_6.png"], "original_data_index": 4101, "original_sql": "SELECT MIN(Start_year), COUNT(Region), Club_name FROM club WHERE Club_name <> \"BK H\u00e4cken\" OR \"Club_ID\" <> 1 AND \"Start_year\" <> 2009 OR Region != \"USA\" UNION ALL SELECT MIN(Start_year), COUNT(Region), Club_name FROM club WHERE Club_name = \"Halmstads BK\" OR \"Start_year\" <= 2011"} {"question": "Can you tell me, for companies not named Wells Fargo and not headquartered in China, what are the headquarters, the smallest asset value in billions, the profit in billions, the total of all company names, and the most common industry; and also, for companies not headquartered in China where either sales aren't 110.8 billion, or they're in the oil and gas industry with profits less than 41.1 billion, aren't named China Construction Bank, and have assets of 1873.9 billion, what are the headquarters, the smallest asset value in billions, the profit in billions, the total of all company names, and the most common industry?", "answer": {"columns": ["Headquarters", "MIN(Assets_in_Billion)", "Profits_in_Billion", "SUM(Name)", "MAX(Industry)"], "index": [0, 1], "data": [["USA", "193.4", "15.7", "0", "Retailing"], ["USA", "193.4", "15.7", "0", "Retailing"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_3z366_19.png", "TableImg_Jyocu_19.png"], "original_data_index": 4099, "original_sql": "SELECT Headquarters, MIN(Assets_in_Billion), Profits_in_Billion, SUM(Name), MAX(Industry) FROM company WHERE Name <> \"Wells Fargo\" AND Headquarters <> \"China\" UNION ALL SELECT Headquarters, MIN(Assets_in_Billion), Profits_in_Billion, SUM(Name), MAX(Industry) FROM company WHERE Headquarters <> \"China\" AND \"Sales_in_Billion\" <> 110.8 OR Industry = \"Oil and gas\" AND \"Profits_in_Billion\" < 41.1 AND Name <> \"China Construction Bank\" AND \"Assets_in_Billion\" = 1873.9"} {"question": "What aircraft IDs are equal to 4 in the aircraft table, but not greater than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pwubf_5.png", "TableImg_Sxmt2_4.png"], "original_data_index": 4103, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 4, and then from the airport_aircraft table including only aircraft IDs less than 5, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vel75_5.png", "TableImg_M3abn_4.png"], "original_data_index": 4104, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 11, and those from the school bus table with driver IDs of 4 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Byvc4_12.png", "TableImg_Fqp2g_5.png"], "original_data_index": 4102, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me the velocity and the total company ID for flights, combining two sets of results? The first set includes flights where the velocity isn't 240, or the date is March 1, 1963 and the altitude isn't 0, or the company ID is greater than 4, the airport ID is greater than 9, the vehicle flight number isn't \"M2-F1 #0\", and the pilot isn't \"Thompson\". The second set includes flights where the vehicle flight number isn't \"M2-F1 #73\" and the altitude is at least 3650, and the company ID isn't 6, or the date isn't August 16, 1963, or the pilot isn't \"Peterson\", or the ID is less than 6.", "answer": {"columns": ["Velocity", "SUM(company_id)"], "index": [0, 1], "data": [["135", "2"], ["135", "81"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Hgo1l_13.png", "TableImg_N0m3r_13.png"], "original_data_index": 4105, "original_sql": "SELECT Velocity, SUM(company_id) FROM flight WHERE \"Velocity\" <> 240.0 OR Date = \"March 1, 1963\" AND \"Altitude\" <> 0.0 OR \"company_id\" > 4 AND \"airport_id\" > 9 AND Vehicle_Flight_number != \"M2-F1 #0\" AND Pilot <> \"Thompson\" UNION ALL SELECT Velocity, SUM(company_id) FROM flight WHERE Vehicle_Flight_number != \"M2-F1 #73\" AND \"Altitude\" >= 3650.0 AND \"company_id\" <> 6 OR Date != \"August 16, 1963\" OR Pilot != \"Peterson\" OR \"id\" < 6"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5, that are not also driver IDs less than or equal to 9 found in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vt3wv_12.png", "TableImg_0g0lx_5.png"], "original_data_index": 4108, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 10, combined with a list of driver IDs from the school_bus table that are greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ksk9j_12.png", "TableImg_Kcixv_5.png"], "original_data_index": 4107, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are greater than 4 from the driver table, combined with a list of driver IDs that are exactly 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6uv84_12.png", "TableImg_Y2bgc_5.png"], "original_data_index": 4109, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are not 11, but only include those that are not also driver IDs greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P3aul_12.png", "TableImg_Uh2ad_5.png"], "original_data_index": 4106, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are both not equal to 2 and greater than 3, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M055f_12.png", "TableImg_Ua0ab_5.png"], "original_data_index": 4110, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list the ranks from match results where the gold score is greater than 12 or the big silver score is 7, and also list the ranks of all female players except for Ross Eadie?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["3rd"], ["1st"], ["2nd"], ["1st"], ["3rd"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Vwnzg_6.png", "TableImg_9c27v_14.png"], "original_data_index": 4113, "original_sql": "SELECT Rank FROM match_result WHERE \"Gold\" > 12 OR \"Big_Silver\" = 7 UNION ALL SELECT Rank FROM player WHERE Gender = \"F\" AND Player_name <> \"Ross Eadie\""} {"question": "What is the difference between the sum of the IDs of artists named \"Aerosmith & Sierra Leone's Refugee Allstars\" and the sum of the IDs of employees where the ID is less than or equal to 8, or who meet a complex set of criteria based on their fax number, last name, first name, postal code, email, state, reports_to value, phone number, title, city, address, country, and birth date?", "answer": {"columns": ["SUM(id)"], "index": [0], "data": [["161"]]}, "table_names": "['artists' 'employees']", "table_image_ids": ["TableImg_G1c25_275.png", "TableImg_086cv_8.png"], "original_data_index": 4112, "original_sql": "SELECT SUM(id) FROM artists WHERE name = \"Aerosmith & Sierra Leone's Refugee Allstars\" EXCEPT SELECT SUM(id) FROM employees WHERE \"id\" <= 8 OR fax = \"+1 (403) 456-8485\" AND last_name <> \"Adams\" OR first_name <> \"Jane\" AND postal_code != \"T3B 0C5\" AND email != \"andrew@chinookcorp.com\" OR state != \"AB\" AND \"reports_to\" > 6.0 OR phone != \"+1 (403) 262-3443\" AND title = \"IT Staff\" AND city <> \"Lethbridge\" OR address = \"1111 6 Ave SW\" AND country = \"Canada\" AND birth_date = \"1947-09-19 00:00:00\""} {"question": "Can you show me the final table appearances, earnings, best finish, average money rank, and player ID for poker players, excluding those with earnings of $189,233, a money rank of 166 or higher, or a player ID of 3, but then remove any players who have a people ID of 2 or higher, a best finish better than 3, earnings less than $104,871, final table appearances of 42 or fewer, or a player ID less than 5?", "answer": {"columns": ["Final_Table_Made", "Earnings", "Best_Finish", "AVG(Money_Rank)", "Poker_Player_ID"], "index": [0], "data": [["42", "476090", "1", "93.3333333333", "1"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_U4rpw_5.png", "TableImg_Jvm0h_5.png"], "original_data_index": 4114, "original_sql": "SELECT Final_Table_Made, Earnings, Best_Finish, AVG(Money_Rank), Poker_Player_ID FROM poker_player WHERE \"Earnings\" <> 189233.0 AND \"Money_Rank\" < 166.0 AND \"Poker_Player_ID\" <> 3 EXCEPT SELECT Final_Table_Made, Earnings, Best_Finish, AVG(Money_Rank), Poker_Player_ID FROM poker_player WHERE \"People_ID\" >= 2 OR \"Best_Finish\" > 3.0 AND \"Earnings\" < 104871.0 OR \"Final_Table_Made\" <= 42.0 OR \"Poker_Player_ID\" < 5"} {"question": "Can you give me a list of aircraft IDs less than 4 that appear in the aircraft table, excluding those aircraft IDs less than 3 that appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xnk4t_5.png", "TableImg_9aujw_4.png"], "original_data_index": 4115, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 12, combined with a list of driver IDs from the school_bus table that are equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C3qm2_12.png", "TableImg_Pzoyr_5.png"], "original_data_index": 4117, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of album IDs that are less than 142, along with the ID of any playlist named \"Heavy Metal Classic\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["17"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_95lbu_347.png", "TableImg_Vchor_18.png"], "original_data_index": 4118, "original_sql": "SELECT id FROM albums WHERE \"id\" < 142 UNION ALL SELECT id FROM playlists WHERE name = \"Heavy Metal Classic\""} {"question": "Which driver IDs, excluding driver ID 11, are also driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nh75v_12.png", "TableImg_L692r_5.png"], "original_data_index": 4116, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list all the driver IDs from the driver table that are greater than or equal to 8, combined with all the driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S62p6_12.png", "TableImg_Flwdt_5.png"], "original_data_index": 4119, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the driver ID of drivers with ID 11, excluding any driver IDs from the school bus table that are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sqsc5_12.png", "TableImg_Lsy54_5.png"], "original_data_index": 4120, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are both not equal to 5, and also greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_590pm_12.png", "TableImg_Ve6us_5.png"], "original_data_index": 4121, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of aircraft IDs, including aircraft ID 2 from the aircraft table and all aircraft IDs except for 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kb2il_5.png", "TableImg_Rzzre_4.png"], "original_data_index": 4125, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs less than or equal to 10, excluding any driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Quluh_12.png", "TableImg_Oqqr7_5.png"], "original_data_index": 4123, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Svrrj_12.png", "TableImg_Az23o_5.png"], "original_data_index": 4124, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the IDs of drivers, where each ID is less than 2, excluding any driver IDs that are also in the school bus list where those IDs are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O8l6g_12.png", "TableImg_5sh6a_5.png"], "original_data_index": 4122, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs, including those that are not 3 from the driver table, and those less than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Isxcy_12.png", "TableImg_Grgkw_5.png"], "original_data_index": 4129, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 9, excluding those driver IDs that are also in the school_bus table and are greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W52ag_12.png", "TableImg_03460_5.png"], "original_data_index": 4128, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are greater than 6, excluding any driver IDs from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iyopz_12.png", "TableImg_Urqu9_5.png"], "original_data_index": 4127, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that aren't 3 with those from the school bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G4t9u_12.png", "TableImg_Sllhz_5.png"], "original_data_index": 4126, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me the driver ID of drivers with ID 10, excluding any driver IDs less than or equal to 7 that are also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zon3w_12.png", "TableImg_Bmxei_5.png"], "original_data_index": 4132, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are not 9 and are also less than 7, considering only drivers who are in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fv1ej_12.png", "TableImg_74b0b_5.png"], "original_data_index": 4130, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are less than 12 from the driver table, combined with a list of driver IDs that are exactly 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nf6in_12.png", "TableImg_Qmtw6_5.png"], "original_data_index": 4131, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of all employee IDs from the certificate table, and also all employee IDs from the employee table, but exclude employee ID 269734834 from the certificate table and employees named Robert Brown from the employee table?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83], "data": [["11564812"], ["11564812"], ["90873519"], ["141582651"], ["141582651"], ["141582651"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["159542516"], ["159542516"], ["242518965"], ["242518965"], ["274878974"], ["274878974"], ["310454876"], ["310454876"], ["355548984"], ["355548984"], ["356187925"], ["390487451"], ["390487451"], ["390487451"], ["548977562"], ["550156548"], ["550156548"], ["552455318"], ["552455318"], ["552455318"], ["556784565"], ["556784565"], ["556784565"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["573284895"], ["573284895"], ["573284895"], ["574489456"], ["574489456"], ["574489457"], ["242518965"], ["141582651"], ["11564812"], ["567354612"], ["552455318"], ["550156548"], ["390487451"], ["274878974"], ["254099823"], ["355548984"], ["310454876"], ["489456522"], ["489221823"], ["548977562"], ["310454877"], ["142519864"], ["269734834"], ["287321212"], ["552455348"], ["248965255"], ["159542516"], ["348121549"], ["90873519"], ["486512566"], ["619023588"], ["15645489"], ["556784565"], ["573284895"], ["574489456"], ["574489457"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Uav4l_69.png", "TableImg_7006s_31.png"], "original_data_index": 4133, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" != 269734834 UNION ALL SELECT eid FROM employee WHERE name != \"Robert Brown\""} {"question": "Can you give me a list of all driver IDs, excluding driver ID 11 from the driver table and excluding driver ID 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ogj7c_12.png", "TableImg_K1lo5_5.png"], "original_data_index": 4134, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or greater, and those from the school_bus table that are 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3unl3_12.png", "TableImg_Dr6gh_5.png"], "original_data_index": 4135, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 4, that are not aircraft ID 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hn6vp_5.png", "TableImg_6433h_4.png"], "original_data_index": 4137, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What is the average airport ID associated with each aircraft ID?", "answer": {"columns": ["Aircraft_ID", "AVG(T2.Airport_ID)"], "index": [0], "data": [["2", "4.5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mo7hw_5.png", "TableImg_Epc5m_4.png"], "original_data_index": 4136, "original_sql": "SELECT T1.Aircraft_ID, AVG(T2.Airport_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the total number of stores and the sum of district IDs, first considering only stores that are not store ID 2 or are in district ID 3, and then separately considering only stores with a store ID greater than 2?", "answer": {"columns": ["COUNT(Store_ID)", "SUM(District_ID)"], "index": [0, 1], "data": [["3", "18"], ["4", "33"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_Ibhb1_5.png", "TableImg_2qkuj_5.png"], "original_data_index": 4139, "original_sql": "SELECT COUNT(Store_ID), SUM(District_ID) FROM store_district WHERE \"Store_ID\" != 2 OR \"District_ID\" = 3 UNION SELECT COUNT(Store_ID), SUM(District_ID) FROM store_district WHERE \"Store_ID\" > 2"} {"question": "Can you give me a list of School IDs from the budget table where either the budgeted amount is less than 6803 and the year is after 1999, or the invested amount is exactly 146102, or the budget invested percentage is not equal to 159.3 and the School ID is greater than 2, combined with a list of School IDs from the endowment table where the amount is not 9.05, or the School ID is 8 or greater, or the donator name is \"La Vega\", or the endowment ID is not 4?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["2"], ["3"], ["4"], ["5"], ["5"], ["1"], ["2"], ["3"], ["3"], ["3"], ["4"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_60cx2_8.png", "TableImg_Xkwcy_11.png"], "original_data_index": 4138, "original_sql": "SELECT School_id FROM budget WHERE \"Budgeted\" < 6803 AND \"Year\" > 1999 OR \"Invested\" = 146102 OR Budget_invested_percent <> \"159.3\" AND \"School_id\" > 2 UNION ALL SELECT School_id FROM endowment WHERE \"amount\" != 9.05 OR \"School_id\" >= 8 OR donator_name = \"La Vega\" OR \"endowment_id\" != 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2 from the driver table and driver ID 4 from the school_bus table, making sure to list each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T6jtm_12.png", "TableImg_8zgcc_5.png"], "original_data_index": 4143, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the highest Book ID for books written by Dave Gibbons, excluding Book ID 7, with more than 12 issues, and not titled \"Cyberella\", combined with the highest Book ID from publications where the Publication ID is 1 or the Book ID is 9 or greater?", "answer": {"columns": ["MAX(Book_ID)"], "index": [0, 1], "data": [[""], ["10.0"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_34k80_10.png", "TableImg_Wd9h8_7.png"], "original_data_index": 4142, "original_sql": "SELECT MAX(Book_ID) FROM book WHERE Writer = \"Dave Gibbons\" AND \"Book_ID\" != 7 AND \"Issues\" > 12.0 AND Title != \"Cyberella\" UNION SELECT MAX(Book_ID) FROM publication WHERE \"Publication_ID\" = 1 OR \"Book_ID\" >= 9"} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are not 7 and are also found in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tm2s3_12.png", "TableImg_Zbshs_5.png"], "original_data_index": 4140, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list the votes, occupation, gender, rank, and player name for all players who either have 8734 or fewer votes, or have a Player ID less than 12 and are not a \"Product Consultant - MLCC\", combined with a list of players who either live in Selkirk, have a sponsor name other than \"Dauphin\u2014Swan River\u2014Marquette\", are named \"Patricia Cordner\", or have more than 14097 votes and are not \"Retired\"?", "answer": {"columns": ["Votes", "Occupation", "Gender", "Rank", "Player_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["6055", "Locomotive Engineer", "M", "2nd", "Jean Luc Bouch\u00e9"], ["7190", "Ministerial Assistant", "F", "3rd", "Fiona Shiells"], ["8734", "Researcher", "F", "1st", "Niki Ashton"], ["4914", "Retired", "M", "2nd", "Ron Strynadka"], ["14355", "Small Businessman", "M", "1st", "Jim Maloway"], ["12093", "Self Employed / Consultant", "M", "2nd", "Ross Eadie"], ["2353", "Distribution Centre Associate", "M", "4th", "Mohamed Alli"], ["4947", "Design Coordinator", "M", "2nd", "Ross C. Martin"], ["5502", "Student", "M", "3rd", "Matt Schaubroeck"], ["9506", "Retired", "F", "2nd", "Patricia Cordner"], ["12285", "Parliamentarian", "M", "1st", "Pat Martin"], ["4673", "Product Consultant - MLCC", "M", "3rd", "Sean Robert"], ["5490", "Student", "F", "3rd", "Rachel Heinrichs"], ["6055", "Locomotive Engineer", "M", "2nd", "Jean Luc Bouch\u00e9"], ["7190", "Ministerial Assistant", "F", "3rd", "Fiona Shiells"], ["8734", "Researcher", "F", "1st", "Niki Ashton"], ["14355", "Small Businessman", "M", "1st", "Jim Maloway"], ["12093", "Self Employed / Consultant", "M", "2nd", "Ross Eadie"], ["2353", "Distribution Centre Associate", "M", "4th", "Mohamed Alli"], ["4947", "Design Coordinator", "M", "2nd", "Ross C. Martin"], ["5502", "Student", "M", "3rd", "Matt Schaubroeck"], ["9506", "Retired", "F", "2nd", "Patricia Cordner"], ["12285", "Parliamentarian", "M", "1st", "Pat Martin"], ["14097", "Parliamentarian", "F", "1st", "Judy Wasylycia-Leis"], ["4673", "Product Consultant - MLCC", "M", "3rd", "Sean Robert"], ["5490", "Student", "F", "3rd", "Rachel Heinrichs"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_A5s2x_14.png", "TableImg_Qi0vt_14.png"], "original_data_index": 4141, "original_sql": "SELECT Votes, Occupation, Gender, Rank, Player_name FROM player WHERE \"Votes\" <= 8734 OR \"Player_ID\" < 12 AND Occupation <> \"Product Consultant - MLCC\" UNION ALL SELECT Votes, Occupation, Gender, Rank, Player_name FROM player WHERE Residence = \"Selkirk\" OR Sponsor_name != \"Dauphin\u2014Swan River\u2014Marquette\" OR Player_name = \"Patricia Cordner\" OR \"Votes\" > 14097 AND Occupation != \"Retired\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver ID 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1br0v_12.png", "TableImg_W7p3p_5.png"], "original_data_index": 4144, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 2, and combine that with a list of aircraft IDs from the airport_aircraft table that are less than or equal to 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sw8lg_5.png", "TableImg_Rnbh9_4.png"], "original_data_index": 4145, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Could you list the document IDs and draft numbers from the circulation history for entries where the copy number is 10 or higher, or the document ID is less than 2, combined with the document IDs and draft numbers from the document drafts where the draft details are not \"b\" and the document ID is 7 or higher?", "answer": {"columns": ["document_id", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["20", "17"], ["1", "2"], ["10", "20"], ["7", "10"], ["10", "20"], ["12", "12"], ["13", "4"], ["13", "16"], ["14", "14"], ["17", "19"], ["20", "17"], ["23", "9"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_Gizsx_4.png", "TableImg_7rqnj_15.png"], "original_data_index": 4147, "original_sql": "SELECT document_id, draft_number FROM Circulation_History WHERE \"copy_number\" >= 10 OR \"document_id\" < 2 UNION ALL SELECT document_id, draft_number FROM Document_Drafts WHERE draft_details != \"b\" AND \"document_id\" >= 7"} {"question": "Can you give me a list of student IDs from the Has_Pet table, including those where the student ID is not 1001 or the pet ID is less than or equal to 2002, combined with a list of student IDs from the Student table where the city code is not HKG, the sex is not M, the first name is not Ian, the age is less than or equal to 20, or the last name is not Andreou, and the major is greater than 520, the student ID is greater than 1014, and the advisor is less than 8423?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], "data": [["1001"], ["1002"], ["1002"], ["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_Gl7ti_3.png", "TableImg_7ezpg_34.png"], "original_data_index": 4146, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" != 1001 OR \"PetID\" <= 2002 UNION ALL SELECT StuID FROM Student WHERE city_code != \"HKG\" OR Sex <> \"M\" OR Fname != \"Ian\" OR \"Age\" <= 20 OR LName != \"Andreou\" AND \"Major\" > 520 AND \"StuID\" > 1014 AND \"Advisor\" < 8423"} {"question": "Can you list all the property feature descriptions where the property ID is not 6, or the feature ID is less than or equal to 2, or the description is \"illo\", and also include all property feature descriptions that are \"modi\" or where the property ID is not 7?", "answer": {"columns": ["property_feature_description"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["dolorem"], ["earum"], ["illo"], ["hic"], ["quo"], ["odio"], ["ad"], ["vitae"], ["quo"], ["autem"], ["cumque"], ["modi"], ["dolorem"], ["earum"], ["illo"], ["et"], ["quo"], ["odio"], ["ad"], ["vitae"], ["quo"], ["corrupti"], ["doloribus"], ["autem"], ["cumque"], ["modi"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_8k1yq_15.png", "TableImg_Nufbe_15.png"], "original_data_index": 4149, "original_sql": "SELECT property_feature_description FROM Other_Property_Features WHERE \"property_id\" != 6 OR \"feature_id\" <= 2 OR property_feature_description = \"illo\" UNION ALL SELECT property_feature_description FROM Other_Property_Features WHERE property_feature_description = \"modi\" OR \"property_id\" != 7"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are exactly 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lu0p4_12.png", "TableImg_Ta92w_5.png"], "original_data_index": 4150, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table, and all driver IDs except 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jel4g_12.png", "TableImg_0i9m2_5.png"], "original_data_index": 4148, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those greater than 8 from the driver table, and those not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J9mw5_12.png", "TableImg_Wep24_5.png"], "original_data_index": 4153, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of employee IDs, combining those from employees who are 29 or younger and live in Bath, or whose name isn't Andrew Sheridan, with those from evaluations awarded in years other than 2011, or belonging to an employee ID other than 7, or with a bonus less than 4000?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["1"], ["10"], ["2"], ["4"], ["7"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Mff9r_10.png", "TableImg_5wc8o_6.png"], "original_data_index": 4152, "original_sql": "SELECT Employee_ID FROM employee WHERE \"Age\" <= 29 AND City = \"Bath\" OR Name != \"Andrew Sheridan\" UNION SELECT Employee_ID FROM evaluation WHERE Year_awarded <> \"2011\" OR Employee_ID != \"7\" OR \"Bonus\" < 4000.0"} {"question": "Can you give me a list of aircraft IDs that are less than 5, excluding any aircraft IDs greater than 3 that are also listed in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Txepj_5.png", "TableImg_D0xz9_4.png"], "original_data_index": 4154, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Which driver IDs, excluding driver ID 3, are also driver IDs less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7f9j1_12.png", "TableImg_R25lx_5.png"], "original_data_index": 4151, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 6, and those from the school_bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ults_12.png", "TableImg_35e8c_5.png"], "original_data_index": 4155, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me the Driver IDs that appear exactly as '2' in the driver table, excluding any Driver IDs that are '4' or greater in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Elywq_12.png", "TableImg_Vf1qm_5.png"], "original_data_index": 4157, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs that are 10 or greater from the driver table, excluding any driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O6f7z_12.png", "TableImg_379yz_5.png"], "original_data_index": 4158, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which aircraft have an ID of 1 and are also associated with airports, but not with an airport that has an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P36hx_5.png", "TableImg_S6wog_4.png"], "original_data_index": 4156, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Which aircraft have an ID of 2 and are also associated with airports having an aircraft ID greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fk3l1_5.png", "TableImg_Opv3w_4.png"], "original_data_index": 4162, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs that are both less than 12 and appear in the driver table, and also less than or equal to 9 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2m4kv_12.png", "TableImg_Lwqv3_5.png"], "original_data_index": 4159, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are both equal to 3 and less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cyonz_12.png", "TableImg_F2vjj_5.png"], "original_data_index": 4160, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of aircraft IDs from the aircraft table that are greater than or equal to 2, excluding any aircraft IDs from the airport_aircraft table that are less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_28pvf_5.png", "TableImg_Ydc20_4.png"], "original_data_index": 4161, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, including those with ID 3 from the driver table and those with IDs up to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7gwgw_12.png", "TableImg_Vrpjl_5.png"], "original_data_index": 4163, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 10 and also appear in the school bus list, excluding driver ID 10 from that list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Py3ql_12.png", "TableImg_A0ve5_5.png"], "original_data_index": 4166, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What is the difference between the total employee ID from the certificate table, excluding those with an aid of 14, and the total employee ID from the employee table where the salary is less than 43723 and the employee ID is greater than or equal to 574489457, or the employee's name is Dorthy Lewis?", "answer": {"columns": ["SUM(eid)"], "index": [0], "data": [["23387027916"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Hg1d6_69.png", "TableImg_Wzz53_31.png"], "original_data_index": 4165, "original_sql": "SELECT SUM(eid) FROM certificate WHERE \"aid\" != 14 EXCEPT SELECT SUM(eid) FROM employee WHERE \"salary\" < 43723 AND \"eid\" >= 574489457 OR name = \"Dorthy Lewis\""} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 9, and those from the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I93lq_12.png", "TableImg_3808s_5.png"], "original_data_index": 4164, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list all the aircraft IDs, including those with ID 4 from the aircraft table and those with IDs of 1 or greater from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ur9q4_5.png", "TableImg_Mml9q_4.png"], "original_data_index": 4170, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you list all the years worked for companies with an ID less than 13, and also list all the years worked when the person's ID is 1 and they worked for at least 2 years?", "answer": {"columns": ["Year_working"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_Wjzo1_5.png", "TableImg_7bymd_5.png"], "original_data_index": 4171, "original_sql": "SELECT Year_working FROM employment WHERE \"Company_ID\" < 13 UNION ALL SELECT Year_working FROM employment WHERE \"People_ID\" = 1 AND \"Year_working\" >= 2"} {"question": "Can you give me a list of driver IDs, excluding those equal to 7, that are greater than 7 and appear in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rfks7_12.png", "TableImg_Bdtbe_5.png"], "original_data_index": 4172, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y3kf2_12.png", "TableImg_7816k_5.png"], "original_data_index": 4173, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 10 and also not equal to 10, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M9lvu_12.png", "TableImg_D1fid_5.png"], "original_data_index": 4174, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the average feature type code, the sum of feature IDs, and the earliest feature name for features named \"AirCon\" with a feature ID of 3 and a feature description that is not \"Burglar Alarm\", excluding the average feature type code, sum of feature IDs, and earliest feature name for features that don't have a feature type code of \"Amenity\"?", "answer": {"columns": ["AVG(feature_type_code)", "SUM(feature_id)", "MIN(feature_name)"], "index": [0], "data": [["", "", ""]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_5iwsx_3.png", "TableImg_Vk2m5_3.png"], "original_data_index": 4175, "original_sql": "SELECT AVG(feature_type_code), SUM(feature_id), MIN(feature_name) FROM Other_Available_Features WHERE feature_name = \"AirCon\" AND \"feature_id\" = 3 AND feature_description <> \"Burglar Alarm\" EXCEPT SELECT AVG(feature_type_code), SUM(feature_id), MIN(feature_name) FROM Other_Available_Features WHERE feature_type_code != \"Amenity\""} {"question": "Can you list the student IDs and pet IDs for all students with IDs less than or equal to 1002, including those with IDs less than or equal to 1001?", "answer": {"columns": ["StuID", "PetID"], "index": [0, 1, 2], "data": [["1001", "2001"], ["1002", "2002"], ["1002", "2003"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_9e3hi_3.png", "TableImg_178xk_3.png"], "original_data_index": 4176, "original_sql": "SELECT StuID, PetID FROM Has_Pet WHERE \"StuID\" <= 1001 UNION SELECT StuID, PetID FROM Has_Pet WHERE \"StuID\" <= 1002"} {"question": "Could you list the zip codes and populations for counties that meet either of these conditions: the county is not Baltimore County, the zip code is not D08, the population is no more than 79,000, and the county ID is 5; or the zip code is not D09 and the county ID is less than 3?", "answer": {"columns": ["Zip_code", "Population"], "index": [0, 1, 2], "data": [["D11", "13300"], ["D21", "21000"], ["D08", "90000"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_68u7e_5.png", "TableImg_G32jf_5.png"], "original_data_index": 4177, "original_sql": "SELECT Zip_code, Population FROM county WHERE County_name != \"Baltimore County\" AND Zip_code != \"D08\" AND \"Population\" <= 79000.0 AND \"County_Id\" = 5 UNION ALL SELECT Zip_code, Population FROM county WHERE Zip_code != \"D09\" AND \"County_Id\" < 3"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 5, that are present in the aircraft table but not in the airport_aircraft table where the aircraft ID is 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eolo0_5.png", "TableImg_Xz3at_4.png"], "original_data_index": 4178, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver IDs, excluding driver ID 9, in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_68osm_12.png", "TableImg_33ou9_5.png"], "original_data_index": 4168, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are both greater than 6 and not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I8e4c_12.png", "TableImg_Clgpe_5.png"], "original_data_index": 4167, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list all property type codes and descriptions, including those that aren't 'Shop' and those that aren't 'Apartment'?", "answer": {"columns": ["property_type_code", "property_type_description"], "index": [0, 1, 2, 3, 4], "data": [["Apartment", "Apartment, Flat, Condo, etc."], ["Field", "Field, Meadow."], ["House", "House, Bungalow, etc."], ["Other", "Other, to be determined."], ["Shop", "Shop, Retail Outlet."]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_G1354_5.png", "TableImg_V172u_5.png"], "original_data_index": 4169, "original_sql": "SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_code != \"Shop\" UNION SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_code <> \"Apartment\""} {"question": "Can you give me a list of driver IDs, including driver ID 10 from the driver table, and all driver IDs except 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xy7pr_12.png", "TableImg_Vao7v_5.png"], "original_data_index": 4179, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Could you give me a list of driver IDs that are both not equal to 12 and also less than or equal to 7, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fi3mo_12.png", "TableImg_Ps1ez_5.png"], "original_data_index": 4181, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What role codes are both associated with employees whose other details are not \"b\" or whose employee ID is at least 3 and whose name is \"Koby\" and whose role code is not \"MG\", and also associated with roles that are described as \"Editor\" or have the role code \"PR\"?", "answer": {"columns": ["role_code"], "index": [0], "data": [["ED"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_R9k0v_6.png", "TableImg_Oh53g_4.png"], "original_data_index": 4180, "original_sql": "SELECT role_code FROM Employees WHERE other_details <> \"b\" OR \"employee_id\" >= 3 AND employee_name = \"Koby\" AND role_code != \"MG\" INTERSECT SELECT role_code FROM Roles WHERE role_description = \"Editor\" OR role_code = \"PR\""} {"question": "Can you give me a list of shipping agent codes, including those from documents where the other details aren't \"q\", the shipping agent code is \"FE\", the receipt number isn't \"79\", and the receipt date isn't \"2015-04-03 09:36:19\", as well as those from the shipping agents reference table where the shipping agent description isn't \"q\"?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2, 3], "data": [["AL"], ["FE"], ["SH"], ["UP"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Dd10u_15.png", "TableImg_D3haf_5.png"], "original_data_index": 4182, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE other_details <> \"q\" AND shipping_agent_code = \"FE\" AND receipt_number != \"79\" AND receipt_date != \"2015-04-03 09:36:19\" UNION SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description != \"q\""} {"question": "Which driver IDs are both less than 8 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ncl3q_12.png", "TableImg_14kvu_5.png"], "original_data_index": 4186, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are greater than 9, excluding those driver IDs from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ysql3_12.png", "TableImg_Boa18_5.png"], "original_data_index": 4185, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "How many books are there if we count books where the book ID is 1 or greater, the publisher isn't Thomson Reuters, the publication ID isn't 4, or the publication date isn't June 2006, and then combine that count with the count of books where the book ID is greater than 5, the publisher isn't Wiley, or the publication date isn't August 2008 and the publication ID is 7?", "answer": {"columns": ["COUNT(Book_ID)"], "index": [0, 1], "data": [["5"], ["7"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_B6ghs_7.png", "TableImg_Qbu6p_7.png"], "original_data_index": 4184, "original_sql": "SELECT COUNT(Book_ID) FROM publication WHERE \"Book_ID\" >= 1 OR Publisher <> \"Thomson Reuters\" OR \"Publication_ID\" != 4 OR Publication_Date != \"June 2006\" UNION SELECT COUNT(Book_ID) FROM publication WHERE \"Book_ID\" > 5 OR Publisher != \"Wiley\" OR Publication_Date <> \"August 2008\" AND \"Publication_ID\" = 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs, excluding driver ID 9, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ffsgi_12.png", "TableImg_Lfiwv_5.png"], "original_data_index": 4187, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of email addresses from our customer database, including those who were born on February 7, 1993, at 5:40 AM, or aren't marked as \"Bad Customer,\" or have an outstanding amount of \\$9447 or less and aren't named Mertz, or have a customer ID of 15 and a cell phone number other than 1-401-108-8016x078 and a phone number other than 374-483-2758x85087, as well as those who have a phone number other than (729)396-4354x3576 and an email address other than afranecki@example.com, or a customer address ID greater than 10 and aren't marked as \"Bad Customer,\" or were born on August 30, 1996, at 6:17 AM and didn't become a customer on October 5, 2017, at 2:15 PM, or are named Tromp, or have a first name of Omer and a customer ID other than 11 and a cell phone number other than 1-197-686-2849x8761 and an outstanding amount other than \\$7256?", "answer": {"columns": ["email_address"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["everette.goyette@example.org"], ["huel.jana@example.org"], ["hilario.sporer@example.org"], ["afranecki@example.com"], ["asha.kilback@example.org"], ["kozey.citlalli@example.org"], ["mayert.judy@example.com"], ["nichole59@example.com"], ["karina.carroll@example.net"], ["myrl.lind@example.net"], ["wehner.harold@example.com"], ["ehowell@example.com"], ["kitty.hand@example.net"], ["everette.goyette@example.org"], ["huel.jana@example.org"], ["hilario.sporer@example.org"], ["afranecki@example.com"], ["asha.kilback@example.org"], ["kozey.citlalli@example.org"], ["mayert.judy@example.com"], ["kroberts@example.org"], ["mariela28@example.org"], ["nichole59@example.com"], ["karina.carroll@example.net"], ["myrl.lind@example.net"], ["wehner.harold@example.com"], ["ehowell@example.com"], ["kitty.hand@example.net"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_95yct_15.png", "TableImg_Bwjam_15.png"], "original_data_index": 4183, "original_sql": "SELECT email_address FROM Customers WHERE date_of_birth = \"1993-02-07 05:40:26\" OR customer_status_code <> \"Bad Customer\" OR \"amount_outstanding\" <= 9447.0 AND last_name <> \"Mertz\" OR \"customer_id\" = 15 AND cell_mobile_phone_number <> \"1-401-108-8016x078\" AND phone_number <> \"374-483-2758x85087\" UNION ALL SELECT email_address FROM Customers WHERE phone_number <> \"(729)396-4354x3576\" AND email_address <> \"afranecki@example.com\" OR \"customer_address_id\" > 10 AND customer_status_code <> \"Bad Customer\" OR date_of_birth = \"1996-08-30 06:17:50\" AND date_became_customer != \"2017-10-05 14:15:46\" OR last_name = \"Tromp\" OR first_name = \"Omer\" AND \"customer_id\" <> 11 AND cell_mobile_phone_number <> \"1-197-686-2849x8761\" AND \"amount_outstanding\" <> 7256.0"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 6 or greater, combined with a list of driver IDs from the school_bus table where the driver ID is greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z1a6c_12.png", "TableImg_597h3_5.png"], "original_data_index": 4189, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of Book IDs from the book table where the number of issues is 4, combined with a list of Book IDs from the publication table where the Book ID is not 4, the Publication ID is less than 2, and the Publication Date is not March 2008?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["6"], ["1"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_V1e30_10.png", "TableImg_Edfbo_7.png"], "original_data_index": 4188, "original_sql": "SELECT Book_ID FROM book WHERE \"Issues\" = 4.0 UNION ALL SELECT Book_ID FROM publication WHERE \"Book_ID\" <> 4 AND \"Publication_ID\" < 2 AND Publication_Date <> \"March 2008\""} {"question": "Can you list all copy numbers from the circulation history where the employee ID is 2 or greater, or the document ID is less than 20 and the draft number is not 20, combined with all copy numbers from the draft copies where the document ID is 4, or the draft number is not 17 and the copy number is greater than 10?", "answer": {"columns": ["copy_number"], "index": [0, 1, 2, 3, 4, 5], "data": [["15"], ["5"], ["4"], ["10"], ["6"], ["15"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_Geuhm_4.png", "TableImg_Mkucr_8.png"], "original_data_index": 4190, "original_sql": "SELECT copy_number FROM Circulation_History WHERE \"employee_id\" >= 2 OR \"document_id\" < 20 AND \"draft_number\" != 20 UNION ALL SELECT copy_number FROM Draft_Copies WHERE \"document_id\" = 4 OR \"draft_number\" != 17 AND \"copy_number\" > 10"} {"question": "Could you give me the student IDs that are both for students with a grass pollen allergy and whose ID is 1016 or greater, and also for students who either don't have the first name Dinesh, are not 19 years old, or are not male?", "answer": {"columns": ["StuID"], "index": [0], "data": [["1030"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Z6540_59.png", "TableImg_A8aee_34.png"], "original_data_index": 4191, "original_sql": "SELECT StuID FROM Has_Allergy WHERE Allergy = \"Grass Pollen\" AND \"StuID\" >= 1016 INTERSECT SELECT StuID FROM Student WHERE Fname != \"Dinesh\" AND \"Age\" != 19 OR Sex <> \"M\""} {"question": "Which aircraft IDs are not equal to 3 and are also greater than or equal to 3 when considering aircraft at airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M0cni_5.png", "TableImg_Hxqfe_4.png"], "original_data_index": 4192, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those with the ID 10 from the driver list and those with an ID less than 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aq6ss_12.png", "TableImg_Odpo8_5.png"], "original_data_index": 4194, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you give me a list of shop IDs for shops that have 3516 products, as well as shop IDs for shops located in Valkeakoski or not in the Finnair Stadium district?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_Rqwjm_9.png", "TableImg_0bhpa_9.png"], "original_data_index": 4193, "original_sql": "SELECT Shop_ID FROM shop WHERE \"Number_products\" = 3516 UNION ALL SELECT Shop_ID FROM shop WHERE Location = \"Valkeakoski\" OR District != \"Finnair Stadium\""} {"question": "Could you please provide the last name, first name, and date of birth for customers who either have a customer address ID of 1 or greater, an amount outstanding that is not 2255.0, a cell phone number that is not 739-333-6966x187, a date of birth that is not 1993-02-07 05:40:26, or a customer status code that is not \"Bad Customer\", along with the last name, first name, and date of birth for staff members who have a staff ID greater than 14, left staff on a date other than 2018-03-08 04:23:14, and have a middle name of Clarabelle?", "answer": {"columns": ["last_name", "first_name", "date_of_birth"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Bernhard", "Carole", "1998-12-15 13:24:40"], ["Bruen", "Millie", "1991-02-10 00:42:17"], ["Goodwin", "Rylan", "1996-08-29 00:03:08"], ["Grant", "Estelle", "1996-05-23 01:21:54"], ["Koelpin", "Marina", "1996-11-07 05:30:55"], ["Kohler", "Ray", "1994-05-07 01:32:16"], ["Leuschke", "Omer", "1993-07-09 11:11:36"], ["Mertz", "Leif", "1991-12-05 02:50:15"], ["Ortiz", "Clara", "1994-06-21 01:34:56"], ["Sanford", "Dameon", "1996-08-30 06:17:50"], ["Schmeler", "Sigrid", "1988-09-19 14:45:56"], ["Spinka", "Amya", "1993-03-08 08:48:42"], ["Terry", "Genevieve", "1995-07-17 12:13:16"], ["Trantow", "Dianna", "1998-09-18 04:45:01"], ["Tromp", "Jordy", "1993-02-07 05:40:26"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_C2hza_15.png", "TableImg_Ay58p_15.png"], "original_data_index": 4195, "original_sql": "SELECT last_name, first_name, date_of_birth FROM Customers WHERE \"customer_address_id\" >= 1 AND \"amount_outstanding\" <> 2255.0 OR cell_mobile_phone_number <> \"739-333-6966x187\" OR date_of_birth != \"1993-02-07 05:40:26\" OR customer_status_code != \"Bad Customer\" UNION SELECT last_name, first_name, date_of_birth FROM Staff WHERE \"staff_id\" > 14 AND date_left_staff != \"2018-03-08 04:23:14\" AND middle_name = \"Clarabelle\""} {"question": "Can you give me a list of Driver IDs, including those that are exactly 12 from the driver table, and those that are less than or equal to 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0fbfb_12.png", "TableImg_Ecywd_5.png"], "original_data_index": 4198, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are 11 or less from the driver table, excluding any driver IDs from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Antry_12.png", "TableImg_Ripqv_5.png"], "original_data_index": 4199, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me the IDs from the car makers table where the country code is \"3\" or the full name isn't \"Citroen\" and the maker isn't \"chrysler\", combined with the IDs from the cars data table where the acceleration is greater than 16.8, or the horsepower isn't \"90\" and the ID isn't 238, or the number of cylinders is greater than 4 and the MPG is \"18\" and the weight isn't 2795, or the year isn't 1982, or the engine displacement is greater than or equal to 304.0?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["348"], ["349"], ["350"], ["351"], ["352"], ["353"], ["354"], ["355"], ["356"], ["357"], ["358"], ["359"], ["360"], ["361"], ["362"], ["363"], ["364"], ["365"], ["366"], ["367"], ["368"], ["369"], ["370"], ["371"], ["372"], ["373"], ["374"], ["375"], ["376"], ["377"], ["378"], ["379"], ["380"], ["381"], ["382"], ["383"], ["384"], ["385"], ["386"], ["387"], ["388"], ["389"], ["390"], ["391"], ["392"], ["393"], ["394"], ["395"], ["396"], ["397"], ["398"], ["399"], ["400"], ["401"], ["402"], ["403"], ["404"], ["405"], ["406"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Bcws2_22.png", "TableImg_7lcw9_406.png"], "original_data_index": 4197, "original_sql": "SELECT Id FROM car_makers WHERE Country = \"3\" OR FullName <> \"Citroen\" AND Maker <> \"chrysler\" UNION ALL SELECT Id FROM cars_data WHERE \"Accelerate\" > 16.8 OR Horsepower != \"90\" AND \"Id\" != 238 OR \"Cylinders\" > 4 AND MPG = \"18\" AND \"Weight\" != 2795 OR \"Year\" != 1982 OR \"Edispl\" >= 304.0"} {"question": "What are the total target user IDs and corresponding source user IDs from the trust table, excluding cases where the trust value is 10, except for those where the target user ID is at least 2, the trust value is less than 3, and the source user ID is less than 7?", "answer": {"columns": ["SUM(target_u_id)", "source_u_id"], "index": [0], "data": [["24", "1"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_Tcu11_9.png", "TableImg_Xtcvd_9.png"], "original_data_index": 4202, "original_sql": "SELECT SUM(target_u_id), source_u_id FROM trust WHERE \"trust\" != 10 EXCEPT SELECT SUM(target_u_id), source_u_id FROM trust WHERE \"target_u_id\" >= 2 AND \"trust\" < 3 AND \"source_u_id\" < 7"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 2, that are not present in the list of aircraft IDs less than or equal to 3 found in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0bk32_5.png", "TableImg_N4zsg_4.png"], "original_data_index": 4196, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of school IDs, including those from schools that don't have an enrollment of 620, and also those from the endowment table where the endowment ID isn't 7 and the school ID isn't 8, or where the amount is greater than 8.53?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_Nk1o3_8.png", "TableImg_65ci2_11.png"], "original_data_index": 4204, "original_sql": "SELECT School_id FROM School WHERE \"Enrollment\" != 620 UNION SELECT School_id FROM endowment WHERE \"endowment_id\" != 7 AND \"School_id\" <> 8 OR \"amount\" > 8.53"} {"question": "Can you list the aircraft IDs that are greater than 1, and also list the aircraft IDs from the airport aircraft table that are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T40o0_5.png", "TableImg_Ceztz_4.png"], "original_data_index": 4205, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you list all the driver IDs that are less than 5 from the driver table, and combine that with a list of all driver IDs that are less than 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1oa7a_12.png", "TableImg_2tfv8_5.png"], "original_data_index": 4206, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are less than 9, excluding driver ID 7, considering each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_47fma_12.png", "TableImg_T4op4_5.png"], "original_data_index": 4207, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Could you list the driver IDs that are both greater than or equal to 1 and less than or equal to 10, considering only the unique driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4u7fo_12.png", "TableImg_Pcqzo_5.png"], "original_data_index": 4208, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are found in both the driver list excluding driver 6 and the school bus list excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dy1kj_12.png", "TableImg_Upxmw_5.png"], "original_data_index": 4209, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are equal to 3 from the driver table, combined with a list of driver IDs that are less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0n6oa_12.png", "TableImg_Zaout_5.png"], "original_data_index": 4210, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Could you tell me the maximum aircraft ID and corresponding distance for aircraft with a distance greater than 8430 or an ID not equal to 14, combined with the maximum aircraft ID and distance for flights arriving on dates other than December 4th, 2005 at 11:10 AM?", "answer": {"columns": ["distance", "MAX(aid)"], "index": [0, 1], "data": [["30", "16"], ["802", "10"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_R4gz3_16.png", "TableImg_Abiyq_10.png"], "original_data_index": 4211, "original_sql": "SELECT distance, MAX(aid) FROM aircraft WHERE \"distance\" > 8430 OR \"aid\" != 14 UNION ALL SELECT distance, MAX(aid) FROM flight WHERE arrival_date != \"04/12/2005 11:10\""} {"question": "Can you list the Publication ID, Price, Book ID, and Publisher for all publications where either the Publication Date is not March 2007 and the Price is at least 2,000,000, or the Book ID is less than 3, combined with the Publication ID, Price, Book ID, and Publisher for publications where the Book ID is 4, the Publisher is not Bertelsmann, the Publication ID is less than 5, and the Price is exactly 2,000,000?", "answer": {"columns": ["Publication_ID", "Price", "Book_ID", "Publisher"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "15000000", "1", "Pearson"], ["2", "6000000", "3", "Thomson Reuters"], ["3", "4100000", "4", "Wiley"], ["4", "3000000", "5", "Wiley"], ["5", "3000000", "7", "Springer Nature"], ["7", "2000000", "10", "Bertelsmann"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_Phpnr_7.png", "TableImg_2i0x2_7.png"], "original_data_index": 4212, "original_sql": "SELECT Publication_ID, Price, Book_ID, Publisher FROM publication WHERE Publication_Date != \"March 2007\" AND \"Price\" >= 2000000.0 OR \"Book_ID\" < 3 UNION SELECT Publication_ID, Price, Book_ID, Publisher FROM publication WHERE \"Book_ID\" = 4 AND Publisher <> \"Bertelsmann\" AND \"Publication_ID\" < 5 AND \"Price\" = 2000000.0"} {"question": "Can you give me the template ID, the highest document ID, and the count of other details from the documents table, first for documents where the other details are not \"None\" and either the template ID is 25 or the document name is \"Robbin CV\" and the document ID is not 80, and then combined with the template ID, highest document ID, and count of other details for documents where the document description is not \"n\" or the other details are not \"None\" and the document ID is 80 or the template ID is 14 or greater?", "answer": {"columns": ["Template_ID", "MAX(Document_ID)", "COUNT(Other_Details)"], "index": [0, 1], "data": [["11", "385906526", "0"], ["20", "76", "0"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_38uoz_15.png", "TableImg_4xzpo_15.png"], "original_data_index": 4203, "original_sql": "SELECT Template_ID, MAX(Document_ID), COUNT(Other_Details) FROM Documents WHERE Other_Details <> \"None\" AND \"Template_ID\" = 25 OR Document_Name = \"Robbin CV\" AND \"Document_ID\" <> 80 UNION SELECT Template_ID, MAX(Document_ID), COUNT(Other_Details) FROM Documents WHERE Document_Description != \"n\" OR Other_Details <> \"None\" AND \"Document_ID\" = 80 OR \"Template_ID\" >= 14"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or less, and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Alrwu_12.png", "TableImg_Y3tqj_5.png"], "original_data_index": 4216, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 9, and those from the school_bus table where the ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jweqs_12.png", "TableImg_Y45fl_5.png"], "original_data_index": 4217, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3g7qj_12.png", "TableImg_0azp1_5.png"], "original_data_index": 4218, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are less than 11 from the driver table, combined with a list of driver IDs that are exactly 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5knyx_12.png", "TableImg_Qhen9_5.png"], "original_data_index": 4219, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the lowest occupation and residence, player name, highest votes and rank, and player ID for Fiona Shiells, a retired player who is not male, has 4673 votes, and is not player ID 9, excluding those that are female and not ranked 3rd, or have 5502 or fewer votes, or are not sponsored by Kildonan-St. Paul, or don't reside in Birtle, or are not Jim Maloway, or are not player ID 5, or are not a small businessman?", "answer": {"columns": ["MIN(Occupation)", "MIN(Residence)", "Player_name", "MAX(Votes)", "Player_ID", "MAX(Rank)"], "index": [0], "data": [["", "", "", "", "", ""]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_G2xnh_14.png", "TableImg_Z4qex_14.png"], "original_data_index": 4220, "original_sql": "SELECT MIN(Occupation), MIN(Residence), Player_name, MAX(Votes), Player_ID, MAX(Rank) FROM player WHERE Gender != \"M\" AND \"Votes\" = 4673 AND \"Player_ID\" <> 9 AND Player_name = \"Fiona Shiells\" AND Occupation = \"Retired\" EXCEPT SELECT MIN(Occupation), MIN(Residence), Player_name, MAX(Votes), Player_ID, MAX(Rank) FROM player WHERE Gender = \"F\" AND Rank != \"3rd\" OR \"Votes\" <= 5502 OR Sponsor_name != \"Kildonan\u2014St. Paul\" OR Residence <> \"Birtle\" OR Player_name != \"Jim Maloway\" AND \"Player_ID\" <> 5 OR Occupation != \"Small Businessman\""} {"question": "Which driver IDs are not equal to 4 and appear in the driver table, and are also not equal to 7 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ji1d7_12.png", "TableImg_Tbtaw_5.png"], "original_data_index": 4221, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the maximum People ID, minimum Graduation College, average Nationality, count of Ages, and Names for people who graduated from Northeastern, combined with the same information for people who are not 25 years old or whose name is not Jerry Corcoran and whose nationality is not United States or who did not graduate from Northeastern?", "answer": {"columns": ["MAX(People_ID)", "MIN(Graduation_College)", "AVG(Nationality)", "COUNT(Age)", "Name"], "index": [0, 1], "data": [["7", "California", "0", "7", "David Butler"], ["7", "Northeastern", "0", "2", "Reggie Lewis"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_3xq89_7.png", "TableImg_T8m9n_7.png"], "original_data_index": 4222, "original_sql": "SELECT MAX(People_ID), MIN(Graduation_College), AVG(Nationality), COUNT(Age), Name FROM people WHERE Graduation_College = \"Northeastern\" UNION SELECT MAX(People_ID), MIN(Graduation_College), AVG(Nationality), COUNT(Age), Name FROM people WHERE \"Age\" != 25 OR Name != \"Jerry Corcoran\" AND Nationality <> \"United States\" OR Graduation_College <> \"Northeastern\""} {"question": "Can you give me a list of driver IDs that are less than 5, excluding any driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ee8lo_12.png", "TableImg_F8xyf_5.png"], "original_data_index": 4223, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 7, and those from the school bus table excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4xp5c_12.png", "TableImg_7sc41_5.png"], "original_data_index": 4224, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which aircraft IDs are both less than or equal to 5 when considering all aircraft, and also less than 2 when considering aircraft at airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pad7h_5.png", "TableImg_8nonl_4.png"], "original_data_index": 4215, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 4, combined with a list of driver IDs from the school_bus table where each ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_31v5u_12.png", "TableImg_Wl7wa_5.png"], "original_data_index": 4214, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or greater, and those from the school bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1uarn_12.png", "TableImg_Llz5c_5.png"], "original_data_index": 4226, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of member IDs for members with a level less than 6 or a member ID less than 1, combined with a list of member IDs from purchases made in 2017 at branches other than branch 1?", "answer": {"columns": ["Member_ID"], "index": [0, 1], "data": [["6"], ["10"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_Wmghh_10.png", "TableImg_O6px1_8.png"], "original_data_index": 4227, "original_sql": "SELECT Member_ID FROM member WHERE \"Level\" < 6 OR \"Member_ID\" < 1 UNION SELECT Member_ID FROM purchase WHERE Year = \"2017\" AND Branch_ID != \"1\""} {"question": "Can you give me the average school ID, amount, average endowment ID, and donator name from the endowment table, combining results where either the school ID is greater than 3, or the amount is at least 9.05, the donator name is not \"Santo Domingo Este\", and the endowment ID is greater than 4, with results where either the endowment ID is less than 2 or the school ID is 6?", "answer": {"columns": ["AVG(School_id)", "amount", "AVG(endowment_id)", "donator_name"], "index": [0, 1], "data": [["3.5", "9.51", "5", "Monte Plata"], ["5.2857142857", "9.05", "8", "San Crist\u00f3bal"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_2undb_11.png", "TableImg_6t5nn_11.png"], "original_data_index": 4228, "original_sql": "SELECT AVG(School_id), amount, AVG(endowment_id), donator_name FROM endowment WHERE \"School_id\" > 3 OR \"amount\" >= 9.05 AND donator_name <> \"Santo Domingo Este\" AND \"endowment_id\" > 4 UNION SELECT AVG(School_id), amount, AVG(endowment_id), donator_name FROM endowment WHERE \"endowment_id\" < 2 OR \"School_id\" = 6"} {"question": "Can you list the ranks from the match results where the rank is 6 or lower, combined with the ranks from the player information where either the votes are less than 4673, or the residence is Birtle and the occupation isn't retired and the sponsor name isn't Elmwood\u2014Transcona, or the rank isn't 2nd and the gender isn't male, or the player ID isn't 14, or the player name is Matt Schaubroeck?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["2nd"], ["3rd"], ["1st"], ["2nd"], ["1st"], ["2nd"], ["4th"], ["2nd"], ["3rd"], ["2nd"], ["1st"], ["1st"], ["3rd"], ["3rd"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Vwuw6_6.png", "TableImg_Dizs6_14.png"], "original_data_index": 4229, "original_sql": "SELECT Rank FROM match_result WHERE \"Rank\" <= 6 UNION ALL SELECT Rank FROM player WHERE \"Votes\" < 4673 OR Residence = \"Birtle\" AND Occupation != \"Retired\" AND Sponsor_name != \"Elmwood\u2014Transcona\" OR Rank <> \"2nd\" AND Gender <> \"M\" OR \"Player_ID\" <> 14 OR Player_name = \"Matt Schaubroeck\""} {"question": "What is the average continent value, excluding Australia, and the average continent value for the UK?", "answer": {"columns": ["AVG(Continent)"], "index": [0, 1], "data": [["0"], ["2"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_Yzx2t_5.png", "TableImg_5k8bj_15.png"], "original_data_index": 4231, "original_sql": "SELECT AVG(Continent) FROM continents WHERE Continent <> \"australia\" UNION SELECT AVG(Continent) FROM countries WHERE CountryName = \"uk\""} {"question": "Can you give me the ID, name, IATA code, ICAO code, and country for all airports that either aren't named \"El Prat Airport\", or don't have an IATA code of \"BWI\" but are in Barcelona, or don't have an ICAO code of \"EKBI\" and aren't in Norway and have an ID of 4, combined with the ID, name, IATA code, ICAO code, and country for all airports that either don't have an IATA code of \"BRU\", or aren't named \"National Airport\", or aren't in Boston and have an ID of 3 or greater, or have an ICAO code of \"EBBR\", or aren't in Denmark?", "answer": {"columns": ["id", "name", "IATA", "ICAO", "Country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1", "Akureyri Airport", "AEY", "BIAR", "Iceland"], ["2", "Schiphol Airport", "AMS", "EHAM", "Netherlands"], ["3", "Ted Stevens Airport", "ANC", "PANC", "United States"], ["4", "Baltimore-Washington Airport", "BWI", "KBWI", "United States"], ["5", "El Prat Airport", "BCN", "LEBL", "Spain"], ["6", "Bergen Airport", "BGO", "ENBR", "Norway"], ["7", "Billund Airport", "BLL", "EKBI", "Denmark"], ["8", "Logan International Airport", "BOS", "KBOS", "United States"], ["9", "National Airport", "BRU", "EBBR", "Belgium"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Dwirk_9.png", "TableImg_34xfx_9.png"], "original_data_index": 4230, "original_sql": "SELECT id, name, IATA, ICAO, Country FROM airport WHERE name != \"El Prat Airport\" OR IATA != \"BWI\" AND City = \"Barcelona\" OR ICAO <> \"EKBI\" AND Country <> \"Norway\" AND \"id\" = 4 UNION SELECT id, name, IATA, ICAO, Country FROM airport WHERE IATA != \"BRU\" OR name != \"National Airport\" OR City <> \"Boston\" AND \"id\" >= 3 OR ICAO = \"EBBR\" OR Country != \"Denmark\""} {"question": "Can you give me a list of aircraft IDs that are greater than or equal to 4, excluding any aircraft IDs greater than or equal to 3 that are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1veno_5.png", "TableImg_7l7qi_4.png"], "original_data_index": 4232, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 7 or greater, and those from the school bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ijz47_12.png", "TableImg_0pazy_5.png"], "original_data_index": 4233, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are both greater than or equal to 10 in the driver table and greater than 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sspjh_12.png", "TableImg_Hpq5v_5.png"], "original_data_index": 4234, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs, excluding driver ID 3, are also driver IDs greater than 7 used by school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qs329_12.png", "TableImg_0o9ym_5.png"], "original_data_index": 4213, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding any driver IDs from the school bus list that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aolqk_12.png", "TableImg_Dvne9_5.png"], "original_data_index": 4225, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs that are less than or equal to 4 from the driver table, combined with a list of driver IDs that are less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_89gcb_12.png", "TableImg_5jgjs_5.png"], "original_data_index": 4236, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those with ID 11 from the driver table and those with IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aepav_12.png", "TableImg_Trw3e_5.png"], "original_data_index": 4237, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which aircraft IDs are both less than or equal to 5 in the aircraft table and greater than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nktgp_5.png", "TableImg_1d4tr_4.png"], "original_data_index": 4235, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that aren't 12 with those from the school bus table that are less than 4, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I5zn5_12.png", "TableImg_A5rek_5.png"], "original_data_index": 4238, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me the IDs of drivers that are less than or equal to 1, excluding the IDs of school bus drivers that are greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U44ol_12.png", "TableImg_3l2id_5.png"], "original_data_index": 4242, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are less than 5, excluding any driver IDs from the school bus list that aren't 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ssnvo_12.png", "TableImg_5nrzm_5.png"], "original_data_index": 4240, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are greater than 10 from the driver table, excluding any driver IDs from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xtki9_12.png", "TableImg_U9118_5.png"], "original_data_index": 4239, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs that also appear in the school bus table where the driver ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bq7hj_12.png", "TableImg_Wnlcq_5.png"], "original_data_index": 4241, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list all car makers, including BMW, and also include car makers from the model list where the model isn't a Mercedes-Benz or the ModelId isn't 35 and the maker's ID is less than 2?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35], "data": [["bmw"], ["1"], ["2"], ["3"], ["4"], ["4"], ["5"], ["4"], ["6"], ["7"], ["8"], ["6"], ["9"], ["5"], ["10"], ["11"], ["12"], ["13"], ["5"], ["8"], ["4"], ["14"], ["15"], ["6"], ["4"], ["16"], ["17"], ["18"], ["19"], ["20"], ["2"], ["21"], ["22"], ["23"], ["6"], ["19"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_E6x12_22.png", "TableImg_Mvw68_36.png"], "original_data_index": 4243, "original_sql": "SELECT Maker FROM car_makers WHERE FullName = \"BMW\" UNION ALL SELECT Maker FROM model_list WHERE Model != \"mercedes-benz\" OR \"ModelId\" != 35 AND \"Maker\" < 2"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 1, excluding any driver IDs from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zojck_12.png", "TableImg_U9ck2_5.png"], "original_data_index": 4244, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, from the driver table, but only those IDs that are not also in the school bus table with driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ncbwe_12.png", "TableImg_Qz5zl_5.png"], "original_data_index": 4246, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list all the aircraft IDs, combining those from the aircraft table that are not equal to 3 with those from the airport_aircraft table that are greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ad0u4_5.png", "TableImg_Whri7_4.png"], "original_data_index": 4245, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me the driver ID that appears exactly once, where the driver ID is 2 in the driver table, but is not a driver ID other than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kcwl2_12.png", "TableImg_Qwbi0_5.png"], "original_data_index": 4247, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S4yc5_12.png", "TableImg_38el8_5.png"], "original_data_index": 4250, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you give me a list of template IDs from documents that have other details besides \"None\", combined with template IDs from templates where the template ID is 11 or greater?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["11"], ["14"], ["15"], ["16"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Ljcr1_15.png", "TableImg_5jzrw_20.png"], "original_data_index": 4249, "original_sql": "SELECT Template_ID FROM Documents WHERE Other_Details <> \"None\" UNION SELECT Template_ID FROM Templates WHERE \"Template_ID\" >= 11"} {"question": "Can you list all the aircraft IDs from the aircraft table, excluding those with ID 5, and combine that with a list of aircraft IDs from the airport_aircraft table that are less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fzods_5.png", "TableImg_88ham_4.png"], "original_data_index": 4251, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What aircraft IDs are present in both the aircraft and airport_aircraft tables, considering only those IDs that are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E79ci_5.png", "TableImg_Qiyds_4.png"], "original_data_index": 4248, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver has an ID of 3 and also drives a school bus with a driver ID that is not 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xakmw_12.png", "TableImg_Vve6f_5.png"], "original_data_index": 4254, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Could you show me the effective dates, template ID, template details, and template type code for all templates, including those that aren't of type \"PP\" and have a version number of 5 or less, as well as those that have template details, a template ID of 22 or greater, an effective date other than \"2012-04-05 07:11:42\", or aren't of type \"AD\" or have a version number of 9 or less?", "answer": {"columns": ["Date_Effective_From", "Date_Effective_To", "Template_ID", "Template_Details", "Template_Type_Code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "data": [["2002-03-02 14:39:49", "2001-04-18 09:29:52", "4", "", "BK"], ["1975-05-20 22:51:19", "1992-05-02 20:06:11", "6", "", "PPT"], ["1983-07-16 21:16:16", "1976-10-28 10:08:50", "8", "", "BK"], ["1997-04-17 08:29:44", "1994-12-07 13:26:23", "9", "", "BK"], ["2003-06-05 04:03:45", "2007-06-06 06:18:53", "10", "", "PPT"], ["2012-04-05 07:11:42", "1980-05-07 12:15:47", "16", "", "CV"], ["1979-12-24 10:28:16", "2000-10-22 11:57:12", "23", "", "BK"], ["2005-11-12 07:09:48", "2008-01-05 14:19:28", "0", "", "PP"], ["2010-09-24 01:15:11", "1999-07-08 03:31:04", "1", "", "PP"], ["2002-03-02 14:39:49", "2001-04-18 09:29:52", "4", "", "BK"], ["1975-05-20 22:51:19", "1992-05-02 20:06:11", "6", "", "PPT"], ["1993-10-07 02:33:04", "1975-07-16 04:52:10", "7", "", "PPT"], ["1983-07-16 21:16:16", "1976-10-28 10:08:50", "8", "", "BK"], ["1997-04-17 08:29:44", "1994-12-07 13:26:23", "9", "", "BK"], ["2003-06-05 04:03:45", "2007-06-06 06:18:53", "10", "", "PPT"], ["1996-02-04 11:27:24", "1995-09-19 22:27:48", "11", "", "BK"], ["1975-10-20 02:28:58", "1979-11-04 08:58:39", "14", "", "AD"], ["1986-12-09 14:51:36", "1993-03-24 14:30:23", "15", "", "CV"], ["2012-04-05 07:11:42", "1980-05-07 12:15:47", "16", "", "CV"], ["1984-08-07 13:36:26", "1998-05-12 12:51:29", "18", "", "PP"], ["1999-06-21 11:10:30", "1974-09-14 06:34:39", "19", "", "AD"], ["1986-11-14 12:20:18", "2008-08-08 18:36:43", "20", "", "BK"], ["2002-08-25 13:26:23", "2015-09-06 01:08:44", "21", "", "AD"], ["2005-02-20 00:31:34", "1989-11-24 19:06:06", "22", "", "PP"], ["1979-12-24 10:28:16", "2000-10-22 11:57:12", "23", "", "BK"], ["2008-08-01 13:57:26", "1973-01-12 14:13:34", "24", "", "PP"], ["1979-10-20 21:23:20", "2006-02-06 23:52:04", "25", "", "PP"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_29xcz_20.png", "TableImg_0hnpv_20.png"], "original_data_index": 4255, "original_sql": "SELECT Date_Effective_From, Date_Effective_To, Template_ID, Template_Details, Template_Type_Code FROM Templates WHERE Template_Type_Code != \"PP\" AND \"Version_Number\" <= 5 UNION ALL SELECT Date_Effective_From, Date_Effective_To, Template_ID, Template_Details, Template_Type_Code FROM Templates WHERE Template_Details != \"\" OR \"Template_ID\" >= 22 OR Date_Effective_From != \"2012-04-05 07:11:42\" AND Template_Type_Code <> \"AD\" OR \"Version_Number\" <= 9"} {"question": "Can you show me the graduation college, age, nationality, and people ID for everyone, including those who are not 37 years old and not from the United States and didn't graduate from Wisconsin-Stevens Point, or whose name isn't Darryl Kennedy and whose ID isn't 6, combined with those who are younger than 37 or not from the United States?", "answer": {"columns": ["Graduation_College", "Age", "Nationality", "People_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["Northeastern", "27", "United States", "1"], ["Iowa", "25", "United States", "2"], ["Virginia", "37", "United Kindom", "3"], ["California", "34", "United Kindom", "5"], ["Northeastern", "30", "United States", "7"], ["Northeastern", "27", "United States", "1"], ["Iowa", "25", "United States", "2"], ["Virginia", "37", "United Kindom", "3"], ["Oklahoma", "31", "United States", "4"], ["California", "34", "United Kindom", "5"], ["Northeastern", "30", "United States", "7"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_9oqli_7.png", "TableImg_Lhnr2_7.png"], "original_data_index": 4256, "original_sql": "SELECT Graduation_College, Age, Nationality, People_ID FROM people WHERE \"Age\" != 37 AND Nationality != \"United States\" AND Graduation_College <> \"Wisconsin\u2013Stevens Point\" OR Name <> \"Darryl Kennedy\" AND \"People_ID\" <> 6 UNION ALL SELECT Graduation_College, Age, Nationality, People_ID FROM people WHERE \"Age\" < 37 OR Nationality <> \"United States\""} {"question": "Can you give me a list of driver IDs that are 11 or less, excluding any driver IDs that also appear in the school bus list, except for driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cs2ar_12.png", "TableImg_R8ghz_5.png"], "original_data_index": 4257, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are not 12 and are also less than 4, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ty13q_12.png", "TableImg_1x09q_5.png"], "original_data_index": 4258, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list the ID, name, and start year of clubs that are not in the USA, or didn't start in 2005, or aren't named Djurg\u00e5rdens IF, but exclude those that are in the UK and started in 2005, or are named Djurg\u00e5rdens IF?", "answer": {"columns": ["Club_ID", "Club_name", "Start_year"], "index": [0, 1, 2, 3, 4], "data": [["1", "AIK", "2009"], ["2", "BK H\u00e4cken", "1998"], ["4", "Gefle IF", "2001"], ["5", "Halmstads BK", "2000"], ["6", "Helsingborgs IF", "2011"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Cyxgi_6.png", "TableImg_4dj8v_6.png"], "original_data_index": 4259, "original_sql": "SELECT Club_ID, Club_name, Start_year FROM club WHERE Region != \"USA\" OR \"Start_year\" != 2005 OR Club_name != \"Djurg\u00e5rdens IF\" EXCEPT SELECT Club_ID, Club_name, Start_year FROM club WHERE Region = \"UK\" AND \"Start_year\" = 2005 OR Club_name = \"Djurg\u00e5rdens IF\""} {"question": "Can you give me a list of employee IDs from the evaluation table where the award year is not 2018 and the bonus is not 2900, combined with a list of employee IDs from the hiring table where the shop ID is 5 or greater and the start year is not 2009?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["5"], ["7"], ["1"], ["10"], ["2"], ["4"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Zx396_6.png", "TableImg_75eax_7.png"], "original_data_index": 4260, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Year_awarded <> \"2018\" AND \"Bonus\" != 2900.0 UNION SELECT Employee_ID FROM hiring WHERE \"Shop_ID\" >= 5 AND Start_from <> \"2009\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 4, excluding any driver IDs that are not equal to 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sad4b_12.png", "TableImg_Irrmt_5.png"], "original_data_index": 4261, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me the driver ID that appears exactly once as driver ID 8 in the driver table but is not a driver ID greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hrckg_12.png", "TableImg_Xsev0_5.png"], "original_data_index": 4263, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "How many schools are not Columbia University and not in Honolulu, Hawaii, or have a School ID of 6 or greater, or are not private and not 4th grade, plus how many school buses are not full time?", "answer": {"columns": ["COUNT(School_ID)"], "index": [0, 1], "data": [["6"], ["1"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_Fypay_7.png", "TableImg_Uf95e_5.png"], "original_data_index": 4252, "original_sql": "SELECT COUNT(School_ID) FROM school WHERE School <> \"Columbia University\" AND Location != \"Honolulu, Hawaii\" OR \"School_ID\" >= 6 OR Type <> \"Private\" AND Grade <> \"4th grade\" UNION ALL SELECT COUNT(School_ID) FROM school_bus WHERE If_full_time <> \"T\""} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 7, and those from the school bus table with driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_03q1m_12.png", "TableImg_1xljw_5.png"], "original_data_index": 4264, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs that are greater than 1 from the driver table, excluding any driver IDs that are less than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_79ikp_12.png", "TableImg_Rs57l_5.png"], "original_data_index": 4262, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are both not equal to 6 and also less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rz09h_12.png", "TableImg_F5dhb_5.png"], "original_data_index": 4265, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver IDs less than or equal to 3 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wte3b_12.png", "TableImg_056a4_5.png"], "original_data_index": 4266, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the aircraft IDs, including aircraft ID 1 from the aircraft table and aircraft IDs less than 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qxbvz_5.png", "TableImg_Ax83b_4.png"], "original_data_index": 4267, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you list the aircraft IDs that are greater than or equal to 1, excluding those aircraft IDs that are equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8wsbb_5.png", "TableImg_Dtkh6_4.png"], "original_data_index": 4269, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding ID 4, and then from the airport_aircraft table including only IDs up to 5, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ro3cn_5.png", "TableImg_J7xq2_4.png"], "original_data_index": 4270, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you show me the hse_feature_3, the highest property_id, hse_feature_1, vendor_requested_price, shp_feature_2, and the earliest date_on_market from the Properties table, considering properties where shp_feature_3 is not \"None\", or the date_on_market is not \"1991-06-21 23:52:10\" and the date_sold is \"1979-05-13 16:58:06\", or shp_feature_2 is not \"None\", or apt_feature_3 is \"None\", or the property_name is \"parc coliseum\" and the property_id is 14 and other_property_details is not \"None\", or oth_feature_2 is not \"None\" and fld_feature_2 is not \"None\" and hse_feature_1 is \"None\" and vendor_requested_price is less than 305.0, or fld_feature_3 is not \"None\" and fld_feature_1 is not \"None\" and hse_feature_2 is not \"None\", or apt_feature_1 is \"qui\", and also include the same information for properties where fld_feature_1 is not \"None\" and the agreed_selling_price is less than or equal to 0.0, or the buyer_offered_price is not 296733.0?", "answer": {"columns": ["hse_feature_3", "MAX(property_id)", "hse_feature_1", "vendor_requested_price", "shp_feature_2", "MIN(date_on_market)"], "index": [0, 1], "data": [["", "12", "", "305.0", "", "2016-05-24 09:57:45"], ["", "15", "", "13.4715", "", "1976-06-10 20:25:38"]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Dt9lt_15.png", "TableImg_Eqf7h_15.png"], "original_data_index": 4268, "original_sql": "SELECT hse_feature_3, MAX(property_id), hse_feature_1, vendor_requested_price, shp_feature_2, MIN(date_on_market) FROM Properties WHERE shp_feature_3 != \"None\" OR date_on_market <> \"1991-06-21 23:52:10\" AND date_sold = \"1979-05-13 16:58:06\" OR shp_feature_2 <> \"None\" OR apt_feature_3 = \"None\" OR property_name = \"parc coliseum\" AND \"property_id\" = 14 AND other_property_details != \"None\" OR oth_feature_2 != \"None\" AND fld_feature_2 != \"None\" AND hse_feature_1 = \"None\" AND \"vendor_requested_price\" < 305.0 OR fld_feature_3 <> \"None\" AND fld_feature_1 <> \"None\" AND hse_feature_2 <> \"None\" OR apt_feature_1 = \"qui\" UNION ALL SELECT hse_feature_3, MAX(property_id), hse_feature_1, vendor_requested_price, shp_feature_2, MIN(date_on_market) FROM Properties WHERE fld_feature_1 <> \"None\" AND \"agreed_selling_price\" <= 0.0 OR \"buyer_offered_price\" != 296733.0"} {"question": "Can you give me the Document ID, Other Details, Paragraph Text, and Paragraph ID for all paragraphs where the Paragraph ID is greater than 1104059 and the Other Details are not \"None\" and the Paragraph Text is not \"Korea\", or where the Document ID is 16514113, but exclude any paragraphs where the Other Details are not \"None\"?", "answer": {"columns": ["Document_ID", "Other_Details", "Paragraph_Text", "Paragraph_ID"], "index": [0, 1], "data": [["16514113", "", "Brazil", "571212310"], ["16514113", "", "Ireland", "765713812"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_Jjve3_15.png", "TableImg_42wqj_15.png"], "original_data_index": 4271, "original_sql": "SELECT Document_ID, Other_Details, Paragraph_Text, Paragraph_ID FROM Paragraphs WHERE \"Paragraph_ID\" > 1104059 AND Other_Details <> \"None\" AND Paragraph_Text != \"Korea\" OR \"Document_ID\" = 16514113 EXCEPT SELECT Document_ID, Other_Details, Paragraph_Text, Paragraph_ID FROM Paragraphs WHERE Other_Details <> \"None\""} {"question": "Can you give me the average driver ID, years working, full-time status, and school ID for all full-time drivers, but exclude those entries where the years working are less than 10, the school ID is less than or equal to 4, and the driver ID is greater than 10, and the driver is not full-time?", "answer": {"columns": ["Years_Working", "AVG(Driver_ID)", "If_full_time", "School_ID"], "index": [0], "data": [["8", "5.75", "T", "5"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_Mjk27_5.png", "TableImg_Ybejv_5.png"], "original_data_index": 4274, "original_sql": "SELECT Years_Working, AVG(Driver_ID), If_full_time, School_ID FROM school_bus WHERE If_full_time = \"T\" EXCEPT SELECT Years_Working, AVG(Driver_ID), If_full_time, School_ID FROM school_bus WHERE \"Years_Working\" < 10 AND \"School_ID\" <= 4 AND \"Driver_ID\" > 10 AND If_full_time != \"T\""} {"question": "Could you list the zip codes and populations for counties named \"Mansfield\" where the population isn't 79000, or where the zip code isn't \"D02\" and the county ID is 5 or less, along with the zip codes and populations for counties where the population is 87200 or more and the zip code is \"D08\"?", "answer": {"columns": ["Zip_code", "Population"], "index": [0, 1, 2, 3, 4], "data": [["D21", "21000"], ["D08", "90000"], ["D09", "87200"], ["D11", "13300"], ["D08", "90000"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_D7dsr_5.png", "TableImg_L26z0_5.png"], "original_data_index": 4275, "original_sql": "SELECT Zip_code, Population FROM county WHERE County_name = \"Mansfield\" AND \"Population\" != 79000.0 OR Zip_code <> \"D02\" AND \"County_Id\" <= 5 UNION ALL SELECT Zip_code, Population FROM county WHERE \"Population\" >= 87200.0 AND Zip_code = \"D08\""} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 1, but then remove any aircraft IDs from that list that also appear in the airport_aircraft table and have an ID less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nhl51_5.png", "TableImg_E5hll_4.png"], "original_data_index": 4272, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me the Player IDs from the player table, excluding those also found in the player_coach table, where the players either don't live in Winnipeg, aren't small businessmen, have a Player ID of 4 or greater, aren't sponsored by Churchill, have fewer than 14355 votes, or are male and ranked 3rd, but only if they are not also in the player_coach table with a Player ID greater than 6, a Coach ID of 1, or a starting year of 2012 or earlier?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_Gdkgj_14.png", "TableImg_Ltcd3_7.png"], "original_data_index": 4273, "original_sql": "SELECT Player_ID FROM player WHERE Residence <> \"Winnipeg\" OR Occupation <> \"Small Businessman\" AND \"Player_ID\" >= 4 AND Sponsor_name <> \"Churchill\" AND \"Votes\" < 14355 OR Gender = \"M\" AND Rank = \"3rd\" EXCEPT SELECT Player_ID FROM player_coach WHERE \"Player_ID\" > 6 OR \"Coach_ID\" = 1 OR \"Starting_year\" <= 2012"} {"question": "What is the average employee ID for employees whose bonus is not $3000, along with their individual employee IDs?", "answer": {"columns": ["AVG(T1.Employee_ID)", "Employee_ID"], "index": [0], "data": [["4.8", "2"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_8flpy_10.png", "TableImg_Akqfo_6.png"], "original_data_index": 4279, "original_sql": "SELECT AVG(T1.Employee_ID), T2.Employee_ID FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE Bonus <> 3000.0"} {"question": "What are the issue numbers that are not 6, excluding those issue numbers from books other than \"Michael Moorcock's Multiverse\" that are greater than 4 and have a Book ID greater than 5?", "answer": {"columns": ["Issues"], "index": [0, 1, 2], "data": [["1"], ["4"], ["12"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_96m52_10.png", "TableImg_Ycfyg_10.png"], "original_data_index": 4278, "original_sql": "SELECT Issues FROM book WHERE \"Issues\" != 6.0 EXCEPT SELECT Issues FROM book WHERE Title != \"Michael Moorcock's Multiverse\" AND \"Issues\" > 4.0 AND \"Book_ID\" > 5"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 11 and are not equal to 3, considering only unique driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Suaqp_12.png", "TableImg_Smonp_5.png"], "original_data_index": 4277, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 2, and those from the school bus table excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xfejo_12.png", "TableImg_Pb4jj_5.png"], "original_data_index": 4276, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver has an ID of 5, excluding any drivers with IDs less than 4 who are also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Elkcj_12.png", "TableImg_Zsjlc_5.png"], "original_data_index": 4280, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list the aircraft IDs that are less than or equal to 4 from the aircraft table, and also include aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jzwxl_5.png", "TableImg_3aqyq_4.png"], "original_data_index": 4281, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you list the ranks from match results where the bronze score is less than or equal to 8, combined with the ranks of players who either don't live in Brandon or don't have a rank of \"1st\", but are also employed as \"Product Consultant - MLCC\"?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["3"], ["4"], ["6"], ["1st"], ["2nd"], ["3rd"], ["4th"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_H3zlc_6.png", "TableImg_Wzqnf_14.png"], "original_data_index": 4283, "original_sql": "SELECT Rank FROM match_result WHERE \"Bronze\" <= 8 UNION SELECT Rank FROM player WHERE Residence <> \"Brandon\" OR Rank <> \"1st\" AND Occupation = \"Product Consultant - MLCC\""} {"question": "Can you tell me the age, average home city, minimum party value, and name for all drivers who are 36 years old and named Minnie Gonzalez, combined with the same information for all drivers who are not named Tim Larson?", "answer": {"columns": ["Age", "AVG(Home_city)", "MIN(Party)", "Name"], "index": [0, 1], "data": [["", "", "", ""], ["40.0", "0.0", "Dem", "Matthew Ritter"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_Uuw36_12.png", "TableImg_Qyyhe_12.png"], "original_data_index": 4284, "original_sql": "SELECT Age, AVG(Home_city), MIN(Party), Name FROM driver WHERE \"Age\" = 36 AND Name = \"Minnie Gonzalez\" UNION ALL SELECT Age, AVG(Home_city), MIN(Party), Name FROM driver WHERE Name != \"Tim Larson\""} {"question": "Could you give me the document type codes that are both in the Documents table where the receipt number isn't \"37\" or the document status isn't \"working\" and the document type is \"Paper\" or other details aren't \"x\", and also in the Ref_Document_Types table where the document type code isn't \"CD\" or the document type description is \"f\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1], "data": [["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Gbdzt_15.png", "TableImg_Gjx5d_3.png"], "original_data_index": 4282, "original_sql": "SELECT document_type_code FROM Documents WHERE receipt_number != \"37\" OR document_status_code <> \"working\" AND document_type_code = \"Paper\" OR other_details <> \"x\" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code <> \"CD\" OR document_type_description = \"f\""} {"question": "Can you give me a list of aircraft IDs that are less than 5 from the aircraft table, combined with a list of aircraft IDs that are not equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ukvgl_5.png", "TableImg_1ot2l_4.png"], "original_data_index": 4285, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 9 from the driver table, combined with a list of driver IDs that are greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Msl5n_12.png", "TableImg_Y8prl_5.png"], "original_data_index": 4286, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What is the highest ID for the artist named Felix Schmidt, London Symphony Orchestra & Rafael Fr\u00fchbeck de Burgos, and also the highest ID for employees who either don't report to employee 6, or are not from Canada and were born on May 29, 1970, or don't have the title \"IT Staff\" and don't have the fax number +1 (403) 263-4289 and don't have the phone number +1 (403) 467-3351, or whose last name is not Adams and first name is not Jane and live in Alberta at 923 7 ST NW and whose ID is not 8 and whose postal code is not T2P 2T3, or who don't live in Lethbridge, or whose email is not laura@chinookcorp.com, or who were not hired on March 4, 2004?", "answer": {"columns": ["MAX(id)"], "index": [0, 1], "data": [["241"], ["7"]]}, "table_names": "['artists' 'employees']", "table_image_ids": ["TableImg_Yxz1h_275.png", "TableImg_Qnsfd_8.png"], "original_data_index": 4287, "original_sql": "SELECT MAX(id) FROM artists WHERE name = \"Felix Schmidt, London Symphony Orchestra & Rafael Fr\u00fchbeck de Burgos\" UNION ALL SELECT MAX(id) FROM employees WHERE \"reports_to\" <> 6.0 OR country != \"Canada\" AND birth_date = \"1970-05-29 00:00:00\" OR title <> \"IT Staff\" AND fax != \"+1 (403) 263-4289\" AND phone != \"+1 (403) 467-3351\" OR last_name <> \"Adams\" AND first_name <> \"Jane\" AND state = \"AB\" AND address = \"923 7 ST NW\" AND \"id\" <> 8 AND postal_code != \"T2P 2T3\" OR city != \"Lethbridge\" OR email != \"laura@chinookcorp.com\" OR hire_date <> \"2004-03-04 00:00:00\""} {"question": "Which driver IDs are both greater than 9 and also less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O5i10_12.png", "TableImg_Y8chy_5.png"], "original_data_index": 4289, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver IDs, excluding driver ID 7, in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rlurl_12.png", "TableImg_C119p_5.png"], "original_data_index": 4288, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 11, and those from the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ajobr_12.png", "TableImg_P2a47_5.png"], "original_data_index": 4290, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs greater than or equal to 9 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U0bk5_12.png", "TableImg_Oqkno_5.png"], "original_data_index": 4291, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 2, that appear in the aircraft table, but are not in the airport_aircraft table, excluding aircraft ID 1 from that table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sy3ml_5.png", "TableImg_Ea6lg_4.png"], "original_data_index": 4292, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you list the Aircraft IDs that are greater than 2 when grouped in the aircraft table, and also include the Aircraft ID which is 5 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vgn7c_5.png", "TableImg_0oclm_4.png"], "original_data_index": 4295, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs that are 5 or less from the driver table, combined with driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_53aah_12.png", "TableImg_4kcyj_5.png"], "original_data_index": 4294, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of product IDs for products that either have a DPI different than 600 or are not named \"Xerox Travel Scanner 100\", combined with a list of product IDs for products with an ID of 1 or greater, dimensions not equal to \"298 x 209 x 99\", a DPI greater than 600, a max page size that isn't \"216mm x 356mm\", a product name other than \"Fujitsu fi-6130 A4 Series Scanner\", and a \"USB 2.0\" interface?", "answer": {"columns": ["product_id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Jynyr_6.png", "TableImg_Jw4ck_6.png"], "original_data_index": 4293, "original_sql": "SELECT product_id FROM product WHERE \"dpi\" <> 600.0 OR product != \"Xerox Travel Scanner 100\" UNION SELECT product_id FROM product WHERE \"product_id\" >= 1 AND dimensions != \"298 x 209 x 99\" AND \"dpi\" > 600.0 AND max_page_size <> \"216mm x 356mm\" AND product <> \"Fujitsu fi-6130 A4 Series Scanner\" AND interface = \"USB 2.0\""} {"question": "Can you give me a list of driver IDs that are not 11, and also appear in the list of school bus driver IDs that are 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yb821_12.png", "TableImg_09s46_5.png"], "original_data_index": 4298, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What aircraft IDs are present in the aircraft table, excluding aircraft ID 5, and also present in the airport_aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2p62w_5.png", "TableImg_Hhhm8_4.png"], "original_data_index": 4296, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which driver IDs, excluding driver ID 5, appear in the driver table but not in the school_bus table, also excluding driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zq2bv_12.png", "TableImg_Ya55a_5.png"], "original_data_index": 4297, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 10, and those from the school bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9vilt_12.png", "TableImg_K978t_5.png"], "original_data_index": 4299, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table, and all driver IDs less than 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_85x04_12.png", "TableImg_1n98o_5.png"], "original_data_index": 4301, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 9 and also not equal to 9, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B7358_12.png", "TableImg_Nwng4_5.png"], "original_data_index": 4302, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Could you list the draft numbers from the Document_Drafts table where the draft number is 0, the draft details are not \"x\", or the document ID is not 2, combined with the draft numbers from the Draft_Copies table where the draft number is less than 1, the copy number is greater than or equal to 10, and the document ID is less than or equal to 20?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["0"], ["1"], ["2"], ["4"], ["8"], ["9"], ["10"], ["11"], ["12"], ["14"], ["16"], ["17"], ["19"], ["20"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_Mpish_15.png", "TableImg_0r8ag_8.png"], "original_data_index": 4300, "original_sql": "SELECT draft_number FROM Document_Drafts WHERE \"draft_number\" = 0 OR draft_details <> \"x\" OR \"document_id\" != 2 UNION SELECT draft_number FROM Draft_Copies WHERE \"draft_number\" < 1 AND \"copy_number\" >= 10 AND \"document_id\" <= 20"} {"question": "Can you give me a list of driver IDs less than or equal to 7, excluding any driver IDs that are not equal to 7 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zj2d9_12.png", "TableImg_4h4kt_5.png"], "original_data_index": 4304, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 1, but only include those IDs that are not also in a list of school bus driver IDs that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ww9e7_12.png", "TableImg_Vgtgg_5.png"], "original_data_index": 4306, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What is the total of the property type codes from the Properties table where either the vendor requested price is not 78.7208, or the buyer offered price is more than 15.17, or the other property details are \"None\", or oth_feature_2 is \"None\", or shp_feature_1 is \"None\" and apt_feature_3 is \"None\", or apt_feature_1 is \"aut\", or apt_feature_2 is not \"et\" and fld_feature_3 is \"None\", or the date on market is \"1981-08-23 05:40:38\", or shp_feature_3 is not \"None\", or the property address is not \"4745 Emerson Stravenue Suite 829 South Garret, IN 16772-5682\", or fld_feature_1 is not \"None\" and shp_feature_2 is not \"None\" and hse_feature_1 is \"None\", or hse_feature_2 is not \"None\", or the property ID is not 1, or the agreed selling price is less than or equal to 4201.8, or the room count is 7, or hse_feature_3 is \"None\" and the property name is not \"prism\", or fld_feature_2 is \"None\" and the property type code is \"Other\", combined with the total of the property type codes from the Ref_Property_Types table where the property type description is not \"Other, to be determined.\"?", "answer": {"columns": ["SUM(property_type_code)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Zr9fm_15.png", "TableImg_Nwqwx_5.png"], "original_data_index": 4303, "original_sql": "SELECT SUM(property_type_code) FROM Properties WHERE \"vendor_requested_price\" <> 78.7208 OR \"buyer_offered_price\" > 15.17 OR other_property_details = \"None\" OR oth_feature_2 = \"None\" OR shp_feature_1 = \"None\" AND apt_feature_3 = \"None\" OR apt_feature_1 = \"aut\" OR apt_feature_2 <> \"et\" AND fld_feature_3 = \"None\" OR date_on_market = \"1981-08-23 05:40:38\" OR shp_feature_3 != \"None\" OR property_address != \"4745 Emerson Stravenue Suite 829 South Garret, IN 16772-5682\" OR fld_feature_1 <> \"None\" AND shp_feature_2 <> \"None\" AND hse_feature_1 = \"None\" OR hse_feature_2 != \"None\" OR \"property_id\" <> 1 OR \"agreed_selling_price\" <= 4201.8 OR \"room_count\" = 7 OR hse_feature_3 = \"None\" AND property_name != \"prism\" OR fld_feature_2 = \"None\" AND property_type_code = \"Other\" UNION ALL SELECT SUM(property_type_code) FROM Ref_Property_Types WHERE property_type_description <> \"Other, to be determined.\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 9, and those from the school bus table that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U38b4_12.png", "TableImg_Q2f0c_5.png"], "original_data_index": 4305, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, including driver ID 2 from the driver table, and all driver IDs greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2gj4m_12.png", "TableImg_Pquqm_5.png"], "original_data_index": 4307, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 2, that are not also in the list of aircraft IDs less than or equal to 5 found in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D35g3_5.png", "TableImg_Z7hi9_4.png"], "original_data_index": 4310, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs that are less than 9 from the driver table, combined with a list of driver IDs that are less than 3 from the school bus table, making sure to only list each driver ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2vd6e_12.png", "TableImg_50fuk_5.png"], "original_data_index": 4309, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list the position, club ID, and student ID for all members, combining those who are in clubs other than club 1 and not a Teaching Coordinator with those who are either not CTOs or in clubs other than club 1?", "answer": {"columns": ["Position", "ClubID", "StuID"], "index": [0, 1, 2, 3], "data": [["CTO", "2", "1008"], ["President", "1", "1001"], ["Teaching Coordinator", "1", "1010"], ["Vice-President", "4", "1007"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_L2ngr_4.png", "TableImg_Qtswn_4.png"], "original_data_index": 4312, "original_sql": "SELECT Position, ClubID, StuID FROM Member_of_club WHERE \"ClubID\" <> 1 AND Position <> \"Teaching Coordinator\" UNION SELECT Position, ClubID, StuID FROM Member_of_club WHERE Position <> \"CTO\" OR \"ClubID\" <> 1"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 2, and those from the school bus table excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0jbs4_12.png", "TableImg_Voe2e_5.png"], "original_data_index": 4311, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you tell me the average name, maximum People ID, age, and nationality of people who graduated from Wisconsin-Stevens Point, combined with the average name, maximum People ID, age, and nationality of people whose People ID is less than 2 or whose nationality is not the United States?", "answer": {"columns": ["Age", "AVG(Name)", "MAX(People_ID)", "Nationality"], "index": [0, 1], "data": [["34", "0", "5", "United Kindom"], ["37", "0", "6", "United States"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Piyv7_7.png", "TableImg_9l3zj_7.png"], "original_data_index": 4313, "original_sql": "SELECT Age, AVG(Name), MAX(People_ID), Nationality FROM people WHERE Graduation_College = \"Wisconsin\u2013Stevens Point\" UNION SELECT Age, AVG(Name), MAX(People_ID), Nationality FROM people WHERE \"People_ID\" < 2 OR Nationality != \"United States\""} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 5, but then remove any aircraft IDs that also appear in the airport_aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J87f0_5.png", "TableImg_Suh5l_4.png"], "original_data_index": 4314, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs are greater than 6 and also not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8xl7b_12.png", "TableImg_8f3vh_5.png"], "original_data_index": 4316, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are not 5 from the driver table, but only include those IDs that are also in the school bus table and are not 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N3jeb_12.png", "TableImg_R57jy_5.png"], "original_data_index": 4317, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Could you give me the document IDs that are either not 10 or have a draft number of 4 with draft details of \"k\", and are also document IDs less than 15 with a receipt date other than \"1983-09-26 09:32:56\" and a document status code that is not \"overdue\", or a shipping agent code that is not \"UP\", or a receipt number that is not \"93\" with other details that are not \"b\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["7"], ["12"], ["13"], ["14"], ["17"], ["20"], ["23"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Jmr2l_15.png", "TableImg_Puvfi_15.png"], "original_data_index": 4315, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" <> 10 OR \"draft_number\" = 4 AND draft_details = \"k\" INTERSECT SELECT document_id FROM Documents WHERE \"document_id\" < 15 AND receipt_date != \"1983-09-26 09:32:56\" AND document_status_code != \"overdue\" OR shipping_agent_code <> \"UP\" OR receipt_number != \"93\" AND other_details <> \"b\""} {"question": "Can you give me a list of Book IDs from the book table where the title is not \"Michael Moorcock's Multiverse\", or the Book ID is less than 1 and the writer is not \"Garth Ennis\", or the number of issues is 5 or more, combined with a list of Book IDs from the publication table where the publisher is \"Springer Nature\"?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_9nbwf_10.png", "TableImg_Gztby_7.png"], "original_data_index": 4318, "original_sql": "SELECT Book_ID FROM book WHERE Title <> \"Michael Moorcock's Multiverse\" OR \"Book_ID\" < 1 AND Writer != \"Garth Ennis\" OR \"Issues\" >= 5.0 UNION SELECT Book_ID FROM publication WHERE Publisher = \"Springer Nature\""} {"question": "What aircraft IDs, excluding ID 4, are present in the aircraft table but not in the airport_aircraft table, excluding ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G5fnt_5.png", "TableImg_Bi63q_4.png"], "original_data_index": 4320, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of all Driver IDs, excluding driver ID 11 from the driver table and excluding driver ID 3 from the school_bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W7cvb_12.png", "TableImg_Lobdn_5.png"], "original_data_index": 4319, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me the driver ID from the driver table, specifically driver ID 2, excluding any driver IDs less than 7 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Go5dn_12.png", "TableImg_Hah13_5.png"], "original_data_index": 4322, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 12, and those from the school bus table with driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_It695_12.png", "TableImg_5g7y6_5.png"], "original_data_index": 4321, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of aircraft IDs, including those that appear in the aircraft table with an ID of 2, and those that appear in the airport_aircraft table with an ID of 5 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E0mza_5.png", "TableImg_6yl25_4.png"], "original_data_index": 4323, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Could you please list the document IDs that are both from the circulation history where the draft number is 17 or higher, or the copy number is not 10, and also from the documents where the document status is not \"working\", the document type is not \"Paper\", the receipt number is \"93\", and either the document ID is not 1 or the receipt date is not \"1974-05-08 00:00:46\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2], "data": [["1"], ["10"], ["20"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Zuxr1_4.png", "TableImg_Qtt0x_15.png"], "original_data_index": 4324, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"draft_number\" >= 17 OR \"copy_number\" <> 10 INTERSECT SELECT document_id FROM Documents WHERE document_status_code != \"working\" AND document_type_code <> \"Paper\" AND receipt_number = \"93\" AND \"document_id\" != 1 OR receipt_date != \"1974-05-08 00:00:46\""} {"question": "Can you give me a list of driver IDs, including those that are equal to 8 from the driver table, and those that are less than 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aulv2_12.png", "TableImg_Qt30x_5.png"], "original_data_index": 4327, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which product with ID 1 is available in stores with an ID greater than 3, but is not product with ID 2?", "answer": {"columns": ["Product_ID"], "index": [0], "data": [["1"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Jhgpx_15.png", "TableImg_Nmvkk_15.png"], "original_data_index": 4328, "original_sql": "SELECT Product_ID FROM store_product WHERE \"Store_ID\" > 3 AND \"Product_ID\" = 1 EXCEPT SELECT Product_ID FROM store_product WHERE \"Product_ID\" = 2"} {"question": "Could you give me a list of driver IDs, including driver ID 6 from the driver table, and all driver IDs except 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bhyo9_12.png", "TableImg_7wd27_5.png"], "original_data_index": 4325, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What is the sum of document IDs for drafts where the draft number is 14 and the draft details are not \"r\", or where the document ID is greater than 13, combined with the sum of document IDs for drafts where the draft number is less than or equal to 17, or where the draft details are not \"e\" and the document ID is greater than 12?", "answer": {"columns": ["SUM(document_id)"], "index": [0, 1], "data": [["74"], ["141"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Axr4z_15.png", "TableImg_B4cse_15.png"], "original_data_index": 4326, "original_sql": "SELECT SUM(document_id) FROM Document_Drafts WHERE \"draft_number\" = 14 AND draft_details != \"r\" OR \"document_id\" > 13 UNION SELECT SUM(document_id) FROM Document_Drafts WHERE \"draft_number\" <= 17 OR draft_details != \"e\" AND \"document_id\" > 12"} {"question": "Which aircraft IDs, excluding aircraft ID 5, are also aircraft ID 1 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9uyor_5.png", "TableImg_X1vku_4.png"], "original_data_index": 4329, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What aircraft IDs are both greater than or equal to 1 in the aircraft table and greater than or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bc1i7_5.png", "TableImg_Wry2h_4.png"], "original_data_index": 4333, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs that are either equal to 9 from the driver table, or less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0cqyb_12.png", "TableImg_Kyyi1_5.png"], "original_data_index": 4331, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are greater than 10, excluding those driver IDs that are less than 10 and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_69da5_12.png", "TableImg_Cz5gg_5.png"], "original_data_index": 4330, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 5, excluding any driver IDs that also appear in the school_bus table, unless that ID is 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_193ke_12.png", "TableImg_6exlh_5.png"], "original_data_index": 4332, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list the driver IDs from the driver table that are less than or equal to 10, combined with the driver IDs from the school_bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z1zfm_12.png", "TableImg_5thw8_5.png"], "original_data_index": 4337, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than 2, and combine that with a list of aircraft IDs from the airport_aircraft table that are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0gzqz_5.png", "TableImg_U1opt_4.png"], "original_data_index": 4334, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 2, and those from the airport_aircraft table that are less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4ky2w_5.png", "TableImg_Ma0fb_4.png"], "original_data_index": 4335, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of aircraft IDs that are equal to 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_69nfg_5.png", "TableImg_07twe_4.png"], "original_data_index": 4336, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 4, from the aircraft table, and combine that with a list of aircraft IDs less than 3 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vhhr8_5.png", "TableImg_I303j_4.png"], "original_data_index": 4340, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Which driver IDs are greater than 1 and also greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M0afj_12.png", "TableImg_Bbue7_5.png"], "original_data_index": 4341, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are both not equal to 4 and also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xuzsx_12.png", "TableImg_J6d70_5.png"], "original_data_index": 4342, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs that are less than 10 from the driver table, excluding any driver IDs that are less than or equal to 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8ooqc_12.png", "TableImg_E3d90_5.png"], "original_data_index": 4343, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me the IDs of people who are at least 187 cm tall, excluding those who either have a money rank of 166 or lower, have made 19 or fewer final tables, or have earnings that are not exactly $189,233?", "answer": {"columns": ["People_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_6tj44_7.png", "TableImg_Smd57_5.png"], "original_data_index": 4344, "original_sql": "SELECT People_ID FROM people WHERE \"Height\" >= 187.0 EXCEPT SELECT People_ID FROM poker_player WHERE \"Money_Rank\" <= 166.0 OR \"Final_Table_Made\" <= 19.0 OR \"Earnings\" <> 189233.0"} {"question": "Can you list the aircraft IDs that are less than 1 from the aircraft table, combined with the aircraft IDs that are not equal to 1 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aissr_5.png", "TableImg_Q20vv_4.png"], "original_data_index": 4345, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Could you give me the IDs of all artists named Jo\u00e3o Suplicy, as well as the IDs of all employees who either live in Calgary and weren't born on February 18, 1962, or weren't hired on October 17, 2003, or don't have the phone number +1 (403) 263-4423, or don't have an ID of 2 and aren't named Callahan and don't have the job title IT Staff and don't live in the state AB, or don't have the email steve@chinookcorp.com?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["97"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['artists' 'employees']", "table_image_ids": ["TableImg_50fts_275.png", "TableImg_V7p4u_8.png"], "original_data_index": 4346, "original_sql": "SELECT id FROM artists WHERE name = \"Jo\u00e3o Suplicy\" UNION ALL SELECT id FROM employees WHERE city = \"Calgary\" AND birth_date != \"1962-02-18 00:00:00\" OR hire_date <> \"2003-10-17 00:00:00\" OR phone = \"+1 (403) 263-4423\" OR \"id\" != 2 AND last_name != \"Callahan\" AND title = \"IT Staff\" AND state != \"AB\" OR email <> \"steve@chinookcorp.com\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 2, and those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Upbkn_12.png", "TableImg_Jrub2_5.png"], "original_data_index": 4347, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of aircraft IDs that are less than 5, excluding any aircraft IDs from the airport aircraft list that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lz1pd_5.png", "TableImg_Kkjeb_4.png"], "original_data_index": 4348, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which company IDs are for companies headquartered in China, excluding those company IDs that are less than 13 in the employment table?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2], "data": [["5"], ["13"], ["19"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Rtr73_19.png", "TableImg_Pzr7d_5.png"], "original_data_index": 4338, "original_sql": "SELECT Company_ID FROM company WHERE Headquarters = \"China\" EXCEPT SELECT Company_ID FROM employment WHERE \"Company_ID\" < 13"} {"question": "Can you give me the color pages per minute, max page size, product name, product ID, and DPI for all products with dimensions not equal to \"300 x 50 x 45\", excluding those products that either have dimensions not equal to \"303 x 94 x 60\" and a product ID greater than 2 and a max page size not equal to \"216mm x 355mm\", or have an interface that is not \"USB 2.0\"?", "answer": {"columns": ["pages_per_minute_color", "max_page_size", "product", "product_id", "dpi"], "index": [0, 1, 2], "data": [["28", "A4", "Plustek MobileOffice D28 Corporate", "2", "600"], ["30", "A4", "Fujitsu fi-6130 A4 Series Scanner", "1", "600"], ["36", "216mm x 355mm", "Canon DR-2080C", "6", "600"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Nl9lf_6.png", "TableImg_Lqyas_6.png"], "original_data_index": 4339, "original_sql": "SELECT pages_per_minute_color, max_page_size, product, product_id, dpi FROM product WHERE dimensions <> \"300 x 50 x 45\" EXCEPT SELECT pages_per_minute_color, max_page_size, product, product_id, dpi FROM product WHERE dimensions <> \"303 x 94 x 60\" AND \"product_id\" > 2 AND max_page_size != \"216mm x 355mm\" OR interface != \"USB 2.0\""} {"question": "Can you give me a list of aircraft IDs that are less than 2, excluding any aircraft IDs that are also equal to 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7bajb_5.png", "TableImg_7w69j_4.png"], "original_data_index": 4349, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you list the aircraft IDs that are greater than 4 in the aircraft table, and also list the aircraft IDs that are equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dhh5k_5.png", "TableImg_Jhpd3_4.png"], "original_data_index": 4351, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zrsxq_12.png", "TableImg_Gucpg_5.png"], "original_data_index": 4350, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 8, and those from the school_bus table with driver IDs of 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q3fo0_12.png", "TableImg_Txgm2_5.png"], "original_data_index": 4352, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are less than 12 and also appear as driver IDs in the school bus list, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W225d_12.png", "TableImg_Y76j3_5.png"], "original_data_index": 4354, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of aircraft IDs that are both less than or equal to 5 and also not equal to 2, considering the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wue2q_5.png", "TableImg_996a7_4.png"], "original_data_index": 4353, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list the aircraft IDs that are greater than 1 from the aircraft table, and combine that with a list of aircraft IDs that are less than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_83uqz_5.png", "TableImg_Ul1ns_4.png"], "original_data_index": 4355, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs that are less than or equal to 10 from the driver table, combined with a list of driver IDs that are not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_117ny_12.png", "TableImg_8q4yr_5.png"], "original_data_index": 4356, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me the Player ID, Coach ID, and Starting Year from the player_coach table, including entries where the Player ID is not 14, or the Coach ID is 3 and the Starting Year is 2010, combined with entries where the Player ID is less than 6 and the Coach ID is less than or equal to 3, or the Starting Year is 2012?", "answer": {"columns": ["Player_ID", "Coach_ID", "Starting_year"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "1", "2010"], ["2", "1", "2011"], ["3", "1", "2012"], ["4", "2", "2013"], ["6", "3", "2012"], ["10", "3", "2011"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_V83yt_7.png", "TableImg_Xg318_7.png"], "original_data_index": 4357, "original_sql": "SELECT Player_ID, Coach_ID, Starting_year FROM player_coach WHERE \"Player_ID\" != 14 OR \"Coach_ID\" = 3 AND \"Starting_year\" = 2010 UNION SELECT Player_ID, Coach_ID, Starting_year FROM player_coach WHERE \"Player_ID\" < 6 AND \"Coach_ID\" <= 3 OR \"Starting_year\" = 2012"} {"question": "Can you give me a list of Member IDs from the member table, including those who don't live in Red Jacket, West Virginia, or are named Matt Lentz with a Member ID less than 7 and a Level of 6 or lower, or have a Card Number that isn't LCB7, combined with a list of Member IDs from the purchase table where the Year isn't 2018 or the Branch ID isn't 6?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["1"], ["2"], ["2"], ["2"], ["3"], ["3"], ["4"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_I8aem_10.png", "TableImg_Er1u0_8.png"], "original_data_index": 4358, "original_sql": "SELECT Member_ID FROM member WHERE Hometown != \"Red Jacket, West Virginia\" OR Name = \"Matt Lentz\" AND \"Member_ID\" < 7 AND \"Level\" <= 6 OR Card_Number != \"LCB7\" UNION ALL SELECT Member_ID FROM purchase WHERE Year <> \"2018\" OR Branch_ID != \"6\""} {"question": "Can you list the aircraft IDs, excluding aircraft ID 5, that appear in the aircraft table but not in the airport_aircraft table where the aircraft ID is 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0j0pj_5.png", "TableImg_Tuq0d_4.png"], "original_data_index": 4362, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs greater than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9azeo_12.png", "TableImg_Lmifb_5.png"], "original_data_index": 4361, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list the number of issues for books where the Book ID is greater than 3 and the title isn't \"Gemini Blood\", or where the number of issues is less than or equal to 9, excluding the number of issues for books where the title isn't \"Michael Moorcock's Multiverse\" and either the Book ID is greater than 6 and the number of issues is less than or equal to 4, or the writer isn't \"Garth Ennis\"?", "answer": {"columns": ["Issues"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["12"], ["4"], ["1"], ["12"], ["5"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_2sbqi_10.png", "TableImg_Nnh0u_10.png"], "original_data_index": 4360, "original_sql": "SELECT Issues FROM book WHERE \"Book_ID\" > 3 AND Title <> \"Gemini Blood\" OR \"Issues\" <= 9.0 NOT IN (SELECT Issues FROM book WHERE Title <> \"Michael Moorcock's Multiverse\" AND \"Book_ID\" > 6 AND \"Issues\" <= 4.0 OR Writer != \"Garth Ennis\")"} {"question": "Can you show me the genders and ranks of coaches, including those who aren't named Jameson Tomas and have a Coach ID greater than 3, or whose rank isn't 1, or whose gender isn't male and have a Club ID of 3 or more, combined with the genders and ranks of players who aren't students, aren't female, and don't have Selkirk\u2014Interlake as a sponsor, and don't live in Birtle, or have a different number of votes than 5502, or have a rank of 2nd, or have a Player ID other than 3, or are named Judy Wasylycia-Leis?", "answer": {"columns": ["Gender", "Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["F", "2"], ["M", "3"], ["M", "4"], ["M", "5"], ["M", "2nd"], ["F", "3rd"], ["F", "1st"], ["M", "2nd"], ["M", "1st"], ["M", "2nd"], ["M", "4th"], ["M", "2nd"], ["M", "3rd"], ["F", "2nd"], ["M", "1st"], ["F", "1st"], ["M", "3rd"], ["F", "3rd"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_99xnf_5.png", "TableImg_A8oik_14.png"], "original_data_index": 4359, "original_sql": "SELECT Gender, Rank FROM coach WHERE Coach_name != \"Jameson Tomas\" AND \"Coach_ID\" > 3 OR \"Rank\" != 1 OR Gender != \"M\" AND \"Club_ID\" >= 3 UNION ALL SELECT Gender, Rank FROM player WHERE Occupation <> \"Student\" AND Gender <> \"F\" AND Sponsor_name != \"Selkirk\u2014Interlake\" AND Residence <> \"Birtle\" OR \"Votes\" <> 5502 OR Rank = \"2nd\" OR \"Player_ID\" <> 3 OR Player_name = \"Judy Wasylycia-Leis\""} {"question": "Can you give me a list of aircraft IDs, including those that appear with an ID of 3 in the aircraft table and those that appear with an ID of 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3e9fa_5.png", "TableImg_Ppu1d_4.png"], "original_data_index": 4363, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you list the driver IDs that are less than 5 from the driver table, and combine that with a list of driver IDs that are greater than 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7zbv9_12.png", "TableImg_2ewsn_5.png"], "original_data_index": 4365, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Could you list the document IDs from the Documents_Mailed table where the document ID is not 13, or the mailed-to address ID is greater than 8 and the mailing date is May 24, 1993 at 10:13 PM, combined with the document IDs from the Draft_Copies table where the draft number is not 20?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["7"], ["10"], ["12"], ["14"], ["20"], ["23"], ["24"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_3x403_14.png", "TableImg_Cyxf1_8.png"], "original_data_index": 4364, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"document_id\" <> 13 OR \"mailed_to_address_id\" > 8 AND mailing_date = \"1993-05-24 22:13:48\" UNION SELECT document_id FROM Draft_Copies WHERE \"draft_number\" <> 20"} {"question": "Can you list the aircraft IDs that are less than or equal to 4, excluding those aircraft IDs that appear in the airport aircraft list, unless that ID is 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1t67v_5.png", "TableImg_Jfgvm_4.png"], "original_data_index": 4366, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me the Country, Id, Maker, and FullName of all car makers, excluding those with an Id greater than 7 and a Maker that isn't Volvo, but only including those where the Country isn't \"1\" or the FullName isn't \"Nissan Motors\"?", "answer": {"columns": ["Country", "Id", "Maker", "FullName"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1", "1", "amc", "American Motor Company"], ["1", "4", "gm", "General Motors"], ["1", "5", "ford", "Ford Motor Company"], ["1", "6", "chrysler", "Chrysler"], ["2", "2", "volkswagen", "Volkswagen"], ["2", "3", "bmw", "BMW"], ["3", "7", "citroen", "Citroen"], ["6", "21", "volvo", "Volvo"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_E4nrk_22.png", "TableImg_S26r8_22.png"], "original_data_index": 4369, "original_sql": "SELECT Country, Id, Maker, FullName FROM car_makers WHERE Country != \"1\" OR FullName != \"Nissan Motors\" EXCEPT SELECT Country, Id, Maker, FullName FROM car_makers WHERE \"Id\" > 7 AND Maker <> \"volvo\""} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 3 from the aircraft table, combined with all aircraft IDs, excluding aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Co7jp_5.png", "TableImg_Ucgx5_4.png"], "original_data_index": 4370, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Could you give me the names, ages, IDs, and graduation colleges of people who either have an ID of 7 or higher, are from the United Kingdom, or are younger than 37, but only if they also have an ID lower than 4 or are at least 27 years old?", "answer": {"columns": ["Name", "Age", "People_ID", "Graduation_College"], "index": [0, 1, 2, 3, 4, 5], "data": [["Brad Lohaus", "25", "2", "Iowa"], ["Darryl Kennedy", "31", "4", "Oklahoma"], ["David Butler", "34", "5", "California"], ["Jerry Corcoran", "30", "7", "Northeastern"], ["Reggie Lewis", "27", "1", "Northeastern"], ["Tom Sheehey", "37", "3", "Virginia"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_4ru6l_7.png", "TableImg_Ymlc0_7.png"], "original_data_index": 4371, "original_sql": "SELECT Name, Age, People_ID, Graduation_College FROM people WHERE \"People_ID\" >= 7 OR Nationality = \"United Kindom\" OR \"Age\" < 37 INTERSECT SELECT Name, Age, People_ID, Graduation_College FROM people WHERE \"People_ID\" < 4 OR \"Age\" >= 27"} {"question": "Can you list the aircraft IDs that are less than 3 from the aircraft table, and also list the aircraft IDs that are greater than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Svxh5_5.png", "TableImg_Ip9z3_4.png"], "original_data_index": 4372, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of employee IDs from the circulation history where either the draft number isn't 2, or the document ID isn't 10 and the employee ID is 2 or greater, combined with a list of employee IDs from the employees table where the employee's name is Kenyon and their other details are \"v\"?", "answer": {"columns": ["employee_id"], "index": [0, 1, 2], "data": [["8"], ["2"], ["2"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_Wisw1_4.png", "TableImg_D9ty1_6.png"], "original_data_index": 4373, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"draft_number\" != 2 OR \"document_id\" != 10 AND \"employee_id\" >= 2 UNION ALL SELECT employee_id FROM Employees WHERE employee_name = \"Kenyon\" AND other_details = \"v\""} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 5, and those from the school bus table with driver IDs of 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q0m2f_12.png", "TableImg_Byxfv_5.png"], "original_data_index": 4374, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me the driver ID that appears exactly once as 10 in the driver table but does not appear as a driver ID greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jfy7v_12.png", "TableImg_Vmnxm_5.png"], "original_data_index": 4375, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which aircraft IDs, excluding aircraft ID 2, are also aircraft IDs less than 3 that appear in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4u7mm_5.png", "TableImg_Mwckx_4.png"], "original_data_index": 4376, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me the city population, district name, headquartered city, district ID, and city area for districts that either have a District ID other than 4 and a city area greater than 15, or are headquartered in Kasur City, but only if they also have a district name of Khanewal District or a city population of at least 464742?", "answer": {"columns": ["City_Population", "District_name", "Headquartered_City", "District_ID", "City_Area"], "index": [0, 1, 2, 3, 4], "data": [["165038", "Khanewal District", "Khanewal City", "15", "17"], ["464742", "Dera Ghazi Khan District", "Dera Ghazi Khan City", "7", "22"], ["530438", "Bahawalpur District", "Bahawalpur City", "3", "38"], ["1526168", "Gujranwala District", "Gujranwala City", "9", "75"], ["2793721", "Faisalabad District", "Faisalabad City", "8", "147"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_E8ljp_15.png", "TableImg_Mjrl8_15.png"], "original_data_index": 4377, "original_sql": "SELECT City_Population, District_name, Headquartered_City, District_ID, City_Area FROM district WHERE \"District_ID\" != 4 AND \"City_Area\" > 15.0 OR Headquartered_City = \"Kasur City\" INTERSECT SELECT City_Population, District_name, Headquartered_City, District_ID, City_Area FROM district WHERE District_name = \"Khanewal District\" OR \"City_Population\" >= 464742.0"} {"question": "Can you give me a list of driver IDs that are less than or equal to 1, excluding any driver IDs that are greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iihmm_12.png", "TableImg_Io45p_5.png"], "original_data_index": 4380, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are less than 12, but exclude any driver IDs less than 10 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uzvms_12.png", "TableImg_Kml8o_5.png"], "original_data_index": 4367, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are greater than 6 from the driver table, excluding those driver IDs that are greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mzj1b_12.png", "TableImg_Wdqnn_5.png"], "original_data_index": 4381, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are greater than 4 and also not equal to 3, considering only unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ls99_12.png", "TableImg_Y3vf1_5.png"], "original_data_index": 4382, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 4, but then remove any aircraft IDs that also appear in the airport_aircraft table and are greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6q949_5.png", "TableImg_N3dxt_4.png"], "original_data_index": 4384, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5cnjj_5.png", "TableImg_Zp7es_4.png"], "original_data_index": 4383, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 7, and those from the school bus table excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E21st_12.png", "TableImg_Obm8k_5.png"], "original_data_index": 4385, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are both greater than or equal to 5 in the driver table and greater than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ccu8f_12.png", "TableImg_Aplar_5.png"], "original_data_index": 4387, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "How many payments were made and what are the mobile phone numbers of customers, considering only payments not made via direct debit on February 6, 2018, at 1:35 PM for good customers with phone numbers other than (662)490-3108, or payments of 1708.18, or customers who became customers on October 5, 2017, at 2:15 PM and were born on September 18, 1998, at 4:45 AM, or have an outstanding amount of at least 9332.0, or have the email address kroberts@example.org?", "answer": {"columns": ["COUNT(T1.amount_payment)", "cell_mobile_phone_number"], "index": [0], "data": [["2", "577-584-4864"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Ljr10_15.png", "TableImg_Xgaxd_15.png"], "original_data_index": 4386, "original_sql": "SELECT COUNT(T1.amount_payment), T2.cell_mobile_phone_number FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code <> \"Direct Debit\" AND datetime_payment = \"2018-02-06 13:35:58\" AND customer_status_code = \"Good Customer\" AND phone_number <> \"(662)490-3108\" OR amount_payment = 1708.18 OR date_became_customer = \"2017-10-05 14:15:46\" AND date_of_birth = \"1998-09-18 04:45:01\" OR amount_outstanding >= 9332.0 OR email_address = \"kroberts@example.org\""} {"question": "Can you give me a list of all the driver IDs, excluding driver ID 9 from the driver table and excluding driver ID 7 from the school bus table, making sure there are no duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_73q1v_12.png", "TableImg_Z40gf_5.png"], "original_data_index": 4388, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 5, with those from the school bus table that are 10 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ugxy_12.png", "TableImg_3t0jx_5.png"], "original_data_index": 4389, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Could you give me a list of album IDs for albums that aren't titled \"The Doors\", combined with a list of playlist IDs that are greater than 16 and don't have the name \"On-The-Go 1\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_4jz9z_347.png", "TableImg_3jp5t_18.png"], "original_data_index": 4379, "original_sql": "SELECT id FROM albums WHERE title <> \"The Doors\" UNION SELECT id FROM playlists WHERE \"id\" > 16 AND name != \"On-The-Go 1\""} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 2, and those from the airport_aircraft table that are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hsup3_5.png", "TableImg_2wv32_4.png"], "original_data_index": 4378, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Could you list the car models from the car names table where the make is not \"toyota corona liftback\", or where the \"MakeId\" is 25 and the model is not \"ford\", but exclude any models that are in the model list table where the \"ModelId\" is greater than 18, the \"Maker\" is 2, or the model is \"peugeot\"?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [[" volkswagen"], ["amc"], ["bmw"], ["buick"], ["cadillac"], ["capri"], ["chevrolet"], ["chrysler"], ["citroen"], ["datsun"], ["dodge"], ["fiat"], ["ford"], ["hi"], ["honda"], ["mazda"], ["mercedes"], ["mercedes-benz"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_B3n1c_406.png", "TableImg_D4e66_36.png"], "original_data_index": 4393, "original_sql": "SELECT Model FROM car_names WHERE Make <> \"toyota corona liftback\" OR \"MakeId\" = 25 AND Model != \"ford\" EXCEPT SELECT Model FROM model_list WHERE \"ModelId\" > 18 OR \"Maker\" = 2 OR Model = \"peugeot\""} {"question": "Can you give me a list of driver IDs that are 10 or less, excluding any driver IDs that are also 7 or greater in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W2suy_12.png", "TableImg_6dvyw_5.png"], "original_data_index": 4391, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Could you give me the store IDs for stores named \"Miramichi\" that either don't have 793 product categories or don't have an area size of 26.69, along with the store IDs that are associated with products other than product ID 3?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_N7rgu_5.png", "TableImg_X667s_15.png"], "original_data_index": 4390, "original_sql": "SELECT Store_ID FROM store WHERE Store_Name = \"Miramichi\" AND \"Number_of_product_category\" <> 793.0 OR \"Area_size\" != 26.69 UNION SELECT Store_ID FROM store_product WHERE \"Product_ID\" <> 3"} {"question": "Could you give me the school IDs for schools that either don't have an IHSAA football class of AAA, are named Triton, or don't have Cougars as their mascot, combined with the school IDs from the budget table where the school ID is less than 2, the budgeted amount is less than or equal to 3666, the total budget percent invested is greater than or equal to 2.2, the invested amount is greater than or equal to 8335, the budget invested percent is 122.5, the year is not 2001, or the total budget percent budgeted is less than 2.0?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_3o71d_8.png", "TableImg_2anuh_8.png"], "original_data_index": 4392, "original_sql": "SELECT School_id FROM School WHERE IHSAA_Football_Class != \"AAA\" OR School_name = \"Triton\" OR Mascot <> \"Cougars\" UNION SELECT School_id FROM budget WHERE \"School_id\" < 2 OR \"Budgeted\" <= 3666 OR \"total_budget_percent_invested\" >= 2.2 OR \"Invested\" >= 8335 OR Budget_invested_percent = \"122.5\" OR \"Year\" != 2001 OR \"total_budget_percent_budgeted\" < 2.0"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school_bus table where the ID is 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ga57_12.png", "TableImg_0718a_5.png"], "original_data_index": 4394, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs, other than driver ID 1, are also driver ID 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J00km_12.png", "TableImg_9tjg9_5.png"], "original_data_index": 4395, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 4, that are in the aircraft table but not in the airport_aircraft table, where the aircraft IDs in the airport_aircraft table are less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8wa9d_5.png", "TableImg_N66s0_4.png"], "original_data_index": 4396, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 1, combined with a list of driver IDs from the school_bus table that are exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z6os6_12.png", "TableImg_K12v9_5.png"], "original_data_index": 4398, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me the names and numbers of all contestants with numbers 10 or less, along with the name and number of any contestant named Jessie Alloway who has a number of 3 or greater?", "answer": {"columns": ["contestant_name", "contestant_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["Alana Bregman", "5"], ["Allie Rogalski", "7"], ["Edwina Burnam", "1"], ["Ericka Dieter", "10"], ["Jessie Alloway", "4"], ["Jessie Eichman", "6"], ["Kelly Clauss", "3"], ["Kurt Walser", "9"], ["Nita Coster", "8"], ["Tabatha Gehling", "2"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Ytpnm_11.png", "TableImg_Xmcy7_11.png"], "original_data_index": 4399, "original_sql": "SELECT contestant_name, contestant_number FROM CONTESTANTS WHERE \"contestant_number\" <= 10 UNION SELECT contestant_name, contestant_number FROM CONTESTANTS WHERE \"contestant_number\" >= 3 AND contestant_name = \"Jessie Alloway\""} {"question": "Can you show me the paragraph text, the earliest other details, the document ID, and the earliest paragraph ID from the paragraphs table, combining results where either the paragraph ID is greater than 9946, the document ID is less than or equal to 80, the paragraph text is \"UK\", or the other details are not \"None\", with results where the other details are \"None\"?", "answer": {"columns": ["Paragraph_Text", "MIN(Other_Details)", "Document_ID", "MIN(Paragraph_ID)"], "index": [0, 1], "data": [["Somalia", "", "3.0", "9.0"], ["", "", "", ""]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_0f2d8_15.png", "TableImg_Iepmu_15.png"], "original_data_index": 4397, "original_sql": "SELECT Paragraph_Text, MIN(Other_Details), Document_ID, MIN(Paragraph_ID) FROM Paragraphs WHERE \"Paragraph_ID\" > 9946 OR \"Document_ID\" <= 80 OR Paragraph_Text = \"UK\" OR Other_Details <> \"None\" UNION ALL SELECT Paragraph_Text, MIN(Other_Details), Document_ID, MIN(Paragraph_ID) FROM Paragraphs WHERE Other_Details = \"None\""} {"question": "Which driver has an ID of 3 and also has an ID less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N2g7u_12.png", "TableImg_0ngta_5.png"], "original_data_index": 4400, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or greater, and those from the school bus table that are 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W3s2d_12.png", "TableImg_Bqkry_5.png"], "original_data_index": 4403, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Could you give me the School IDs for schools that are either \"Columbia University\" kindergartens with a School ID less than 2, or are private schools, or are not located in Jakarta, Indonesia, but excluding any School IDs that also appear in the school bus table with a Driver ID that is not 4?", "answer": {"columns": ["School_ID"], "index": [0], "data": [["6"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_Hb481_7.png", "TableImg_St7e1_5.png"], "original_data_index": 4402, "original_sql": "SELECT School_ID FROM school WHERE School = \"Columbia University\" AND Grade = \"Kindergarten\" AND \"School_ID\" < 2 OR Type = \"Private\" OR Location <> \"Jakarta, Indonesia\" EXCEPT SELECT School_ID FROM school_bus WHERE \"Driver_ID\" != 4"} {"question": "Could you give me a list of Book IDs from the book table where the number of issues is not 12, excluding any Book IDs that also appear in the publication table where the publication date is not in October 2005 and the price is not 15,000,000?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["6"], ["8"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_Zue14_10.png", "TableImg_Svjiu_7.png"], "original_data_index": 4401, "original_sql": "SELECT Book_ID FROM book WHERE \"Issues\" <> 12.0 EXCEPT SELECT Book_ID FROM publication WHERE Publication_Date <> \"October 2005\" AND \"Price\" != 15000000.0"} {"question": "Can you give me a list of all Driver IDs, excluding Driver ID 9 from the driver table and Driver ID 3 from the school_bus table, making sure there are no duplicates in the final list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mg3xq_12.png", "TableImg_Ndk7u_5.png"], "original_data_index": 4405, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only aircraft IDs up to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qcnvu_5.png", "TableImg_Sdb1q_4.png"], "original_data_index": 4404, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Which aircraft IDs are both greater than 1 when grouped in the aircraft table and equal to 3 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lcn9l_5.png", "TableImg_Vfkbw_4.png"], "original_data_index": 4409, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you list all the aircraft IDs, including those from the aircraft table that are not equal to 5, and those from the airport_aircraft table that are equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5pe44_5.png", "TableImg_Uveuf_4.png"], "original_data_index": 4408, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you list the rank and club ID for coaches, excluding James Wong, or those with a rank less than 3 who are not female and have a coach ID other than 4, except for those entries from match results where the club ID isn't 4, or the rank is greater than 5, or the bronze is at least 8 while the small silver is 16, the points are 84, and the gold isn't 5?", "answer": {"columns": ["Rank", "Club_ID"], "index": [0, 1], "data": [["2", "1"], ["5", "1"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Idpsq_5.png", "TableImg_Grkwp_6.png"], "original_data_index": 4407, "original_sql": "SELECT Rank, Club_ID FROM coach WHERE Coach_name != \"James Wong\" OR \"Rank\" < 3 AND Gender != \"F\" AND \"Coach_ID\" != 4 EXCEPT SELECT Rank, Club_ID FROM match_result WHERE \"Club_ID\" != 4 OR \"Rank\" > 5 OR \"Bronze\" >= 8 AND \"Small_Silver\" = 16 AND \"Points\" = 84 AND \"Gold\" != 5"} {"question": "Can you give me a list of driver IDs, including driver ID 3 from the driver table and any driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rfn6g_12.png", "TableImg_U2g60_5.png"], "original_data_index": 4410, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Could you list all the feature type names, including those with the feature type code \"Security\", but excluding any named \"Amenity, eg Pool.\"?", "answer": {"columns": ["feature_type_name"], "index": [0, 1], "data": [["Securiyt, eg Burglar Alarm."], ["Securiyt, eg Burglar Alarm."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Q7xoy_2.png", "TableImg_Zj9op_2.png"], "original_data_index": 4411, "original_sql": "SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\" UNION ALL SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code = \"Security\" AND feature_type_name <> \"Amenity, eg Pool.\""} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 2, excluding those drivers whose IDs are not equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mxapj_12.png", "TableImg_X5iap_5.png"], "original_data_index": 4412, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs less than or equal to 8, excluding any driver IDs less than 9 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0gw63_12.png", "TableImg_Kkbj9_5.png"], "original_data_index": 4413, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 4 and not equal to 3, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wrtt1_12.png", "TableImg_T2kt8_5.png"], "original_data_index": 4414, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are greater than 11 from the driver table, combined with a list of driver IDs that are greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q10ba_12.png", "TableImg_Bptdh_5.png"], "original_data_index": 4416, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are not 12 and are also greater than 9, considering only drivers who appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dm7ge_12.png", "TableImg_Fx50d_5.png"], "original_data_index": 4417, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of Club IDs, including those from clubs that aren't named \"Bootup Baltimore\", along with Club IDs from the Member_of_club table where the position isn't \"Vice-President\", the Club ID is less than or equal to 2, and the Student ID is less than 1010?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["4"], ["1"], ["2"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_0153d_4.png", "TableImg_So947_4.png"], "original_data_index": 4415, "original_sql": "SELECT ClubID FROM Club WHERE ClubName <> \"Bootup Baltimore\" UNION ALL SELECT ClubID FROM Member_of_club WHERE Position <> \"Vice-President\" AND \"ClubID\" <= 2 AND \"StuID\" < 1010"} {"question": "Which driver IDs are both less than or equal to 12 in the driver table and equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E8fp6_12.png", "TableImg_64un9_5.png"], "original_data_index": 4418, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the Driver IDs that are both less than or equal to 12 in the driver table and equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F4r2d_12.png", "TableImg_Jw7ah_5.png"], "original_data_index": 4419, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Njbkq_12.png", "TableImg_Kiyg3_5.png"], "original_data_index": 4420, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are less than or equal to 4, excluding any driver IDs from the school bus list that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5tefz_12.png", "TableImg_Rfk54_5.png"], "original_data_index": 4421, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are less than 10, excluding the driver ID 4 if it's on the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9y10j_12.png", "TableImg_B8npd_5.png"], "original_data_index": 4422, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, first from the driver table excluding driver ID 7, and then from the school bus table including only driver IDs less than 7, making sure to remove any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fwlq7_12.png", "TableImg_C6lvo_5.png"], "original_data_index": 4424, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of store IDs that either belong to a district with an ID of 4 or higher, or have a store ID less than 4, and also include the store IDs that sell product number 1?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["1"], ["2"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_6a6xr_5.png", "TableImg_3h1wy_15.png"], "original_data_index": 4423, "original_sql": "SELECT Store_ID FROM store_district WHERE \"District_ID\" >= 4 OR \"Store_ID\" < 4 UNION ALL SELECT Store_ID FROM store_product WHERE \"Product_ID\" = 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs less than 3 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wr52c_12.png", "TableImg_Uocge_5.png"], "original_data_index": 4426, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs that are less than 10 and also not equal to 3, considering all driver IDs in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_68i9e_12.png", "TableImg_Nrkjo_5.png"], "original_data_index": 4425, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the aircraft IDs that are less than or equal to 5 from the aircraft table, and also list the aircraft IDs that are greater than 3 from the airport_aircraft table, combining both lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Audxk_5.png", "TableImg_3a13i_4.png"], "original_data_index": 4427, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 12, and those from the school bus table that are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rb00e_12.png", "TableImg_Rqs5f_5.png"], "original_data_index": 4430, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the Branch ID, Member ID, and Year for all purchases made in years other than 2018 where the Member ID is less than 2, combined with a list of Branch ID, Member ID, and Year for all purchases where the Member ID is 6 or greater, or the total pounds purchased is 232.09 or greater and the year is not 2018, or the Branch ID is not 5?", "answer": {"columns": ["Branch_ID", "Member_ID", "Year"], "index": [0, 1, 2, 3, 4, 5], "data": [["3", "1", "2018"], ["1", "3", "2017"], ["1", "4", "2018"], ["6", "6", "2018"], ["2", "2", "2018"], ["3", "2", "2018"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_Rdyvu_8.png", "TableImg_5gzbc_8.png"], "original_data_index": 4428, "original_sql": "SELECT Branch_ID, Member_ID, Year FROM purchase WHERE Year <> \"2018\" AND \"Member_ID\" < 2 UNION ALL SELECT Branch_ID, Member_ID, Year FROM purchase WHERE \"Member_ID\" >= 6 OR \"Total_pounds\" >= 232.09 AND Year != \"2018\" OR Branch_ID != \"5\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that appear in the driver table but not in the school_bus table, where driver ID 7 is also excluded from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Re0kx_12.png", "TableImg_Finsv_5.png"], "original_data_index": 4431, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are both less than or equal to 3 in the driver table and greater than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2zi3n_12.png", "TableImg_2b92o_5.png"], "original_data_index": 4433, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 1, excluding any driver IDs from the school_bus table that are greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H9pp3_12.png", "TableImg_3w19o_5.png"], "original_data_index": 4432, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you show me the city population, district name, and smallest city area for districts where either the district name isn't Faisalabad District, or the city area is less than 75, or the headquartered city is Chakwal City, or the city population isn't 172073, combined with the city population, district name, and smallest city area for districts where the headquartered city is Khanewal City and the city area is greater than 147, or the district name isn't Hafizabad District?", "answer": {"columns": ["City_Population", "District_name", "MIN(City_Area)"], "index": [0, 1], "data": [["113524", "Chakwal District", "10"], ["113524", "Chakwal District", "10"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_Aaxi8_15.png", "TableImg_Gt9kf_15.png"], "original_data_index": 4434, "original_sql": "SELECT City_Population, District_name, MIN(City_Area) FROM district WHERE District_name != \"Faisalabad District\" OR \"City_Area\" < 75.0 OR Headquartered_City = \"Chakwal City\" OR \"City_Population\" != 172073.0 UNION ALL SELECT City_Population, District_name, MIN(City_Area) FROM district WHERE Headquartered_City = \"Khanewal City\" AND \"City_Area\" > 147.0 OR District_name <> \"Hafizabad District\""} {"question": "Can you give me the driver ID that appears exactly once as driver but not as school bus driver, where the driver ID is 6 and not 7 respectively?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wo27p_12.png", "TableImg_Vntnf_5.png"], "original_data_index": 4429, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the names of employees who don't live in Bristol, excluding the names of shop managers who aren't Pekka Lyyski?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Andrew Sheridan"], ["Lee Mears"], ["Louis Deacon"], ["Matt Stevens"], ["Phil Vickery"], ["Steve Borthwick"], ["Tim Payne"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_N7z9g_10.png", "TableImg_Q8aj3_9.png"], "original_data_index": 4436, "original_sql": "SELECT Name FROM employee WHERE City <> \"Bristol\" EXCEPT SELECT Name FROM shop WHERE Manager_name <> \"Pekka Lyyski\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 3 or greater, and those from the school bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rxlnl_12.png", "TableImg_Vrlst_5.png"], "original_data_index": 4435, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 9, with those from the school bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jp6h7_12.png", "TableImg_L143w_5.png"], "original_data_index": 4438, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Could you give me the document IDs that are both from documents mailed where the document ID is greater than 4 or the mailed-to address ID is not 4, and from draft copies where the copy number is 4?", "answer": {"columns": ["document_id"], "index": [0], "data": [["2"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Bbvo1_14.png", "TableImg_Bht80_8.png"], "original_data_index": 4437, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"document_id\" > 4 OR \"mailed_to_address_id\" != 4 INTERSECT SELECT document_id FROM Draft_Copies WHERE \"copy_number\" = 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 11, and those from the school bus table that are greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Su6r1_12.png", "TableImg_7yocx_5.png"], "original_data_index": 4441, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list the aircraft IDs, first including those from the aircraft table that are not equal to 1, and then adding those from the airport_aircraft table that are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xk820_5.png", "TableImg_Xk8td_4.png"], "original_data_index": 4440, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which aircraft have an ID of 2 and are also associated with airports that don't have an aircraft ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tc6mc_5.png", "TableImg_Lay63_4.png"], "original_data_index": 4442, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs less than or equal to 12, excluding those driver IDs that are not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zjew7_12.png", "TableImg_C82g2_5.png"], "original_data_index": 4439, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs, excluding driver ID 6, are not also driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y0egp_12.png", "TableImg_Lroh0_5.png"], "original_data_index": 4445, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are greater than 6 with those from the school bus table that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5aooz_12.png", "TableImg_9n0q3_5.png"], "original_data_index": 4444, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 8, and those from the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wmbtu_12.png", "TableImg_U5mxx_5.png"], "original_data_index": 4446, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are greater than 2, and also include driver IDs from the school bus list that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1o2sr_12.png", "TableImg_Oawsc_5.png"], "original_data_index": 4443, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the total ClubID and the StuID for club presidents, excluding those in Hopkins Student Enterprises?", "answer": {"columns": ["SUM(T1.ClubID)", "StuID"], "index": [0], "data": [["1", "1001"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_V9fde_4.png", "TableImg_Qtd0t_4.png"], "original_data_index": 4449, "original_sql": "SELECT SUM(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE Position = \"President\" AND ClubName <> \"Hopkins Student Enterprises\""} {"question": "Can you list the driver IDs from the driver table that are less than or equal to 5, and combine that with a list of driver IDs from the school_bus table that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1nsca_12.png", "TableImg_Lchlh_5.png"], "original_data_index": 4448, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs, excluding driver ID 10, are present in both the driver table and the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Km7rf_12.png", "TableImg_Dtgr0_5.png"], "original_data_index": 4450, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which aircraft IDs are not equal to 5 and are also less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5cecy_5.png", "TableImg_J5tq8_4.png"], "original_data_index": 4447, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs that are less than or equal to 1, excluding those driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zkieb_12.png", "TableImg_S8s4t_5.png"], "original_data_index": 4451, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs, that are at least 7, appear in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D5j90_12.png", "TableImg_Ped7a_5.png"], "original_data_index": 4456, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 3, excluding any driver IDs that are not equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hst0q_12.png", "TableImg_Sdmtx_5.png"], "original_data_index": 4455, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are not 7 and are also less than 9, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lc362_12.png", "TableImg_0qsp4_5.png"], "original_data_index": 4453, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are not equal to 6, and then remove from that list any driver IDs that are less than or equal to 4 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nm4l8_12.png", "TableImg_Moy3a_5.png"], "original_data_index": 4457, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me the driver ID that appears exactly once with the value 2 in the driver table, but does not appear with a value of 10 or greater in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rbktn_12.png", "TableImg_Cy4jg_5.png"], "original_data_index": 4459, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding ID 2, and then from the airport_aircraft table including only IDs up to 5, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ygrb0_5.png", "TableImg_22baz_4.png"], "original_data_index": 4460, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Could you give me a list of IDs, combining IDs from car makers that aren't Renault and aren't from country code 1, or where the ID isn't 7, with IDs from car data where the MPG isn't 26.5, the horsepower isn't 67, and the ID is greater than 34?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["338"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["348"], ["349"], ["350"], ["351"], ["352"], ["353"], ["355"], ["356"], ["357"], ["358"], ["359"], ["360"], ["361"], ["362"], ["363"], ["364"], ["365"], ["366"], ["367"], ["368"], ["369"], ["370"], ["371"], ["372"], ["373"], ["374"], ["375"], ["376"], ["377"], ["378"], ["379"], ["380"], ["381"], ["382"], ["383"], ["384"], ["385"], ["386"], ["387"], ["388"], ["389"], ["390"], ["391"], ["395"], ["396"], ["397"], ["398"], ["399"], ["400"], ["401"], ["402"], ["403"], ["404"], ["405"], ["406"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Zlwjc_22.png", "TableImg_84ppx_406.png"], "original_data_index": 4458, "original_sql": "SELECT Id FROM car_makers WHERE FullName <> \"Renault\" AND Country != \"1\" OR \"Id\" != 7 UNION ALL SELECT Id FROM cars_data WHERE MPG <> \"26.5\" AND Horsepower <> \"67\" AND \"Id\" > 34"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 2, and those from the airport_aircraft table that are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K5529_5.png", "TableImg_4fyw2_4.png"], "original_data_index": 4461, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me the Member IDs, total pounds, and years from the purchase table, but exclude any records where the Branch ID is 3 and the year is 2018, and only include Member IDs that are 4 or greater?", "answer": {"columns": ["Member_ID", "Total_pounds", "Year"], "index": [0, 1], "data": [["4", "20.99", "2018"], ["6", "232.09", "2018"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_90vl7_8.png", "TableImg_Ntzzs_8.png"], "original_data_index": 4462, "original_sql": "SELECT Member_ID, Total_pounds, Year FROM purchase WHERE \"Member_ID\" >= 4 EXCEPT SELECT Member_ID, Total_pounds, Year FROM purchase WHERE Branch_ID = \"3\" AND Year = \"2018\""} {"question": "What colleges did people other than Reggie Lewis graduate from, that are also the graduation colleges of people at least 31 years old, excluding Northeastern?", "answer": {"columns": ["Graduation_College"], "index": [0, 1, 2, 3], "data": [["California"], ["Oklahoma"], ["Virginia"], ["Wisconsin\u2013Stevens Point"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Nr4tq_7.png", "TableImg_Y3ldc_7.png"], "original_data_index": 4464, "original_sql": "SELECT Graduation_College FROM people WHERE Name != \"Reggie Lewis\" INTERSECT SELECT Graduation_College FROM people WHERE \"Age\" >= 31 AND Graduation_College != \"Northeastern\""} {"question": "Can you give me the mailing date, document ID, and mailed-to address ID for all documents mailed where the address ID is 8 or less, or the mailing date was January 1st, 2007 at 10:32 PM and the document ID is not 23, except for those documents where the mailing date was not November 3rd, 1971 at 12:32 PM?", "answer": {"columns": ["mailing_date", "document_id", "mailed_to_address_id"], "index": [0], "data": [["1971-11-03 12:32:14", "23", "8"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_377c6_14.png", "TableImg_45yjq_14.png"], "original_data_index": 4463, "original_sql": "SELECT mailing_date, document_id, mailed_to_address_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <= 8 OR mailing_date = \"2007-01-01 22:32:11\" AND \"document_id\" != 23 EXCEPT SELECT mailing_date, document_id, mailed_to_address_id FROM Documents_Mailed WHERE mailing_date <> \"1971-11-03 12:32:14\""} {"question": "Which driver IDs, excluding driver 6, are also bus driver IDs, excluding bus driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_92mhy_12.png", "TableImg_00mji_5.png"], "original_data_index": 4454, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or higher, and also including driver IDs from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1k89l_12.png", "TableImg_Ai3k1_5.png"], "original_data_index": 4468, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are not 12 and are also driver IDs of school buses where the driver ID is at least 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Usnfm_12.png", "TableImg_Kcl7o_5.png"], "original_data_index": 4465, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list the aircraft IDs that are less than 1, and also list the aircraft IDs from the airport aircraft list that are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9b63i_5.png", "TableImg_3fxdf_4.png"], "original_data_index": 4467, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of aircraft IDs that are greater than 2, excluding any aircraft IDs that are also equal to 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Snlbr_5.png", "TableImg_8idst_4.png"], "original_data_index": 4466, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Could you list the feature IDs from the 'Other_Available_Features' table where the feature name is not \"AirCon\", and also include the feature IDs from the 'Other_Property_Features' table where the feature ID is 2 or the property ID is less than or equal to 7?", "answer": {"columns": ["feature_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["3"], ["4"], ["2"], ["2"], ["3"], ["3"], ["2"], ["3"], ["3"], ["2"], ["2"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_T9ed3_3.png", "TableImg_W5j9p_15.png"], "original_data_index": 4469, "original_sql": "SELECT feature_id FROM Other_Available_Features WHERE feature_name != \"AirCon\" UNION ALL SELECT feature_id FROM Other_Property_Features WHERE \"feature_id\" = 2 OR \"property_id\" <= 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 7, that are in the driver table but not in the school bus table where the driver ID is less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_53ura_12.png", "TableImg_8wgsh_5.png"], "original_data_index": 4470, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the sum of the shipping agent codes and their descriptions that are both associated with the code \"UP\" and either the code \"UP\" or the name \"Airline\"?", "answer": {"columns": ["SUM(shipping_agent_code)", "shipping_agent_description"], "index": [0], "data": [["0", "g"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_69637_5.png", "TableImg_Yr8wg_5.png"], "original_data_index": 4471, "original_sql": "SELECT SUM(shipping_agent_code), shipping_agent_description FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"UP\" INTERSECT SELECT SUM(shipping_agent_code), shipping_agent_description FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"UP\" OR shipping_agent_name = \"Airline\""} {"question": "Can you give me a list of driver IDs that are less than 11 and also appear as driver IDs in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bwgr9_12.png", "TableImg_Xb1dz_5.png"], "original_data_index": 4472, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 1, from the aircraft table, and combine that with a list of aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V6zwv_5.png", "TableImg_89q95_4.png"], "original_data_index": 4474, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of employee IDs from the certificate table where the ID is greater than or equal to 269734834, combined with a list of employee IDs from the employee table for anyone named William Moore or anyone with an ID not equal to 356187925?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80], "data": [["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["274878974"], ["274878974"], ["310454876"], ["310454876"], ["355548984"], ["355548984"], ["356187925"], ["390487451"], ["390487451"], ["390487451"], ["548977562"], ["550156548"], ["550156548"], ["552455318"], ["552455318"], ["552455318"], ["556784565"], ["556784565"], ["556784565"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["573284895"], ["573284895"], ["573284895"], ["574489456"], ["574489456"], ["574489457"], ["242518965"], ["141582651"], ["11564812"], ["567354612"], ["552455318"], ["550156548"], ["390487451"], ["274878974"], ["254099823"], ["355548984"], ["310454876"], ["489456522"], ["489221823"], ["548977562"], ["310454877"], ["142519864"], ["269734834"], ["287321212"], ["552455348"], ["248965255"], ["159542516"], ["348121549"], ["90873519"], ["486512566"], ["619023588"], ["15645489"], ["556784565"], ["573284895"], ["574489456"], ["574489457"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Hmo44_69.png", "TableImg_Gzisn_31.png"], "original_data_index": 4475, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" >= 269734834 UNION ALL SELECT eid FROM employee WHERE name = \"William Moore\" OR \"eid\" != 356187925"} {"question": "Can you give me the highest feature type code and the feature description for all features where the feature name is \"AirCon\" or the feature description is \"Air Conditioning\" and the feature ID is 3 or greater, combined with the highest feature type code and feature description for features where the feature ID is not 2 and the feature type code is \"Security\" or the feature description is \"Swimming Pool\"?", "answer": {"columns": ["MAX(feature_type_code)", "feature_description"], "index": [0, 1], "data": [["Amenity", "Air Conditioning."], ["Security", "Burglar Alarm"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_85pb2_3.png", "TableImg_Mvo3r_3.png"], "original_data_index": 4473, "original_sql": "SELECT MAX(feature_type_code), feature_description FROM Other_Available_Features WHERE feature_name = \"AirCon\" OR feature_description = \"Air Conditioning.\" AND \"feature_id\" >= 3 UNION ALL SELECT MAX(feature_type_code), feature_description FROM Other_Available_Features WHERE \"feature_id\" <> 2 AND feature_type_code = \"Security\" OR feature_description = \"Swimming Pool.\""} {"question": "Can you give me the oldest first name, city code, age, and the most advanced major for students who either live in Atlanta, or whose last name is Andreou and first name is Charles, or whose advisor number is 7712 or greater and are not male and have major 520 and are older than 19, or whose student ID is 1001 or less, combined with the oldest first name, city code, age, and the most advanced major for students who are male and don't live in Houston, or whose student ID is 1022 or greater?", "answer": {"columns": ["MAX(Fname)", "city_code", "Age", "MAX(Major)"], "index": [0, 1], "data": [["Linda", "BAL", "18", "600"], ["William", "CHI", "20", "600"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Zpb46_34.png", "TableImg_Cdsh0_34.png"], "original_data_index": 4476, "original_sql": "SELECT MAX(Fname), city_code, Age, MAX(Major) FROM Student WHERE city_code = \"ATL\" OR LName = \"Andreou\" AND Fname = \"Charles\" OR \"Advisor\" >= 7712 AND Sex <> \"M\" AND \"Major\" = 520 AND \"Age\" > 19 OR \"StuID\" <= 1001 UNION SELECT MAX(Fname), city_code, Age, MAX(Major) FROM Student WHERE Sex = \"M\" AND city_code != \"HOU\" OR \"StuID\" >= 1022"} {"question": "What is the longest road address among branches that either aren't branch ID 5 and aren't on Oaks Crescent, or didn't open in 2014, and is also among the longest road addresses of branches that opened in 2001?", "answer": {"columns": ["MAX(Address_road)"], "index": [0], "data": [["Valleys Place"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Hvhp9_8.png", "TableImg_Qoab9_8.png"], "original_data_index": 4477, "original_sql": "SELECT MAX(Address_road) FROM branch WHERE \"Branch_ID\" != 5 AND Address_road <> \"Oaks Crescent\" OR Open_year <> \"2014\" IN (SELECT MAX(Address_road) FROM branch WHERE Open_year = \"2001\")"} {"question": "Can you give me a list of employee IDs that are either employee ID \"1\" from the evaluation table, or from the hiring table where the start year isn't 2011 and they're not full-time, or their shop ID is 4?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2], "data": [["4"], ["6"], ["1"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Mrfkv_6.png", "TableImg_Rlffa_7.png"], "original_data_index": 4478, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Employee_ID = \"1\" UNION SELECT Employee_ID FROM hiring WHERE Start_from != \"2011\" AND Is_full_time != \"T\" OR \"Shop_ID\" = 4"} {"question": "Could you give me the sum of Document IDs from the Documents table where the Document ID is not 3830, or the Document Name is not \"Summer Show\" and the Document Description is \"y\", or the Other Details are not \"None\" and the Template ID is greater than or equal to 1, combined with the sum of Document IDs from the Paragraphs table where the Other Details are not \"None\", or the Paragraph ID is less than or equal to 765713812, or the Paragraph Text is not \"Fiji\"?", "answer": {"columns": ["SUM(Document_ID)"], "index": [0, 1], "data": [["407500665"], ["423873028"]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_U2gii_15.png", "TableImg_G66ld_15.png"], "original_data_index": 4479, "original_sql": "SELECT SUM(Document_ID) FROM Documents WHERE \"Document_ID\" <> 3830 OR Document_Name <> \"Summer Show\" AND Document_Description = \"y\" OR Other_Details <> \"None\" AND \"Template_ID\" >= 1 UNION ALL SELECT SUM(Document_ID) FROM Paragraphs WHERE Other_Details <> \"None\" OR \"Paragraph_ID\" <= 765713812 OR Paragraph_Text <> \"Fiji\""} {"question": "Can you give me a list of driver IDs, including driver ID 11 from the driver table, and driver IDs less than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wtz2r_12.png", "TableImg_A6hzc_5.png"], "original_data_index": 4482, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including driver ID 2 from the driver table and all driver IDs except 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sl1t5_12.png", "TableImg_U5qqv_5.png"], "original_data_index": 4480, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the property type codes and descriptions from the property types table, including those described as \"Other, to be determined.\" or with a code that isn't \"Other\", combined with those described as \"House, Bungalow, etc.\" or with a code that isn't \"Apartment\"?", "answer": {"columns": ["property_type_code", "property_type_description"], "index": [0, 1, 2, 3, 4], "data": [["Apartment", "Apartment, Flat, Condo, etc."], ["Field", "Field, Meadow."], ["House", "House, Bungalow, etc."], ["Other", "Other, to be determined."], ["Shop", "Shop, Retail Outlet."]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Zmv3i_5.png", "TableImg_Zazyi_5.png"], "original_data_index": 4484, "original_sql": "SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_description = \"Other, to be determined.\" OR property_type_code <> \"Other\" UNION SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_description = \"House, Bungalow, etc.\" OR property_type_code != \"Apartment\""} {"question": "Can you give me a list of driver IDs, including driver ID 6 and any driver ID from the school bus list that isn't 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_082pi_12.png", "TableImg_Fwa43_5.png"], "original_data_index": 4485, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9x8xx_12.png", "TableImg_Afzo0_5.png"], "original_data_index": 4487, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the driver IDs that are either equal to 12 in the driver table or greater than 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yw2me_12.png", "TableImg_O9s36_5.png"], "original_data_index": 4488, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "How many draft documents have an ID of 17 or less, and what is that number combined with the count of documents that are not papers received on May 31, 1996 at 6:51:58 AM, or shipped by US agents, excluding document ID 2, not overdue, with receipt number 189, or with other details not equal to 'r'?", "answer": {"columns": ["COUNT(document_id)"], "index": [0, 1], "data": [["13"], ["14"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_7t3be_15.png", "TableImg_Kz6qd_15.png"], "original_data_index": 4486, "original_sql": "SELECT COUNT(document_id) FROM Document_Drafts WHERE \"document_id\" <= 17 UNION ALL SELECT COUNT(document_id) FROM Documents WHERE document_type_code != \"Paper\" AND receipt_date = \"1996-05-31 06:51:58\" OR shipping_agent_code = \"US\" AND \"document_id\" != 2 AND document_status_code <> \"overdue\" AND receipt_number = \"189\" OR other_details <> \"r\""} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, but then remove any aircraft IDs that appear in the airport_aircraft table with an aircraft ID of 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Syacb_5.png", "TableImg_8iltn_4.png"], "original_data_index": 4489, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me the driver IDs that appear exactly once as '1' in the driver table, but do not appear with a value less than '9' in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dtm10_12.png", "TableImg_Txmjv_5.png"], "original_data_index": 4490, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 7, excluding any driver IDs from the school_bus table that are equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aj0tr_12.png", "TableImg_Hmqtu_5.png"], "original_data_index": 4491, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are both greater than or equal to 4 in the driver table and equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xvdbv_12.png", "TableImg_Uamka_5.png"], "original_data_index": 4492, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 10, and those from the school bus table excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C1hnr_12.png", "TableImg_I7moi_5.png"], "original_data_index": 4493, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which aircraft IDs are not equal to 2 and are also greater than 2 when considering aircraft IDs from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H6vq0_5.png", "TableImg_7i52w_4.png"], "original_data_index": 4483, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of employee IDs for those with certificate IDs less than 550156548 or association IDs greater than or equal to 10, along with the employee IDs of anyone named Michael Miller?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], "data": [["11564812"], ["11564812"], ["90873519"], ["141582651"], ["141582651"], ["141582651"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["159542516"], ["159542516"], ["242518965"], ["242518965"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["274878974"], ["274878974"], ["310454876"], ["310454876"], ["355548984"], ["355548984"], ["356187925"], ["390487451"], ["390487451"], ["390487451"], ["548977562"], ["550156548"], ["552455318"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["274878974"], ["287321212"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Ywk14_69.png", "TableImg_E73y3_31.png"], "original_data_index": 4497, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" < 550156548 OR \"aid\" >= 10 UNION ALL SELECT eid FROM employee WHERE name = \"Michael Miller\""} {"question": "Can you list the aircraft IDs that are greater than 3, but not present in the list of aircraft IDs that are greater than or equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5lf5p_5.png", "TableImg_1mts0_4.png"], "original_data_index": 4498, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs are both less than or equal to 7 and also equal to 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C11jc_12.png", "TableImg_F4z7h_5.png"], "original_data_index": 4499, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 6, excluding any driver IDs that are less than or equal to 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qsk5a_12.png", "TableImg_Rzq7t_5.png"], "original_data_index": 4500, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the starting year and coach ID combinations that appear both for coaches and players who started after 2011 or have a player ID of 1, and for coaches and players who either started in 2011 or earlier with a player ID less than 4, or have a coach ID of 5 or less?", "answer": {"columns": ["Starting_year", "Coach_ID"], "index": [0, 1, 2, 3], "data": [["2010", "1"], ["2012", "1"], ["2012", "3"], ["2013", "2"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_Bm3j6_7.png", "TableImg_Eeefe_7.png"], "original_data_index": 4501, "original_sql": "SELECT Starting_year, Coach_ID FROM player_coach WHERE \"Starting_year\" > 2011 OR \"Player_ID\" = 1 INTERSECT SELECT Starting_year, Coach_ID FROM player_coach WHERE \"Starting_year\" <= 2011 AND \"Player_ID\" < 4 OR \"Coach_ID\" <= 5"} {"question": "Which driver IDs are greater than 9, but not greater than 10 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C2upw_12.png", "TableImg_Dznfe_5.png"], "original_data_index": 4502, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 9 and those from the school bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_01q5a_12.png", "TableImg_3auza_5.png"], "original_data_index": 4503, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you find the maximum population, county ID, number of zip codes, and number of county names for each county, first by only considering counties where the zip code isn't \"D11\" and the county name isn't \"Colony\", or where the county ID is less than 5, and only showing results where there's exactly one zip code, and then find the maximum population, county ID, number of zip codes, and number of county names for each county, this time only considering counties where the population is greater than 21000 or the zip code isn't \"D21\", and only showing results where the maximum population isn't 87200 and there's exactly one county name, or where there is more than one zip code, and finally give me the intersection of those two results?", "answer": {"columns": ["MAX(Population)", "County_Id", "COUNT(Zip_code)", "COUNT(County_name)"], "index": [0, 1], "data": [["79000", "3", "1", "1"], ["90000", "2", "1", "1"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_Vuyi3_5.png", "TableImg_8mqqa_5.png"], "original_data_index": 4504, "original_sql": "SELECT MAX(Population), County_Id, COUNT(Zip_code), COUNT(County_name) FROM county WHERE Zip_code != \"D11\" AND County_name <> \"Colony\" OR \"County_Id\" < 5 GROUP BY County_Id HAVING COUNT(Zip_code) = 1 INTERSECT SELECT MAX(Population), County_Id, COUNT(Zip_code), COUNT(County_name) FROM county WHERE \"Population\" > 21000.0 OR Zip_code != \"D21\" GROUP BY County_Id HAVING MAX(Population) <> 87200.0 AND COUNT(County_name) = 1 OR COUNT(Zip_code) > 1"} {"question": "Which driver IDs are greater than 3 and also greater than 9, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2f1my_12.png", "TableImg_Kj5z2_5.png"], "original_data_index": 4505, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 7 or higher, and those from the school bus table where the ID is 3 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R1q35_12.png", "TableImg_P1rku_5.png"], "original_data_index": 4494, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, and also list the aircraft IDs from the airport_aircraft table that are less than 5, combining the two lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Py3u0_5.png", "TableImg_Q0exw_4.png"], "original_data_index": 4496, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me the total number of people with the same nationality, their birth dates, names, the highest People ID, and the total height for people in the peoplepeople table, combining two sets of results: first, those who are not People ID 7 and not named Teodor Salparov, or whose height isn't 194.0 and are Russian, or whose birth date isn't May 26, 1986; and second, those whose height is at least 205.0, or whose People ID is greater than 3, or who are not named Roman Bragin and were not born on February 8, 1981?", "answer": {"columns": ["SUM(Nationality)", "Birth_Date", "Name", "MAX(People_ID)", "SUM(Height)"], "index": [0, 1], "data": [["0", "February 8, 1981", "Semen Poltavskiy", "7", "1364"], ["0", "February 8, 1981", "Semen Poltavskiy", "7", "1177"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_X6h8j_7.png", "TableImg_4rg17_7.png"], "original_data_index": 4495, "original_sql": "SELECT SUM(Nationality), Birth_Date, Name, MAX(People_ID), SUM(Height) FROM people WHERE \"People_ID\" <> 7 AND Name != \"Teodor Salparov\" OR \"Height\" <> 194.0 AND Nationality = \"Russia\" OR Birth_Date != \"May 26, 1986\" UNION ALL SELECT SUM(Nationality), Birth_Date, Name, MAX(People_ID), SUM(Height) FROM people WHERE \"Height\" >= 205.0 OR \"People_ID\" > 3 OR Name != \"Roman Bragin\" AND Birth_Date <> \"February 8, 1981\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 11 from the driver table, combined with a list of driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_04sl4_12.png", "TableImg_G7sph_5.png"], "original_data_index": 4507, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs, excluding driver ID 7, are not also driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ymfk4_12.png", "TableImg_Clrjs_5.png"], "original_data_index": 4509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs, excluding driver ID 4, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G2m08_12.png", "TableImg_J4l1y_5.png"], "original_data_index": 4508, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which aircraft have an ID of 5, but are not aircraft with IDs less than 5 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9zck6_5.png", "TableImg_Zsi9h_4.png"], "original_data_index": 4506, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table and any driver IDs less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bdb5c_12.png", "TableImg_5cdnp_5.png"], "original_data_index": 4510, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 4, excluding any driver IDs that are also in the school_bus table and less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ac6b9_12.png", "TableImg_2p5fc_5.png"], "original_data_index": 4514, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs, excluding driver 6, are also school bus driver IDs, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6b8c7_12.png", "TableImg_Ck60w_5.png"], "original_data_index": 4513, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are greater than 9, excluding any driver IDs that are less than 3 and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7peke_12.png", "TableImg_Ljkx4_5.png"], "original_data_index": 4512, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list the Aircraft IDs from the aircraft table where the description is not \"Tandem rotor helicopter\", or the maximum gross weight is \"3,200 lb (1,451 kg)\", or the aircraft is not \"CH-47D Chinook\", or the Aircraft_ID is 3 and the maximum disk loading is not \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\", combined with all Aircraft IDs from the airport_aircraft table where the Aircraft_ID is less than or equal to 3, or the ID is less than 1, or the Airport_ID is less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z99au_5.png", "TableImg_Z6nj0_4.png"], "original_data_index": 4511, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Description <> \"Tandem rotor helicopter\" OR Max_Gross_Weight = \"3,200 lb (1,451 kg)\" OR Aircraft != \"CH-47D Chinook\" OR \"Aircraft_ID\" = 3 AND Max_disk_Loading <> \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\" UNION ALL SELECT Aircraft_ID FROM airport_aircraft WHERE \"Aircraft_ID\" <= 3 OR \"ID\" < 1 OR \"Airport_ID\" < 2"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, but only if they are not also present in the airport_aircraft table with an aircraft ID of 1 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vnjq8_5.png", "TableImg_2opl0_4.png"], "original_data_index": 4515, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What is the average district and comptroller for elections where the lieutenant governor was not Jonathan Reiter or the year was 2006 or earlier?", "answer": {"columns": ["AVG(T1.District)", "Comptroller"], "index": [0], "data": [["", ""]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_7mapa_8.png", "TableImg_Am14k_7.png"], "original_data_index": 4518, "original_sql": "SELECT AVG(T1.District), T2.Comptroller FROM election as T1 JOIN party as T2 ON T1.Party = T2.Party WHERE Lieutenant_Governor <> \"Jonathan Reiter\" OR \"Year\" <= 2006.0"} {"question": "For each airport, how many aircraft are associated with it?", "answer": {"columns": ["Airport_ID", "COUNT(T2.Aircraft_ID)"], "index": [0], "data": [["1", "4"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Slpzh_10.png", "TableImg_Nr85m_4.png"], "original_data_index": 4517, "original_sql": "SELECT T1.Airport_ID, COUNT(T2.Aircraft_ID) FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Can you give me a list of item IDs, including those for items with titles that aren't \"comb\", and also those for reviews where the rating is greater than 5, or the reviewer's ID is at least 4 and the user ID isn't 2?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["0"], ["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["1"], ["4"], ["7"], ["5"], ["3"], ["7"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_9u5bl_8.png", "TableImg_Olt7k_7.png"], "original_data_index": 4516, "original_sql": "SELECT i_id FROM item WHERE title <> \"comb\" UNION ALL SELECT i_id FROM review WHERE \"rating\" > 5 OR \"a_id\" >= 4 AND \"u_id\" != 2"} {"question": "Can you give me the Driver ID from the driver table, specifically if the Driver ID is 3, but only if that Driver ID is not also in the school_bus table with a Driver ID greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J8xka_12.png", "TableImg_En98l_5.png"], "original_data_index": 4522, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you list the profits in billions for companies that either have sales of 68.7 billion and aren't company ID 10, or are not in the Oil and Gas industry, or don't have a market value of 202.2 billion, or are headquartered in Germany with profits less than 15.7 billion, and also list the profits in billions for companies with sales greater than 62.4 billion?", "answer": {"columns": ["Profits_in_Billion"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], "data": [["41.1"], ["19.0"], ["14.2"], ["30.9"], ["25.1"], ["16.2"], ["20.6"], ["10.3"], ["15.9"], ["20.1"], ["25.7"], ["26.9"], ["20.5"], ["11.1"], ["31.7"], ["15.7"], ["21.5"], ["15.9"], ["14.4"], ["41.1"], ["19.0"], ["14.2"], ["30.9"], ["25.1"], ["16.2"], ["20.6"], ["10.3"], ["15.9"], ["20.1"], ["25.7"], ["26.9"], ["20.5"], ["11.1"], ["31.7"], ["15.7"], ["21.5"], ["15.9"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Wvcu1_19.png", "TableImg_Daui3_19.png"], "original_data_index": 4519, "original_sql": "SELECT Profits_in_Billion FROM company WHERE \"Sales_in_Billion\" = 68.7 AND \"Company_ID\" <> 10.0 OR Industry != \"Oil and gas\" OR \"Market_Value_in_Billion\" != 202.2 OR Headquarters = \"Germany\" AND \"Profits_in_Billion\" < 15.7 UNION ALL SELECT Profits_in_Billion FROM company WHERE \"Sales_in_Billion\" > 62.4"} {"question": "Can you tell me, for two separate sets of districts, the number of cities, the largest district ID, the city where they're headquartered, and the number of district names? The first set includes districts where the district ID is 2 or greater, or the headquartered city isn't Faisalabad City and the city population is at least 172073, or the district name is Attock District, or the city area is 10. The second set includes districts where the city area isn't 25, or the district name isn't Chiniot District and the headquartered city is Gujrat City and the city population is less than 113524.", "answer": {"columns": ["COUNT(City_Population)", "MAX(District_ID)", "Headquartered_City", "COUNT(District_name)"], "index": [0, 1], "data": [["15", "15", "Khanewal City", "15"], ["14", "15", "Khanewal City", "14"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_Vb1yl_15.png", "TableImg_Y9kzg_15.png"], "original_data_index": 4521, "original_sql": "SELECT COUNT(City_Population), MAX(District_ID), Headquartered_City, COUNT(District_name) FROM district WHERE \"District_ID\" >= 2 OR Headquartered_City != \"Faisalabad City\" AND \"City_Population\" >= 172073.0 OR District_name = \"Attock District\" OR \"City_Area\" = 10.0 UNION ALL SELECT COUNT(City_Population), MAX(District_ID), Headquartered_City, COUNT(District_name) FROM district WHERE \"City_Area\" <> 25.0 OR District_name != \"Chiniot District\" AND Headquartered_City = \"Gujrat City\" AND \"City_Population\" < 113524.0"} {"question": "Could you list the document IDs and draft numbers from the circulation history, including those where the employee ID is not 8, the draft number is not 20, the copy number is 5 or greater, and the document ID is greater than 10, as well as those where the copy number is exactly 5 or the document ID is 20 or greater?", "answer": {"columns": ["document_id", "draft_number"], "index": [0, 1], "data": [["20", "17"], ["1", "2"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Mlkvr_4.png", "TableImg_Lmsfl_4.png"], "original_data_index": 4523, "original_sql": "SELECT document_id, draft_number FROM Circulation_History WHERE \"employee_id\" <> 8 AND \"draft_number\" <> 20 AND \"copy_number\" >= 5 AND \"document_id\" > 10 UNION ALL SELECT document_id, draft_number FROM Circulation_History WHERE \"copy_number\" = 5 OR \"document_id\" >= 20"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 12, and those from the school bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2s968_12.png", "TableImg_Bdjvf_5.png"], "original_data_index": 4524, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12 from the driver table and driver ID 9 from the school bus table, making sure to list each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Icczn_12.png", "TableImg_F1pcr_5.png"], "original_data_index": 4525, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of student IDs, including those from students who have pets and whose ID is greater than 1001, as well as those from students whose major is 600?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["1002"], ["1002"], ["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_Hryzh_3.png", "TableImg_7s8c2_34.png"], "original_data_index": 4526, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" > 1001 UNION ALL SELECT StuID FROM Student WHERE \"Major\" = 600"} {"question": "Can you give me a list of driver IDs that are less than or equal to 6, excluding any driver IDs greater than 3 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Um872_12.png", "TableImg_W9j9t_5.png"], "original_data_index": 4527, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 3 or higher, and those from the school bus table that are 4 or lower?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1v17g_12.png", "TableImg_Dul4x_5.png"], "original_data_index": 4529, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you list the document descriptions and template IDs for all documents, including those with descriptions that are not \"b\", and also those with descriptions that are not \"y\" or names that aren't \"How to read a book\" or template IDs greater than 14?", "answer": {"columns": ["Document_Description", "Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["b", "11"], ["f", "21"], ["h", "14"], ["h", "25"], ["k", "14"], ["n", "7"], ["r", "22"], ["u", "6"], ["w", "4"], ["w", "11"], ["y", "8"], ["y", "10"], ["y", "20"], ["y", "25"], ["z", "1"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_M6e4b_15.png", "TableImg_Lcq80_15.png"], "original_data_index": 4528, "original_sql": "SELECT Document_Description, Template_ID FROM Documents WHERE Document_Description <> \"b\" UNION SELECT Document_Description, Template_ID FROM Documents WHERE Document_Description != \"y\" OR Document_Name <> \"How to read a book\" OR \"Template_ID\" > 14"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 2 or greater, and those from the school bus table where the ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ivk0f_12.png", "TableImg_L1yvd_5.png"], "original_data_index": 4530, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the average book ID for books with at least 4 issues, or those that aren't titled \"Dead Corps\" and have a book ID of 3 or higher and aren't written by Howard Chaykin, combined with the average book ID for publications with a book ID of 3 or less, or those published in August 2008 that don't cost 2,000,000?", "answer": {"columns": ["AVG(Book_ID)"], "index": [0, 1], "data": [["5.5"], ["3.6666666667000003"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_Unr57_10.png", "TableImg_Nb6am_7.png"], "original_data_index": 4531, "original_sql": "SELECT AVG(Book_ID) FROM book WHERE \"Issues\" >= 4.0 OR Title <> \"Dead Corps\" AND \"Book_ID\" >= 3 AND Writer <> \"Howard Chaykin\" UNION ALL SELECT AVG(Book_ID) FROM publication WHERE \"Book_ID\" <= 3 OR Publication_Date = \"August 2008\" AND \"Price\" <> 2000000.0"} {"question": "Which aircraft IDs are not equal to 2 and are also greater than 3 when considering aircraft IDs from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B98fg_5.png", "TableImg_52j7w_4.png"], "original_data_index": 4534, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than 8 from the driver table, combined with a list of driver IDs that are less than or equal to 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0t8w8_12.png", "TableImg_6dtir_5.png"], "original_data_index": 4533, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 7 from the driver table and driver ID 3 from the school_bus table, making sure there are no duplicates in the final list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0htda_12.png", "TableImg_Wzg96_5.png"], "original_data_index": 4532, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "How many customers have a phone number other than 1-875-045-0806, and how many lessons are taught by someone other than staff ID 8, or are not cancelled, or are at 5 o'clock?", "answer": {"columns": ["COUNT(customer_id)"], "index": [0], "data": [["14"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_07vsn_15.png", "TableImg_5oppy_15.png"], "original_data_index": 4535, "original_sql": "SELECT COUNT(customer_id) FROM Customers WHERE phone_number <> \"1-875-045-0806\" UNION SELECT COUNT(customer_id) FROM Lessons WHERE \"staff_id\" <> 8 OR lesson_status_code != \"Cancelled\" OR lesson_time = \"5\""} {"question": "What is the total of the 'Name' values for shops in \"Tehtaan kentt\u00e4\" or shops not in \"Turku\" that are also not named \"IFK Mariehamn\" and have at least 10000 products, or shops where the manager is not \"Pekka Lyyski\", combined with the total of the 'Name' values for shops not in \"Lahti\"?", "answer": {"columns": ["SUM(Name)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_Es1ft_9.png", "TableImg_9mmkt_9.png"], "original_data_index": 4537, "original_sql": "SELECT SUM(Name) FROM shop WHERE District = \"Tehtaan kentt\u00e4\" OR Location != \"Turku\" AND Name != \"IFK Mariehamn\" AND \"Number_products\" >= 10000 OR Manager_name != \"Pekka Lyyski\" UNION ALL SELECT SUM(Name) FROM shop WHERE Location <> \"Lahti\""} {"question": "Can you tell me the age, average major, and count of sexes for students, combining two sets of results: first, those who either don't have the last name \"Prater\", or are not female and have an advisor number of 1121 or higher, or don't have a major of 600 and are 18 or younger, or have a student ID of 1005; and second, those who are female and have a student ID greater than 1032, or have the first name \"Eric\" and are 20 or older, or have an advisor number of 7792 or higher and a city code of \"LON\"?", "answer": {"columns": ["Age", "AVG(Major)", "COUNT(Sex)"], "index": [0, 1], "data": [["18", "527.9411764706", "34"], ["20", "383.3333333333", "3"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_X7si9_34.png", "TableImg_Fl43y_34.png"], "original_data_index": 4536, "original_sql": "SELECT Age, AVG(Major), COUNT(Sex) FROM Student WHERE LName != \"Prater\" OR Sex <> \"F\" AND \"Advisor\" >= 1121 OR \"Major\" <> 600 AND \"Age\" <= 18 OR \"StuID\" = 1005 UNION SELECT Age, AVG(Major), COUNT(Sex) FROM Student WHERE Sex = \"F\" AND \"StuID\" > 1032 OR Fname = \"Eric\" AND \"Age\" >= 20 OR \"Advisor\" >= 7792 AND city_code = \"LON\""} {"question": "What aircraft IDs are both greater than or equal to 5 in the aircraft table and greater than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0z51f_5.png", "TableImg_Fpfya_4.png"], "original_data_index": 4538, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 1, from the aircraft table, and combine that with a list of all aircraft IDs, excluding aircraft ID 2, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_37191_5.png", "TableImg_Kdpsq_4.png"], "original_data_index": 4539, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What role codes are assigned to employees who are not in the \"PR\" role, and are also role codes that are either \"ED\" or are not described as \"Manager\"?", "answer": {"columns": ["role_code"], "index": [0, 1], "data": [["ED"], ["PT"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_4g92n_6.png", "TableImg_Z56z2_4.png"], "original_data_index": 4541, "original_sql": "SELECT role_code FROM Employees WHERE role_code <> \"PR\" INTERSECT SELECT role_code FROM Roles WHERE role_code = \"ED\" OR role_description <> \"Manager\""} {"question": "Which driver IDs, excluding driver ID 4, are also driver IDs specifically associated with school bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S35wq_12.png", "TableImg_147cl_5.png"], "original_data_index": 4543, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are not equal to 2 and are also not equal to 7 in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8rn2h_12.png", "TableImg_0ipsr_5.png"], "original_data_index": 4540, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me the location, school ID, school name, and type for all schools that are either not private and located in New York City with a school ID greater than 4, or have a school name other than Punahou School, along with the location, school ID, school name, and type for Columbia University, excluding those located in Jakarta, Indonesia?", "answer": {"columns": ["Location", "School_ID", "School", "Type"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Honolulu, Hawaii", "1", "Noelani Elementary School", "Public"], ["Jakarta, Indonesia", "2", "St. Francis Assisi", "Private Catholic"], ["Jakarta, Indonesia", "3", "State Elementary School Menteng 01", "Public"], ["Los Angeles, California", "5", "Occidental College", "Private"], ["New York City", "6", "Columbia University", "Private"], ["Cambridge, Massachusetts", "7", "Harvard Law School", "Private"], ["New York City", "6", "Columbia University", "Private"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Vvurg_7.png", "TableImg_50ced_7.png"], "original_data_index": 4542, "original_sql": "SELECT Location, School_ID, School, Type FROM school WHERE Type != \"Private\" AND Location = \"New York City\" AND \"School_ID\" > 4 OR School <> \"Punahou School\" UNION ALL SELECT Location, School_ID, School, Type FROM school WHERE School = \"Columbia University\" AND Location != \"Jakarta, Indonesia\""} {"question": "Which driver IDs that are less than 12 are also driver IDs of school buses where the driver ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_647a0_12.png", "TableImg_Suwjl_5.png"], "original_data_index": 4545, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are not 12 from the driver table, but only include those driver IDs that are also not 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rvpt7_12.png", "TableImg_4l4j0_5.png"], "original_data_index": 4544, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 9, excluding any driver IDs that appear in the school_bus table, where those driver IDs are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ofmy1_12.png", "TableImg_Seg44_5.png"], "original_data_index": 4546, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list the salary, name, and employee ID for all employees who are not named William Moore and whose employee ID is not 287321212, along with the salary, name, and employee ID for all employees whose salary is less than or equal to 23980?", "answer": {"columns": ["salary", "name", "eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["20", "Milo Brooks", "574489457"], ["18050", "Donald King", "15645489"], ["23980", "Richard Jackson", "489221823"], ["24450", "Patricia Jones", "254099823"], ["27984", "Linda Davis", "489456522"], ["32021", "Elizabeth Taylor", "90873519"], ["32899", "Haywood Kelly", "348121549"], ["33546", "Chad Stewart", "310454877"], ["43001", "David Anderson", "486512566"], ["43723", "Barbara Wilson", "248965255"], ["44740", "Robert Brown", "356187925"], ["54921", "Jennifer Thomas", "619023588"], ["84476", "William Ward", "548977562"], ["99890", "Michael Miller", "274878974"], ["101745", "Larry West", "552455318"], ["105743", "William Jones", "574489456"], ["114323", "Eric Cooper", "573284895"], ["120433", "James Smith", "242518965"], ["152013", "Dorthy Lewis", "552455348"], ["153972", "John Williams", "11564812"], ["178345", "Mary Johnson", "141582651"], ["205187", "Karen Scott", "550156548"], ["205187", "Mark Young", "556784565"], ["212156", "Angela Martinez", "355548984"], ["212156", "Joseph Thompson", "310454876"], ["212156", "Lawrence Sperry", "390487451"], ["227489", "Betty Adams", "142519864"], ["256481", "Lisa Walker", "567354612"], ["289950", "George Wright", "269734834"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Jy9qz_31.png", "TableImg_Dnb68_31.png"], "original_data_index": 4547, "original_sql": "SELECT salary, name, eid FROM employee WHERE name != \"William Moore\" AND \"eid\" != 287321212 UNION SELECT salary, name, eid FROM employee WHERE \"salary\" <= 23980"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 12, combined with all the driver IDs from the school_bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_34lfu_12.png", "TableImg_8qp6s_5.png"], "original_data_index": 4551, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not 12 with those from the school_bus table that are less than 7, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M33jp_12.png", "TableImg_3r8mv_5.png"], "original_data_index": 4552, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs less than or equal to 9, excluding any driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5thaj_12.png", "TableImg_Psf4f_5.png"], "original_data_index": 4553, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the highest enrollment and the invested amount for schools where either the year is 2005 or earlier, or the number of invested records is less than 5840, the IHSAA class is AAA, the IHSAA football class is not A, the count of total budget percent budgeted is less than 2.0, and enrollment is 620 or less, or the location is not Culver?", "answer": {"columns": ["MAX(T1.Enrollment)", "Invested"], "index": [0], "data": [["620", "140102"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_Tmys1_8.png", "TableImg_Bwkte_8.png"], "original_data_index": 4554, "original_sql": "SELECT MAX(T1.Enrollment), T2.Invested FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE Year <= 2005 OR COUNT(Invested) < 5840 AND IHSAA_Class = \"AAA\" AND IHSAA_Football_Class <> \"A\" AND COUNT(total_budget_percent_budgeted) < 2.0 AND Enrollment <= 620 OR Location <> \"Culver\""} {"question": "Can you list the Aircraft IDs that are less than 5 when grouped in the aircraft table, but are not equal to 5 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_22ljw_5.png", "TableImg_Rz1e6_4.png"], "original_data_index": 4555, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Could you show me the payment method code, customer ID, and payment amount for all customer payments that both don't have a payment amount of 6970.98 and don't have a payment datetime of February 27, 2018 at 8:08:53 PM, and also don't have a payment datetime of February 24, 2018 at 10:07:05 AM, or have a payment amount of at least 4773.16, or have a customer ID greater than 6, or don't use Direct Debit as the payment method?", "answer": {"columns": ["payment_method_code", "customer_id", "amount_payment"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["Credit Card", "3", "787.12"], ["Credit Card", "12", "9414.74"], ["Credit Card", "13", "7440.34"], ["Credit Card", "14", "3073.98"], ["Direct Debit", "1", "9886.62"], ["Direct Debit", "2", "1708.18"], ["Direct Debit", "2", "8180.26"], ["Direct Debit", "4", "6311.37"], ["Direct Debit", "6", "4032.33"], ["Direct Debit", "6", "5475.26"], ["Direct Debit", "7", "4773.16"], ["Direct Debit", "10", "6782.84"], ["Direct Debit", "11", "9570.93"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Edat2_15.png", "TableImg_F9ytr_15.png"], "original_data_index": 4556, "original_sql": "SELECT payment_method_code, customer_id, amount_payment FROM Customer_Payments WHERE \"amount_payment\" <> 6970.98 AND datetime_payment != \"2018-02-27 20:08:53\" INTERSECT SELECT payment_method_code, customer_id, amount_payment FROM Customer_Payments WHERE datetime_payment != \"2018-02-24 10:07:05\" OR \"amount_payment\" >= 4773.16 OR \"customer_id\" > 6 OR payment_method_code <> \"Direct Debit\""} {"question": "Can you show me the Gold count, total Bronze count, Club ID, Big Silver count, Points, Rank, and the lowest Small Silver count from the match results, excluding any results where the Gold count is 7 and the Big Silver count is greater than 12, and including only those results where the Rank is not 2, or the Bronze count is greater than 6, or the Big Silver count is at least 12 and the Club ID is no more than 5, or the Gold count is no more than 7?", "answer": {"columns": ["Gold", "SUM(Bronze)", "Club_ID", "Big_Silver", "Points", "Rank", "MIN(Small_Silver)"], "index": [0], "data": [["12", "48", "3", "9", "102", "3", "4"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_07908_6.png", "TableImg_Qpztn_6.png"], "original_data_index": 4557, "original_sql": "SELECT Gold, SUM(Bronze), Club_ID, Big_Silver, Points, Rank, MIN(Small_Silver) FROM match_result WHERE \"Rank\" <> 2 OR \"Bronze\" > 6 OR \"Big_Silver\" >= 12 AND \"Club_ID\" <= 5 OR \"Gold\" <= 7 EXCEPT SELECT Gold, SUM(Bronze), Club_ID, Big_Silver, Points, Rank, MIN(Small_Silver) FROM match_result WHERE \"Gold\" = 7 AND \"Big_Silver\" > 12"} {"question": "Can you list the IATA code, city, country, ICAO code, name, and ID for all airports, excluding those with IATA code \"AMS\" and ICAO code \"ENBR\", but then remove any airports from that list that either aren't named \"National Airport\" and are located in Baltimore, or have an ICAO code different from \"EKBI\", or have an ID less than or equal to 1 and an IATA code different from \"BRU\"?", "answer": {"columns": ["IATA", "City", "Country", "ICAO", "name", "id"], "index": [0], "data": [["BLL", "Billund", "Denmark", "EKBI", "Billund Airport", "7"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Ofrze_9.png", "TableImg_M414y_9.png"], "original_data_index": 4558, "original_sql": "SELECT IATA, City, Country, ICAO, name, id FROM airport WHERE IATA != \"AMS\" AND ICAO != \"ENBR\" EXCEPT SELECT IATA, City, Country, ICAO, name, id FROM airport WHERE name != \"National Airport\" AND City = \"Baltimore\" OR ICAO <> \"EKBI\" OR \"id\" <= 1 AND IATA <> \"BRU\""} {"question": "Can you give me a list of driver IDs, including drivers with the ID 3 and school bus drivers with IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hx63n_12.png", "TableImg_Wvjre_5.png"], "original_data_index": 4559, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are less than or equal to 2, excluding any driver IDs that are not equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mgjo6_12.png", "TableImg_Gttnc_5.png"], "original_data_index": 4548, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What aircraft IDs are both less than or equal to 5 when grouped in the aircraft table and also less than or equal to 1 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J9te3_5.png", "TableImg_1e0ev_4.png"], "original_data_index": 4549, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 7 and not equal to 4, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ovhv_12.png", "TableImg_Dhus0_5.png"], "original_data_index": 4550, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 12, and those from the school bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vn136_12.png", "TableImg_S7mte_5.png"], "original_data_index": 4560, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5tbk5_12.png", "TableImg_Heqk8_5.png"], "original_data_index": 4561, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the sum of flight IDs for flights with flight number \"M2-F1 #70\" and company ID less than or equal to 13, combined with the sum of IDs from operate_company where the name is \"Cathay Pacific Catering Services (HK) Limited\", the ID is 7, or the Group Equity Shareholding is less than 100?", "answer": {"columns": ["SUM(id)"], "index": [0, 1], "data": [["11"], ["58"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_Xzkix_13.png", "TableImg_8hk5o_14.png"], "original_data_index": 4562, "original_sql": "SELECT SUM(id) FROM flight WHERE Vehicle_Flight_number = \"M2-F1 #70\" AND \"company_id\" <= 13 UNION ALL SELECT SUM(id) FROM operate_company WHERE name = \"Cathay Pacific Catering Services (HK) Limited\" OR \"id\" = 7 OR \"Group_Equity_Shareholding\" < 100.0"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 5, with those from the school bus table where the ID is 4 or less, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fmakq_12.png", "TableImg_0312r_5.png"], "original_data_index": 4563, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you list the driver IDs that are less than 3 from the driver table, and combine that with a list of driver IDs that are not equal to 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sxuh0_12.png", "TableImg_5ioj0_5.png"], "original_data_index": 4567, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs less than 8 that appear in the driver table, excluding any driver IDs less than 9 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rz2a8_12.png", "TableImg_V3jl8_5.png"], "original_data_index": 4564, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What is the sum of draft numbers and the smallest document ID for documents with ID 13 and draft number at least 16, combined with the sum of draft numbers and the smallest document ID for draft copies with document ID less than or equal to 1, draft number at least 17, or copy number greater than 10?", "answer": {"columns": ["SUM(draft_number)", "MIN(document_id)"], "index": [0, 1], "data": [["16", "13"], ["48", "1"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_N55yq_15.png", "TableImg_0edw1_8.png"], "original_data_index": 4565, "original_sql": "SELECT SUM(draft_number), MIN(document_id) FROM Document_Drafts WHERE \"document_id\" = 13 AND \"draft_number\" >= 16 UNION ALL SELECT SUM(draft_number), MIN(document_id) FROM Draft_Copies WHERE \"document_id\" <= 1 OR \"draft_number\" >= 17 OR \"copy_number\" > 10"} {"question": "Can you give me a list of driver IDs, where the IDs are less than 7 from the driver table, combined with a list of driver IDs from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Agv0h_12.png", "TableImg_2c0kp_5.png"], "original_data_index": 4566, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are less than 4 from the driver table, combined with a list of driver IDs that are exactly 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5sjvg_12.png", "TableImg_Wosng_5.png"], "original_data_index": 4571, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the driver IDs that are less than 2 from the driver table, and also list the driver IDs that are less than 4 from the school bus table, combining the two lists into one?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K10w2_12.png", "TableImg_Q9r9j_5.png"], "original_data_index": 4568, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs, excluding driver ID 3, are also driver IDs greater than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ihtr_12.png", "TableImg_Rizp0_5.png"], "original_data_index": 4570, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Could you give me the IDs of people from the 'people' table who have an ID greater than 5 and a height of at least 187 centimeters, but exclude the IDs of poker players from the 'poker_player' table who either have a money rank of 166 or higher, a poker player ID of 2 or higher, a people ID of 5, a best finish of 3, and a final table made not equal to 10, or have earnings less than 189233?", "answer": {"columns": ["People_ID"], "index": [0], "data": [["6"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_6e94k_7.png", "TableImg_Zvmhz_5.png"], "original_data_index": 4569, "original_sql": "SELECT People_ID FROM people WHERE \"People_ID\" > 5 AND \"Height\" >= 187.0 EXCEPT SELECT People_ID FROM poker_player WHERE \"Money_Rank\" >= 166.0 AND \"Poker_Player_ID\" >= 2 AND \"People_ID\" = 5 AND \"Best_Finish\" = 3.0 AND \"Final_Table_Made\" != 10.0 OR \"Earnings\" < 189233.0"} {"question": "Which driver IDs are both greater than 1 and also less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vz56b_12.png", "TableImg_Ztp5b_5.png"], "original_data_index": 4575, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 9 or greater, combined with a list of driver IDs from the school bus table where the driver ID is 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ier07_12.png", "TableImg_Y0uzk_5.png"], "original_data_index": 4572, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Could you give me the album IDs for albums that aren't titled \"The Best Of 1980-1990\", excluding the IDs of media types that are either \"AAC audio file\" or have an ID of 2?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343], "data": [["1"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_O0qqw_347.png", "TableImg_Vm1o8_5.png"], "original_data_index": 4574, "original_sql": "SELECT id FROM albums WHERE title <> \"The Best Of 1980-1990\" EXCEPT SELECT id FROM media_types WHERE name = \"AAC audio file\" OR \"id\" = 2"} {"question": "What is the alphabetically first city from the airport table that satisfies both of these conditions: either its IATA code is BCN and its ICAO code is not LEBL, or its country is not Denmark; and also, either its city is Baltimore, its IATA code is not BWI, its country is not Spain, its name is El Prat Airport, or its id is 1?", "answer": {"columns": ["MIN(City)"], "index": [0], "data": [["Akureyri"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Lubpg_9.png", "TableImg_83p6q_9.png"], "original_data_index": 4573, "original_sql": "SELECT MIN(City) FROM airport WHERE IATA = \"BCN\" AND ICAO != \"LEBL\" OR Country != \"Denmark\" INTERSECT SELECT MIN(City) FROM airport WHERE City = \"Baltimore\" OR IATA <> \"BWI\" OR Country <> \"Spain\" OR name = \"El Prat Airport\" OR \"id\" = 1"} {"question": "Which driver IDs are equal to 2, but not less than or equal to 7 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z2cno_12.png", "TableImg_Asjj8_5.png"], "original_data_index": 4577, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list all property type descriptions that are not \"Apartment\" and not \"Apartment, Flat, Condo, etc.\", excluding those that are not \"Shop, Retail Outlet.\" or have a property type code of \"House\"?", "answer": {"columns": ["property_type_description"], "index": [0], "data": [["Shop, Retail Outlet."]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_1erpj_5.png", "TableImg_B3yqr_5.png"], "original_data_index": 4582, "original_sql": "SELECT property_type_description FROM Ref_Property_Types WHERE property_type_code != \"Apartment\" AND property_type_description <> \"Apartment, Flat, Condo, etc.\" EXCEPT SELECT property_type_description FROM Ref_Property_Types WHERE property_type_description != \"Shop, Retail Outlet.\" OR property_type_code = \"House\""} {"question": "Which driver IDs are both greater than or equal to 5 in the driver table and greater than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qgmr5_12.png", "TableImg_Rs9iq_5.png"], "original_data_index": 4580, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the aircraft IDs that are less than 4 from the aircraft table, combined with the aircraft IDs that are not equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8s8xx_5.png", "TableImg_A22ar_4.png"], "original_data_index": 4583, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are not 4, combined with all driver IDs from the school bus table that are equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S8v42_12.png", "TableImg_Jykpv_5.png"], "original_data_index": 4584, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 11, and those from the school bus table excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_783hx_12.png", "TableImg_46gy5_5.png"], "original_data_index": 4585, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list all the driver IDs from the driver table that are less than 3, and combine that with a list of all driver IDs from the school_bus table that are less than or equal to 7, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oti0u_12.png", "TableImg_Ais47_5.png"], "original_data_index": 4586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including driver ID 1 from the driver table and driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R31px_12.png", "TableImg_88ftb_5.png"], "original_data_index": 4576, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are less than 12, but not including those driver IDs that are 10 or less and are also associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9e3og_12.png", "TableImg_Xy717_5.png"], "original_data_index": 4587, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of PetIDs and StuIDs from the Has_Pet table, including those where the StuID is less than or equal to 1002, and also including all PetIDs and StuIDs where the StuID is greater than 1002 or the PetID is not 2003?", "answer": {"columns": ["PetID", "StuID"], "index": [0, 1, 2, 3, 4], "data": [["2001", "1001"], ["2002", "1002"], ["2003", "1002"], ["2001", "1001"], ["2002", "1002"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_I4zl5_3.png", "TableImg_Ur344_3.png"], "original_data_index": 4581, "original_sql": "SELECT PetID, StuID FROM Has_Pet WHERE \"StuID\" <= 1002 UNION ALL SELECT PetID, StuID FROM Has_Pet WHERE \"StuID\" > 1002 OR \"PetID\" <> 2003"} {"question": "Can you give me a list of aircraft IDs that are less than 2, but also not equal to 3, based on information from the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Egfd6_5.png", "TableImg_Cdk6v_4.png"], "original_data_index": 4588, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you list the aircraft IDs that are greater than 1, and also list the aircraft IDs from the airport aircraft table that are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hjs5v_5.png", "TableImg_Fnns5_4.png"], "original_data_index": 4589, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What is the number of albums not created by artist 51, and what is the number of genres named \"Science Fiction\" or with an ID less than 23?", "answer": {"columns": ["COUNT(id)"], "index": [0, 1], "data": [["22"], ["344"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_31uyv_347.png", "TableImg_Ayive_25.png"], "original_data_index": 4590, "original_sql": "SELECT COUNT(id) FROM albums WHERE \"artist_id\" != 51 UNION SELECT COUNT(id) FROM genres WHERE name = \"Science Fiction\" OR \"id\" < 23"} {"question": "Which driver IDs are both greater than 7 and appear in the driver table, and also greater than or equal to 7 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sqimo_12.png", "TableImg_2fu3j_5.png"], "original_data_index": 4591, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and also including those from the school_bus table where the ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kx5p0_12.png", "TableImg_Tac7g_5.png"], "original_data_index": 4595, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are both less than 12 and appear in the driver table, and also less than or equal to 9 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dsknu_12.png", "TableImg_6q2t7_5.png"], "original_data_index": 4593, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list all the states from the area code table, excluding Virginia, and also list all the states from the votes table where the phone number is less than or equal to 6209222712, or where the creation date is not March 9th, 2018 at 7:03:39 PM and the vote ID is 1?", "answer": {"columns": ["state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50], "data": [["AK"], ["AL"], ["AR"], ["AZ"], ["CA"], ["CO"], ["CT"], ["DC"], ["DE"], ["FL"], ["GA"], ["HI"], ["IA"], ["ID"], ["IL"], ["IN"], ["KS"], ["KY"], ["LA"], ["MA"], ["MD"], ["ME"], ["MI"], ["MN"], ["MO"], ["MS"], ["MT"], ["NC"], ["ND"], ["NE"], ["NH"], ["NJ"], ["NJ\n"], ["NM"], ["NV"], ["NY"], ["OH"], ["OK"], ["OR"], ["PA"], ["RI"], ["SC"], ["SD"], ["TN"], ["TX"], ["UT"], ["VT"], ["WA"], ["WI"], ["WV"], ["WY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Yy5yo_305.png", "TableImg_Oidra_4.png"], "original_data_index": 4594, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE state != \"VA\" UNION SELECT state FROM VOTES WHERE \"phone_number\" <= 6209222712 OR created != \"2018-03-09 19:03:39\" AND \"vote_id\" = 1"} {"question": "Can you list the origin, airline ID, price, distance, and destination for all flights that either arrived in Washington D.C. on \"04/12/2005 07:05\" with an airline ID greater than 1 or have a flight number that isn't 34 and didn't depart on \"04/12/2005 09:00\" or have a price greater than 220.98, along with all flights that either originate in Chicago or didn't depart on \"04/12/2005 11:50\"?", "answer": {"columns": ["origin", "aid", "price", "distance", "destination"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["Los Angeles", "1", "235.98", "2308", "Washington D.C."], ["Los Angeles", "3", "220.98", "1749", "Chicago"], ["Los Angeles", "2", "182.0", "1251", "Dallas"], ["Los Angeles", "6", "261.56", "2606", "Boston"], ["Los Angeles", "3", "278.56", "7487", "Sydney"], ["Los Angeles", "9", "780.99", "5478", "Tokyo"], ["Los Angeles", "7", "375.23", "2551", "Honolulu"], ["Los Angeles", "5", "425.98", "2551", "Honolulu"], ["Chicago", "9", "220.98", "1749", "Los Angeles"], ["Los Angeles", "1", "235.98", "2308", "Washington D.C."], ["Los Angeles", "3", "220.98", "1749", "Chicago"], ["Los Angeles", "6", "261.56", "2606", "Boston"], ["Los Angeles", "3", "278.56", "7487", "Sydney"], ["Los Angeles", "9", "780.99", "5478", "Tokyo"], ["Los Angeles", "7", "375.23", "2551", "Honolulu"], ["Los Angeles", "5", "425.98", "2551", "Honolulu"], ["Chicago", "9", "220.98", "1749", "Los Angeles"], ["Chicago", "10", "202.45", "802", "New York"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Yuuy1_10.png", "TableImg_R1ajm_10.png"], "original_data_index": 4592, "original_sql": "SELECT origin, aid, price, distance, destination FROM flight WHERE arrival_date = \"04/12/2005 07:05\" AND destination = \"Washington D.C.\" AND \"aid\" > 1 OR \"flno\" != 34 AND departure_date <> \"04/12/2005 09:00\" OR \"price\" > 220.98 UNION ALL SELECT origin, aid, price, distance, destination FROM flight WHERE origin = \"Chicago\" OR departure_date != \"04/12/2005 11:50\""} {"question": "Can you give me the employee IDs of employees who either earn more than $20 or have an ID less than 90873519, but exclude those employees with IDs greater than or equal to 242518965 who are not named Michael Miller and earn at least $105743?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["11564812"], ["15645489"], ["90873519"], ["141582651"], ["142519864"], ["159542516"], ["248965255"], ["254099823"], ["274878974"], ["287321212"], ["310454877"], ["348121549"], ["356187925"], ["486512566"], ["489221823"], ["489456522"], ["548977562"], ["552455318"], ["619023588"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Z2oc7_31.png", "TableImg_85p8h_31.png"], "original_data_index": 4598, "original_sql": "SELECT eid FROM employee WHERE \"salary\" > 20 OR \"eid\" < 90873519 EXCEPT SELECT eid FROM employee WHERE \"eid\" >= 242518965 AND name != \"Michael Miller\" AND \"salary\" >= 105743"} {"question": "Can you give me a list of driver IDs, including driver ID 7 from the driver table and any driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kk7gf_12.png", "TableImg_5lhex_5.png"], "original_data_index": 4599, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than 6 and also not equal to 9, considering only the distinct driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0m535_12.png", "TableImg_2tdqw_5.png"], "original_data_index": 4596, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the average city population and corresponding district ID for districts where the city area is 25, or the store ID is 4 or less, or the headquarters city is not \"Chiniot City\" and the district name is not \"Gujrat District\", or the city population is 1,526,168 or less?", "answer": {"columns": ["AVG(T1.City_Population)", "District_ID"], "index": [0], "data": [["223166", "15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Jgg2i_15.png", "TableImg_8bwqa_5.png"], "original_data_index": 4597, "original_sql": "SELECT AVG(T1.City_Population), T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE \"City_Area\" = 25.0 OR \"Store_ID\" <= 4 OR Headquartered_City <> \"Chiniot City\" AND District_name <> \"Gujrat District\" OR \"City_Population\" <= 1526168.0"} {"question": "Can you give me a list of driver IDs that are greater than 4 from the driver table, combined with a list of driver IDs that are exactly 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sx6rf_12.png", "TableImg_1ofas_5.png"], "original_data_index": 4602, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 1, and also list the aircraft IDs from the airport_aircraft table that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N4pj4_5.png", "TableImg_Xq31p_4.png"], "original_data_index": 4600, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 6, that are not also driver ID 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V4noq_12.png", "TableImg_G7xbv_5.png"], "original_data_index": 4601, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 1 and those from the school_bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mixks_12.png", "TableImg_Dpttu_5.png"], "original_data_index": 4603, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list the aircraft IDs that are greater than or equal to 4 from the aircraft table, and also list the aircraft IDs that are greater than 3 from the airport_aircraft table, combining both lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K6fm5_5.png", "TableImg_Dp283_4.png"], "original_data_index": 4606, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 4, combined with a list of driver IDs from the school_bus table where each ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mldal_12.png", "TableImg_Kexu0_5.png"], "original_data_index": 4607, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me the highest branch ID, the opening year, and the average membership amount for branches in Oxford, excluding those on Brampton Road or with a membership amount of 11, where the branch ID is less than or equal to 1 and the name isn't Alexandre, combined with the same information for branches in London that opened in 2014, have a branch ID of 1, a membership amount that is not 11, and aren't named Stanley?", "answer": {"columns": ["MAX(Branch_ID)", "Open_year", "AVG(membership_amount)"], "index": [0, 1], "data": [["8.0", "2009.0", "44.8571428571"], ["", "", ""]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_1f9qf_8.png", "TableImg_Vi18z_8.png"], "original_data_index": 4605, "original_sql": "SELECT MAX(Branch_ID), Open_year, AVG(membership_amount) FROM branch WHERE Address_road != \"Brampton Road\" OR membership_amount != \"11\" AND \"Branch_ID\" <= 1 AND City = \"Oxford\" AND Name <> \"Alexandre\" UNION ALL SELECT MAX(Branch_ID), Open_year, AVG(membership_amount) FROM branch WHERE Name != \"Stanley\" AND Open_year = \"2014\" AND membership_amount != \"11\" AND City = \"London\" AND \"Branch_ID\" = 1"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 1 and not equal to 10, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rfndz_12.png", "TableImg_79568_5.png"], "original_data_index": 4604, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 4 or greater, and those from the school bus table where the ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gtk0x_12.png", "TableImg_Ikqfw_5.png"], "original_data_index": 4610, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 1, and those from the school bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sgi96_12.png", "TableImg_Hc9yf_5.png"], "original_data_index": 4609, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs less than 10, excluding those driver IDs that are also greater than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xgxm3_12.png", "TableImg_Fmmna_5.png"], "original_data_index": 4611, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs, excluding 10, are also driver IDs that are greater than or equal to 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tnie3_12.png", "TableImg_Bx3eu_5.png"], "original_data_index": 4614, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs, excluding driver ID 5, are also driver ID 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M0wor_12.png", "TableImg_W6v5t_5.png"], "original_data_index": 4613, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 5, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Czthq_5.png", "TableImg_W7cdv_4.png"], "original_data_index": 4612, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs less than 5 are also driver IDs of school buses, specifically driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6gyxq_12.png", "TableImg_Zznxf_5.png"], "original_data_index": 4615, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are both not equal to 9 and also greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rehc4_12.png", "TableImg_04pqs_5.png"], "original_data_index": 4616, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What is the highest store ID for stores with more than 1678 product categories, and also the highest store ID from the store district table where the store ID is 4 or less?", "answer": {"columns": ["MAX(Store_ID)"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Wv0rc_5.png", "TableImg_Tupjg_5.png"], "original_data_index": 4617, "original_sql": "SELECT MAX(Store_ID) FROM store WHERE \"Number_of_product_category\" > 1678.0 UNION SELECT MAX(Store_ID) FROM store_district WHERE \"Store_ID\" <= 4"} {"question": "Which driver IDs are both greater than 2 and also equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6x1ut_12.png", "TableImg_Rklqu_5.png"], "original_data_index": 4619, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of all the district IDs, including duplicates, where the store ID is not 1, and also include all district IDs where the store ID is not 2 or the district ID is 3 or less?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["15"], ["11"], ["4"], ["3"], ["15"], ["11"], ["4"], ["3"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_9u0zp_5.png", "TableImg_Nsrzl_5.png"], "original_data_index": 4620, "original_sql": "SELECT District_ID FROM store_district WHERE \"Store_ID\" <> 1 UNION ALL SELECT District_ID FROM store_district WHERE \"Store_ID\" <> 2 OR \"District_ID\" <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 3 or greater, and those from the school bus table where the ID is 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jyiap_12.png", "TableImg_Imvk8_5.png"], "original_data_index": 4618, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you tell me the name, minimum party affiliation, age, sum of driver IDs, and home city for all drivers named Henry Genga, excluding those with a Driver ID of 10, combined with the same information for all drivers who are not affiliated with the Dem party?", "answer": {"columns": ["Name", "MIN(Party)", "Age", "SUM(Driver_ID)", "Home_city"], "index": [0, 1], "data": [["", "", "", "", ""], ["Dan Carter", "Rep", "30.0", "10.0", "Bethel"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_1jtu0_12.png", "TableImg_14wqc_12.png"], "original_data_index": 4608, "original_sql": "SELECT Name, MIN(Party), Age, SUM(Driver_ID), Home_city FROM driver WHERE \"Driver_ID\" != 10 AND Name = \"Henry Genga\" UNION ALL SELECT Name, MIN(Party), Age, SUM(Driver_ID), Home_city FROM driver WHERE Party != \"Dem\""} {"question": "Which driver IDs are not equal to 8 and are also less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4atcv_12.png", "TableImg_Jnyx6_5.png"], "original_data_index": 4624, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are less than 6, excluding those driver IDs that are also greater than 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mfh7s_12.png", "TableImg_374sl_5.png"], "original_data_index": 4621, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Could you give me the draft numbers and document IDs that are both in the Document_Drafts table where the draft details are \"k\" or the draft number is less than or equal to 1 and the document ID is not 12, and also in the Draft_Copies table where the document ID is 10?", "answer": {"columns": ["draft_number", "document_id"], "index": [0], "data": [["20", "10"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_T4qhx_15.png", "TableImg_18xbr_8.png"], "original_data_index": 4623, "original_sql": "SELECT draft_number, document_id FROM Document_Drafts WHERE draft_details = \"k\" OR \"draft_number\" <= 1 AND \"document_id\" <> 12 INTERSECT SELECT draft_number, document_id FROM Draft_Copies WHERE \"document_id\" = 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or greater, and those from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2yf08_12.png", "TableImg_0wdpa_5.png"], "original_data_index": 4622, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you give me a list of employee IDs from the circulation history where the copy number isn't 4, the document ID is 10, the draft number isn't 20, or the employee ID is 2 or greater, combined with the employee ID of anyone named Kenyon from the employees table?", "answer": {"columns": ["employee_id"], "index": [0, 1, 2], "data": [["1"], ["2"], ["8"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_J7z2f_4.png", "TableImg_Bxe89_6.png"], "original_data_index": 4628, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"copy_number\" != 4 OR \"document_id\" = 10 OR \"draft_number\" <> 20 OR \"employee_id\" >= 2 UNION SELECT employee_id FROM Employees WHERE employee_name = \"Kenyon\""} {"question": "Can you give me the aircraft IDs that satisfy both of these conditions: first, the ID is less than or equal to 10, the distance is greater than 3383, or the name is Airbus A320, but the ID is not 9; and second, the distance is greater than 1805, the name is not Airbus A319, or the ID is not 5, and the ID is 3?", "answer": {"columns": ["aid"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Ng4zt_16.png", "TableImg_Baotn_16.png"], "original_data_index": 4629, "original_sql": "SELECT aid FROM aircraft WHERE \"aid\" <= 10 OR \"distance\" > 3383 OR name = \"Airbus A320\" GROUP BY aid HAVING aid <> 9 INTERSECT SELECT aid FROM aircraft WHERE \"distance\" > 1805 OR name != \"Airbus A319\" OR \"aid\" <> 5 GROUP BY aid HAVING aid = 3"} {"question": "Which driver IDs appear in the driver table, excluding driver ID 1, and also appear in the school_bus table with driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wwrvr_12.png", "TableImg_2d61q_5.png"], "original_data_index": 4630, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, other than driver ID 4, are in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Av5x5_12.png", "TableImg_Lxyh4_5.png"], "original_data_index": 4631, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are both greater than or equal to 2 and also less than or equal to 7, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O6z9z_12.png", "TableImg_Ts1b6_5.png"], "original_data_index": 4632, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list all the \"Other Details\" from documents that have \"None\" as their other details, a Document ID of 82, and the name \"How to write a CV\", combined with all the \"Other Details\" from paragraphs that either don't have \"None\" as their other details, have a Document ID less than or equal to 80, or have paragraph text that is not \"Ukraine\"?", "answer": {"columns": ["Other_Details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [[""], [""], [""], [""], [""], [""], [""], [""], [""], [""], [""], [""], [""], [""]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_7j81b_15.png", "TableImg_8pumx_15.png"], "original_data_index": 4633, "original_sql": "SELECT Other_Details FROM Documents WHERE Other_Details = \"None\" AND \"Document_ID\" = 82 AND Document_Name = \"How to write a CV\" UNION ALL SELECT Other_Details FROM Paragraphs WHERE Other_Details <> \"None\" OR \"Document_ID\" <= 80 OR Paragraph_Text <> \"Ukraine\""} {"question": "Can you give me a list of driver IDs, up to and including 9, that are in the driver table but not in the school bus table, where the school bus table only includes driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2rk2m_12.png", "TableImg_E3qit_5.png"], "original_data_index": 4634, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which aircraft IDs, excluding ID 4, are present in the aircraft table and also, excluding ID 5, are present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6nb31_5.png", "TableImg_Ioqwc_4.png"], "original_data_index": 4635, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs, excluding driver ID 11, are also driver IDs excluding driver ID 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6duqv_12.png", "TableImg_Jk9el_5.png"], "original_data_index": 4636, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What grades, types, and schools are both not \"St. Francis Assisi\" and also not \"Public\" and not \"State Elementary School Menteng 01\"?", "answer": {"columns": ["Grade", "Type", "School"], "index": [0, 1, 2, 3], "data": [["5th-12th grade", "Private", "Punahou School"], ["College", "Private", "Harvard Law School"], ["Freshman\u2013Sophomore year", "Private", "Occidental College"], ["Junior\u2013Senior year", "Private", "Columbia University"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_M5200_7.png", "TableImg_3s7tw_7.png"], "original_data_index": 4627, "original_sql": "SELECT Grade, Type, School FROM school WHERE School != \"St. Francis Assisi\" INTERSECT SELECT Grade, Type, School FROM school WHERE Type <> \"Public\" AND School <> \"State Elementary School Menteng 01\""} {"question": "Can you give me a list of driver IDs that are greater than 2, excluding any driver IDs from the school bus table that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2vgo7_12.png", "TableImg_42m4n_5.png"], "original_data_index": 4626, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me the joining date, last name, nickname, staff ID, staff address ID, first name, and leaving date for all staff members, including those whose nickname isn't norma73 or whose birthdate isn't April 27, 1998 at 12:55:05, as well as those whose first name isn't Titus or whose address ID isn't 1, last name isn't Mertz, and middle name isn't Stephania?", "answer": {"columns": ["date_joined_staff", "last_name", "nickname", "staff_id", "staff_address_id", "first_name", "date_left_staff"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["2016-05-01 02:22:45", "Jast", "nicholaus92", "11", "1", "Winnifred", "2018-03-09 05:08:35"], ["2016-05-16 20:56:53", "Herzog", "ledner.jamie", "5", "14", "Jedidiah", "2018-03-08 04:23:14"], ["2016-05-26 00:55:07", "Durgan", "gabe21", "8", "1", "Titus", "2018-03-05 18:30:12"], ["2016-06-05 22:22:23", "Rogahn", "sbrown", "10", "2", "Jaleel", "2018-03-14 07:14:37"], ["2016-06-06 08:54:28", "Weissnat", "santos45", "2", "3", "Camylle", "2018-03-10 15:25:00"], ["2016-11-05 01:43:52", "Carroll", "edwin.hudson", "12", "7", "Lincoln", "2018-03-06 23:17:41"], ["2016-11-13 20:44:23", "Mraz", "norma73", "13", "1", "Ernestina", "2018-02-26 17:56:31"], ["2017-02-20 18:45:20", "Turner", "weissnat.vincenzo", "15", "3", "Simeon", "2018-03-01 17:10:03"], ["2017-04-27 03:21:26", "Sawayn", "thompson.constantin", "1", "14", "Janessa", "2018-03-23 22:53:12"], ["2017-06-04 14:30:41", "Macejkovic", "weldon.kling", "7", "13", "Queenie", "2018-03-08 05:16:29"], ["2017-08-27 19:19:44", "Maggio", "bogisich.geovany", "6", "12", "Eulalia", "2018-02-28 08:26:10"], ["2017-08-30 15:08:37", "Kuphal", "bkunze", "14", "6", "Ludie", "2018-03-02 01:48:15"], ["2017-10-21 17:20:57", "Hermann", "lsenger", "4", "1", "Rebekah", "2018-03-04 17:13:53"], ["2017-12-22 03:06:32", "Doyle", "ymiller", "9", "4", "Margie", "2018-03-08 12:31:16"], ["2018-01-02 12:24:24", "Mertz", "ynader", "3", "5", "Kaitlin", "2018-03-24 10:11:08"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Cj06l_15.png", "TableImg_Rc0rh_15.png"], "original_data_index": 4625, "original_sql": "SELECT date_joined_staff, last_name, nickname, staff_id, staff_address_id, first_name, date_left_staff FROM Staff WHERE nickname <> \"norma73\" OR date_of_birth <> \"1998-04-27 12:55:05\" UNION SELECT date_joined_staff, last_name, nickname, staff_id, staff_address_id, first_name, date_left_staff FROM Staff WHERE first_name != \"Titus\" OR \"staff_address_id\" <> 1 AND last_name != \"Mertz\" AND middle_name <> \"Stephania\""} {"question": "Can you give me the sum of the maximum disk loading, the maximum gross weight, the count of the total disk area, the sum of aircraft, the count of descriptions, and the aircraft ID for all aircraft, first excluding aircraft ID 3, and then separately for only aircraft with ID 4 that are not \"CH-53E Super Stallion\"?", "answer": {"columns": ["SUM(Max_disk_Loading)", "MAX(Max_Gross_Weight)", "COUNT(Total_disk_area)", "SUM(Aircraft)", "COUNT(Description)", "Aircraft_ID"], "index": [0, 1], "data": [["35.8", "73,500 lb (33,300 kg)", "4", "0", "4", "5"], ["14.5", "123,500 lb (56,000 kg)", "1", "0", "1", "4"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_5tgoc_5.png", "TableImg_6q4i5_5.png"], "original_data_index": 4639, "original_sql": "SELECT SUM(Max_disk_Loading), MAX(Max_Gross_Weight), COUNT(Total_disk_area), SUM(Aircraft), COUNT(Description), Aircraft_ID FROM aircraft WHERE \"Aircraft_ID\" <> 3 UNION ALL SELECT SUM(Max_disk_Loading), MAX(Max_Gross_Weight), COUNT(Total_disk_area), SUM(Aircraft), COUNT(Description), Aircraft_ID FROM aircraft WHERE \"Aircraft_ID\" = 4 AND Aircraft <> \"CH-53E Super Stallion\""} {"question": "Which driver IDs are both greater than or equal to 2 and also less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ydhav_12.png", "TableImg_3mync_5.png"], "original_data_index": 4640, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 5, and those from the school_bus table that are equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7s0ob_12.png", "TableImg_Zdqgx_5.png"], "original_data_index": 4637, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list all the Shop IDs and Start From dates from the hiring table, including entries where the Employee ID is not 1 or the Start From date is not 2003, and also including entries where the Start From date is not 2003, or the Employee ID is 7 or less, or the Shop ID is not 6?", "answer": {"columns": ["Shop_ID", "Start_from"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1", "2009"], ["1", "2003"], ["8", "2011"], ["4", "2012"], ["5", "2013"], ["2", "2010"], ["6", "2008"], ["1", "2009"], ["1", "2003"], ["8", "2011"], ["4", "2012"], ["5", "2013"], ["2", "2010"], ["6", "2008"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_7jvtc_7.png", "TableImg_Yd8rw_7.png"], "original_data_index": 4638, "original_sql": "SELECT Shop_ID, Start_from FROM hiring WHERE \"Employee_ID\" <> 1 OR Start_from != \"2003\" UNION ALL SELECT Shop_ID, Start_from FROM hiring WHERE Start_from != \"2003\" OR \"Employee_ID\" <= 7 OR \"Shop_ID\" <> 6"} {"question": "Can you list the aircraft IDs that are less than 2 from the aircraft table, and also list the aircraft IDs that are less than or equal to 5 from the airport_aircraft table, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mwarj_5.png", "TableImg_Zx6bp_4.png"], "original_data_index": 4641, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me the driver ID that is equal to 12, excluding any driver IDs from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2qk3q_12.png", "TableImg_Iz2wi_5.png"], "original_data_index": 4643, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are greater than 7 with those from the school_bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Foozn_12.png", "TableImg_L6hen_5.png"], "original_data_index": 4642, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What aircraft IDs, excluding ID 4, are present in the aircraft table and also, excluding ID 2, are present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ymhx4_5.png", "TableImg_L8t4z_4.png"], "original_data_index": 4644, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are not equal to 7 and are also not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kn7qy_12.png", "TableImg_Bkfh0_5.png"], "original_data_index": 4647, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the IDs of drivers that are less than or equal to 1, excluding those with an ID of 4 who are also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iwd07_12.png", "TableImg_S8co4_5.png"], "original_data_index": 4648, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 5, and those from the school bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fadar_12.png", "TableImg_68dmy_5.png"], "original_data_index": 4645, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you tell me the alphabetically first aircraft name, excluding \"Schwitzer 2-33\" where the aircraft ID isn't 3 or the distance is greater than 520, combined with the alphabetically first employee name where the salary isn't 256481 or the name is \"James Smith\"?", "answer": {"columns": ["MIN(name)"], "index": [0, 1], "data": [["Airbus A319"], ["Angela Martinez"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Tpq2t_16.png", "TableImg_B7jt2_31.png"], "original_data_index": 4646, "original_sql": "SELECT MIN(name) FROM aircraft WHERE name <> \"Schwitzer 2-33\" AND \"aid\" != 3 OR \"distance\" > 520 UNION SELECT MIN(name) FROM employee WHERE \"salary\" <> 256481 OR name = \"James Smith\""} {"question": "Can you give me a list of driver IDs that are less than 10 from the driver table, combined with a list of driver IDs that are less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wyo0l_12.png", "TableImg_Xmhgi_5.png"], "original_data_index": 4650, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Could you give me a list of driver IDs, including driver ID 2 from the driver table and driver ID 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yrenk_12.png", "TableImg_9goh1_5.png"], "original_data_index": 4651, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 9 and those from the school bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T6ch5_12.png", "TableImg_Ngr3r_5.png"], "original_data_index": 4649, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are both less than 12 and also greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Spuxh_12.png", "TableImg_89zna_5.png"], "original_data_index": 4653, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are both not equal to 4 and greater than 9, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rvlba_12.png", "TableImg_Zxte1_5.png"], "original_data_index": 4652, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1hihr_12.png", "TableImg_Bq9go_5.png"], "original_data_index": 4656, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are both greater than or equal to 2 and also not equal to 7, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E1cif_12.png", "TableImg_Qxoo2_5.png"], "original_data_index": 4655, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or greater, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0ib27_12.png", "TableImg_J7wh6_5.png"], "original_data_index": 4657, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 5, excluding any driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q6wxu_12.png", "TableImg_Oatr4_5.png"], "original_data_index": 4659, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Could you list the car makers from the car_makers table that are either \"renault\" or not from country \"8\" and have an \"Id\" of 6 and a FullName of \"Chrysler\", but exclude any car makers that also appear in the model_list table with a model that isn't \"cadillac\"?", "answer": {"columns": ["Maker"], "index": [0, 1], "data": [["chrysler"], ["renault"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_O7tmu_22.png", "TableImg_Jvczq_36.png"], "original_data_index": 4658, "original_sql": "SELECT Maker FROM car_makers WHERE Maker = \"renault\" OR Country != \"8\" AND \"Id\" = 6 AND FullName = \"Chrysler\" EXCEPT SELECT Maker FROM model_list WHERE Model != \"cadillac\""} {"question": "Which driver has an ID of 7 and is not a school bus driver with an ID other than 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lwql9_12.png", "TableImg_Abwyc_5.png"], "original_data_index": 4660, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list the rank and club ID for coaches who are either not female or not named Smith Brown, and whose coach ID is not 5, and have a rank of 2, or have a club ID greater than 1, combined with the rank and club ID for match results where bronze is at least 7, small silver is less than 16, and rank is at most 3, or gold is less than 20, or big silver is at least 7, or club ID is at least 3?", "answer": {"columns": ["Rank", "Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1", "1"], ["2", "1"], ["2", "2"], ["3", "3"], ["4", "3"], ["4", "4"], ["5", "1"], ["5", "5"], ["6", "6"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Fcerv_5.png", "TableImg_I80f4_6.png"], "original_data_index": 4661, "original_sql": "SELECT Rank, Club_ID FROM coach WHERE Gender != \"F\" OR Coach_name != \"Smith Brown\" AND \"Coach_ID\" != 5 AND \"Rank\" = 2 OR \"Club_ID\" > 1 UNION SELECT Rank, Club_ID FROM match_result WHERE \"Bronze\" >= 7 AND \"Small_Silver\" < 16 AND \"Rank\" <= 3 OR \"Gold\" < 20 OR \"Big_Silver\" >= 7 OR \"Club_ID\" >= 3"} {"question": "Which driver IDs appear in both the driver table where the ID is 10 and the school_bus table where the ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3676j_12.png", "TableImg_Wzspy_5.png"], "original_data_index": 4662, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are not equal to 1, but only if those driver IDs are not also greater than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ubpt5_12.png", "TableImg_3jl1l_5.png"], "original_data_index": 4663, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs that are not equal to 3 from the driver table, but also less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V5i2w_12.png", "TableImg_Rjisy_5.png"], "original_data_index": 4664, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "How many people in the employment table have IDs greater than or equal to 2, work for company 17, and have worked for at least 2 years, plus how many people in the people table either aren't ID 7, aren't from the United States, aren't named Jerry Corcoran, and graduated from California, or are younger than 37?", "answer": {"columns": ["COUNT(People_ID)"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_T7u2m_5.png", "TableImg_4wicn_7.png"], "original_data_index": 4665, "original_sql": "SELECT COUNT(People_ID) FROM employment WHERE \"People_ID\" >= 2 AND \"Company_ID\" = 17 AND \"Year_working\" >= 2 UNION ALL SELECT COUNT(People_ID) FROM people WHERE \"People_ID\" != 7 AND Nationality != \"United States\" AND Name <> \"Jerry Corcoran\" AND Graduation_College = \"California\" OR \"Age\" < 37"} {"question": "Can you give me a list of driver IDs, excluding driver ID 6, that are not also on a list of driver IDs less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yxehm_12.png", "TableImg_P5757_5.png"], "original_data_index": 4667, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 1, excluding any driver IDs from the school_bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rj7fu_12.png", "TableImg_Nxhtc_5.png"], "original_data_index": 4669, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What aircraft IDs are present in the aircraft table, excluding ID 4, and also present in the airport_aircraft table with IDs less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_739pw_5.png", "TableImg_4xgat_4.png"], "original_data_index": 4666, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you list the aircraft IDs from the aircraft table, including only those less than or equal to 5, and combine that with a list of aircraft IDs from the airport_aircraft table, including only those that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_W72im_5.png", "TableImg_Glzew_4.png"], "original_data_index": 4668, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7 and those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ttifr_12.png", "TableImg_Ywcf2_5.png"], "original_data_index": 4670, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are both greater than or equal to 10 in the driver list and greater than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Acjo2_12.png", "TableImg_Ofwgc_5.png"], "original_data_index": 4671, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 9, and those from the school bus table where the ID is 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I5gcz_12.png", "TableImg_Gejoy_5.png"], "original_data_index": 4672, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 4, that are present in the aircraft table but not in the airport_aircraft table where the aircraft ID is 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ro4qm_5.png", "TableImg_Kgl7w_4.png"], "original_data_index": 4675, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs, including driver ID 9 and any driver IDs from the school bus list that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T13tx_12.png", "TableImg_G9hxa_5.png"], "original_data_index": 4674, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me the names that appear in both of these lists: one where the name isn't Jeff Maggert and the age is under 69, and another where the person wasn't born in Connecticut and is named Sergio Garc\u00eda, or their age is 69 or less?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Dudley Hart"], ["Franklin Langham"], ["Nick Faldo"], ["P\u00e1draig Harrington"], ["Sergio Garc\u00eda"], ["Stewart Cink"], ["Tiger Woods"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Mqgww_10.png", "TableImg_Alwyb_10.png"], "original_data_index": 4673, "original_sql": "SELECT name FROM head WHERE name != \"Jeff Maggert\" AND \"age\" < 69.0 INTERSECT SELECT name FROM head WHERE born_state != \"Connecticut\" AND name = \"Sergio Garc\u00eda\" OR \"age\" <= 69.0"} {"question": "Which driver IDs are both less than or equal to 10 and equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8jwpi_12.png", "TableImg_B8czi_5.png"], "original_data_index": 4676, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are both less than 11 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Malbd_12.png", "TableImg_Zfa81_5.png"], "original_data_index": 4679, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are greater than 2, but exclude any driver IDs that are equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qbru0_12.png", "TableImg_Mbb17_5.png"], "original_data_index": 4678, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me the school IDs for schools that either have \"Redskins\" as their mascot and aren't named \"Culver Community,\" or are not located in \"Walkerton\" and have a school ID other than \"1,\" along with the school IDs from the budget table where the invested amount is less than 95542 and the budget invested percentage is \"127.6\"?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_N9ny0_8.png", "TableImg_57gky_8.png"], "original_data_index": 4677, "original_sql": "SELECT School_id FROM School WHERE Mascot = \"Redskins\" AND School_name != \"Culver Community\" OR Location != \"Walkerton\" AND School_id <> \"1\" UNION ALL SELECT School_id FROM budget WHERE \"Invested\" < 95542 AND Budget_invested_percent = \"127.6\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, from the driver table, but only those driver IDs that are not also in the school bus table with driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y6a5g_12.png", "TableImg_Usa8s_5.png"], "original_data_index": 4680, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 5, excluding the IDs of school bus drivers with IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rihyq_12.png", "TableImg_Rpjya_5.png"], "original_data_index": 4681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What aircraft IDs are both greater than or equal to 2 in the aircraft table and not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0820m_5.png", "TableImg_1e89e_4.png"], "original_data_index": 4683, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you tell me the smallest number of beds, the largest room name, and the count of maximum occupancy, all grouped by bed type, for rooms where either the room ID isn't \"RTE\" and the room name isn't \"Thrift and accolade\", or the number of beds isn't 2 and the maximum occupancy is at least 4, combined with the same information for rooms where either the maximum occupancy is greater than 2 and the number of beds isn't 2, or the room ID isn't \"HBB\" and the base price is 175?", "answer": {"columns": ["bedType", "MIN(beds)", "MAX(roomName)", "COUNT(maxOccupancy)"], "index": [0, 1], "data": [["King", "1", "Recluse and defiance", "8"], ["Queen", "2", "Riddle to exculpate", "3"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_Sk50w_10.png", "TableImg_5ifab_10.png"], "original_data_index": 4682, "original_sql": "SELECT bedType, MIN(beds), MAX(roomName), COUNT(maxOccupancy) FROM Rooms WHERE RoomId <> \"RTE\" AND roomName <> \"Thrift and accolade\" OR \"beds\" != 2 AND \"maxOccupancy\" >= 4 UNION ALL SELECT bedType, MIN(beds), MAX(roomName), COUNT(maxOccupancy) FROM Rooms WHERE \"maxOccupancy\" > 2 AND \"beds\" <> 2 OR RoomId <> \"HBB\" AND \"basePrice\" = 175"} {"question": "Could you list all the document type codes that are \"CD\", along with all the document type codes from the reference table that either have a description of \"u\" or a code of \"CD\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["CD"], ["CD"], ["CD"], ["CD"], ["CD"], ["CD"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Wv9zt_15.png", "TableImg_8sl30_3.png"], "original_data_index": 4686, "original_sql": "SELECT document_type_code FROM Documents WHERE document_type_code = \"CD\" UNION ALL SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description = \"u\" OR document_type_code = \"CD\""} {"question": "Can you list all the driver IDs that are greater than or equal to 3 from the driver table, combined with all the driver IDs that are greater than or equal to 4 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E3h05_12.png", "TableImg_8fhgd_5.png"], "original_data_index": 4684, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of city codes for students who either have the first name Charles, or are not 17 years old and live in PEK and don't have the last name Jones, or are not male, or whose major is not greater than 600 and StuID is not greater than 1020; combined with city codes for students who don't have the last name Adams, or don't have the first name Paul, or are not 22 years old and have a StuID greater than 1001, or don't live in NYC, or don't have 8772 as their advisor, or are not male?", "answer": {"columns": ["city_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["ATL"], ["BAL"], ["BOS"], ["CHI"], ["DAL"], ["DET"], ["HKG"], ["HOU"], ["LON"], ["LOS"], ["NAR"], ["NYC"], ["PEK"], ["PHL"], ["PIT"], ["ROC"], ["SFO"], ["WAS"], ["YYZ"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_8kgkl_34.png", "TableImg_K9ek4_34.png"], "original_data_index": 4685, "original_sql": "SELECT city_code FROM Student WHERE Fname = \"Charles\" OR \"Age\" != 17 AND city_code = \"PEK\" AND LName != \"Jones\" OR Sex <> \"M\" OR \"Major\" <= 600 AND \"StuID\" <= 1020 UNION SELECT city_code FROM Student WHERE LName != \"Adams\" OR Fname != \"Paul\" OR \"Age\" != 22 AND \"StuID\" > 1001 OR city_code <> \"NYC\" OR \"Advisor\" != 8772 OR Sex <> \"M\""} {"question": "Which driver IDs, excluding driver ID 6, are not also driver IDs of school buses where the driver ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6cv5n_12.png", "TableImg_D1idx_5.png"], "original_data_index": 4689, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table, and any driver IDs greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7u3hw_12.png", "TableImg_Pd44j_5.png"], "original_data_index": 4687, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the driver IDs that are less than or equal to 11 from the driver table, and combine that with a list of driver IDs that are less than or equal to 4 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ew4c5_12.png", "TableImg_0zq0w_5.png"], "original_data_index": 4688, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the highest document ID from the circulation history where the copy number is 4 and the draft number is 20 or less, combined with the highest document ID from the documents table where the receipt date is April 17, 1999 at 2:19:32 PM, the document status is overdue, and the receipt number is 69?", "answer": {"columns": ["MAX(document_id)"], "index": [0, 1], "data": [[""], ["2.0"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_1iun5_4.png", "TableImg_Vp1py_15.png"], "original_data_index": 4690, "original_sql": "SELECT MAX(document_id) FROM Circulation_History WHERE \"copy_number\" = 4 AND \"draft_number\" <= 20 UNION SELECT MAX(document_id) FROM Documents WHERE receipt_date = \"1999-04-17 14:19:32\" AND document_status_code = \"overdue\" AND receipt_number = \"69\""} {"question": "Which driver has the ID 6, but is not a driver with an ID other than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Of4yn_12.png", "TableImg_Hs45a_5.png"], "original_data_index": 4692, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are greater than 1, excluding those driver IDs that are less than or equal to 10 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8lo7y_12.png", "TableImg_O8hi8_5.png"], "original_data_index": 4693, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 8, combined with a list of driver IDs from the school_bus table where the ID is exactly 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4dqlw_12.png", "TableImg_Dsv9a_5.png"], "original_data_index": 4691, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are in the driver table but not in the school_bus table, where we also exclude driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6gdg7_12.png", "TableImg_9cagv_5.png"], "original_data_index": 4694, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are both not equal to 2 and greater than 9, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cogxd_12.png", "TableImg_391le_5.png"], "original_data_index": 4697, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are 10 or greater from the driver table, excluding any driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xasdy_12.png", "TableImg_V2zpt_5.png"], "original_data_index": 4695, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What is the highest working year for company IDs up to 15 and people IDs up to 4, specifically when the working year is 1, excluding the highest working years that are 3 or greater?", "answer": {"columns": ["MAX(Year_working)"], "index": [0], "data": [["1"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_J9jai_5.png", "TableImg_L069v_5.png"], "original_data_index": 4696, "original_sql": "SELECT MAX(Year_working) FROM employment WHERE \"Company_ID\" <= 15 AND \"People_ID\" <= 4 AND \"Year_working\" = 1 EXCEPT SELECT MAX(Year_working) FROM employment WHERE \"Year_working\" >= 3"} {"question": "Can you give me the city, building number, and address ID for all addresses in the USA that are not in West Virginia and do not have the building number \"3904 Stroman Passage\", combined with the city, building number, and address ID for all addresses with zip code \"14445\" that are not in Buckridgehaven or in the USA, or that do not have the building number \"9260 Streich Mountain\"?", "answer": {"columns": ["city", "line_1_number_building", "address_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Buckridgehaven", "484 O'Hara Drive", "4"], ["Damianfort", "4834 Schaefer Light Suite 947", "14"], ["Elviebury", "376 Kallie Tunnel Apt. 784", "6"], ["Ericamouth", "43235 Jazmin Mountain Suite 251", "13"], ["Hagenesfurt", "053 Quigley Island", "2"], ["Lake Elaina", "00704 Zoe Alley", "3"], ["Lake Rafaela", "29085 Dejah Pine Suite 059", "8"], ["Lockmanfurt", "56461 Baumbach Well Suite 634", "7"], ["New Bernieceburgh", "7089 Mueller Forks", "12"], ["Port Jackelinemouth", "535 Ariel Brook", "9"], ["Port Melyssa", "3904 Stroman Passage", "1"], ["Powlowskichester", "354 Frederik Ridge", "5"], ["South Eugene", "37698 Hahn Curve Apt. 572", "11"], ["South Richieport", "2291 Larkin Ports", "10"], ["West Edmondview", "9260 Streich Mountain", "15"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_I3e8t_15.png", "TableImg_M0lpa_15.png"], "original_data_index": 4698, "original_sql": "SELECT city, line_1_number_building, address_id FROM Addresses WHERE state_province_county <> \"WestVirginia\" AND line_1_number_building != \"3904 Stroman Passage\" AND country = \"USA\" UNION SELECT city, line_1_number_building, address_id FROM Addresses WHERE zip_postcode = \"14445\" AND city <> \"Buckridgehaven\" AND country <> \"USA\" OR line_1_number_building != \"9260 Streich Mountain\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 9 or less, and those from the school_bus table that are 10 or more?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ll0m_12.png", "TableImg_5srmd_5.png"], "original_data_index": 4702, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 2, but also excluding any driver IDs that appear in the school_bus table and are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mw7py_12.png", "TableImg_4vndp_5.png"], "original_data_index": 4700, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1 from the driver table and driver ID 10 from the school_bus table, showing each unique driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0dtkq_12.png", "TableImg_Rp43d_5.png"], "original_data_index": 4701, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Could you give me a list of member IDs that meet these conditions: either the member's name isn't Braxton Kelley, or they're from Hiram, Georgia and their member ID is greater than 9, or their level isn't 6, or their card number isn't MLB4; and also meet these conditions: their member ID is less than or equal to 8, or their branch ID isn't 1 and the register year isn't 2016?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_Dpcs8_10.png", "TableImg_Sikby_8.png"], "original_data_index": 4699, "original_sql": "SELECT Member_ID FROM member WHERE Name <> \"Braxton Kelley\" OR Hometown = \"Hiram, Georgia\" AND \"Member_ID\" > 9 OR \"Level\" != 6 OR Card_Number != \"MLB4\" INTERSECT SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" <= 8 OR Branch_ID != \"1\" AND Register_Year <> \"2016\""} {"question": "What aircraft IDs are not equal to 2 and are also greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_846nb_5.png", "TableImg_Wiger_4.png"], "original_data_index": 4703, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 8, and combine that with a list of all driver IDs from the school_bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Akc1l_12.png", "TableImg_Qqji1_5.png"], "original_data_index": 4705, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 1, excluding any driver IDs that are not equal to 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ly92i_12.png", "TableImg_Lvig1_5.png"], "original_data_index": 4704, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Could you give me a list of driver IDs from the driver table that are greater than or equal to 10, excluding any driver IDs that are equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Elroz_12.png", "TableImg_Fe5bf_5.png"], "original_data_index": 4706, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs less than or equal to 7, excluding any driver IDs that are not equal to 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_48ged_12.png", "TableImg_Msvh4_5.png"], "original_data_index": 4710, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Could you list the driver IDs that are greater than or equal to 7, and also list the driver IDs from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bae6i_12.png", "TableImg_Jegqn_5.png"], "original_data_index": 4707, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding those driver IDs that are also greater than 9 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ty7t_12.png", "TableImg_Fz11k_5.png"], "original_data_index": 4708, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Could you please provide the template details, version number, template ID, template type code, and effective date from the Templates table, combining two sets of results? The first set should include entries where the template type code is not \"BK\", or where the effective date is not \"1975-05-20 22:51:19\", and the template ID is less than 7, and the version number is 2. The second set should include entries where the template ID is less than or equal to 21, or the template details are empty, or the version number is greater than or equal to 7, or the expiry date is not \"1989-11-24 19:06:06\" and the effective date is not \"1975-05-20 22:51:19\"?", "answer": {"columns": ["Template_Details", "Version_Number", "Template_ID", "Template_Type_Code", "Date_Effective_From"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["", "0", "22", "PP", "2005-02-20 00:31:34"], ["", "1", "10", "PPT", "2003-06-05 04:03:45"], ["", "2", "6", "PPT", "1975-05-20 22:51:19"], ["", "2", "9", "BK", "1997-04-17 08:29:44"], ["", "2", "23", "BK", "1979-12-24 10:28:16"], ["", "3", "8", "BK", "1983-07-16 21:16:16"], ["", "4", "4", "BK", "2002-03-02 14:39:49"], ["", "5", "0", "PP", "2005-11-12 07:09:48"], ["", "5", "16", "CV", "2012-04-05 07:11:42"], ["", "5", "18", "PP", "1984-08-07 13:36:26"], ["", "5", "25", "PP", "1979-10-20 21:23:20"], ["", "6", "11", "BK", "1996-02-04 11:27:24"], ["", "6", "20", "BK", "1986-11-14 12:20:18"], ["", "7", "14", "AD", "1975-10-20 02:28:58"], ["", "7", "19", "AD", "1999-06-21 11:10:30"], ["", "8", "7", "PPT", "1993-10-07 02:33:04"], ["", "8", "24", "PP", "2008-08-01 13:57:26"], ["", "9", "1", "PP", "2010-09-24 01:15:11"], ["", "9", "15", "CV", "1986-12-09 14:51:36"], ["", "9", "21", "AD", "2002-08-25 13:26:23"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_Mkljn_20.png", "TableImg_Qq4ah_20.png"], "original_data_index": 4709, "original_sql": "SELECT Template_Details, Version_Number, Template_ID, Template_Type_Code, Date_Effective_From FROM Templates WHERE Template_Type_Code <> \"BK\" OR Date_Effective_From != \"1975-05-20 22:51:19\" AND \"Template_ID\" < 7 AND \"Version_Number\" = 2 UNION SELECT Template_Details, Version_Number, Template_ID, Template_Type_Code, Date_Effective_From FROM Templates WHERE \"Template_ID\" <= 21 OR Template_Details = \"\" AND \"Version_Number\" >= 7 OR Date_Effective_To != \"1989-11-24 19:06:06\" AND Date_Effective_From <> \"1975-05-20 22:51:19\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 10 and also not equal to 10, considering only drivers that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9wx65_12.png", "TableImg_Tx1wd_5.png"], "original_data_index": 4714, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 2, that are not also aircraft IDs, excluding aircraft ID 5, found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_62apj_5.png", "TableImg_Kcqhl_4.png"], "original_data_index": 4715, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs less than 7 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4i73v_12.png", "TableImg_Cst4k_5.png"], "original_data_index": 4716, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the location and enrollment for all schools that don't have \"Jimmies\" as their mascot, combined with the location and enrollment for schools that are either in football class A and are not named \"Jimtown\" and don't have \"Lions\" as their mascot, or are not in class AAA and don't have an ID of \"1\"?", "answer": {"columns": ["Location", "Enrollment"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Bourbon", "316"], ["Bremen", "495"], ["Culver", "287"], ["Knox", "620"], ["Lakeville", "379"], ["New Carlisle", "852"], ["Walkerton", "605"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Gannp_8.png", "TableImg_Tmf7u_8.png"], "original_data_index": 4717, "original_sql": "SELECT Location, Enrollment FROM School WHERE Mascot <> \"Jimmies\" UNION SELECT Location, Enrollment FROM School WHERE IHSAA_Football_Class = \"A\" AND School_name <> \"Jimtown\" AND Mascot != \"Lions\" OR IHSAA_Class != \"AAA\" AND School_id <> \"1\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 10 and those from the school_bus table that are exactly 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U3sxk_12.png", "TableImg_Gnmw6_5.png"], "original_data_index": 4718, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs greater than or equal to 10 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B2t72_12.png", "TableImg_Z1hds_5.png"], "original_data_index": 4719, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you show me the full-time status, the lowest driver ID, years working, and school ID for all school bus drivers who are not full-time, combined with the same information for all drivers where the school ID is less than 7?", "answer": {"columns": ["If_full_time", "MIN(Driver_ID)", "Years_Working", "School_ID"], "index": [0, 1], "data": [["F", "10", "10", "1"], ["T", "3", "3", "4"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_Xihu4_5.png", "TableImg_Pbit6_5.png"], "original_data_index": 4720, "original_sql": "SELECT If_full_time, MIN(Driver_ID), Years_Working, School_ID FROM school_bus WHERE If_full_time <> \"T\" UNION SELECT If_full_time, MIN(Driver_ID), Years_Working, School_ID FROM school_bus WHERE \"School_ID\" < 7"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table, and all driver IDs less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vuiqv_12.png", "TableImg_Im9wn_5.png"], "original_data_index": 4721, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 3, and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2urcp_12.png", "TableImg_Ftxa1_5.png"], "original_data_index": 4722, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you tell me, for each department, the number of heads and the earliest temporary acting status, considering both cases where the head ID is not 5 or the temporary acting status is not \"Yes\", and also cases where the temporary acting status is not \"Yes\" or the head ID is 4 or less?", "answer": {"columns": ["COUNT(head_ID)", "MIN(temporary_acting)", "department_ID"], "index": [0, 1], "data": [["3", "No", "7"], ["4", "No", "7"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_9mbu3_5.png", "TableImg_0l2nx_5.png"], "original_data_index": 4713, "original_sql": "SELECT COUNT(head_ID), MIN(temporary_acting), department_ID FROM management WHERE \"head_ID\" != 5 OR temporary_acting != \"Yes\" UNION SELECT COUNT(head_ID), MIN(temporary_acting), department_ID FROM management WHERE temporary_acting <> \"Yes\" OR \"head_ID\" <= 4"} {"question": "Which driver IDs, that are at least 9 or higher, are present in both the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dlgb5_12.png", "TableImg_8u7ve_5.png"], "original_data_index": 4712, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which aircraft IDs, excluding ID 2, are also aircraft ID 5 in the airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4dgvd_5.png", "TableImg_Mj9y1_4.png"], "original_data_index": 4711, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs that are either exactly 6 from the driver table, or greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8vvcv_12.png", "TableImg_6vxnn_5.png"], "original_data_index": 4725, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs that are greater than 4, where each ID appears at least once in the driver table, excluding any driver IDs greater than 3 that appear at least once in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rd11x_12.png", "TableImg_1rcx9_5.png"], "original_data_index": 4726, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of aircraft IDs that either have a distance of 6441 or less and an ID of 5 or greater, or have a name that isn't Airbus A340-300, combined with a list of certificate IDs that are not 13?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_2vufo_16.png", "TableImg_B6u3b_69.png"], "original_data_index": 4724, "original_sql": "SELECT aid FROM aircraft WHERE \"distance\" <= 6441 AND \"aid\" >= 5 OR name <> \"Airbus A340-300\" UNION SELECT aid FROM certificate WHERE \"aid\" != 13"} {"question": "Could you list the cities that are both headquartered in Bahawalnagar City, have a city population of at least 172073, or are in Dera Ghazi Khan District or have a District ID greater than 8, and also have a District ID greater than 12, or are not in Chiniot District, or have a city area of at least 147, or have a city population of at most 365198?", "answer": {"columns": ["Headquartered_City"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Gujranwala City"], ["Gujrat City"], ["Hafizabad City"], ["Jhang City"], ["Jhelum City"], ["Kasur City"], ["Khanewal City"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_952tb_15.png", "TableImg_Hoqsc_15.png"], "original_data_index": 4723, "original_sql": "SELECT Headquartered_City FROM district WHERE Headquartered_City = \"Bahawalnagar City\" AND \"City_Population\" >= 172073.0 AND District_name = \"Dera Ghazi Khan District\" OR \"District_ID\" > 8 INTERSECT SELECT Headquartered_City FROM district WHERE \"District_ID\" > 12 OR District_name <> \"Chiniot District\" OR \"City_Area\" >= 147.0 OR \"City_Population\" <= 365198.0"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only aircraft IDs greater than or equal to 3, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M2v3u_5.png", "TableImg_Zwifp_4.png"], "original_data_index": 4727, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs from the driver table that are 11 or greater, excluding any driver IDs that appear in the school_bus table and are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D77x1_12.png", "TableImg_Bqwhb_5.png"], "original_data_index": 4728, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs appear in the driver table, excluding driver ID 9, but do not appear in the school_bus table for driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hc249_12.png", "TableImg_Y7i3q_5.png"], "original_data_index": 4729, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list the points from the match results where the rank isn't 1, the big silver isn't 11, the small silver isn't 10, and the points are at least 139, combined with the points from match results where either the gold is less than 13 and the bronze is at least 8, or the big silver is at least 7 and the points are exactly 89 and the club ID is less than 6, or the rank is at most 4?", "answer": {"columns": ["Points"], "index": [0, 1, 2, 3, 4], "data": [["84"], ["89"], ["102"], ["139"], ["168"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Aosf4_6.png", "TableImg_W3ps4_6.png"], "original_data_index": 4730, "original_sql": "SELECT Points FROM match_result WHERE \"Rank\" != 1 AND \"Big_Silver\" != 11 AND \"Small_Silver\" <> 10 AND \"Points\" >= 139 UNION SELECT Points FROM match_result WHERE \"Gold\" < 13 AND \"Bronze\" >= 8 OR \"Big_Silver\" >= 7 AND \"Points\" = 89 AND \"Club_ID\" < 6 OR \"Rank\" <= 4"} {"question": "Can you give me the address IDs that are both not equal to 8 and greater than or equal to 1, and also have address details that are not \"IE\"?", "answer": {"columns": ["address_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["9"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_98cp7_10.png", "TableImg_T92iu_10.png"], "original_data_index": 4731, "original_sql": "SELECT address_id FROM Addresses WHERE \"address_id\" <> 8 AND address_details != \"IE\" INTERSECT SELECT address_id FROM Addresses WHERE \"address_id\" >= 1 AND address_details != \"IE\""} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 4, and those from the airport_aircraft table that are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bojpb_5.png", "TableImg_8j4na_4.png"], "original_data_index": 4732, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you list the allergy types where the allergy is milk, or the allergy type is not food and also not an allergy type where the allergy type is not food or the allergy is not nuts?", "answer": {"columns": ["AllergyType"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["food"], ["food"], ["food"], ["food"], ["food"], ["food"], ["food"], ["environmental"], ["environmental"], ["environmental"], ["animal"], ["animal"], ["animal"], ["animal"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_V0u2s_14.png", "TableImg_Grlvy_14.png"], "original_data_index": 4733, "original_sql": "SELECT AllergyType FROM Allergy_Type WHERE Allergy = \"Milk\" OR AllergyType != \"food\" NOT IN (SELECT AllergyType FROM Allergy_Type WHERE AllergyType != \"food\" OR Allergy != \"Nuts\")"} {"question": "Could you list the member IDs of those who registered in years other than 2016, excluding those who registered with branch ID 4 in years other than 2016?", "answer": {"columns": ["Member_ID"], "index": [0, 1], "data": [["3"], ["6"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Hj52y_8.png", "TableImg_2ym29_8.png"], "original_data_index": 4734, "original_sql": "SELECT Member_ID FROM membership_register_branch WHERE Register_Year <> \"2016\" EXCEPT SELECT Member_ID FROM membership_register_branch WHERE Branch_ID = \"4\" AND Register_Year <> \"2016\""} {"question": "Can you give me the customer ID, staff ID, lesson status code, and lesson ID from the Lessons table, including all records that meet at least one of these conditions: either the staff ID is less than 12, or the lesson time is 9 and the lesson status is not Cancelled, or the lesson date is 2018-02-28 10:55:36 and the customer ID is 13, or the vehicle ID is greater than or equal to 1 and the price is not 277.0, or the lesson ID is greater than 14, combined with all records where either the lesson time is not 6, or the price is 306.0 and the lesson date is not 2018-03-17 19:02:07 and the staff ID is not 5 and the customer ID is greater than or equal to 10?", "answer": {"columns": ["customer_id", "staff_id", "lesson_status_code", "lesson_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["6", "8", "Cancelled", "1"], ["8", "14", "Cancelled", "2"], ["6", "11", "Cancelled", "3"], ["8", "1", "Completed", "4"], ["10", "3", "Completed", "5"], ["5", "4", "Completed", "6"], ["9", "11", "Cancelled", "7"], ["3", "8", "Completed", "8"], ["2", "4", "Completed", "9"], ["2", "5", "Cancelled", "10"], ["10", "15", "Cancelled", "11"], ["11", "12", "Cancelled", "12"], ["13", "12", "Completed", "13"], ["11", "11", "Cancelled", "14"], ["3", "8", "Cancelled", "15"], ["6", "8", "Cancelled", "1"], ["6", "11", "Cancelled", "3"], ["8", "1", "Completed", "4"], ["10", "3", "Completed", "5"], ["9", "11", "Cancelled", "7"], ["3", "8", "Completed", "8"], ["2", "4", "Completed", "9"], ["2", "5", "Cancelled", "10"], ["10", "15", "Cancelled", "11"], ["11", "12", "Cancelled", "12"], ["13", "12", "Completed", "13"], ["11", "11", "Cancelled", "14"], ["3", "8", "Cancelled", "15"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Vmw89_15.png", "TableImg_Fm54k_15.png"], "original_data_index": 4735, "original_sql": "SELECT customer_id, staff_id, lesson_status_code, lesson_id FROM Lessons WHERE \"staff_id\" < 12 OR lesson_time = \"9\" AND lesson_status_code != \"Cancelled\" OR lesson_date = \"2018-02-28 10:55:36\" AND \"customer_id\" = 13 OR \"vehicle_id\" >= 1 AND \"price\" <> 277.0 OR \"lesson_id\" > 14 UNION ALL SELECT customer_id, staff_id, lesson_status_code, lesson_id FROM Lessons WHERE lesson_time != \"6\" OR \"price\" = 306.0 AND lesson_date <> \"2018-03-17 19:02:07\" AND \"staff_id\" <> 5 AND \"customer_id\" >= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 2, and those from the school bus table where the driver ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_35iw5_12.png", "TableImg_99nql_5.png"], "original_data_index": 4738, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 5, and combine that with a list of all driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5sbry_12.png", "TableImg_H4wh2_5.png"], "original_data_index": 4736, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 1, excluding driver ID 9 if it appears in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_657lx_12.png", "TableImg_O4nte_5.png"], "original_data_index": 4739, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you show me the source user ID and trust values from the trust table, excluding entries where the source user ID is 7 and including only those where the target user ID is at least 2, combined with all source user IDs and trust values where the source user ID is 1, or the target user ID is at least 5, or the trust value is greater than 10?", "answer": {"columns": ["source_u_id", "trust"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1", "10"], ["6", "1"], ["1", "6"], ["2", "8"], ["1", "7"], ["3", "10"], ["1", "10"], ["1", "6"], ["3", "10"], ["7", "2"], ["1", "7"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_Oqr5j_9.png", "TableImg_Yt79s_9.png"], "original_data_index": 4737, "original_sql": "SELECT source_u_id, trust FROM trust WHERE \"source_u_id\" <> 7 AND \"target_u_id\" >= 2 UNION ALL SELECT source_u_id, trust FROM trust WHERE \"source_u_id\" = 1 OR \"target_u_id\" >= 5 OR \"trust\" > 10"} {"question": "Which aircraft have an ID of 5, excluding any aircraft that also have an ID less than or equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qzbp3_5.png", "TableImg_3uy7m_4.png"], "original_data_index": 4742, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs, including those with the ID 11 from the driver table, and those with IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7y4l9_12.png", "TableImg_Tjofs_5.png"], "original_data_index": 4741, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the populations of counties, excluding those with a population of 79000, a County ID of 3, or the name Mansfield, but then remove any populations that also exist in counties that don't have a population of 21000, are named Manning, have a zip code that isn't D09, or have a County ID less than or equal to 1?", "answer": {"columns": ["Population"], "index": [0], "data": [["87200"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_Frv6s_5.png", "TableImg_Jcgpl_5.png"], "original_data_index": 4740, "original_sql": "SELECT Population FROM county WHERE \"Population\" <> 79000.0 OR \"County_Id\" <> 3 OR County_name != \"Mansfield\" EXCEPT SELECT Population FROM county WHERE \"Population\" != 21000.0 AND County_name = \"Manning\" OR Zip_code != \"D09\" OR \"County_Id\" <= 1"} {"question": "Can you list all driver IDs from the driver table that are greater than or equal to 3, and combine that with a list of all driver IDs from the school_bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Axenb_12.png", "TableImg_G1ato_5.png"], "original_data_index": 4743, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are not equal to 2 from the driver table, but only include those driver IDs that are also less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eiz3g_12.png", "TableImg_84o5s_5.png"], "original_data_index": 4744, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list all the driver IDs from the driver table that are less than 6, and combine that with a list of all driver IDs from the school bus table that are less than or equal to 9, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0y0yz_12.png", "TableImg_5cyxx_5.png"], "original_data_index": 4745, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are less than 7 and are also driver IDs of school bus drivers that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X20ih_12.png", "TableImg_9gysr_5.png"], "original_data_index": 4746, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver IDs, excluding driver ID 7, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2ei92_12.png", "TableImg_Us2bx_5.png"], "original_data_index": 4747, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are both less than 7 and also greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5jep3_12.png", "TableImg_0a8se_5.png"], "original_data_index": 4748, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Could you list the aircraft IDs that are greater than or equal to 4 from the aircraft table, and combine that with a list of aircraft IDs that are greater than or equal to 5 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hi0nk_5.png", "TableImg_6bckc_4.png"], "original_data_index": 4751, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 2, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3l0ca_12.png", "TableImg_Xa7ca_5.png"], "original_data_index": 4749, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the ID, city, and country for all airports that meet either of these conditions: they're not KBOS, don't have an ID of 3, aren't in Boston, and aren't named Akureyri Airport, or they are in Belgium; or they're not EHAM, or have an IATA code of AMS and aren't named Akureyri Airport and are in Barcelona, or have an ID of 9, or are in Belgium?", "answer": {"columns": ["id", "City", "Country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1", "Akureyri", "Iceland"], ["2", "Amsterdam", "Netherlands"], ["3", "Anchorage", "United States"], ["4", "Baltimore", "United States"], ["5", "Barcelona", "Spain"], ["6", "Bergen", "Norway"], ["7", "Billund", "Denmark"], ["8", "Boston", "United States"], ["9", "Brussels", "Belgium"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Y9jap_9.png", "TableImg_Bmhx6_9.png"], "original_data_index": 4750, "original_sql": "SELECT id, City, Country FROM airport WHERE ICAO <> \"KBOS\" AND \"id\" <> 3 AND City <> \"Boston\" AND name <> \"Akureyri Airport\" OR Country = \"Belgium\" UNION SELECT id, City, Country FROM airport WHERE ICAO != \"EHAM\" OR IATA = \"AMS\" AND name != \"Akureyri Airport\" AND City = \"Barcelona\" OR \"id\" = 9 OR Country = \"Belgium\""} {"question": "Can you list the aircraft IDs that are greater than 3, excluding any aircraft IDs that are also equal to 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pn4ys_5.png", "TableImg_C62mv_4.png"], "original_data_index": 4754, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 4, and those from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E1g3o_12.png", "TableImg_Wq2qo_5.png"], "original_data_index": 4755, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding ID 7, and those from the school bus table excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mqx5h_12.png", "TableImg_R5h9t_5.png"], "original_data_index": 4753, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are not 9, and also including driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aw52r_12.png", "TableImg_1w1pf_5.png"], "original_data_index": 4752, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 1 from the driver table, excluding any driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7dgbc_12.png", "TableImg_2gc7j_5.png"], "original_data_index": 4758, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver ID 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Antag_12.png", "TableImg_Msvsn_5.png"], "original_data_index": 4756, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are not 11 and also less than or equal to 4, considering drivers from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oaaah_12.png", "TableImg_Lcsje_5.png"], "original_data_index": 4757, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver has an ID of 7 and also drives a school bus, but not one with an ID of 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cfy1o_12.png", "TableImg_Ir2mm_5.png"], "original_data_index": 4759, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5, that are not also driver IDs greater than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ksuo_12.png", "TableImg_Gw90y_5.png"], "original_data_index": 4762, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Could you list all Branch IDs that are either \"1\" from the membership register branch, or from the purchase table where the total pounds are at least 20.99, or the Branch ID is not \"3\" and the year is not \"2018\"?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["1"], ["1"], ["3"], ["5"], ["1"], ["1"], ["5"], ["6"], ["2"], ["3"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_164wz_8.png", "TableImg_5mvd7_8.png"], "original_data_index": 4761, "original_sql": "SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID = \"1\" UNION ALL SELECT Branch_ID FROM purchase WHERE \"Total_pounds\" >= 20.99 OR Branch_ID <> \"3\" AND Year <> \"2018\""} {"question": "Can you give me a list of employee names and shop names, where the employee ID is 3 or less, combined with shop names where the number of products isn't 10000, or the location isn't Valkeakoski and the name isn't FC Honka, or the manager's name isn't Tommi Kautonen, or the shop ID isn't 7 and the district isn't Wikl\u00f6f Holding Arena?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["George Chuter"], ["Lee Mears"], ["Mark Regan"], ["FC Haka"], ["HJK"], ["FC Honka"], ["FC Inter"], ["FF Jaro"], ["FC KooTeePee"], ["KuPS"], ["FC Lahti"], ["IFK Mariehamn"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_263tq_10.png", "TableImg_Apt9z_9.png"], "original_data_index": 4763, "original_sql": "SELECT Name FROM employee WHERE \"Employee_ID\" <= 3 UNION ALL SELECT Name FROM shop WHERE \"Number_products\" <> 10000 OR Location <> \"Valkeakoski\" AND Name != \"FC Honka\" OR Manager_name <> \"Tommi Kautonen\" OR \"Shop_ID\" != 7 AND District != \"Wikl\u00f6f Holding Arena\""} {"question": "Can you give me the total earnings, average player ID, sum of best finishes, money rank, and the lowest people ID, along with the final table appearances for poker players, combining two sets of players: first, those whose best finish is less than 1, people ID is less than 6, earnings are no more than 189233, or those who have made a final table other than 10 times and have a player ID less than 4, or whose money rank is not 68; and second, those whose best finish is not 1, player ID is more than 2 and people ID is not 2, earnings are no more than 189233, or money rank is no more than 166?", "answer": {"columns": ["Final_Table_Made", "Earnings", "AVG(Poker_Player_ID)", "SUM(Best_Finish)", "Money_Rank", "MIN(People_ID)"], "index": [0], "data": [["42", "476090", "3", "9", "68", "1"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_006cn_5.png", "TableImg_R6smx_5.png"], "original_data_index": 4760, "original_sql": "SELECT Final_Table_Made, Earnings, AVG(Poker_Player_ID), SUM(Best_Finish), Money_Rank, MIN(People_ID) FROM poker_player WHERE \"Best_Finish\" < 1.0 OR \"People_ID\" < 6 OR \"Earnings\" <= 189233.0 OR \"Final_Table_Made\" <> 10.0 AND \"Poker_Player_ID\" < 4 OR \"Money_Rank\" <> 68.0 UNION SELECT Final_Table_Made, Earnings, AVG(Poker_Player_ID), SUM(Best_Finish), Money_Rank, MIN(People_ID) FROM poker_player WHERE \"Best_Finish\" <> 1.0 OR \"Poker_Player_ID\" > 2 AND \"People_ID\" != 2 OR \"Earnings\" <= 189233.0 OR \"Money_Rank\" <= 166.0"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 1 from the driver table, excluding driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Evrfj_12.png", "TableImg_C4k6y_5.png"], "original_data_index": 4765, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are less than 10 from the driver table, combined with a list of driver IDs that are 3 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bdjpe_12.png", "TableImg_Dsi1o_5.png"], "original_data_index": 4764, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you give me the IDs of airlines that both have certificates with ID 1 and an employee ID less than or equal to 269734834, and also have flights arriving on \"04/12/2005 12:02\" with a flight number less than or equal to 7, where the airline ID is not 6 or the price is less than or equal to 780.99?", "answer": {"columns": ["aid"], "index": [0], "data": [["1"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Nbap9_69.png", "TableImg_Vrvj4_10.png"], "original_data_index": 4766, "original_sql": "SELECT aid FROM certificate WHERE \"aid\" = 1 AND \"eid\" <= 269734834 INTERSECT SELECT aid FROM flight WHERE arrival_date = \"04/12/2005 12:02\" AND \"flno\" <= 7 AND \"aid\" != 6 OR \"price\" <= 780.99"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 4, excluding any driver IDs that are equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Okrcz_12.png", "TableImg_Rgl9j_5.png"], "original_data_index": 4769, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you list the Aircraft IDs from the aircraft table that are less than or equal to 4, and also include the Aircraft ID from the airport_aircraft table that is equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Utfdf_5.png", "TableImg_E2c9b_4.png"], "original_data_index": 4767, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you list all the driver IDs, first from the driver table excluding driver ID 2, and then from the school bus table including only driver IDs up to 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xq9cb_12.png", "TableImg_73yeu_5.png"], "original_data_index": 4768, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the IDs of drivers with an ID of 3 or less, excluding those driver IDs that are also associated with school buses and are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nmijr_12.png", "TableImg_99cio_5.png"], "original_data_index": 4770, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs less than or equal to 8, excluding those driver IDs that are also greater than or equal to 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1th1l_12.png", "TableImg_Fd95e_5.png"], "original_data_index": 4771, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of aircraft IDs that are less than 3, excluding any aircraft IDs from the airport aircraft list that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S058l_5.png", "TableImg_3ra9h_4.png"], "original_data_index": 4772, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 12 and also greater than 3, considering only the unique driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tudla_12.png", "TableImg_Vqrwz_5.png"], "original_data_index": 4773, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 8, combined with a list of driver IDs from the school_bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_003cu_12.png", "TableImg_Zlvkw_5.png"], "original_data_index": 4774, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 2, and those from the school bus table where the driver ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gsiip_12.png", "TableImg_Qa663_5.png"], "original_data_index": 4775, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 4 or greater, and those from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ebqpc_12.png", "TableImg_0avdz_5.png"], "original_data_index": 4778, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list all the continents named \"America\", and also list the continents of all countries except the USA where the CountryId is not 10 and the Continent is greater than or equal to 3?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3, 4, 5], "data": [["america"], ["3"], ["3"], ["5"], ["5"], ["4"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_Nxu6r_5.png", "TableImg_Rqppw_15.png"], "original_data_index": 4777, "original_sql": "SELECT Continent FROM continents WHERE Continent = \"america\" UNION ALL SELECT Continent FROM countries WHERE CountryName <> \"usa\" AND \"CountryId\" != 10 AND \"Continent\" >= 3"} {"question": "Can you tell me, for each country, the number of addresses with a building number, the number of cities, the sum of the address IDs, but only if the number of addresses with a building number is exactly 15 or the number of cities is not 15; and also, can you tell me the same information for each country, but only if the number of addresses with a building number is exactly 15 or the sum of the address IDs is not 120 and the number of cities is greater than 15, combining the results into a single list?", "answer": {"columns": ["COUNT(line_1_number_building)", "COUNT(city)", "SUM(address_id)", "country"], "index": [0], "data": [["15", "15", "120", "USA"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Z32vd_15.png", "TableImg_Ilbzv_15.png"], "original_data_index": 4776, "original_sql": "SELECT COUNT(line_1_number_building), COUNT(city), SUM(address_id), country FROM Addresses GROUP BY country HAVING COUNT(line_1_number_building) = 15 OR COUNT(city) != 15 UNION SELECT COUNT(line_1_number_building), COUNT(city), SUM(address_id), country FROM Addresses GROUP BY country HAVING COUNT(line_1_number_building) = 15 OR SUM(address_id) <> 120 AND COUNT(city) > 15"} {"question": "Could you list the club IDs from the club table where the start year is not 1998 and the club ID is less than or equal to 1, or where the club name is not Halmstads BK, combined with the club IDs from the coach table where the rank is greater than or equal to 4?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["6"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Bd99v_6.png", "TableImg_Kpfgy_5.png"], "original_data_index": 4779, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" <> 1998 AND \"Club_ID\" <= 1 OR Club_name <> \"Halmstads BK\" UNION SELECT Club_ID FROM coach WHERE \"Rank\" >= 4"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 2, combined with a list of driver IDs from the school_bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ldnhq_12.png", "TableImg_Ywmnl_5.png"], "original_data_index": 4783, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 4, excluding any driver IDs from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3x1e3_12.png", "TableImg_S2erq_5.png"], "original_data_index": 4782, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of member IDs for members with card number RE95 or who don't live in Hiram, Georgia, combined with a list of member IDs from the membership register branch that are greater than 4?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_Ansev_10.png", "TableImg_Vpayv_8.png"], "original_data_index": 4780, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number = \"RE95\" OR Hometown <> \"Hiram, Georgia\" UNION SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" > 4"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are 9 or less from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Itutt_12.png", "TableImg_Ukzva_5.png"], "original_data_index": 4781, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me the price, flight number, arrival date, destination, distance, and aircraft ID for flights where the price is no more than $278.56, but only if they also have a price that isn't $278.56, or a distance of 7487 miles or less, or a destination other than Honolulu, or an arrival date of 04/12/2005 at 11:10 AM, or a flight number that isn't 99 and an aircraft ID of 9 or greater, and an origin other than Los Angeles?", "answer": {"columns": ["price", "flno", "arrival_date", "destination", "distance", "aid"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["182.0", "346", "04/12/2005 07:05", "Dallas", "1251", "2"], ["202.45", "68", "04/12/2005 12:02", "New York", "802", "10"], ["220.98", "13", "04/12/2005 08:45", "Chicago", "1749", "3"], ["220.98", "76", "04/12/2005 10:03", "Los Angeles", "1749", "9"], ["235.98", "99", "04/12/2005 09:40", "Washington D.C.", "2308", "1"], ["261.56", "387", "04/12/2005 05:03", "Boston", "2606", "6"], ["278.56", "7", "04/12/2005 11:10", "Sydney", "7487", "3"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_2vrjz_10.png", "TableImg_D6aud_10.png"], "original_data_index": 4784, "original_sql": "SELECT price, flno, arrival_date, destination, distance, aid FROM flight WHERE \"price\" <= 278.56 INTERSECT SELECT price, flno, arrival_date, destination, distance, aid FROM flight WHERE \"price\" != 278.56 OR \"distance\" <= 7487 OR destination <> \"Honolulu\" OR arrival_date = \"04/12/2005 11:10\" OR \"flno\" != 99 AND \"aid\" >= 9 AND origin <> \"Los Angeles\""} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 8, and those from the school_bus table where the ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N0664_12.png", "TableImg_Xwfzc_5.png"], "original_data_index": 4786, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 1, and those from the school_bus table that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hodpd_12.png", "TableImg_G26mk_5.png"], "original_data_index": 4785, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list all the parties from the election table, excluding those with the \"Environmental Matters (Vice-Chair)\" committee, where the election ID is 4 or greater and the party is 1, or the first elected year was 2003, combined with all the parties from the party table where the Lieutenant Governor isn't Dennis Mehiel, or the year is 1998, the Attorney General isn't Jeanine Pirro, the US Senate isn't \"(no election)\", the party is \"Democratic\", the party ID is 1 or greater, and the Governor isn't Carl McCall?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["1"], ["Democratic"], ["Liberal"], ["Independence"], ["Democratic"], ["Independence"], ["Working Families"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_9ainj_8.png", "TableImg_S3hhr_7.png"], "original_data_index": 4787, "original_sql": "SELECT Party FROM election WHERE Committee <> \"Environmental Matters (Vice-Chair)\" AND \"Election_ID\" >= 4 AND \"Party\" = 1 OR \"First_Elected\" = 2003.0 UNION ALL SELECT Party FROM party WHERE Lieutenant_Governor != \"Dennis Mehiel\" OR \"Year\" = 1998.0 AND Attorney_General <> \"Jeanine Pirro\" AND US_Senate <> \"(no election)\" AND Party = \"Democratic\" AND \"Party_ID\" >= 1 AND Governor <> \"Carl McCall\""} {"question": "Can you give me the Member ID, Hometown, and Card Number for members who have a card number other than LCB7, but also either live in Louisville, Kentucky, or have a card number of LCB7?", "answer": {"columns": ["Member_ID", "Hometown", "Card_Number"], "index": [0, 1], "data": [["2", "Louisville, Kentucky", "LT98"], ["3", "Louisville, Kentucky", "RT91"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_5vic8_10.png", "TableImg_Sj9l8_10.png"], "original_data_index": 4789, "original_sql": "SELECT Member_ID, Hometown, Card_Number FROM member WHERE Card_Number != \"LCB7\" INTERSECT SELECT Member_ID, Hometown, Card_Number FROM member WHERE Hometown = \"Louisville, Kentucky\" OR Card_Number = \"LCB7\""} {"question": "Which driver IDs appear in the driver table, excluding driver ID 2, and also appear in the school_bus table as driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J1fib_12.png", "TableImg_Yzklp_5.png"], "original_data_index": 4791, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, excluding driver ID 9, appear in the driver table but not in the school_bus table, also excluding driver IDs less than 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2izib_12.png", "TableImg_6g27a_5.png"], "original_data_index": 4790, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you list the club IDs for clubs located in France or with a Club ID less than or equal to 3, and also list the club IDs from the match results where the Small Silver is less than 6 and the Rank is greater than or equal to 1, or where the Club ID is less than 1 and the Gold is greater than 6, or where the Bronze is less than or equal to 8?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["6"], ["1"], ["3"], ["4"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_Kg3gg_6.png", "TableImg_Sgdok_6.png"], "original_data_index": 4788, "original_sql": "SELECT Club_ID FROM club WHERE Region = \"France\" OR \"Club_ID\" <= 3 UNION ALL SELECT Club_ID FROM match_result WHERE \"Small_Silver\" < 6 AND \"Rank\" >= 1 OR \"Club_ID\" < 1 AND \"Gold\" > 6 OR \"Bronze\" <= 8"} {"question": "Can you list the aircraft IDs that appear at least twice in the aircraft table, combined with the aircraft IDs that appear more than once in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Puft9_5.png", "TableImg_Bo4ky_4.png"], "original_data_index": 4794, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs, excluding driver 6, are also school bus driver IDs, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Trjje_12.png", "TableImg_Acw7f_5.png"], "original_data_index": 4795, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are greater than 9, but not including those driver IDs that are greater than or equal to 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P1pll_12.png", "TableImg_3i9m5_5.png"], "original_data_index": 4792, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the aircraft IDs that appear at least once in the aircraft table with an ID of 2 or greater, combined with the aircraft IDs that appear at least once in the airport_aircraft table with an ID greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hx2zi_5.png", "TableImg_Skbkj_4.png"], "original_data_index": 4793, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs are greater than 4 and also greater than 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xzhsb_12.png", "TableImg_9djfr_5.png"], "original_data_index": 4797, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and all driver IDs less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eqi4x_12.png", "TableImg_0p52w_5.png"], "original_data_index": 4796, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including those that are exactly 12 from the driver table, and those that are 4 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O1a6f_12.png", "TableImg_Hrey8_5.png"], "original_data_index": 4799, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 2, but excluding any driver IDs that also appear in the school bus table, unless that driver ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E7lum_12.png", "TableImg_F95n4_5.png"], "original_data_index": 4798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list all department IDs and their temporary acting status from the management table, including entries where the temporary acting status is not \"Yes\" and also entries where the temporary acting status is not equal to \"Yes\"?", "answer": {"columns": ["department_ID", "temporary_acting"], "index": [0, 1, 2, 3], "data": [["7", "No"], ["11", "No"], ["7", "No"], ["11", "No"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_Peofk_5.png", "TableImg_F3baz_5.png"], "original_data_index": 4800, "original_sql": "SELECT department_ID, temporary_acting FROM management WHERE temporary_acting != \"Yes\" UNION ALL SELECT department_ID, temporary_acting FROM management WHERE temporary_acting <> \"Yes\""} {"question": "Can you give me the Aircraft IDs that are both less than or equal to 2 in the aircraft table and greater than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Optaq_5.png", "TableImg_Xyrnd_4.png"], "original_data_index": 4803, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you list all the aircraft IDs from the aircraft table, excluding those with ID 1, and combine that with a list of aircraft IDs from the airport_aircraft table that only includes aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7ejrf_5.png", "TableImg_H6k62_4.png"], "original_data_index": 4801, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me a list of staff IDs, including those associated with lessons where the vehicle ID is 1 or higher, and also those from the staff records where either the birth date isn't May 19, 2004, at 2:11 PM, or the middle name isn't Stephania, or the first name isn't Ludie and the last name isn't Durgan, or the nickname isn't norma73, or the date they joined isn't June 5, 2016, at 10:22 PM, or their staff address ID is less than 2, or their staff ID is 12 or less?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_75qf4_15.png", "TableImg_R4b01_15.png"], "original_data_index": 4802, "original_sql": "SELECT staff_id FROM Lessons WHERE \"vehicle_id\" >= 1 UNION SELECT staff_id FROM Staff WHERE date_of_birth != \"2004-05-19 14:11:13\" OR middle_name <> \"Stephania\" OR first_name != \"Ludie\" AND last_name <> \"Durgan\" OR nickname != \"norma73\" OR date_joined_staff <> \"2016-06-05 22:22:23\" OR \"staff_address_id\" < 2 OR \"staff_id\" <= 12"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 8 or higher, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Za0a0_12.png", "TableImg_Ps9t8_5.png"], "original_data_index": 4807, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs, excluding driver ID 11, are not also driver IDs in the school bus list, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ohuei_12.png", "TableImg_9uu6k_5.png"], "original_data_index": 4806, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6y28k_12.png", "TableImg_M99wx_5.png"], "original_data_index": 4805, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are less than or equal to 12 from the driver table, combined with a list of driver IDs that are less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0gajx_12.png", "TableImg_Lkl2k_5.png"], "original_data_index": 4804, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 1 or greater, and those from the school bus table where the ID is not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Morh8_12.png", "TableImg_Kfvz9_5.png"], "original_data_index": 4809, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me the employee IDs that are common between employees who are either older than 29 or not from Bath and also have an ID less than 1, and employees who are not full-time?", "answer": {"columns": ["Employee_ID"], "index": [0], "data": [["3"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Iif4k_10.png", "TableImg_Onei5_7.png"], "original_data_index": 4811, "original_sql": "SELECT Employee_ID FROM employee WHERE \"Age\" > 29 OR City != \"Bath\" AND \"Employee_ID\" < 1 INTERSECT SELECT Employee_ID FROM hiring WHERE Is_full_time = \"F\""} {"question": "What is the smallest document ID from the drafts that don't have \"x\" as draft details, and also the smallest document ID from the documents that don't have \"61\" as a receipt number and aren't of the \"Hard Drive\" type?", "answer": {"columns": ["MIN(document_id)"], "index": [0, 1], "data": [["1"], ["1"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Z4fsc_15.png", "TableImg_3zsyy_15.png"], "original_data_index": 4808, "original_sql": "SELECT MIN(document_id) FROM Document_Drafts WHERE draft_details != \"x\" UNION ALL SELECT MIN(document_id) FROM Documents WHERE receipt_number != \"61\" AND document_type_code <> \"Hard Drive\""} {"question": "Can you give me the average draft number for each document in the circulation history where the draft number is at least 20 and the employee ID is greater than 1, excluding the average draft number for each document in the document drafts where the draft details are \"r\" or the document ID is not 10?", "answer": {"columns": ["document_id", "AVG(draft_number)"], "index": [0], "data": [["10", "20"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_Eneav_4.png", "TableImg_Yk9qk_15.png"], "original_data_index": 4810, "original_sql": "SELECT document_id, AVG(draft_number) FROM Circulation_History WHERE \"draft_number\" >= 20 AND \"employee_id\" > 1 EXCEPT SELECT document_id, AVG(draft_number) FROM Document_Drafts WHERE draft_details = \"r\" OR \"document_id\" != 10"} {"question": "Which aircraft IDs are not equal to 5 and are also less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Txtww_5.png", "TableImg_Os094_4.png"], "original_data_index": 4813, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding those driver IDs that are also greater than 9 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hiunz_12.png", "TableImg_I4b80_5.png"], "original_data_index": 4812, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me the driver ID that is exactly 8, but only if that driver ID is not also a driver ID less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qmn87_12.png", "TableImg_P5y69_5.png"], "original_data_index": 4815, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me the grade, location, and school for entries that are either not 4th grade or not in Jakarta, Indonesia, but are Noelani Elementary School, and also either Occidental College, or in Cambridge, Massachusetts, or not of type Private, and not Freshman-Sophomore year, and have a School_ID of 4?", "answer": {"columns": ["Grade", "Location", "School"], "index": [0, 1], "data": [["College", "Cambridge, Massachusetts", "Harvard Law School"], ["Freshman\u2013Sophomore year", "Los Angeles, California", "Occidental College"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Ftb96_7.png", "TableImg_Msra9_7.png"], "original_data_index": 4814, "original_sql": "SELECT Grade, Location, School FROM school WHERE Grade != \"4th grade\" OR Location != \"Jakarta, Indonesia\" AND School = \"Noelani Elementary School\" INTERSECT SELECT Grade, Location, School FROM school WHERE School = \"Occidental College\" OR Location = \"Cambridge, Massachusetts\" OR Type <> \"Private\" AND Grade != \"Freshman\u2013Sophomore year\" AND \"School_ID\" = 4"} {"question": "Which driver IDs, excluding driver ID 4, are not also driver IDs in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6zi0k_12.png", "TableImg_Q6dsj_5.png"], "original_data_index": 4817, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are greater than 1, but not in the list of driver IDs less than or equal to 9 that are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rs5vq_12.png", "TableImg_Vhey0_5.png"], "original_data_index": 4816, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table with driver IDs of 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J6ybi_12.png", "TableImg_C0zby_5.png"], "original_data_index": 4818, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Could you give me a list of driver IDs that are not 11 and are also less than or equal to 9, considering only drivers who appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_24b4l_12.png", "TableImg_Nmz9k_5.png"], "original_data_index": 4819, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not 11 with those from the school_bus table that are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3e0or_12.png", "TableImg_3n9pg_5.png"], "original_data_index": 4822, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the count of pet IDs, the maximum weight, and the pet age for pets that are at least 2 years old and have a pet ID of 2001, excluding the count of pet IDs, maximum weight, and pet age for pets that are not cats, are 3 years old, and weigh 9.3?", "answer": {"columns": ["COUNT(PetID)", "MAX(weight)", "pet_age"], "index": [0], "data": [["1", "12", "3"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_N2zcu_3.png", "TableImg_875ta_3.png"], "original_data_index": 4821, "original_sql": "SELECT COUNT(PetID), MAX(weight), pet_age FROM Pets WHERE \"pet_age\" >= 2 AND \"PetID\" = 2001 EXCEPT SELECT COUNT(PetID), MAX(weight), pet_age FROM Pets WHERE PetType != \"cat\" AND \"pet_age\" = 3 AND \"weight\" = 9.3"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 4 or greater, combined with a list of driver IDs from the school_bus table where the ID is not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W3ysa_12.png", "TableImg_0vgyl_5.png"], "original_data_index": 4820, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 11, with those from the school_bus table where the ID is less than 7, making sure to only list each ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fsd1e_12.png", "TableImg_3b9il_5.png"], "original_data_index": 4823, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I6mk3_12.png", "TableImg_G4sew_5.png"], "original_data_index": 4827, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What aircraft IDs are less than or equal to 5, excluding those aircraft IDs that are also greater than or equal to 1 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pqnrz_5.png", "TableImg_Kh829_4.png"], "original_data_index": 4825, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Could you give me the member IDs from the membership register branch table where the member ID is 2, but only if those member IDs are not also in the purchase table where the member ID is greater than 3 and the total pounds is at least 20.99?", "answer": {"columns": ["Member_ID"], "index": [0], "data": [["2"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Ad1yn_8.png", "TableImg_Dw471_8.png"], "original_data_index": 4824, "original_sql": "SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" = 2 EXCEPT SELECT Member_ID FROM purchase WHERE \"Member_ID\" > 3 AND \"Total_pounds\" >= 20.99"} {"question": "Which driver IDs are greater than 4 and also greater than 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D3tjl_12.png", "TableImg_8zhj1_5.png"], "original_data_index": 4826, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of aircraft IDs that are greater than 3, excluding any aircraft IDs from the airport aircraft list that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H892m_5.png", "TableImg_Aatsp_4.png"], "original_data_index": 4831, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs that are greater than 12 from the driver table, combined with a list of driver IDs that are greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zs8td_12.png", "TableImg_Gfoq4_5.png"], "original_data_index": 4828, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are greater than 6 with those from the school bus table that are not equal to 7, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wznq9_12.png", "TableImg_Ozyqy_5.png"], "original_data_index": 4830, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 11 and those from the school bus table with driver IDs of 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yh2ro_12.png", "TableImg_Irkrq_5.png"], "original_data_index": 4829, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 2, and those from the school bus table excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cr0d2_12.png", "TableImg_Qyh8q_5.png"], "original_data_index": 4835, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding ID 12, and those from the school bus table with IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9a8cp_12.png", "TableImg_Nsxk0_5.png"], "original_data_index": 4834, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are less than 9 from the driver table, combined with a list of driver IDs that are less than 3 from the school_bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jvs2l_12.png", "TableImg_Dxh9m_5.png"], "original_data_index": 4832, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list whether the positions are full-time for those that started in 2003, and also list whether the positions are full-time for those that are not part-time or have a Shop ID less than or equal to 1 and didn't start in 2003?", "answer": {"columns": ["Is_full_time"], "index": [0, 1, 2, 3, 4, 5], "data": [["T"], ["T"], ["T"], ["T"], ["T"], ["T"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Tqio0_7.png", "TableImg_Pwert_7.png"], "original_data_index": 4833, "original_sql": "SELECT Is_full_time FROM hiring WHERE Start_from = \"2003\" UNION ALL SELECT Is_full_time FROM hiring WHERE Is_full_time != \"F\" OR \"Shop_ID\" <= 1 AND Start_from != \"2003\""} {"question": "Can you give me a list of driver IDs that are not 12 and are also less than or equal to 4, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xeqyj_12.png", "TableImg_1wp88_5.png"], "original_data_index": 4838, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you show me the city, the number of open years, the number of names, the smallest branch ID, the address road, and the membership amount for all branches where the membership amount is not 6, combined with the same information for branches where the membership amount is 56, or the branch ID is less than or equal to 3 and the city is not London, or the address road is not Concord Road, or the name is Popert and the open year is not 2009?", "answer": {"columns": ["City", "COUNT(Open_year)", "COUNT(Name)", "MIN(Branch_ID)", "Address_road", "membership_amount"], "index": [0], "data": [["London", "7", "7", "1", "Valleys Place", "112"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Osswi_8.png", "TableImg_Xunvf_8.png"], "original_data_index": 4836, "original_sql": "SELECT City, COUNT(Open_year), COUNT(Name), MIN(Branch_ID), Address_road, membership_amount FROM branch WHERE membership_amount <> \"6\" UNION SELECT City, COUNT(Open_year), COUNT(Name), MIN(Branch_ID), Address_road, membership_amount FROM branch WHERE membership_amount = \"56\" OR \"Branch_ID\" <= 3 AND City != \"London\" OR Address_road <> \"Concord Road\" OR Name = \"Popert\" AND Open_year <> \"2009\""} {"question": "Which driver IDs, less than 9, are present in both the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kvx8p_12.png", "TableImg_G7qqm_5.png"], "original_data_index": 4837, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs, excluding driver 11, are also school bus driver IDs, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qwwgc_12.png", "TableImg_Kw205_5.png"], "original_data_index": 4839, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list the driver IDs that are less than 1 from the driver table, and combine that with a list of driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lbqm7_12.png", "TableImg_Fpd47_5.png"], "original_data_index": 4840, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you list the shipping agent description, name, and code for all shipping agents, combining those that don't have a description of \"g\" and a code of \"UP\" with those that don't have the name \"Airline\" or have a description of \"q\"?", "answer": {"columns": ["shipping_agent_description", "shipping_agent_name", "shipping_agent_code"], "index": [0, 1, 2, 3, 4], "data": [["g", "UPS", "UP"], ["k", "Fedex", "FE"], ["q", "USPS", "US"], ["t", "Ship", "SH"], ["w", "Airline", "AL"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_5tycf_5.png", "TableImg_Ibs5s_5.png"], "original_data_index": 4841, "original_sql": "SELECT shipping_agent_description, shipping_agent_name, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description != \"g\" AND shipping_agent_code <> \"UP\" UNION SELECT shipping_agent_description, shipping_agent_name, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name != \"Airline\" OR shipping_agent_description = \"q\""} {"question": "Can you give me a list of employee IDs, shop IDs, start dates, and full-time status for employees, including those who are not full-time or have an employee ID of 5, started before 2003, and work in a shop with an ID less than 8, combined with those who don't have an employee ID of 4 and work in shop 1, or are not full-time, or started before 2010?", "answer": {"columns": ["Employee_ID", "Shop_ID", "Start_from", "Is_full_time"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "1", "2009", "T"], ["2", "1", "2003", "T"], ["3", "8", "2011", "F"], ["4", "4", "2012", "T"], ["5", "5", "2013", "T"], ["6", "2", "2010", "F"], ["7", "6", "2008", "T"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_6vbn6_7.png", "TableImg_Wt5ii_7.png"], "original_data_index": 4843, "original_sql": "SELECT Employee_ID, Shop_ID, Start_from, Is_full_time FROM hiring WHERE Is_full_time != \"T\" OR \"Employee_ID\" = 5 AND Start_from <> \"2003\" AND \"Shop_ID\" < 8 UNION SELECT Employee_ID, Shop_ID, Start_from, Is_full_time FROM hiring WHERE \"Employee_ID\" <> 4 AND \"Shop_ID\" = 1 OR Is_full_time != \"T\" OR Start_from <> \"2010\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 11, but not including those driver IDs that are less than or equal to 10 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Omdex_12.png", "TableImg_Lh7jj_5.png"], "original_data_index": 4842, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 9 and also less than or equal to 10, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7i3uh_12.png", "TableImg_1gvkr_5.png"], "original_data_index": 4847, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the average payment date, payment amount, and customer ID, along with the payment method, for payments of at least $9570.93, combined with the same averages and payment method for payments that were not made with a credit card and not on \"2018-02-21 05:28:49\", or were made by a customer with an ID of 2 or less?", "answer": {"columns": ["AVG(datetime_payment)", "AVG(amount_payment)", "AVG(customer_id)", "payment_method_code"], "index": [0, 1], "data": [["2018", "6133.121", "6.3", "Direct Debit"], ["2018", "9728.775", "6.0", "Direct Debit"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Pigyt_15.png", "TableImg_Rbhsf_15.png"], "original_data_index": 4848, "original_sql": "SELECT AVG(datetime_payment), AVG(amount_payment), AVG(customer_id), payment_method_code FROM Customer_Payments WHERE \"amount_payment\" >= 9570.93 UNION SELECT AVG(datetime_payment), AVG(amount_payment), AVG(customer_id), payment_method_code FROM Customer_Payments WHERE payment_method_code != \"Credit Card\" AND datetime_payment != \"2018-02-21 05:28:49\" OR \"customer_id\" <= 2"} {"question": "Can you give me a list of driver IDs that are both greater than 7 and not equal to 10, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1ijgq_12.png", "TableImg_Usljo_5.png"], "original_data_index": 4849, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Could you list all car models, including those from the car names table that aren't Volvos, and also models from the model list table where the ModelId is less than 11?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409], "data": [["chevrolet"], ["buick"], ["plymouth"], ["amc"], ["ford"], ["ford"], ["chevrolet"], ["plymouth"], ["pontiac"], ["amc"], ["citroen"], ["chevrolet"], ["ford"], ["plymouth"], ["amc"], ["dodge"], ["plymouth"], ["ford"], ["chevrolet"], ["buick"], ["toyota"], ["plymouth"], ["amc"], ["ford"], ["datsun"], ["volkswagen"], ["peugeot"], ["audi"], ["saab"], ["bmw"], ["amc"], ["ford"], ["chevrolet"], ["dodge"], ["hi"], ["datsun"], ["chevrolet"], ["toyota"], ["ford"], ["volkswagen"], ["amc"], ["plymouth"], ["chevrolet"], ["ford"], ["amc"], ["chevrolet"], ["pontiac"], ["ford"], ["plymouth"], ["dodge"], ["ford"], ["pontiac"], ["amc"], ["chevrolet"], ["pontiac"], ["ford"], ["mercury"], ["opel"], ["peugeot"], ["fiat"], ["toyota"], ["datsun"], ["volkswagen"], ["plymouth"], ["toyota"], ["dodge"], ["volkswagen"], ["chevrolet"], ["ford"], ["chevrolet"], ["pontiac"], ["plymouth"], ["ford"], ["amc"], ["mercury"], ["buick"], ["oldsmobile"], ["chrysler"], ["mazda"], ["amc"], ["chevrolet"], ["ford"], ["plymouth"], ["volkswagen"], ["peugeot"], ["renault"], ["ford"], ["datsun"], ["toyota"], ["dodge"], ["toyota"], ["buick"], ["amc"], ["chevrolet"], ["ford"], ["dodge"], ["mercury"], ["chevrolet"], ["ford"], ["plymouth"], ["chrysler"], ["buick"], ["amc"], ["plymouth"], ["chevrolet"], ["amc"], ["ford"], ["plymouth"], ["volkswagen"], ["chevrolet"], ["ford"], ["plymouth"], ["oldsmobile"], ["amc"], ["toyota"], ["chevrolet"], ["datsun"], ["mazda"], ["ford"], ["mercury"], ["fiat"], ["chevrolet"], ["pontiac"], ["fiat"], ["opel"], ["audi"], ["dodge"], ["saab"], ["toyota"], ["oldsmobile"], ["plymouth"], ["ford"], ["amc"], ["chevrolet"], ["datsun"], ["ford"], ["toyota"], ["chevrolet"], ["chevrolet"], ["amc"], ["plymouth"], ["ford"], ["buick"], ["dodge"], ["ford"], ["amc"], ["audi"], ["volkswagen"], ["opel"], ["toyota"], ["datsun"], ["dodge"], ["fiat"], ["fiat"], ["honda"], ["subaru"], ["fiat"], ["plymouth"], ["chevrolet"], ["mercury"], ["ford"], ["pontiac"], ["chevrolet"], ["plymouth"], ["ford"], ["buick"], ["chevrolet"], ["amc"], ["plymouth"], ["buick"], ["chevrolet"], ["ford"], ["toyota"], ["ford"], ["amc"], ["pontiac"], ["toyota"], ["volkswagen"], ["datsun"], ["ford"], ["volkswagen"], ["amc"], ["audi"], ["peugeot"], ["saab"], ["honda"], ["fiat"], ["opel"], ["capri"], ["dodge"], ["renault"], ["chevrolet"], ["dodge"], ["amc"], ["ford"], ["plymouth"], ["chevrolet"], ["ford"], ["amc"], ["chevrolet"], ["chevrolet"], ["volkswagen"], ["honda"], ["dodge"], ["ford"], ["pontiac"], ["amc"], ["volkswagen"], ["datsun"], ["toyota"], ["ford"], ["plymouth"], ["peugeot"], ["toyota"], ["mercedes-benz"], ["cadillac"], ["chevrolet"], ["ford"], ["dodge"], ["honda"], ["buick"], ["renault"], ["plymouth"], ["datsun"], ["chevrolet"], ["oldsmobile"], ["dodge"], ["mercury"], ["chevrolet"], ["buick"], ["plymouth"], ["ford"], ["pontiac"], ["chevrolet"], ["chrysler"], ["ford"], ["volkswagen"], ["pontiac"], ["toyota"], ["ford"], ["chevrolet"], ["dodge"], ["subaru"], ["volkswagen"], ["datsun"], ["bmw"], ["mazda"], ["volkswagen"], ["ford"], ["mazda"], ["datsun"], ["honda"], ["oldsmobile"], ["dodge"], ["mercury"], ["pontiac"], ["chevrolet"], ["ford"], ["ford"], ["plymouth"], ["amc"], ["buick"], ["mercury"], ["dodge"], ["amc"], ["chevrolet"], ["buick"], ["ford"], ["dodge"], ["chevrolet"], ["toyota"], ["datsun"], ["dodge"], ["toyota"], ["plymouth"], ["oldsmobile"], ["datsun"], ["audi"], ["saab"], ["peugeot"], ["volkswagen"], ["honda"], ["pontiac"], ["mercury"], ["ford"], ["amc"], ["dodge"], ["chevrolet"], ["ford"], ["mercury"], ["dodge"], ["buick"], ["ford"], ["chevrolet"], ["chrysler"], ["volkswagen"], ["mazda"], ["dodge"], ["amc"], ["mercedes"], ["cadillac"], ["peugeot"], ["oldsmobile"], ["plymouth"], ["plymouth"], ["datsun"], ["fiat"], ["buick"], ["chevrolet"], ["oldsmobile"], ["pontiac"], ["volkswagen"], ["toyota"], ["chevrolet"], ["datsun"], ["chevrolet"], ["ford"], ["amc"], ["dodge"], ["audi"], ["toyota"], ["mazda"], ["datsun"], ["toyota"], ["mazda"], ["dodge"], ["datsun"], ["volkswagen"], ["volkswagen"], ["audi"], ["mercedes-benz"], ["honda"], ["renault"], ["subaru"], [" volkswagen"], ["datsun"], ["mazda"], ["triumph"], ["ford"], ["honda"], ["plymouth"], ["buick"], ["dodge"], ["chevrolet"], ["plymouth"], ["toyota"], ["plymouth"], ["honda"], ["subaru"], ["datsun"], ["toyota"], ["mazda"], ["plymouth"], ["ford"], ["ford"], ["volkswagen"], ["renault"], ["honda"], ["toyota"], ["datsun"], ["mazda"], ["peugeot"], ["saab"], ["toyota"], ["datsun"], ["buick"], ["oldsmobile"], ["ford"], ["chrysler"], ["chevrolet"], ["chevrolet"], ["chevrolet"], ["pontiac"], ["dodge"], ["pontiac"], ["ford"], ["amc"], ["volkswagen"], ["mazda"], ["mazda"], ["plymouth"], ["mercury"], ["nissan"], ["honda"], ["toyota"], ["honda"], ["honda"], ["datsun"], ["buick"], ["oldsmobile"], ["chrysler"], ["ford"], ["toyota"], ["dodge"], ["chevrolet"], ["ford"], ["volkswagen"], ["dodge"], ["ford"], ["chevrolet"], ["amc"], ["audi"], ["bmw"], ["buick"], ["cadillac"], ["capri"], ["chevrolet"], ["chrysler"], ["citroen"], ["datsun"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_X6c0m_406.png", "TableImg_5mp28_36.png"], "original_data_index": 4850, "original_sql": "SELECT Model FROM car_names WHERE Model != \"volvo\" UNION ALL SELECT Model FROM model_list WHERE \"ModelId\" < 11"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding ID 2, and then from the airport_aircraft table including only those greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1ozk1_5.png", "TableImg_Lvc9b_4.png"], "original_data_index": 4845, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 6 with those from the school bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jdlvc_12.png", "TableImg_Bkhiy_5.png"], "original_data_index": 4851, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of all employee IDs from the certificate table, excluding the ID 269734834, combined with a list of all employee IDs from the employee table that are less than or equal to 348121549?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68], "data": [["11564812"], ["11564812"], ["90873519"], ["141582651"], ["141582651"], ["141582651"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["142519864"], ["159542516"], ["159542516"], ["242518965"], ["242518965"], ["274878974"], ["274878974"], ["310454876"], ["310454876"], ["355548984"], ["355548984"], ["356187925"], ["390487451"], ["390487451"], ["390487451"], ["548977562"], ["550156548"], ["550156548"], ["552455318"], ["552455318"], ["552455318"], ["556784565"], ["556784565"], ["556784565"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["567354612"], ["573284895"], ["573284895"], ["573284895"], ["574489456"], ["574489456"], ["574489457"], ["11564812"], ["15645489"], ["90873519"], ["141582651"], ["142519864"], ["159542516"], ["242518965"], ["248965255"], ["254099823"], ["269734834"], ["274878974"], ["287321212"], ["310454876"], ["310454877"], ["348121549"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Tp3uv_69.png", "TableImg_K29pk_31.png"], "original_data_index": 4846, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" <> 269734834 UNION ALL SELECT eid FROM employee WHERE \"eid\" <= 348121549"} {"question": "Can you give me a list of driver IDs, first from the driver table excluding driver ID 8, and then from the school bus table including only driver IDs up to 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wmimv_12.png", "TableImg_4r614_5.png"], "original_data_index": 4852, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 4, but excluding any driver IDs that also appear in the school bus table, unless that school bus driver ID is 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cd7mm_12.png", "TableImg_7rzzi_5.png"], "original_data_index": 4853, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 11, combined with those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M8j6s_12.png", "TableImg_Ssh7w_5.png"], "original_data_index": 4854, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are in the driver table but not in the school bus table, also excluding driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yz87f_12.png", "TableImg_Eypnu_5.png"], "original_data_index": 4855, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are less than 6, but exclude the driver ID 4 if it appears in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H8cha_12.png", "TableImg_Ok8v2_5.png"], "original_data_index": 4856, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver IDs less than or equal to 10 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_81cw2_12.png", "TableImg_It81n_5.png"], "original_data_index": 4858, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me the sum of school IDs from the budget table, considering entries where the budget invested percentage isn't 71.3, the budgeted value isn't 3666, or the total budget percent invested isn't 2.0, or the year isn't 2001, or the invested amount isn't 146102, or the school ID is greater than 1, combined with the sum of school IDs from the endowment table, considering entries where the endowment ID is less than or equal to 11, or the donator name isn't La Vega, and the amount is less than 8.99?", "answer": {"columns": ["SUM(School_id)"], "index": [0, 1], "data": [["24"], ["46"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_A8cua_8.png", "TableImg_Sgdpf_11.png"], "original_data_index": 4857, "original_sql": "SELECT SUM(School_id) FROM budget WHERE Budget_invested_percent <> \"71.3\" AND \"Budgeted\" != 3666 AND \"total_budget_percent_invested\" != 2.0 OR \"Year\" != 2001 AND \"Invested\" <> 146102 OR \"School_id\" > 1 UNION ALL SELECT SUM(School_id) FROM endowment WHERE \"endowment_id\" <= 11 OR donator_name != \"La Vega\" AND \"amount\" < 8.99"} {"question": "Can you list all the aircraft IDs from the aircraft table, but only if the aircraft ID is 1, and also list all the aircraft IDs from the airport_aircraft table, but only if the aircraft ID is less than 5, and combine these two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Oy7c9_5.png", "TableImg_Qf979_4.png"], "original_data_index": 4859, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs that are 9 or less, excluding those driver IDs that are also 3 or greater in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uohhj_12.png", "TableImg_Dk3ns_5.png"], "original_data_index": 4861, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those that are not 12 from the driver table, and also those that are exactly 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z3vsn_12.png", "TableImg_7x59x_5.png"], "original_data_index": 4862, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me the Club ID, average Club Name, and Club Description for all clubs, combining those located in AKW or with a Club ID greater than 2 with those that don't have the description \"Play pen and paper games on campus.\" or aren't located in AKW?", "answer": {"columns": ["ClubID", "AVG(ClubName)", "ClubDesc"], "index": [0], "data": [["1", "0", "Refurbish computers; teach kids and adults about computer basics."]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_2gkxi_4.png", "TableImg_565ru_4.png"], "original_data_index": 4860, "original_sql": "SELECT ClubID, AVG(ClubName), ClubDesc FROM Club WHERE ClubLocation = \"AKW\" OR \"ClubID\" > 2 UNION SELECT ClubID, AVG(ClubName), ClubDesc FROM Club WHERE ClubDesc != \"Play pen and paper games on campus.\" OR ClubLocation != \"AKW\""} {"question": "How many books are there for each writer, along with the price, where the book title is \"The Dome: Ground Zero\", or the publication date isn't August 2008, or the price isn't 2000000, or the writer isn't Garth Ennis and the publication ID is greater than 5, grouped by writer, but only showing results where the publisher is Thomson Reuters?", "answer": {"columns": ["COUNT(T1.Book_ID)", "Price"], "index": [0], "data": [["1", "6000000"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_Xsn2d_10.png", "TableImg_3xp93_7.png"], "original_data_index": 4863, "original_sql": "SELECT COUNT(T1.Book_ID), T2.Price FROM book as T1 JOIN publication as T2 ON T1.Book_ID = T2.Book_ID WHERE Title = \"The Dome: Ground Zero\" OR Publication_Date <> \"August 2008\" OR \"Price\" <> 2000000.0 OR Writer <> \"Garth Ennis\" AND \"Publication_ID\" > 5 GROUP BY Writer HAVING Publisher = \"Thomson Reuters\""} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 6, combined with a list of driver IDs from the school_bus table that are equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3yzcs_12.png", "TableImg_Fl3ly_5.png"], "original_data_index": 4866, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which aircraft have an ID of 2 and also have an ID less than 3 at the airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O0sf0_5.png", "TableImg_Beu9m_4.png"], "original_data_index": 4864, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 2, with those from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ib3s_12.png", "TableImg_0efq7_5.png"], "original_data_index": 4867, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What is the average name from the branch table, excluding branches opened in 2009, those not on Concord Road in Oxford, those with a membership amount other than 6, and those not named Zytogorski, combined with the average name from the member table, excluding members with card number LCB7 and member ID 2?", "answer": {"columns": ["AVG(Name)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_S6rw4_8.png", "TableImg_E6yuq_10.png"], "original_data_index": 4865, "original_sql": "SELECT AVG(Name) FROM branch WHERE Open_year <> \"2009\" OR Address_road <> \"Concord Road\" AND City <> \"Oxford\" AND membership_amount <> \"6\" AND Name != \"Zytogorski\" UNION ALL SELECT AVG(Name) FROM member WHERE Card_Number != \"LCB7\" AND \"Member_ID\" <> 2"} {"question": "Can you give me a list of driver IDs that are 10 or less from the driver table, excluding those driver IDs that are less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mtcls_12.png", "TableImg_Zwhv0_5.png"], "original_data_index": 4871, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10, and those from the school_bus table that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E9eq9_12.png", "TableImg_Sxxnb_5.png"], "original_data_index": 4868, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of aircraft IDs, up to and including 4, that appear in the aircraft table but not in the airport_aircraft table, considering only aircraft IDs up to and including 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xq1u2_5.png", "TableImg_036st_4.png"], "original_data_index": 4869, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me the total Department IDs for each ranking, but only for departments with a budget less than 77.6 billion, or a ranking that isn't 8 and wasn't created in 1789, or doesn't have 109832 employees, or has a Department ID greater than 1, showing only those totals greater than 6? Also, include the total Department IDs for each ranking where the creation year isn't 1979, but only showing totals that are 10 or greater.", "answer": {"columns": ["Ranking", "SUM(Department_ID)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["7", "7"], ["8", "8"], ["9", "9"], ["10", "10"], ["11", "11"], ["12", "12"], ["13", "13"], ["14", "14"], ["15", "15"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_4sit0_15.png", "TableImg_1qd8q_15.png"], "original_data_index": 4870, "original_sql": "SELECT Ranking, SUM(Department_ID) FROM department WHERE \"Budget_in_Billions\" < 77.6 OR \"Ranking\" != 8 AND Creation != \"1789\" OR \"Num_Employees\" != 109832.0 OR \"Department_ID\" > 1 GROUP BY Ranking HAVING SUM(Department_ID) > 6 UNION SELECT Ranking, SUM(Department_ID) FROM department WHERE Creation <> \"1979\" GROUP BY Ranking HAVING SUM(Department_ID) >= 10"} {"question": "Can you give me a list of driver IDs, where each ID is greater than or equal to 1, excluding those driver IDs that appear in the school bus table where the driver ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cap2h_12.png", "TableImg_Kfmca_5.png"], "original_data_index": 4872, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are both less than or equal to 3 in the driver table and less than or equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aen7a_12.png", "TableImg_Wzp88_5.png"], "original_data_index": 4873, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are not equal to 5, excluding any driver IDs greater than 3 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4xg0j_12.png", "TableImg_Gx5z1_5.png"], "original_data_index": 4874, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs less than 10 from the driver table, excluding those driver IDs less than 7 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7fyci_12.png", "TableImg_94hrf_5.png"], "original_data_index": 4878, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs where the driver ID is greater than 5 from the driver table, combined with a list of driver IDs that are equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Knwgd_12.png", "TableImg_3l8km_5.png"], "original_data_index": 4879, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "For properties with feature IDs less than 4, can you tell me the property ID, the number of property feature descriptions, and the feature ID, excluding those properties where the feature ID is not 3 and the property feature description is not \"hic\"?", "answer": {"columns": ["property_id", "COUNT(property_feature_description)", "feature_id"], "index": [0], "data": [["15", "11", "3"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_4g6ti_15.png", "TableImg_F9djw_15.png"], "original_data_index": 4880, "original_sql": "SELECT property_id, COUNT(property_feature_description), feature_id FROM Other_Property_Features WHERE \"feature_id\" < 4 EXCEPT SELECT property_id, COUNT(property_feature_description), feature_id FROM Other_Property_Features WHERE \"feature_id\" <> 3 AND property_feature_description != \"hic\""} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 2, and those from the school bus table where the ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7hyd3_12.png", "TableImg_Txymp_5.png"], "original_data_index": 4881, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "For each aircraft, what is the smallest ID associated with it in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID", "MIN(T2.ID)"], "index": [0], "data": [["5", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3c5o1_5.png", "TableImg_2pgxj_4.png"], "original_data_index": 4882, "original_sql": "SELECT T1.Aircraft_ID, MIN(T2.ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, but only if they are not aircraft IDs that appear in the airport_aircraft table with an ID greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rit6o_5.png", "TableImg_05tk3_4.png"], "original_data_index": 4883, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 1 and also not equal to 10, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jp60n_12.png", "TableImg_Eqz26_5.png"], "original_data_index": 4884, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or greater, and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vpi70_12.png", "TableImg_Hs5gj_5.png"], "original_data_index": 4885, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs less than 10 from the driver table, excluding any driver IDs less than 4 that are also in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D1plt_12.png", "TableImg_O7g5v_5.png"], "original_data_index": 4886, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me the address details and IDs from the Addresses table where the ID is 3 or less and the address details are not \"IE\", but exclude any entries where the address details are not \"MX\" or the ID is 0?", "answer": {"columns": ["address_details", "address_id"], "index": [0], "data": [["MX", "1"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_35w8q_10.png", "TableImg_X4vwj_10.png"], "original_data_index": 4876, "original_sql": "SELECT address_details, address_id FROM Addresses WHERE \"address_id\" <= 3 AND address_details <> \"IE\" EXCEPT SELECT address_details, address_id FROM Addresses WHERE address_details != \"MX\" OR \"address_id\" = 0"} {"question": "Can you give me a list of driver IDs less than 11, excluding those driver IDs that are also less than 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P5jm9_12.png", "TableImg_7hr7j_5.png"], "original_data_index": 4875, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are not equal to 1 and are also greater than 4, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_10bzr_12.png", "TableImg_E6ydw_5.png"], "original_data_index": 4877, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which aircraft IDs, excluding ID 1, are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lxdnd_5.png", "TableImg_Zgzbn_4.png"], "original_data_index": 4890, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs, including those drivers who are not driver 5, and also including driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_31hgk_12.png", "TableImg_Vuekk_5.png"], "original_data_index": 4888, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 4, combined with all the driver IDs from the school_bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_33gc2_12.png", "TableImg_Rnulo_5.png"], "original_data_index": 4887, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of all driver IDs, excluding driver ID 7 from the driver table and excluding driver ID 3 from the school_bus table, making sure there are no duplicates in the final list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2p28y_12.png", "TableImg_Oc09z_5.png"], "original_data_index": 4889, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 2 and also not equal to 7, considering only drivers that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M55uy_12.png", "TableImg_9s0ot_5.png"], "original_data_index": 4894, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those that are equal to 6 from the driver table and those that are less than or equal to 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I1awj_12.png", "TableImg_4a062_5.png"], "original_data_index": 4893, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are greater than 3 and also not equal to 3, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V097q_12.png", "TableImg_T02yf_5.png"], "original_data_index": 4892, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Could you give me the document IDs and other details from the Documents table, excluding those that have a document name of \"A history of Arts\" or other details that are not \"None\" and a document description that is not \"b\" or a Template ID that is not 10, and then remove any document IDs and other details that also appear in the Paragraphs table where the paragraph text is not \"Brazil\", the paragraph ID is greater than 571212310, and the document ID is less than 2394?", "answer": {"columns": ["Document_ID", "Other_Details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["0", ""], ["1", ""], ["3", ""], ["76", ""], ["82", ""], ["2394", ""], ["3830", ""], ["33930", ""], ["50123", ""], ["651512", ""], ["801801", ""], ["3540024", ""], ["16514113", ""], ["385906526", ""]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_818ur_15.png", "TableImg_Tylcg_15.png"], "original_data_index": 4891, "original_sql": "SELECT Document_ID, Other_Details FROM Documents WHERE Document_Name <> \"A history of Arts\" OR Other_Details != \"None\" AND Document_Description != \"b\" OR \"Template_ID\" <> 10 EXCEPT SELECT Document_ID, Other_Details FROM Paragraphs WHERE Paragraph_Text <> \"Brazil\" AND \"Paragraph_ID\" > 571212310 AND \"Document_ID\" < 2394"} {"question": "Could you give me the driver IDs that are both less than 12 and also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jnnfg_12.png", "TableImg_94h6m_5.png"], "original_data_index": 4897, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What is the average branch ID for branches not located on Valleys Place, combined with the average branch ID for purchases not made at branch 6 by members with IDs less than 4?", "answer": {"columns": ["AVG(Branch_ID)"], "index": [0, 1], "data": [["5.0"], ["3.1666666667"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Tyyw9_8.png", "TableImg_Pujb1_8.png"], "original_data_index": 4895, "original_sql": "SELECT AVG(Branch_ID) FROM branch WHERE Address_road <> \"Valleys Place\" UNION ALL SELECT AVG(Branch_ID) FROM purchase WHERE Branch_ID != \"6\" AND \"Member_ID\" < 4"} {"question": "Can you give me a list of driver IDs from the driver table, where the driver ID is 1 or greater, excluding any driver IDs that appear in the school_bus table, unless that driver ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ygwf_12.png", "TableImg_Fn308_5.png"], "original_data_index": 4896, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which customers with ID 3 have both made payments and either have lessons taught by staff other than staff ID 8 with customer ID greater than or equal to 13, or have cancelled lessons with lesson ID greater than 14?", "answer": {"columns": ["customer_id"], "index": [0], "data": [["3"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_It8fg_15.png", "TableImg_18yc5_15.png"], "original_data_index": 4898, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"customer_id\" = 3 INTERSECT SELECT customer_id FROM Lessons WHERE \"staff_id\" <> 8 AND \"customer_id\" >= 13 OR \"lesson_id\" > 14 AND lesson_status_code = \"Cancelled\""} {"question": "Can you list the aircraft IDs that are less than or equal to 3, excluding aircraft ID 1 if it's associated with any airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2cb98_5.png", "TableImg_Y9xug_4.png"], "original_data_index": 4900, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Could you please list the branch IDs from the branch table where the membership amount is 56 and the city is London, or the branch ID is 3 and the opening year is not 2015, and also include the branch IDs from the purchase table where the member ID is greater than 2 and the total pounds is not 430.29, or the branch ID is not 5?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["3"], ["1"], ["1"], ["5"], ["6"], ["2"], ["3"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_431ow_8.png", "TableImg_O59ww_8.png"], "original_data_index": 4899, "original_sql": "SELECT Branch_ID FROM branch WHERE membership_amount = \"56\" AND City = \"London\" OR \"Branch_ID\" = 3 AND Open_year != \"2015\" UNION ALL SELECT Branch_ID FROM purchase WHERE \"Member_ID\" > 2 AND \"Total_pounds\" <> 430.29 OR Branch_ID != \"5\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 7, that are not also driver IDs less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1uron_12.png", "TableImg_Mu3pm_5.png"], "original_data_index": 4902, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 2, and those from the school_bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wfg9j_12.png", "TableImg_Uwx9k_5.png"], "original_data_index": 4905, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are greater than 9 from the driver table, excluding any driver IDs that are greater than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_894s5_12.png", "TableImg_Bksnl_5.png"], "original_data_index": 4901, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me the other details from the Documents table where the receipt number is 80, or where the other details are not \"u\", the document status code is not \"overdue\", the shipping agent code is not \"SH\", and the receipt date is November 5th, 1973 at 9:48:53 PM, but exclude any other details that are also found in the Employees table where the employee name is not \"Kenyon\", or the employee ID is greater than 7, or the other details are not \"f\", or the role code is not \"PR\"?", "answer": {"columns": ["other_details"], "index": [0], "data": [["q"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Fu9nl_15.png", "TableImg_Mu94w_6.png"], "original_data_index": 4904, "original_sql": "SELECT other_details FROM Documents WHERE receipt_number = \"80\" OR other_details <> \"u\" AND document_status_code <> \"overdue\" AND shipping_agent_code <> \"SH\" AND receipt_date = \"1973-11-05 21:48:53\" EXCEPT SELECT other_details FROM Employees WHERE employee_name <> \"Kenyon\" OR \"employee_id\" > 7 AND other_details != \"f\" OR role_code != \"PR\""} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 1, and those from the airport_aircraft table that are less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ucef7_5.png", "TableImg_Lgkr0_4.png"], "original_data_index": 4906, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 5 and appear in the driver table, and also less than 9 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sufj4_12.png", "TableImg_Ks58m_5.png"], "original_data_index": 4907, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me the driver IDs that are less than 5 and also not equal to 3, considering only the unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0olls_12.png", "TableImg_85uav_5.png"], "original_data_index": 4908, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, but only if they are not aircraft ID 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qfsbc_5.png", "TableImg_Z98o5_4.png"], "original_data_index": 4909, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than 1, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ai0w_5.png", "TableImg_3tdk3_4.png"], "original_data_index": 4910, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mbp2s_12.png", "TableImg_D3hlg_5.png"], "original_data_index": 4912, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me the IDs of drivers, up to ID 5, excluding any driver with ID 9 who drives a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wc8iw_12.png", "TableImg_Fgmdc_5.png"], "original_data_index": 4911, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the aircraft IDs that are greater than 5 from the aircraft table, and also include the aircraft IDs that are exactly 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_18kpu_5.png", "TableImg_Kubno_4.png"], "original_data_index": 4913, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you list the aircraft IDs that are less than 2 from the aircraft table, and combine that with a list of aircraft IDs that are not equal to 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_34g0e_5.png", "TableImg_5hjo6_4.png"], "original_data_index": 4915, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What aircraft IDs are both greater than or equal to 5 in the aircraft table and greater than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Okvo5_5.png", "TableImg_9hn36_4.png"], "original_data_index": 4917, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than 3, excluding any driver IDs that are also greater than 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L07wd_12.png", "TableImg_4mfs4_5.png"], "original_data_index": 4914, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are both greater than or equal to 6 in the driver table and greater than or equal to 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H9uys_12.png", "TableImg_O4wt8_5.png"], "original_data_index": 4916, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 2, with those from the school_bus table where the ID is greater than 10, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xw8hb_12.png", "TableImg_R06go_5.png"], "original_data_index": 4919, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What is the total freight in metric tonnes and the corresponding ID for each airport, considering the relationship between the airport and airport_aircraft tables?", "answer": {"columns": ["SUM(T1.Freight_Metric_Tonnes)", "ID"], "index": [0], "data": [["1516951", "1"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Fd46z_10.png", "TableImg_3m1vl_4.png"], "original_data_index": 4920, "original_sql": "SELECT SUM(T1.Freight_Metric_Tonnes), T2.ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 2, and those from the airport_aircraft table that are less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nvtou_5.png", "TableImg_1kti3_4.png"], "original_data_index": 4918, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Which driver IDs are both not equal to 2 and also greater than 3, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uh8k8_12.png", "TableImg_A9u6z_5.png"], "original_data_index": 4921, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list the aircraft IDs that are 3 or greater, excluding those aircraft IDs from the airport aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S3ybb_5.png", "TableImg_M17gx_4.png"], "original_data_index": 4922, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me the IDs of aircraft that have an ID of 3, excluding any aircraft IDs less than or equal to 2 that are also listed in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tn6lv_5.png", "TableImg_B3n57_4.png"], "original_data_index": 4924, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 9 from the driver table and excluding driver ID 10 from the school_bus table, combining the results and removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wta4s_12.png", "TableImg_Yrdlc_5.png"], "original_data_index": 4925, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list the property IDs from the Other_Property_Features table where the feature ID is not 3, combined with property IDs from the Properties table where apt_feature_1 is \"aut\", the property type code is not \"Other\", apt_feature_3 is not \"None\" and the room count is 5, or apt_feature_2 is not \"sit\"?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_Xi6rr_15.png", "TableImg_Gb1g6_15.png"], "original_data_index": 4923, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"feature_id\" != 3 UNION SELECT property_id FROM Properties WHERE apt_feature_1 = \"aut\" OR property_type_code <> \"Other\" OR apt_feature_3 <> \"None\" AND \"room_count\" = 5 OR apt_feature_2 <> \"sit\""} {"question": "Can you list the aircraft IDs, excluding aircraft ID 3, that are not aircraft ID 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tt0b8_5.png", "TableImg_I28wh_4.png"], "original_data_index": 4928, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you list all the property type codes, excluding \"Field\" and those described as \"Other, to be determined,\" and also excluding those described as \"Apartment, Flat, Condo, etc.\" and again excluding the code \"Field\"?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3], "data": [["Apartment"], ["House"], ["Other"], ["Shop"]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_7lb4z_5.png", "TableImg_Zvt3d_5.png"], "original_data_index": 4927, "original_sql": "SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> \"Field\" AND property_type_description <> \"Other, to be determined.\" UNION SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description <> \"Apartment, Flat, Condo, etc.\" AND property_type_code != \"Field\""} {"question": "Can you give me the IDs that are both in the flight table where the altitude is 3650 or less, the ID is not 8, the date is not January 29, 1964, the airport ID is not 4, the company ID is 11 or greater, the vehicle flight number is not M2-F1 #70, the velocity is 240 or greater, or the pilot is not Thompson, and in the operate_company table where the type is Subsidiary and the incorporated location is not Hong Kong, or the ID is not 10, or the name is not Cathay Pacific Services Limited and the principal activities are Catering services and the group equity shareholding is 100 or greater?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_Heyxj_13.png", "TableImg_79li0_14.png"], "original_data_index": 4926, "original_sql": "SELECT id FROM flight WHERE \"Altitude\" <= 3650.0 OR \"id\" <> 8 OR Date <> \"January 29, 1964\" OR \"airport_id\" <> 4 OR \"company_id\" >= 11 OR Vehicle_Flight_number <> \"M2-F1 #70\" OR \"Velocity\" >= 240.0 OR Pilot != \"Thompson\" INTERSECT SELECT id FROM operate_company WHERE Type = \"Subsidiary\" AND Incorporated_in <> \"Hong Kong\" OR \"id\" != 10 OR name <> \"Cathay Pacific Services Limited\" AND Principal_activities = \"Catering services\" AND \"Group_Equity_Shareholding\" >= 100.0"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 11, and those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_81bnh_12.png", "TableImg_Qozk9_5.png"], "original_data_index": 4929, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of aircraft IDs that are not equal to 3, and are also less than 2 when looking at the aircraft IDs associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tswff_5.png", "TableImg_Elphk_4.png"], "original_data_index": 4930, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 4, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H1se9_12.png", "TableImg_Jr56y_5.png"], "original_data_index": 4931, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs, excluding driver ID 1, are also driver ID 3 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_63zqb_12.png", "TableImg_Odtyr_5.png"], "original_data_index": 4934, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me the IDs of drivers that are both less than 7 and also less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D3jis_12.png", "TableImg_3inlx_5.png"], "original_data_index": 4936, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 9, combined with all the driver IDs from the school_bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4mhiq_12.png", "TableImg_09tws_5.png"], "original_data_index": 4935, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list all Aircraft IDs that are greater than or equal to 2, combining the IDs from both the aircraft and airport_aircraft tables, but only showing each ID once?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1dymf_5.png", "TableImg_Om7r6_4.png"], "original_data_index": 4937, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which aircraft have an ID of 3 and also appear in the airport aircraft list with an ID of 1 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ydk0_5.png", "TableImg_6e566_4.png"], "original_data_index": 4938, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or higher, and also those from the school bus table that are exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dk48h_12.png", "TableImg_P8ylw_5.png"], "original_data_index": 4939, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the aircraft IDs that are greater than or equal to 3 from the aircraft table, and also list the aircraft IDs that are not equal to 5 from the airport_aircraft table, combining both lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C2iub_5.png", "TableImg_Zzscf_4.png"], "original_data_index": 4940, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of IDs from car makers that are not from country 3, combined with a list of IDs from car data that are from the year 1981?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["346"], ["347"], ["348"], ["349"], ["350"], ["351"], ["352"], ["353"], ["354"], ["355"], ["356"], ["357"], ["358"], ["359"], ["360"], ["361"], ["362"], ["363"], ["364"], ["365"], ["366"], ["367"], ["368"], ["369"], ["370"], ["371"], ["372"], ["373"], ["374"], ["375"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Y2atu_22.png", "TableImg_E811b_406.png"], "original_data_index": 4941, "original_sql": "SELECT Id FROM car_makers WHERE Country <> \"3\" UNION ALL SELECT Id FROM cars_data WHERE \"Year\" = 1981"} {"question": "Can you give me a list of driver IDs that are less than or equal to 12, and also include driver ID 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I5ysn_12.png", "TableImg_Yvwr5_5.png"], "original_data_index": 4942, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the aircraft IDs that are less than 4 from the aircraft table, combined with the aircraft IDs that are at least 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tt5sn_5.png", "TableImg_8bvcm_4.png"], "original_data_index": 4933, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 5, but only if they are not also in the airport_aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bi0c4_5.png", "TableImg_67lam_4.png"], "original_data_index": 4932, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you list the driver IDs, including driver ID 1 from the driver table and any driver IDs less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zhdqq_12.png", "TableImg_Swk6h_5.png"], "original_data_index": 4946, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you list the Aircraft IDs that are less than 4 and appear in the aircraft table, and also are less than 2 and appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8lydc_5.png", "TableImg_Puij1_4.png"], "original_data_index": 4944, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me the IDs of drivers with IDs less than 5, excluding those driver IDs that are also school bus driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6rylq_12.png", "TableImg_Uooy1_5.png"], "original_data_index": 4945, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 1, and those from the school bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sokt1_12.png", "TableImg_Bnier_5.png"], "original_data_index": 4943, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the property and feature IDs for all entries where the property feature description is not \"hic\", excluding those entries where the description is not \"doloribus\" and the property ID is greater than 15?", "answer": {"columns": ["property_id", "feature_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1", "2"], ["3", "2"], ["4", "3"], ["6", "2"], ["6", "3"], ["9", "3"], ["11", "4"], ["12", "4"], ["13", "2"], ["14", "4"], ["15", "3"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_1njwx_15.png", "TableImg_Skv0a_15.png"], "original_data_index": 4950, "original_sql": "SELECT property_id, feature_id FROM Other_Property_Features WHERE property_feature_description != \"hic\" EXCEPT SELECT property_id, feature_id FROM Other_Property_Features WHERE property_feature_description != \"doloribus\" AND \"property_id\" > 15"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, but then remove any aircraft IDs that also appear in the airport_aircraft table with an ID of 2 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1ty6h_5.png", "TableImg_Dmogu_4.png"], "original_data_index": 4948, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs that are greater than 8, excluding any driver IDs found in the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O7r1x_12.png", "TableImg_Vx3l1_5.png"], "original_data_index": 4947, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4 from the driver table and excluding driver ID 9 from the school bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3s927_12.png", "TableImg_Dt8c5_5.png"], "original_data_index": 4949, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver has an ID of 10 and also drives a school bus, but not one with an ID of 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F6yu5_12.png", "TableImg_H3d1d_5.png"], "original_data_index": 4952, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding ID 9, and those from the school bus table with IDs 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pqdys_12.png", "TableImg_Df5vf_5.png"], "original_data_index": 4954, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What is the smallest document ID from the Documents table, considering only documents where the document name is not \"Learning French\" or the \"Template_ID\" is less than 20 and also included in the smallest document IDs where other details are not \"None\"?", "answer": {"columns": ["MIN(Document_ID)"], "index": [0], "data": [["0"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Tj03j_15.png", "TableImg_Ve3f5_15.png"], "original_data_index": 4951, "original_sql": "SELECT MIN(Document_ID) FROM Documents WHERE Document_Name != \"Learning French\" OR \"Template_ID\" < 20 IN (SELECT MIN(Document_ID) FROM Documents WHERE Other_Details != \"None\")"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that aren't 5 with those from the school bus table that are less than 10, making sure to only list each ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z5oej_12.png", "TableImg_Ldubm_5.png"], "original_data_index": 4953, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7fmlk_12.png", "TableImg_62usk_5.png"], "original_data_index": 4955, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs that are less than or equal to 1, excluding any driver IDs that are not equal to 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zzvgo_12.png", "TableImg_3lfg4_5.png"], "original_data_index": 4956, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 11, and those from the school bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J4118_12.png", "TableImg_73gfz_5.png"], "original_data_index": 4957, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the driver ID that appears exactly once as 7 in the driver table but does not appear as a driver ID greater than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ogkxf_12.png", "TableImg_Thm0l_5.png"], "original_data_index": 4960, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me the driver ID that appears exactly once as 6 in the driver table, but does not appear as 9 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jgw08_12.png", "TableImg_C2xht_5.png"], "original_data_index": 4961, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs that are greater than 5, excluding any driver IDs that are less than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ofsfm_12.png", "TableImg_2kvfe_5.png"], "original_data_index": 4958, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs, excluding driver 9, are also driver IDs, excluding driver 7, in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yh39g_12.png", "TableImg_9edg6_5.png"], "original_data_index": 4964, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What is the total draft number and document ID for circulation history entries where the copy number is 5 or less, the draft number is not 1, and the document ID is less than 20, excluding the total draft number and document ID from document drafts where the draft number is greater than 9?", "answer": {"columns": ["SUM(draft_number)", "document_id"], "index": [0], "data": [["2", "1"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_B67ze_4.png", "TableImg_Qlhz4_15.png"], "original_data_index": 4959, "original_sql": "SELECT SUM(draft_number), document_id FROM Circulation_History WHERE \"copy_number\" <= 5 AND \"draft_number\" != 1 AND \"document_id\" < 20 EXCEPT SELECT SUM(draft_number), document_id FROM Document_Drafts WHERE \"draft_number\" > 9"} {"question": "How many countries are named \"new zealand\" and have a continent value less than 4, excluding the count of countries that are not named \"mexico\" or have a CountryId of 13?", "answer": {"columns": ["COUNT(CountryId)"], "index": [0], "data": [["0"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_9khwy_15.png", "TableImg_N7ynr_15.png"], "original_data_index": 4965, "original_sql": "SELECT COUNT(CountryId) FROM countries WHERE CountryName = \"new zealand\" AND \"Continent\" < 4 EXCEPT SELECT COUNT(CountryId) FROM countries WHERE CountryName != \"mexico\" OR \"CountryId\" = 13"} {"question": "What are the aircraft IDs that are not equal to 1 and are also not equal to 2 in the airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8zi26_5.png", "TableImg_T7940_4.png"], "original_data_index": 4966, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which store and product combinations are such that the product ID is not 1 and the store ID is less than 2, and also the store ID is not 5 and the product ID is not 2?", "answer": {"columns": ["Store_ID", "Product_ID"], "index": [0, 1, 2], "data": [["1", "3"], ["1", "4"], ["1", "6"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Ewy1w_15.png", "TableImg_Y0tf7_15.png"], "original_data_index": 4963, "original_sql": "SELECT Store_ID, Product_ID FROM store_product WHERE \"Product_ID\" <> 1 AND \"Store_ID\" < 2 INTERSECT SELECT Store_ID, Product_ID FROM store_product WHERE \"Store_ID\" <> 5 AND \"Product_ID\" != 2"} {"question": "Can you list the aircraft IDs that are greater than 3, grouped by aircraft ID, from the aircraft table, excluding any aircraft IDs that are also greater than 5, grouped by aircraft ID, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tgj16_5.png", "TableImg_Eohoc_4.png"], "original_data_index": 4967, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you list all the driver IDs that are greater than 8 from the driver table, and combine that with a list of all driver IDs that are greater than or equal to 9 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vhduw_12.png", "TableImg_3jn7h_5.png"], "original_data_index": 4968, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 4, with those from the school bus table that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xln8a_12.png", "TableImg_X96kz_5.png"], "original_data_index": 4970, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are greater than 6 from the driver table, combined with a list of driver IDs that are greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M96h2_12.png", "TableImg_F1pwh_5.png"], "original_data_index": 4971, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you show me the year, total pounds, and member ID for all purchases where the member ID is less than or equal to 1, combined with the year, total pounds, and member ID for all purchases where the branch ID is not 5?", "answer": {"columns": ["Year", "Total_pounds", "Member_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2017", "988.09", "3"], ["2018", "20.99", "4"], ["2018", "232.09", "6"], ["2018", "402.1", "2"], ["2018", "430.29", "2"], ["2018", "2013.32", "1"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_Uftog_8.png", "TableImg_3swdi_8.png"], "original_data_index": 4972, "original_sql": "SELECT Year, Total_pounds, Member_ID FROM purchase WHERE \"Member_ID\" <= 1 UNION SELECT Year, Total_pounds, Member_ID FROM purchase WHERE Branch_ID != \"5\""} {"question": "What are the counts of document IDs and their corresponding draft numbers from the circulation history, considering only entries where the draft number is less than 17 and the document ID is at least 20, or the employee ID is greater than 2, or the copy number is not equal to 10, excluding the counts of document IDs and their draft numbers from document drafts where the draft details are not \"a\", or the document ID is at least 7, or the draft number is 9?", "answer": {"columns": ["COUNT(document_id)", "draft_number"], "index": [0], "data": [["3", "17"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_Ilp10_4.png", "TableImg_Bgmf9_15.png"], "original_data_index": 4973, "original_sql": "SELECT COUNT(document_id), draft_number FROM Circulation_History WHERE \"draft_number\" < 17 AND \"document_id\" >= 20 OR \"employee_id\" > 2 OR \"copy_number\" <> 10 EXCEPT SELECT COUNT(document_id), draft_number FROM Document_Drafts WHERE draft_details <> \"a\" OR \"document_id\" >= 7 OR \"draft_number\" = 9"} {"question": "Which driver IDs are both greater than 4 and not equal to 3, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sy95v_12.png", "TableImg_266xj_5.png"], "original_data_index": 4974, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 5, that are not also aircraft IDs less than or equal to 3 found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8lkno_5.png", "TableImg_Ttc1q_4.png"], "original_data_index": 4975, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are present in the driver table, excluding driver ID 2, and are also present in the school_bus table with driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eohjr_12.png", "TableImg_1g21h_5.png"], "original_data_index": 4976, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table, and all driver IDs except 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0g6rl_12.png", "TableImg_Yx1ls_5.png"], "original_data_index": 4977, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding any driver IDs that are not equal to 4 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qhto4_12.png", "TableImg_8qnoj_5.png"], "original_data_index": 4978, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the IDs of albums that are not by artist 147 and are not album 102, or have a title different from \"Heroes, Season 1\", excluding any IDs that also appear in the media types table where the name is not \"Protected AAC audio file\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342], "data": [["2"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_2vuu7_347.png", "TableImg_5za6w_5.png"], "original_data_index": 4962, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" != 147 AND \"id\" <> 102 OR title <> \"Heroes, Season 1\" EXCEPT SELECT id FROM media_types WHERE name != \"Protected AAC audio file\""} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 3, but only show those that do not appear in the airport_aircraft table with an aircraft ID less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T9qer_5.png", "TableImg_6xpc7_4.png"], "original_data_index": 4981, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of all certificate IDs where the event ID is 573284895 or the certificate ID is greater than 5, combined with a list of all certificate IDs from flights that departed on a date other than December 4th, 2005 at 11:50 AM?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Bnnjy_69.png", "TableImg_Oadb3_10.png"], "original_data_index": 4969, "original_sql": "SELECT aid FROM certificate WHERE \"eid\" = 573284895 OR \"aid\" > 5 UNION SELECT aid FROM flight WHERE departure_date != \"04/12/2005 11:50\""} {"question": "Which driver IDs less than 5 are also driver IDs of school buses, specifically driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pe3m9_12.png", "TableImg_01l96_5.png"], "original_data_index": 4982, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs from the school_bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Daazz_12.png", "TableImg_L3t4e_5.png"], "original_data_index": 4983, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 3, excluding the IDs of school bus drivers with IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ta8wz_12.png", "TableImg_Wu1bm_5.png"], "original_data_index": 4984, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which aircraft IDs are not equal to 5 and are also greater than 2 when considering aircraft IDs from both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Psvib_5.png", "TableImg_Ky9lg_4.png"], "original_data_index": 4985, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 8, and those from the school bus table where the ID is 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Frxcj_12.png", "TableImg_5ne75_5.png"], "original_data_index": 4986, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs, excluding 8, are also driver IDs that are greater than or equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6puqt_12.png", "TableImg_8jhvo_5.png"], "original_data_index": 4987, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the IDs of drivers, where each ID is less than 4, excluding any driver IDs that are also less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hzn0a_12.png", "TableImg_Laiej_5.png"], "original_data_index": 4988, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xzrd8_12.png", "TableImg_Vxwf5_5.png"], "original_data_index": 4989, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs appear in both the list of drivers with an ID of 1 or greater and the list of school bus drivers with an ID of 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ly3rj_12.png", "TableImg_9vcwg_5.png"], "original_data_index": 4980, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of aircraft names, including those that aren't 'SAAB 340' or have a distance of at least 2128 and an aid less than 10, combined with a list of employee names, including those with a salary of at least 54921, or who aren't 'Lisa Walker', or whose eid isn't 159542516?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45], "data": [["Airbus A319"], ["Airbus A320"], ["Airbus A340-300"], ["Angela Martinez"], ["Barbara Wilson"], ["Betty Adams"], ["Boeing 727"], ["Boeing 737-800"], ["Boeing 747-400"], ["Boeing 757-300"], ["Boeing 767-400ER"], ["Boeing 777-300"], ["British Aerospace Jetstream 41"], ["Chad Stewart"], ["David Anderson"], ["Donald King"], ["Dorthy Lewis"], ["Elizabeth Taylor"], ["Embraer ERJ-145"], ["Eric Cooper"], ["George Wright"], ["Haywood Kelly"], ["James Smith"], ["Jennifer Thomas"], ["John Williams"], ["Joseph Thompson"], ["Karen Scott"], ["Larry West"], ["Lawrence Sperry"], ["Linda Davis"], ["Lisa Walker"], ["Lockheed L1011"], ["Mark Young"], ["Mary Johnson"], ["Michael Miller"], ["Milo Brooks"], ["Patricia Jones"], ["Piper Archer III"], ["Richard Jackson"], ["Robert Brown"], ["SAAB 340"], ["Schwitzer 2-33"], ["Tupolev 154"], ["William Jones"], ["William Moore"], ["William Ward"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_0qxa0_16.png", "TableImg_5hy65_31.png"], "original_data_index": 4979, "original_sql": "SELECT name FROM aircraft WHERE name <> \"SAAB 340\" OR \"distance\" >= 2128 AND \"aid\" < 10 UNION SELECT name FROM employee WHERE \"salary\" >= 54921 OR name <> \"Lisa Walker\" OR \"eid\" != 159542516"} {"question": "Which driver IDs are both greater than or equal to 10 in the driver table and exactly equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0z6pl_12.png", "TableImg_Rhqy2_5.png"], "original_data_index": 4991, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, excluding driver ID 12, are not also driver IDs in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_962bu_12.png", "TableImg_Fakgt_5.png"], "original_data_index": 4992, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 2, and also list the aircraft IDs from the airport aircraft table that are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_23b4x_5.png", "TableImg_Mavvg_4.png"], "original_data_index": 4990, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you tell me, for each district, how many cities are headquartered there, excluding those districts where the headquarters aren't in Dera Ghazi Khan City or the district name isn't Bhakkar District, or the city area is greater than 25, only showing districts with a headquarters count not equal to one, combined with the count of headquartered cities for each district where the district ID is less than 5, the district name isn't Faisalabad District, and the city population is less than or equal to 365198, and the headquarters are in Khanewal City, or the city area is less than 13, only showing districts with a headquarters count of one or more?", "answer": {"columns": ["COUNT(Headquartered_City)", "District_ID"], "index": [0, 1, 2], "data": [["1", "5"], ["1", "6"], ["1", "11"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_Fs0ww_15.png", "TableImg_2cu91_15.png"], "original_data_index": 4993, "original_sql": "SELECT COUNT(Headquartered_City), District_ID FROM district WHERE Headquartered_City != \"Dera Ghazi Khan City\" OR District_name <> \"Bhakkar District\" OR \"City_Area\" > 25.0 GROUP BY District_ID HAVING COUNT(Headquartered_City) != 1 UNION SELECT COUNT(Headquartered_City), District_ID FROM district WHERE \"District_ID\" < 5 AND District_name <> \"Faisalabad District\" AND \"City_Population\" <= 365198.0 AND Headquartered_City = \"Khanewal City\" OR \"City_Area\" < 13.0 GROUP BY District_ID HAVING COUNT(Headquartered_City) >= 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 1, and those from the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dg6vj_12.png", "TableImg_9s9ta_5.png"], "original_data_index": 4995, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs from the driver table that are 8 or higher, excluding any driver IDs that are also in the school_bus table and are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ibqql_12.png", "TableImg_Yy3ja_5.png"], "original_data_index": 4996, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 11, and also including driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Widem_12.png", "TableImg_S9vv2_5.png"], "original_data_index": 4994, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the average of Other_Details, the sum of Document_ID, the average of Paragraph_ID, and the Paragraph_Text from the Paragraphs table, combining results from two different sets of criteria: first, where the Paragraph_Text is not \"UK\" and Paragraph_ID is not 946335436, or where Other_Details is not \"None\"; and second, where the Paragraph_Text is \"Micronesia\" and Paragraph_ID is not 765713812, or where Other_Details is \"None\" and Document_ID is greater than or equal to 3830?", "answer": {"columns": ["AVG(Other_Details)", "SUM(Document_ID)", "AVG(Paragraph_ID)", "Paragraph_Text"], "index": [0, 1], "data": [["", "80", "608931827.0", "Micronesia"], ["", "420299074", "229303965.6153846", "Korea"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_6bhq8_15.png", "TableImg_Tl2rx_15.png"], "original_data_index": 4997, "original_sql": "SELECT AVG(Other_Details), SUM(Document_ID), AVG(Paragraph_ID), Paragraph_Text FROM Paragraphs WHERE Paragraph_Text <> \"UK\" AND \"Paragraph_ID\" != 946335436 OR Other_Details != \"None\" UNION SELECT AVG(Other_Details), SUM(Document_ID), AVG(Paragraph_ID), Paragraph_Text FROM Paragraphs WHERE Paragraph_Text = \"Micronesia\" AND \"Paragraph_ID\" != 765713812 OR Other_Details = \"None\" AND \"Document_ID\" >= 3830"} {"question": "Can you give me a list of driver IDs that are greater than 9, excluding any driver IDs from the school bus list that aren't equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4fkpi_12.png", "TableImg_7rjyz_5.png"], "original_data_index": 4998, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are not equal to 7, excluding any driver IDs less than 7 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wmhq4_12.png", "TableImg_99cf8_5.png"], "original_data_index": 5001, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are greater than 3, excluding any driver IDs that are not equal to 4 and are also found in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O3z2j_12.png", "TableImg_0tfsq_5.png"], "original_data_index": 5000, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you list the Aircraft IDs from the aircraft table, excluding those with a maximum gross weight of 123,500 lb (56,000 kg) or a maximum disk loading of 2.6 lb/ft\u00b2 (14 kg/m\u00b2), and then remove any Aircraft IDs that are also found in the airport_aircraft table where the Airport ID is less than or equal to 6 and the ID is greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rt2q0_5.png", "TableImg_0ow1z_4.png"], "original_data_index": 4999, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Max_Gross_Weight != \"123,500 lb (56,000 kg)\" AND Max_disk_Loading <> \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" EXCEPT SELECT Aircraft_ID FROM airport_aircraft WHERE \"Airport_ID\" <= 6 AND \"ID\" >= 1"} {"question": "Can you list the aircraft IDs that are less than 4, grouping them by ID, from both the aircraft and airport_aircraft tables, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7gxl3_5.png", "TableImg_Xc5y3_4.png"], "original_data_index": 5004, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which driver IDs, excluding driver ID 1, are also school bus driver IDs, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G1lnu_12.png", "TableImg_44c8a_5.png"], "original_data_index": 5002, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs from the driver table that are 10 or greater, excluding any driver IDs that are less than 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ff5wr_12.png", "TableImg_B52cb_5.png"], "original_data_index": 5003, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding ID 3, and then from the airport_aircraft table including only those greater than 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9yn48_5.png", "TableImg_3rr0m_4.png"], "original_data_index": 5005, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me the continents and country IDs that are both from countries with an ID of 6 and a continent other than 4, excluding France, and also from countries with a continent other than 4 and a country ID of 13 or less?", "answer": {"columns": ["Continent", "CountryId"], "index": [0], "data": [["2", "6"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_C86av_15.png", "TableImg_5oagi_15.png"], "original_data_index": 5008, "original_sql": "SELECT Continent, CountryId FROM countries WHERE \"CountryId\" = 6 AND \"Continent\" != 4 AND CountryName != \"france\" INTERSECT SELECT Continent, CountryId FROM countries WHERE \"Continent\" != 4 AND \"CountryId\" <= 13"} {"question": "Which aircraft have an ID of 3 and are also associated with airports, but not with an airport having an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pbnzj_5.png", "TableImg_0qe07_4.png"], "original_data_index": 5009, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of employee IDs for employees who either earn less than $105,743, have an ID of 574489456, or are not named Chad Stewart, combined with a list of employee IDs for employees who earn more than $205,187 or have an ID of 269734834?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "data": [["11564812"], ["15645489"], ["90873519"], ["141582651"], ["142519864"], ["159542516"], ["242518965"], ["248965255"], ["254099823"], ["269734834"], ["274878974"], ["287321212"], ["310454876"], ["310454877"], ["348121549"], ["355548984"], ["356187925"], ["390487451"], ["486512566"], ["489221823"], ["489456522"], ["548977562"], ["550156548"], ["552455318"], ["552455348"], ["556784565"], ["567354612"], ["573284895"], ["574489456"], ["574489457"], ["619023588"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_3gphj_31.png", "TableImg_Exlv5_31.png"], "original_data_index": 5006, "original_sql": "SELECT eid FROM employee WHERE \"salary\" < 105743 OR \"eid\" = 574489456 OR name != \"Chad Stewart\" UNION SELECT eid FROM employee WHERE \"salary\" > 205187 OR \"eid\" = 269734834"} {"question": "What is the average user ID for users named Emily or with a user ID of 4 or greater, combined with the average user ID for users with a user ID greater than 1?", "answer": {"columns": ["AVG(u_id)"], "index": [0, 1], "data": [["5.5"], ["4.5"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_Nlvd0_7.png", "TableImg_Oc5iz_7.png"], "original_data_index": 5007, "original_sql": "SELECT AVG(u_id) FROM useracct WHERE name = \"Emily\" OR \"u_id\" >= 4 UNION ALL SELECT AVG(u_id) FROM useracct WHERE \"u_id\" > 1"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is greater than 5, combined with a list of driver IDs from the school_bus table where the driver ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sl97q_12.png", "TableImg_Jhexw_5.png"], "original_data_index": 5010, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs from the driver table, excluding driver ID 3, that are not also driver IDs from the school_bus table where the driver ID is 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tkqfy_12.png", "TableImg_4cr13_5.png"], "original_data_index": 5011, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Could you give me a list of member IDs that are both from the membership register branch with an ID of 6 or higher and a registration year other than 2016, and also from the purchase table with an ID of 3 or higher and a branch ID other than 1?", "answer": {"columns": ["Member_ID"], "index": [0], "data": [["6"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Q888o_8.png", "TableImg_S3blv_8.png"], "original_data_index": 5012, "original_sql": "SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" >= 6 AND Register_Year <> \"2016\" INTERSECT SELECT Member_ID FROM purchase WHERE \"Member_ID\" >= 3 AND Branch_ID <> \"1\""} {"question": "What is the average product ID for products with an ID of 2 or less, and what is the average product ID for products not associated with store ID 1?", "answer": {"columns": ["AVG(Product_ID)"], "index": [0, 1], "data": [["1.5"], ["3.2"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Bywl1_15.png", "TableImg_L08i7_15.png"], "original_data_index": 5013, "original_sql": "SELECT AVG(Product_ID) FROM store_product WHERE \"Product_ID\" <= 2 UNION ALL SELECT AVG(Product_ID) FROM store_product WHERE \"Store_ID\" != 1"} {"question": "What is the total of school IDs from the budget table where the invested amount is greater than 5840, combined with the total of school IDs from the endowment table where either the endowment ID is greater than 1, or the donator name is not \"San Jos\u00e9 de Ocoa\" and the amount is 8.43 and the school ID is less than or equal to 1?", "answer": {"columns": ["SUM(School_id)"], "index": [0, 1], "data": [["20"], ["45"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_Nmtbw_8.png", "TableImg_Rqsbt_11.png"], "original_data_index": 5014, "original_sql": "SELECT SUM(School_id) FROM budget WHERE \"Invested\" > 5840 UNION SELECT SUM(School_id) FROM endowment WHERE \"endowment_id\" > 1 OR donator_name <> \"San Jos\u00e9 de Ocoa\" AND \"amount\" = 8.43 AND \"School_id\" <= 1"} {"question": "Can you list the aircraft IDs that are less than 2, but exclude any aircraft IDs from the airport aircraft list that are greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3swjs_5.png", "TableImg_7tudk_4.png"], "original_data_index": 5015, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Could you give me a list of document IDs from the Documents table where the document status is not \"overdue\", or the document ID is not 17 and the document type is not \"CD\", or the receipt date is not September 27, 1982 at 2:52 PM, combined with a list of document IDs from the Draft_Copies table where the document ID is less than or equal to 4 and the draft number is less than or equal to 9, or the copy number is less than 5?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"], ["2"], ["4"], ["2"], ["1"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Gu9h3_15.png", "TableImg_Nvtku_8.png"], "original_data_index": 5016, "original_sql": "SELECT document_id FROM Documents WHERE document_status_code <> \"overdue\" OR \"document_id\" <> 17 AND document_type_code != \"CD\" OR receipt_date != \"1982-09-27 14:52:15\" UNION ALL SELECT document_id FROM Draft_Copies WHERE \"document_id\" <= 4 AND \"draft_number\" <= 9 OR \"copy_number\" < 5"} {"question": "What is the total of all branch IDs from the branch table where either the membership amount is not 31 or the address road is not Valleys Place and the name is not Saint Amant, combined with the total of all branch IDs from the membership register branch table where the register year is not 2016 and the branch ID is not 5?", "answer": {"columns": ["SUM(Branch_ID)"], "index": [0, 1], "data": [["7"], ["36"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_0tk1h_8.png", "TableImg_T4hoh_8.png"], "original_data_index": 5020, "original_sql": "SELECT SUM(Branch_ID) FROM branch WHERE membership_amount <> \"31\" OR Address_road <> \"Valleys Place\" AND Name <> \"Saint Amant\" UNION SELECT SUM(Branch_ID) FROM membership_register_branch WHERE Register_Year <> \"2016\" AND Branch_ID <> \"5\""} {"question": "Can you give me a list of store IDs that are either in district 15 or sell products with an ID of 4 or less?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["1"], ["1"], ["1"], ["1"], ["2"], ["3"], ["2"], ["3"], ["5"], ["5"], ["5"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_58bab_5.png", "TableImg_5sf6w_15.png"], "original_data_index": 5019, "original_sql": "SELECT Store_ID FROM store_district WHERE \"District_ID\" = 15 UNION ALL SELECT Store_ID FROM store_product WHERE \"Product_ID\" <= 4"} {"question": "Can you list the continent with ID 5 from the continents table, and also list the continents from the countries table where the continent code is less than 2, the country ID is greater than 15, and the country name is \"australia\"?", "answer": {"columns": ["Continent"], "index": [0], "data": [["australia"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_7t2ju_5.png", "TableImg_Zxxea_15.png"], "original_data_index": 5018, "original_sql": "SELECT Continent FROM continents WHERE \"ContId\" = 5 UNION ALL SELECT Continent FROM countries WHERE \"Continent\" < 2 AND \"CountryId\" > 15 AND CountryName = \"australia\""} {"question": "Can you list the genders and ranks of coaches with an ID of 4 or less, excluding female coaches, combined with the genders and ranks of players who are not ranked 1st, or are male, or are not named Niki Ashton, or live in Winnipeg?", "answer": {"columns": ["Gender", "Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["M", "1"], ["M", "3"], ["M", "4"], ["M", "2nd"], ["F", "3rd"], ["M", "2nd"], ["M", "1st"], ["M", "2nd"], ["M", "4th"], ["M", "2nd"], ["M", "3rd"], ["F", "2nd"], ["M", "1st"], ["F", "1st"], ["M", "3rd"], ["F", "3rd"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_Vzexk_5.png", "TableImg_Bfglh_14.png"], "original_data_index": 5017, "original_sql": "SELECT Gender, Rank FROM coach WHERE \"Coach_ID\" <= 4 AND Gender <> \"F\" UNION ALL SELECT Gender, Rank FROM player WHERE Rank != \"1st\" OR Gender = \"M\" OR Player_name != \"Niki Ashton\" OR Residence = \"Winnipeg\""} {"question": "Can you list the aircraft IDs that appear more than once in the aircraft table, excluding those less than or equal to 1, combined with the aircraft IDs that appear more than once in the airport_aircraft table, excluding those equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hxlhl_5.png", "TableImg_48q5n_4.png"], "original_data_index": 5022, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of vehicle IDs from lessons where either the price is greater than 231 and the lesson time is 2, or the vehicle ID is at least 1, the lesson date is March 4th, 2018 at 6:55:46 AM, and the lesson ID is greater than 4, combined with a list of vehicle IDs from vehicles where the vehicle ID is at least 3?", "answer": {"columns": ["vehicle_id"], "index": [0, 1, 2], "data": [["2"], ["1"], ["3"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_Cruf1_15.png", "TableImg_Ddjrb_3.png"], "original_data_index": 5021, "original_sql": "SELECT vehicle_id FROM Lessons WHERE \"price\" > 231.0 AND lesson_time = \"2\" OR \"vehicle_id\" >= 1 AND lesson_date = \"2018-03-04 06:55:46\" AND \"lesson_id\" > 4 UNION ALL SELECT vehicle_id FROM Vehicles WHERE \"vehicle_id\" >= 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 11, combined with a list of driver IDs from the school_bus table that are not equal to 9, making sure to only list each ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9u7xu_12.png", "TableImg_Vnvmo_5.png"], "original_data_index": 5024, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of template type codes, excluding \"PP\" and those described as \"Paper\", but then remove any codes that are also found in templates with a version number less than 5 and non-empty template details, specifically if that code is \"PPT\"?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3], "data": [["AD"], ["BK"], ["CV"], ["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_X29ib_5.png", "TableImg_Edsbr_20.png"], "original_data_index": 5023, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != \"PP\" AND Template_Type_Description <> \"Paper\" EXCEPT SELECT Template_Type_Code FROM Templates WHERE \"Version_Number\" < 5 AND Template_Details != \"\" AND Template_Type_Code = \"PPT\""} {"question": "Which driver IDs are greater than 4 and appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W6qtp_12.png", "TableImg_Y2ov0_5.png"], "original_data_index": 5025, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you find the minimum first name, average last name, and date of birth for customers meeting certain criteria, and combine that with the same information for staff members who meet different criteria?", "answer": {"columns": ["MIN(first_name)", "date_of_birth", "AVG(last_name)"], "index": [0, 1], "data": [["Amya", "1993-03-08 08:48:42", "0"], ["Camylle", "2015-08-01 13:22:43", "0"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_Lma1e_15.png", "TableImg_J29aq_15.png"], "original_data_index": 5026, "original_sql": "SELECT MIN(first_name), date_of_birth, AVG(last_name) FROM Customers WHERE \"customer_address_id\" < 9 AND first_name != \"Genevieve\" AND date_became_customer != \"2016-02-17 08:26:23\" OR \"amount_outstanding\" != 9332.0 OR date_of_birth <> \"1993-02-07 05:40:26\" AND email_address != \"nichole59@example.com\" AND customer_status_code <> \"Good Customer\" AND last_name <> \"Terry\" OR phone_number = \"(297)122-0086\" AND cell_mobile_phone_number <> \"081-097-3684\" UNION ALL SELECT MIN(first_name), date_of_birth, AVG(last_name) FROM Staff WHERE date_of_birth = \"2015-08-01 13:22:43\" OR date_joined_staff != \"2017-02-20 18:45:20\" OR nickname = \"edwin.hudson\" AND \"staff_address_id\" > 14 AND last_name != \"Durgan\" OR date_left_staff = \"2018-03-01 17:10:03\" AND first_name != \"Camylle\" OR \"staff_id\" <= 10"} {"question": "Which driver IDs are both less than 7 and also equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ck9ci_12.png", "TableImg_X9x3y_5.png"], "original_data_index": 5027, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver ID 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cejua_12.png", "TableImg_Gfl1i_5.png"], "original_data_index": 5028, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "How many airports are associated with each number of domestic passengers?", "answer": {"columns": ["Domestic_Passengers", "COUNT(T2.Airport_ID)"], "index": [0], "data": [["5562516", "4"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Hox82_10.png", "TableImg_Khx6p_4.png"], "original_data_index": 5030, "original_sql": "SELECT T1.Domestic_Passengers, COUNT(T2.Airport_ID) FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Which members named Micah Johnson are not registered at any branch other than branch 2, considering member ID 1?", "answer": {"columns": ["Member_ID"], "index": [0], "data": [["6"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_Amu47_10.png", "TableImg_Zpkno_8.png"], "original_data_index": 5032, "original_sql": "SELECT Member_ID FROM member WHERE Name = \"Micah Johnson\" EXCEPT SELECT Member_ID FROM membership_register_branch WHERE Branch_ID <> \"2\" AND \"Member_ID\" = 1"} {"question": "Can you give me a list of driver IDs that are less than 5, but only those that are not also driver IDs less than or equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_78xpk_12.png", "TableImg_Cwyat_5.png"], "original_data_index": 5029, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 4, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_71ulu_5.png", "TableImg_Qibtj_4.png"], "original_data_index": 5031, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What aircraft IDs, excluding aircraft ID 1, are present in the aircraft table but not in the airport_aircraft table, considering only aircraft IDs greater than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G9fkc_5.png", "TableImg_7emiq_4.png"], "original_data_index": 5036, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you list all Aircraft IDs from the aircraft table that are greater than or equal to 5, and combine that with a list of Aircraft IDs from the airport_aircraft table that are equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G9c9r_5.png", "TableImg_Gu4b5_4.png"], "original_data_index": 5035, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me a list of driver IDs, including those greater than 7 from the driver list and those equal to 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3v3ml_12.png", "TableImg_Pjztb_5.png"], "original_data_index": 5033, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the document IDs from the drafts where either the document ID is 2, or the draft number is 2 and the draft details are not \"m\", but exclude any document IDs that are also in the documents received on \"1983-09-26 09:32:56\" with a document type code other than \"CD\" and a shipping agent code other than \"UP\", or that have a receipt number of \"61\" and a document ID less than 23?", "answer": {"columns": ["document_id"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_06058_15.png", "TableImg_Cgcid_15.png"], "original_data_index": 5038, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" = 2 OR \"draft_number\" = 2 AND draft_details != \"m\" EXCEPT SELECT document_id FROM Documents WHERE receipt_date = \"1983-09-26 09:32:56\" AND document_type_code <> \"CD\" AND shipping_agent_code != \"UP\" OR receipt_number = \"61\" AND \"document_id\" < 23"} {"question": "Can you give me a list of driver IDs that are less than 5, but exclude driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xgvg3_12.png", "TableImg_Sf79o_5.png"], "original_data_index": 5041, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the total mascot count, IHSAA class, highest IHSAA football class, and latest location for schools with an enrollment of 601, excluding those values for schools with a school ID of 3 or located in Knox, unless they are in St. Joseph County?", "answer": {"columns": ["SUM(Mascot)", "IHSAA_Class", "MAX(IHSAA_Football_Class)", "MAX(Location)"], "index": [0], "data": [["0", "AAA", "AAA", "Elkhart"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Jaa6q_8.png", "TableImg_Uwaxt_8.png"], "original_data_index": 5040, "original_sql": "SELECT SUM(Mascot), IHSAA_Class, MAX(IHSAA_Football_Class), MAX(Location) FROM School WHERE \"Enrollment\" = 601 EXCEPT SELECT SUM(Mascot), IHSAA_Class, MAX(IHSAA_Football_Class), MAX(Location) FROM School WHERE School_id = \"3\" OR Location = \"Knox\" AND County <> \"71 St. Joseph\""} {"question": "Which aircraft IDs, excluding aircraft ID 5, are also aircraft IDs greater than 1 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4u54u_5.png", "TableImg_P09yb_4.png"], "original_data_index": 5039, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs appear in both the driver table (excluding driver ID 11) and the school_bus table (only including driver IDs up to 4)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S186w_12.png", "TableImg_6e1l2_5.png"], "original_data_index": 5042, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are not equal to 3 from the driver table, excluding any driver IDs that are equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_30tum_12.png", "TableImg_Lrrbn_5.png"], "original_data_index": 5044, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 6, and those from the school_bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hn8xj_12.png", "TableImg_Y4tkz_5.png"], "original_data_index": 5043, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list the driver IDs that are less than 8 from the driver table, and combine that with a list of driver IDs that are less than or equal to 10 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_32zid_12.png", "TableImg_Jfepv_5.png"], "original_data_index": 5045, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 1, from the aircraft table, and combine that with a list of aircraft ID 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zkmic_5.png", "TableImg_1q1on_4.png"], "original_data_index": 5046, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me the total vehicle ID from the Lessons table for entries where the customer ID is 13, or the lesson ID is less than 9 and the lesson status is completed, or the staff ID is less than 1, the vehicle ID is not 2, and the price is at least 352, or the lesson time is 5, combined with the total vehicle ID from the Vehicles table where the vehicle details are not \"Car\" or the vehicle ID is greater than 1?", "answer": {"columns": ["SUM(vehicle_id)"], "index": [0, 1], "data": [["6"], ["13"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_Dfynq_15.png", "TableImg_U83ng_3.png"], "original_data_index": 5037, "original_sql": "SELECT SUM(vehicle_id) FROM Lessons WHERE \"customer_id\" = 13 OR \"lesson_id\" < 9 AND lesson_status_code = \"Completed\" OR \"staff_id\" < 1 AND \"vehicle_id\" <> 2 AND \"price\" >= 352.0 OR lesson_time = \"5\" UNION SELECT SUM(vehicle_id) FROM Vehicles WHERE vehicle_details != \"Car\" OR \"vehicle_id\" > 1"} {"question": "What are the IHSAA classes and the total school name counts for schools in Bourbon, excluding school ID 1 and schools in class AA, minus the IHSAA classes and total school name counts for schools with enrollment less than or equal to 852, school ID 1, and located in Elkhart?", "answer": {"columns": ["IHSAA_Class", "SUM(School_name)"], "index": [0], "data": [["A", "0"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Z67o5_8.png", "TableImg_Zruch_8.png"], "original_data_index": 5050, "original_sql": "SELECT IHSAA_Class, SUM(School_name) FROM School WHERE School_id != \"1\" AND Location = \"Bourbon\" AND IHSAA_Class <> \"AA\" EXCEPT SELECT IHSAA_Class, SUM(School_name) FROM School WHERE \"Enrollment\" <= 852 AND School_id = \"1\" AND Location = \"Elkhart\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 2, excluding any driver IDs that are not equal to 9 and are also found in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iseab_12.png", "TableImg_W8m74_5.png"], "original_data_index": 5051, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are not equal to 6 and are also not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tp78n_12.png", "TableImg_Hawe4_5.png"], "original_data_index": 5052, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zu9vp_5.png", "TableImg_Vqqkt_4.png"], "original_data_index": 5053, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which aircraft IDs are both less than or equal to 5 and present in the airport aircraft list with an ID of 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lts9m_5.png", "TableImg_F3gy9_4.png"], "original_data_index": 5054, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 11, and those from the school bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xy671_12.png", "TableImg_Uxblb_5.png"], "original_data_index": 5055, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of aircraft IDs that are less than 5 and appear in the aircraft table, and are also less than 3 and appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y05ps_5.png", "TableImg_6k9y1_4.png"], "original_data_index": 5056, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me the smallest mailed-to address ID and the corresponding document ID from the Documents_Mailed table, first for entries where the mailed-to address ID is zero or negative, and then again for entries where the mailed-to address ID is zero or positive, or the document ID is greater than 4, or the mailing date is not February 21, 1973 at 10:17:01 AM?", "answer": {"columns": ["MIN(mailed_to_address_id)", "document_id"], "index": [0], "data": [["0", "12"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_W55ng_14.png", "TableImg_7xbrs_14.png"], "original_data_index": 5057, "original_sql": "SELECT MIN(mailed_to_address_id), document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <= 0 UNION SELECT MIN(mailed_to_address_id), document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" >= 0 OR \"document_id\" > 4 OR mailing_date <> \"1973-02-21 10:17:01\""} {"question": "Can you list all the temporary acting statuses from the management table for departments with an ID of 15 or less, removing any duplicates?", "answer": {"columns": ["temporary_acting"], "index": [0, 1], "data": [["No"], ["Yes"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_L6xo4_5.png", "TableImg_Rftwn_5.png"], "original_data_index": 5058, "original_sql": "SELECT temporary_acting FROM management WHERE \"department_ID\" <= 15 UNION SELECT temporary_acting FROM management WHERE \"department_ID\" <= 15"} {"question": "Can you give me a list of aircraft IDs, including aircraft ID 5 from the aircraft table and aircraft ID 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ebs1n_5.png", "TableImg_Zn9uj_4.png"], "original_data_index": 5047, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of Driver IDs, including Driver ID 11 from the driver table and Driver ID 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O92g9_12.png", "TableImg_Y7nze_5.png"], "original_data_index": 5049, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of PetIDs and StuIDs from the Has_Pet table, including those where the PetID is greater than 2001, combined with those where the StuID is greater than 1002?", "answer": {"columns": ["PetID", "StuID"], "index": [0, 1], "data": [["2002", "1002"], ["2003", "1002"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Bzc8c_3.png", "TableImg_8bsre_3.png"], "original_data_index": 5048, "original_sql": "SELECT PetID, StuID FROM Has_Pet WHERE \"PetID\" > 2001 UNION SELECT PetID, StuID FROM Has_Pet WHERE \"StuID\" > 1002"} {"question": "Can you give me a list of driver IDs less than 6 from the driver table, excluding any driver IDs that are not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mik8z_12.png", "TableImg_Hsqwr_5.png"], "original_data_index": 5062, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of aircraft IDs that are less than 3 when looking at the aircraft table, but are not equal to 2 when looking at the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iqwbs_5.png", "TableImg_9gt0o_4.png"], "original_data_index": 5060, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs that are greater than 11, excluding those driver IDs that are greater than or equal to 9 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sdfea_12.png", "TableImg_Qmd9n_5.png"], "original_data_index": 5059, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 8 or higher, and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Czowe_12.png", "TableImg_6ng9c_5.png"], "original_data_index": 5061, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are both greater than or equal to 5 and appear in the driver table, and also greater than 7 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qref1_12.png", "TableImg_4c4gk_5.png"], "original_data_index": 5064, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of employee IDs from the evaluation table, excluding employee ID 2, but then remove any employee IDs that are in the hiring table if they started in 2013, have an employee ID of 3, or are not full-time?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["10"], ["4"], ["7"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Toi3r_6.png", "TableImg_Xapl0_7.png"], "original_data_index": 5063, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Employee_ID != \"2\" EXCEPT SELECT Employee_ID FROM hiring WHERE Start_from = \"2013\" OR \"Employee_ID\" = 3 OR Is_full_time <> \"F\""} {"question": "Can you give me a list of driver IDs that are greater than 10, excluding any driver IDs from the school bus table that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dvjx4_12.png", "TableImg_Qnxu7_5.png"], "original_data_index": 5066, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs less than or equal to 12, excluding those driver IDs that are not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F80cb_12.png", "TableImg_E4uyp_5.png"], "original_data_index": 5067, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 11, combined with all the driver IDs from the school_bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vcq2m_12.png", "TableImg_Vry98_5.png"], "original_data_index": 5065, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of customer IDs from the payments made on February 15, 2018, at 4:38:49 PM, or where the payment amount wasn't $9414.74 and the customer ID was 12, or where the payment method wasn't Direct Debit, combined with a list of customer IDs from lessons with a lesson ID greater than 15?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["12"], ["13"], ["14"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_Mxlfz_15.png", "TableImg_Lmbcj_15.png"], "original_data_index": 5069, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment = \"2018-02-15 16:38:49\" OR \"amount_payment\" != 9414.74 AND \"customer_id\" = 12 OR payment_method_code != \"Direct Debit\" UNION SELECT customer_id FROM Lessons WHERE \"lesson_id\" > 15"} {"question": "Could you give me the ID, name, and nationality of people who are Russian, but not Aleksey Ostapenko, and who also don't have an ID of 7 or a height of 193, and weren't born on February 8, 1981, and who also have an ID less than 7, and are not Aleksey Ostapenko, or are not Russian, or are not 205 tall?", "answer": {"columns": ["People_ID", "Name", "Nationality"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "Aleksey Ostapenko", "Russia"], ["2", "Teodor Salparov", "Bulgaria"], ["3", "Roman Bragin", "Russia"], ["4", "Sergey Grankin", "Russia"], ["5", "Yevgeni Sivozhelez", "Russia"], ["6", "Maksim Botin", "Russia"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Hnj0j_7.png", "TableImg_Dwhqe_7.png"], "original_data_index": 5068, "original_sql": "SELECT People_ID, Name, Nationality FROM people WHERE Name != \"Aleksey Ostapenko\" OR \"People_ID\" <> 7 AND \"Height\" <> 193.0 AND Birth_Date != \"February 8, 1981\" AND Nationality = \"Russia\" INTERSECT SELECT People_ID, Name, Nationality FROM people WHERE \"People_ID\" < 7 AND Name != \"Aleksey Ostapenko\" OR Nationality <> \"Russia\" OR \"Height\" <> 205.0"} {"question": "Which driver IDs are both not equal to 3 and also greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F1q8p_12.png", "TableImg_Wo7d5_5.png"], "original_data_index": 5073, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than or equal to 1, excluding any driver IDs that are not equal to 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_42c28_12.png", "TableImg_Uh0sm_5.png"], "original_data_index": 5072, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are not 10 and are also greater than or equal to 7, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Srfaa_12.png", "TableImg_Buw80_5.png"], "original_data_index": 5070, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not equal to 1 with those from the school bus table that are equal to 4, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aaq71_12.png", "TableImg_Uh838_5.png"], "original_data_index": 5071, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Could you list all the Store IDs from the store district table, including those with a Store ID greater than 2 and a District ID less than 15, as well as those with a District ID equal to 15?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["1"], ["2"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_Nuxlo_5.png", "TableImg_Uiekt_5.png"], "original_data_index": 5075, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" > 2 AND \"District_ID\" < 15 UNION ALL SELECT Store_ID FROM store_district WHERE \"District_ID\" = 15"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 5, excluding any driver IDs that are equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gb9l9_12.png", "TableImg_6f41n_5.png"], "original_data_index": 5079, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 12, and those from the school_bus table where the ID is 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eobub_12.png", "TableImg_Bk7jf_5.png"], "original_data_index": 5074, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you tell me the smallest contestant name that is either Edwina Burnam with a contestant number of 9 or higher, or any contestant name other than Tabatha Gehling with a contestant number of 8?", "answer": {"columns": ["MIN(contestant_name)"], "index": [0, 1], "data": [[""], ["Nita Coster"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Yvgxs_11.png", "TableImg_Tawgo_11.png"], "original_data_index": 5076, "original_sql": "SELECT MIN(contestant_name) FROM CONTESTANTS WHERE \"contestant_number\" >= 9 AND contestant_name = \"Edwina Burnam\" UNION ALL SELECT MIN(contestant_name) FROM CONTESTANTS WHERE contestant_name <> \"Tabatha Gehling\" AND \"contestant_number\" = 8"} {"question": "Which driver IDs, that are 6 or greater, are in the driver table but not in the school_bus table if we only consider driver IDs that are 3 or greater in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bx7ih_12.png", "TableImg_Qq0a9_5.png"], "original_data_index": 5081, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you show me the area code and vote ID, grouped by area code, where the phone number is 7148407040 and the creation date isn't March 9th, 2018 at 7:03:21 PM, or the vote ID is less than or equal to 1, considering data from the AREA_CODE_STATE and VOTES tables joined on matching state?", "answer": {"columns": ["area_code", "vote_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["212", "2"], ["315", "2"], ["347", "2"], ["516", "2"], ["518", "2"], ["585", "2"], ["607", "2"], ["631", "2"], ["646", "2"], ["716", "2"], ["718", "2"], ["845", "2"], ["914", "2"], ["917", "2"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Vh3yt_305.png", "TableImg_6sw01_4.png"], "original_data_index": 5080, "original_sql": "SELECT T1.area_code, T2.vote_id FROM AREA_CODE_STATE as T1 JOIN VOTES as T2 ON T1.state == T2.state GROUP BY area_code HAVING phone_number = 7148407040 AND created <> \"2018-03-09 19:03:21\" OR vote_id <= 1"} {"question": "Can you give me a list of aircraft IDs that are less than or equal to 1, and also not equal to 3, based on the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I44gr_5.png", "TableImg_Uxdc5_4.png"], "original_data_index": 5082, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of driver IDs where the ID is 1 from the driver table, combined with a list of driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jgaw8_12.png", "TableImg_Lnkyo_5.png"], "original_data_index": 5083, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of aircraft IDs that are less than 4, but also not equal to 2 when looking at airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_59uqy_5.png", "TableImg_2rz5u_4.png"], "original_data_index": 5084, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xvatj_12.png", "TableImg_Qg7kw_5.png"], "original_data_index": 5085, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of aircraft IDs that are either not a Boeing 737-800 or have an ID less than 13, and also include aircraft IDs that are greater than 6?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_F2w2q_16.png", "TableImg_Y186t_16.png"], "original_data_index": 5086, "original_sql": "SELECT aid FROM aircraft WHERE name <> \"Boeing 737-800\" OR \"aid\" < 13 UNION SELECT aid FROM aircraft WHERE \"aid\" > 6"} {"question": "Which driver IDs are both less than or equal to 3 and also equal to 3 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V1b1w_12.png", "TableImg_7iaf1_5.png"], "original_data_index": 5088, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 5, and those from the school bus table excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A8yn6_12.png", "TableImg_Erzlu_5.png"], "original_data_index": 5089, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me the smallest flight ID and the corresponding company ID for flights associated with airports, grouped by their ICAO code, where either the IATA code isn't \"BLL\", the date is \"January 29, 1964\", or the altitude is no more than 3650, the ICAO code isn't \"EBBR\", the airport ID is greater than 2, and the airport name is \"Billund Airport\", but only for groups with 6 or fewer ICAO codes?", "answer": {"columns": ["MIN(T1.id)", "company_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1", "2"], ["9", "11"], ["2", "3"], ["7", "11"], ["6", "6"], ["8", "13"], ["4", "4"], ["5", "5"], ["3", "4"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Wag4z_9.png", "TableImg_J73ls_13.png"], "original_data_index": 5087, "original_sql": "SELECT MIN(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA <> \"BLL\" OR Date = \"January 29, 1964\" OR \"Altitude\" <= 3650.0 AND ICAO <> \"EBBR\" AND \"airport_id\" > 2 AND name = \"Billund Airport\" GROUP BY ICAO HAVING COUNT(ICAO) <= 6"} {"question": "Can you give me a list of driver IDs that are less than or equal to 9 and also not equal to 7, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P066d_12.png", "TableImg_Cxecl_5.png"], "original_data_index": 5093, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10, and also including driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7xwm9_12.png", "TableImg_Vziw9_5.png"], "original_data_index": 5092, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Could you give me a list of employee IDs who have either a draft number greater than 17 or a copy number of 10 or more, excluding those employees whose document ID is not 20, draft number is not 2, and employee ID is less than 1?", "answer": {"columns": ["employee_id"], "index": [0, 1], "data": [["2"], ["8"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Xq7t6_4.png", "TableImg_Zb5zb_4.png"], "original_data_index": 5091, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"draft_number\" > 17 OR \"copy_number\" >= 10 EXCEPT SELECT employee_id FROM Circulation_History WHERE \"document_id\" != 20 AND \"draft_number\" != 2 AND \"employee_id\" < 1"} {"question": "Could you please list the destination, flight number, aircraft ID, arrival date, price, and departure date for flights that meet these criteria: either departing on \"04/12/2005 09:15\" or arriving on \"04/12/2005 03:18\" where the distance is not 1251, or originating from a city other than \"Los Angeles\", or using aircraft ID 6, or flight number 387 to \"Chicago\"; and also meet these criteria: going to \"Tokyo\", or using aircraft ID 7, or not originating from \"Chicago\", or costing something other than 220.98?", "answer": {"columns": ["destination", "flno", "aid", "arrival_date", "price", "departure_date"], "index": [0, 1, 2, 3], "data": [["Boston", "387", "6", "04/12/2005 05:03", "261.56", "04/12/2005 07:03"], ["Honolulu", "33", "7", "04/12/2005 11:15", "375.23", "04/12/2005 09:15"], ["Honolulu", "34", "5", "04/12/2005 03:18", "425.98", "04/12/2005 12:45"], ["New York", "68", "10", "04/12/2005 12:02", "202.45", "04/12/2005 09:00"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_43rk8_10.png", "TableImg_4bdml_10.png"], "original_data_index": 5090, "original_sql": "SELECT destination, flno, aid, arrival_date, price, departure_date FROM flight WHERE departure_date = \"04/12/2005 09:15\" OR arrival_date = \"04/12/2005 03:18\" AND \"distance\" <> 1251 OR origin <> \"Los Angeles\" OR \"aid\" = 6 OR \"flno\" = 387 AND destination = \"Chicago\" INTERSECT SELECT destination, flno, aid, arrival_date, price, departure_date FROM flight WHERE destination = \"Tokyo\" OR \"aid\" = 7 OR origin != \"Chicago\" OR \"price\" != 220.98"} {"question": "Can you list the aircraft IDs that are less than 3, grouping by aircraft ID, and also list the aircraft IDs that equal 2, grouping by aircraft ID, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_59nkz_5.png", "TableImg_E5bx3_4.png"], "original_data_index": 5096, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me the IDs of aircraft that are less than 2, excluding those aircraft IDs less than 1 that are also associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q47nt_5.png", "TableImg_Fjr34_4.png"], "original_data_index": 5094, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which driver IDs, excluding driver ID 9, appear in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z054w_12.png", "TableImg_Oe3hk_5.png"], "original_data_index": 5095, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What aircraft IDs, excluding ID 1, are also aircraft IDs, excluding ID 2, found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3rf56_5.png", "TableImg_Qbslk_4.png"], "original_data_index": 5097, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you list the market values in billions for companies that either have profits less than 20.6 billion and a market value greater than 164.3 billion, or are not headquartered in Russia, have assets greater than 328.7 billion, or have a company ID other than 9, with market values not equal to 208.4 billion?", "answer": {"columns": ["Market_Value_in_Billion"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["79.5"], ["107.5"], ["132.4"], ["147.4"], ["154.8"], ["159.8"], ["164.3"], ["170.1"], ["178.7"], ["180.0"], ["201.9"], ["202.2"], ["208.4"], ["213.7"], ["218.0"], ["227.6"], ["237.4"], ["294.7"], ["407.4"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Yng5b_19.png", "TableImg_Zws5u_19.png"], "original_data_index": 5098, "original_sql": "SELECT Market_Value_in_Billion FROM company WHERE \"Profits_in_Billion\" < 20.6 GROUP BY Market_Value_in_Billion HAVING Market_Value_in_Billion > 164.3 UNION SELECT Market_Value_in_Billion FROM company WHERE Headquarters != \"Russia\" AND \"Assets_in_Billion\" > 328.7 OR \"Company_ID\" <> 9.0 GROUP BY Market_Value_in_Billion HAVING Market_Value_in_Billion != 208.4"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 10, combined with a list of driver IDs from the school_bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C1ofs_12.png", "TableImg_Conpr_5.png"], "original_data_index": 5102, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list the aircraft IDs that are less than or equal to 4, excluding those aircraft IDs that are less than 2 and are also present in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vz5dk_5.png", "TableImg_Urjaz_4.png"], "original_data_index": 5101, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you list the document IDs and mailed-to-address IDs for all records where the mailed-to-address ID is 2 or the document ID is 13, combined with the document IDs and mailed-to-address IDs for all records where the document ID is 4?", "answer": {"columns": ["document_id", "mailed_to_address_id"], "index": [0, 1, 2, 3], "data": [["4", "3"], ["4", "9"], ["13", "4"], ["20", "2"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_7nw9g_14.png", "TableImg_M5ql7_14.png"], "original_data_index": 5099, "original_sql": "SELECT document_id, mailed_to_address_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" = 2 OR \"document_id\" = 13 UNION SELECT document_id, mailed_to_address_id FROM Documents_Mailed WHERE \"document_id\" = 4"} {"question": "Can you give me a list of driver IDs that are less than or equal to 3 from the driver table, combined with driver ID 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sjigf_12.png", "TableImg_Utyco_5.png"], "original_data_index": 5100, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of all the driver IDs, excluding driver ID 11 from the driver table and excluding driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5d083_12.png", "TableImg_9x67w_5.png"], "original_data_index": 5105, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7, and those from the school bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eu6v6_12.png", "TableImg_Nqxah_5.png"], "original_data_index": 5104, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 9, from the driver table, excluding any driver IDs that are also in the school_bus table and are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3v30j_12.png", "TableImg_Gkj6t_5.png"], "original_data_index": 5103, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 1, combined with a list of driver IDs from the school_bus table that are exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xiw8q_12.png", "TableImg_Kkgdy_5.png"], "original_data_index": 5106, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What is the highest employee ID from the evaluation table where the bonus is at least 3200 and the year awarded is not 2018 and the employee ID is not 2, combined with the highest employee ID from the hiring table where the start date is 2011?", "answer": {"columns": ["MAX(Employee_ID)"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_7b6rb_6.png", "TableImg_Pktpf_7.png"], "original_data_index": 5109, "original_sql": "SELECT MAX(Employee_ID) FROM evaluation WHERE \"Bonus\" >= 3200.0 AND Year_awarded <> \"2018\" AND Employee_ID <> \"2\" UNION SELECT MAX(Employee_ID) FROM hiring WHERE Start_from = \"2011\""} {"question": "Can you give me a list of aircraft IDs that are greater than 3, including those from the aircraft table and the airport_aircraft table, without duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Upfsi_5.png", "TableImg_Fzk6h_4.png"], "original_data_index": 5107, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, from the driver table, but only those driver IDs that are not in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M54d1_12.png", "TableImg_1n197_5.png"], "original_data_index": 5108, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the total PetID and corresponding PetType from the Has_Pet and Pets tables, where the sum of StuID is less than or equal to 1001 or the sum of pet_age equals 3?", "answer": {"columns": ["SUM(T1.PetID)", "PetType"], "index": [0], "data": [["2001", "cat"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_N884g_3.png", "TableImg_8mqlg_3.png"], "original_data_index": 5111, "original_sql": "SELECT SUM(T1.PetID), T2.PetType FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID = T2.PetID WHERE SUM(StuID) <= 1001 OR SUM(pet_age) = 3"} {"question": "Could you give me a list of document IDs from the circulation history where either the copy number is 15 or less and the draft number isn't 1, or the document ID is greater than 2, or the employee ID isn't 1, but exclude any document IDs from the documents mailed table where either the mailing date isn't January 1st, 2007 at 10:32 PM, the document ID is greater than 14, or the mailed-to address ID is 3 or less?", "answer": {"columns": ["document_id"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Yzetu_4.png", "TableImg_Rw6lc_14.png"], "original_data_index": 5115, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"copy_number\" <= 15 AND \"draft_number\" != 1 OR \"document_id\" > 2 OR \"employee_id\" != 1 EXCEPT SELECT document_id FROM Documents_Mailed WHERE mailing_date <> \"2007-01-01 22:32:11\" AND \"document_id\" > 14 OR \"mailed_to_address_id\" <= 3"} {"question": "Can you give me a list of driver IDs that are 12 or greater, excluding driver ID 9 if it's a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R67hj_12.png", "TableImg_Xmhr9_5.png"], "original_data_index": 5116, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the driver IDs from the driver table that are less than or equal to 5, and combine that with a list of driver IDs from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5my57_12.png", "TableImg_A5lmf_5.png"], "original_data_index": 5117, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are less than 3, excluding any driver IDs that are also greater than or equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4kwia_12.png", "TableImg_P2r0f_5.png"], "original_data_index": 5118, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me the membership amount, name, branch ID, street address, city, and opening year for all branches that either didn't open in 2015 or aren't on Concord Road and aren't named Alexandre, but only for those branches with a branch ID less than 2?", "answer": {"columns": ["membership_amount", "Name", "Branch_ID", "Address_road", "City", "Open_year"], "index": [0], "data": [["112", "Alexandre", "1", "Valleys Place", "London", "2001"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Fq1it_8.png", "TableImg_Ckyyu_8.png"], "original_data_index": 5119, "original_sql": "SELECT membership_amount, Name, Branch_ID, Address_road, City, Open_year FROM branch WHERE Open_year <> \"2015\" OR Address_road <> \"Concord Road\" AND Name != \"Alexandre\" INTERSECT SELECT membership_amount, Name, Branch_ID, Address_road, City, Open_year FROM branch WHERE \"Branch_ID\" < 2"} {"question": "Can you give me the total ID and company ID from the airport and flight tables, joining them on matching IDs, considering only flights with a velocity of 240 or more, grouped by altitude, and then filtering this to only include groups where the pilot isn't Thompson, the company ID is 5 or greater, the city isn't Brussels, the date isn't August 4, 1966, the ICAO isn't ENBR, the country is Spain, the altitude is 3650, the airport ID is 2 or less, the velocity is less than 240, or the IATA isn't AMS?", "answer": {"columns": ["SUM(T1.id)", "company_id"], "index": [0], "data": [["44", "3"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Nemhy_9.png", "TableImg_931zk_13.png"], "original_data_index": 5120, "original_sql": "SELECT SUM(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE \"Velocity\" >= 240.0 GROUP BY Altitude HAVING Pilot <> \"Thompson\" AND company_id >= 5 AND City <> \"Brussels\" OR Date <> \"August 4, 1966\" AND ICAO <> \"ENBR\" OR Country = \"Spain\" AND Altitude = 3650.0 OR airport_id <= 2 AND Velocity < 240.0 OR IATA <> \"AMS\""} {"question": "What are the average market values for companies with assets over 302.6 billion or market values under 132.4 billion, excluding those in the banking industry?", "answer": {"columns": ["Assets_in_Billion", "AVG(Market_Value_in_Billion)"], "index": [0], "data": [["331.1", "201.4142857143"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Cv5jh_19.png", "TableImg_9d9du_19.png"], "original_data_index": 5121, "original_sql": "SELECT Assets_in_Billion, AVG(Market_Value_in_Billion) FROM company WHERE \"Assets_in_Billion\" > 302.6 OR \"Market_Value_in_Billion\" < 132.4 EXCEPT SELECT Assets_in_Billion, AVG(Market_Value_in_Billion) FROM company WHERE Industry = \"Banking\""} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 7, combined with all the driver IDs from the school_bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zcype_12.png", "TableImg_5vy7a_5.png"], "original_data_index": 5112, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs from the driver table that are 5 or greater, excluding those driver IDs from the school_bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kgq0u_12.png", "TableImg_Bxuzd_5.png"], "original_data_index": 5113, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are less than or equal to 1 from the driver table, excluding any driver IDs that are less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mw74j_12.png", "TableImg_Ew7lz_5.png"], "original_data_index": 5125, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs, when considering only driver ID 7 from the driver table, are not also driver ID 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vobgy_12.png", "TableImg_Vrh1i_5.png"], "original_data_index": 5124, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What is the largest endowment ID for endowments where the school ID is 7, the donator name is \"Santo Domingo Este\", or the amount is at least 9.55, combined with the largest endowment ID for endowments where the donator name is \"Com. Dom. En Estados Unidos\" and the school ID is greater than 5?", "answer": {"columns": ["MAX(endowment_id)"], "index": [0, 1], "data": [["10"], ["9"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_Ewcwm_11.png", "TableImg_7w3e9_11.png"], "original_data_index": 5123, "original_sql": "SELECT MAX(endowment_id) FROM endowment WHERE \"School_id\" = 7 OR donator_name = \"Santo Domingo Este\" OR \"amount\" >= 9.55 UNION ALL SELECT MAX(endowment_id) FROM endowment WHERE donator_name = \"Com. Dom. En Estados Unidos\" AND \"School_id\" > 5"} {"question": "Which aircraft IDs are both less than or equal to 4 and present in the aircraft table, and also greater than or equal to 3 and present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ka7vx_5.png", "TableImg_5loc7_4.png"], "original_data_index": 5126, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and any driver IDs greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nlrp2_12.png", "TableImg_Cbj0m_5.png"], "original_data_index": 5127, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list all the product IDs where either the ID is less than 2 and the store ID is not 1, or the store ID is greater than 1 and the product ID is less than or equal to 4?", "answer": {"columns": ["Product_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["1"], ["1"], ["3"], ["2"], ["4"], ["1"], ["2"], ["3"], ["4"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Jcqcp_15.png", "TableImg_09pzi_15.png"], "original_data_index": 5128, "original_sql": "SELECT Product_ID FROM store_product WHERE \"Product_ID\" < 2 AND \"Store_ID\" != 1 UNION ALL SELECT Product_ID FROM store_product WHERE \"Store_ID\" > 1 AND \"Product_ID\" <= 4"} {"question": "Can you give me the average first elected year, average delegate value, total election ID, and counties represented from the election table, combining results from two different sets of criteria: first, where the party is less than or equal to 2, or the election ID is greater than or equal to 2, and the counties represented is not \"09.1 9A\", the committee is not \"Appropriations\", the district is not 3, and the delegate is \"Guzzone, Guy Guy Guzzone\"; and second, where the election ID is not 3, or the delegate is not \"Miller, Warren E. Warren E. Miller\", or the committee is not \"Appropriations\", and the party is not 1, the district is less than 1, the counties represented is not \"09.1 9A\", and the first elected year is not 1994?", "answer": {"columns": ["AVG(First_Elected)", "AVG(Delegate)", "SUM(Election_ID)", "Counties_Represented"], "index": [0, 1], "data": [["1998.1428571429", "0", "33", "09.1 9A"], ["2001.4", "0", "17", "09.1 9A"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_6icgv_8.png", "TableImg_Dcmbf_8.png"], "original_data_index": 5129, "original_sql": "SELECT AVG(First_Elected), AVG(Delegate), SUM(Election_ID), Counties_Represented FROM election WHERE \"Party\" <= 2 OR \"Election_ID\" >= 2 AND Counties_Represented <> \"09.1 9A\" AND Committee != \"Appropriations\" AND \"District\" <> 3 AND Delegate = \"Guzzone, Guy Guy Guzzone\" UNION SELECT AVG(First_Elected), AVG(Delegate), SUM(Election_ID), Counties_Represented FROM election WHERE \"Election_ID\" != 3 AND Delegate != \"Miller, Warren E. Warren E. Miller\" OR Committee <> \"Appropriations\" OR \"Party\" <> 1 AND \"District\" < 1 AND Counties_Represented != \"09.1 9A\" AND \"First_Elected\" <> 1994.0"} {"question": "Can you list the Aircraft IDs that are both less than or equal to 5 in the aircraft table and greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ws44b_5.png", "TableImg_0qjf5_4.png"], "original_data_index": 5130, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that aren't 11, and those from the school bus table that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iwmc6_12.png", "TableImg_0snb8_5.png"], "original_data_index": 5131, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the driver IDs that are less than 10 from the driver table, and combine that with a list of driver IDs that are greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jmomr_12.png", "TableImg_Doex4_5.png"], "original_data_index": 5122, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you list the template type descriptions and codes, excluding those with the code \"BK\" or the description \"Paper\", but also excluding any that have the description \"Advertisement\"?", "answer": {"columns": ["Template_Type_Description", "Template_Type_Code"], "index": [0], "data": [["Advertisement", "AD"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Kjpja_5.png", "TableImg_95hwj_5.png"], "original_data_index": 5136, "original_sql": "SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != \"BK\" AND Template_Type_Description <> \"Paper\" EXCEPT SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description <> \"Advertisement\""} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and all driver IDs except 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ot8y1_12.png", "TableImg_75h53_5.png"], "original_data_index": 5137, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of player IDs and their starting years from the player_coach table, including those players whose ID is not 14, as well as any players whose starting year is after 2012?", "answer": {"columns": ["Player_ID", "Starting_year"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "2010"], ["2", "2011"], ["3", "2012"], ["4", "2013"], ["6", "2012"], ["10", "2011"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_1k5o6_7.png", "TableImg_Jc05m_7.png"], "original_data_index": 5138, "original_sql": "SELECT Player_ID, Starting_year FROM player_coach WHERE \"Player_ID\" != 14 UNION SELECT Player_ID, Starting_year FROM player_coach WHERE \"Starting_year\" > 2012"} {"question": "What are the average names and IDs that appear in both the list of airports excluding those in Billund or Belgium or named \"Billund Airport\" or with an ID of 9, and the list of operating companies excluding those incorporated in Hong Kong or named \"Dragonair Holidays\" with a group equity shareholding of 100?", "answer": {"columns": ["AVG(name)", "id"], "index": [0], "data": [["0", "1"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_8nf8t_9.png", "TableImg_Mib14_14.png"], "original_data_index": 5139, "original_sql": "SELECT AVG(name), id FROM airport WHERE City <> \"Billund\" OR Country != \"Belgium\" OR name <> \"Billund Airport\" OR \"id\" != 9 INTERSECT SELECT AVG(name), id FROM operate_company WHERE Incorporated_in <> \"Hong Kong\" OR name = \"Dragonair Holidays\" AND \"Group_Equity_Shareholding\" = 100.0"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 4, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4c2rm_12.png", "TableImg_Tc5c9_5.png"], "original_data_index": 5140, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including driver ID 6 from the driver table and any driver IDs greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wl1j2_12.png", "TableImg_Hbk7w_5.png"], "original_data_index": 5141, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the Driver ID from the driver table that is equal to 6, excluding any Driver IDs from the school_bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Brwa0_12.png", "TableImg_Hz2ul_5.png"], "original_data_index": 5143, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What aircraft IDs are greater than 1 when grouped, excluding aircraft IDs that are not equal to 1 when grouped in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4lbc8_5.png", "TableImg_Dxhsc_4.png"], "original_data_index": 5142, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are both less than or equal to 12 in the driver table and greater than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1vcn8_12.png", "TableImg_W27k3_5.png"], "original_data_index": 5144, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are greater than 9 and also not equal to 4, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Npc8r_12.png", "TableImg_B11uu_5.png"], "original_data_index": 5145, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the highest shipping agent code from the Documents table, excluding those with \"j\" in other details, combined with the highest shipping agent code from the Ref_Shipping_Agents table, considering only codes that are not \"US\" and either the name is \"Fedex\" or the description is \"w\"?", "answer": {"columns": ["MAX(shipping_agent_code)"], "index": [0, 1], "data": [["FE"], ["US"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Kpkms_15.png", "TableImg_36f7b_5.png"], "original_data_index": 5135, "original_sql": "SELECT MAX(shipping_agent_code) FROM Documents WHERE other_details != \"j\" UNION SELECT MAX(shipping_agent_code) FROM Ref_Shipping_Agents WHERE shipping_agent_code != \"US\" AND shipping_agent_name = \"Fedex\" OR shipping_agent_description = \"w\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7, and those from the school bus table that are equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J38do_12.png", "TableImg_X81cz_5.png"], "original_data_index": 5146, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the smallest address detail and the address ID for addresses where the address detail is not \"IT\" and the address ID is 1, combined with the smallest address detail and address ID for addresses where the address ID is not 2?", "answer": {"columns": ["MIN(address_details)", "address_id"], "index": [0, 1], "data": [["MX", "1"], ["ES", "3"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_4599l_10.png", "TableImg_Tkrmn_10.png"], "original_data_index": 5147, "original_sql": "SELECT MIN(address_details), address_id FROM Addresses WHERE address_details != \"IT\" AND \"address_id\" = 1 UNION ALL SELECT MIN(address_details), address_id FROM Addresses WHERE \"address_id\" <> 2"} {"question": "Which driver IDs, excluding driver ID 12, are also driver IDs for school buses, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8cfay_12.png", "TableImg_Znfh4_5.png"], "original_data_index": 5148, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the average club ID for clubs that are not located in HHH and have the description \"Play pen and paper games on campus,\" combined with the average club ID for members who are not presidents and have a student ID less than 1007?", "answer": {"columns": ["AVG(ClubID)"], "index": [0, 1], "data": [[""], [""]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Nriwl_4.png", "TableImg_4z106_4.png"], "original_data_index": 5149, "original_sql": "SELECT AVG(ClubID) FROM Club WHERE ClubLocation != \"HHH\" AND ClubDesc = \"Play pen and paper games on campus.\" UNION ALL SELECT AVG(ClubID) FROM Member_of_club WHERE Position != \"President\" AND \"StuID\" < 1007"} {"question": "What are the average major and student ID for students where the advisor is less than 8722, the first name isn't Michael, and the age isn't 20, combined with the average major and student ID for students where the student ID is 1035, or the major isn't 600 and the last name isn't Thornton, or the advisor is less than 8741, or the first name isn't Paul, or the age is less than 19, or the sex isn't female?", "answer": {"columns": ["AVG(Major)", "StuID"], "index": [0, 1], "data": [["502.5", "1001"], ["527.9411764706", "1001"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Ekyk4_34.png", "TableImg_Lhwxc_34.png"], "original_data_index": 5150, "original_sql": "SELECT AVG(Major), StuID FROM Student WHERE \"Advisor\" < 8722 AND Fname != \"Michael\" AND \"Age\" <> 20 UNION ALL SELECT AVG(Major), StuID FROM Student WHERE \"StuID\" = 1035 OR \"Major\" != 600 AND LName <> \"Thornton\" OR \"Advisor\" < 8741 OR Fname != \"Paul\" OR \"Age\" < 19 OR Sex <> \"F\""} {"question": "Could you give me a list of user IDs from the review table where the ID is greater than 2, along with a list of user IDs from the user account table where the ID is less than 5?", "answer": {"columns": ["u_id"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_K2vjl_7.png", "TableImg_0a9ff_7.png"], "original_data_index": 5151, "original_sql": "SELECT u_id FROM review WHERE \"u_id\" > 2 UNION ALL SELECT u_id FROM useracct WHERE \"u_id\" < 5"} {"question": "Can you give me the head IDs of people who are either younger than 69 or not born in Delaware, excluding the head IDs of people in management who are not head ID 4 and are not temporary acting?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Zk6h0_10.png", "TableImg_6kbhw_5.png"], "original_data_index": 5153, "original_sql": "SELECT head_ID FROM head WHERE \"age\" < 69.0 OR born_state != \"Delaware\" EXCEPT SELECT head_ID FROM management WHERE \"head_ID\" <> 4 AND temporary_acting <> \"Yes\""} {"question": "What aircraft IDs are both greater than or equal to 3 and also not equal to 1 in the airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nwuha_5.png", "TableImg_9h5lm_4.png"], "original_data_index": 5152, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 10, and those from the school bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cslqx_12.png", "TableImg_1l1yz_5.png"], "original_data_index": 5156, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the smallest customer ID from the customer payments where either the payment amount isn't 8180.26, or the customer ID is 13 or greater, or the payment date is February 27, 2018 at 8:08:53 PM, or the payment method isn't Direct Debit, combined with the smallest customer ID from the lessons where the lesson status isn't Completed and the lesson date isn't February 26, 2018 at 2:36:35 AM?", "answer": {"columns": ["MIN(customer_id)"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_Xqy74_15.png", "TableImg_X3g8t_15.png"], "original_data_index": 5157, "original_sql": "SELECT MIN(customer_id) FROM Customer_Payments WHERE \"amount_payment\" != 8180.26 OR \"customer_id\" >= 13 OR datetime_payment = \"2018-02-27 20:08:53\" OR payment_method_code != \"Direct Debit\" UNION ALL SELECT MIN(customer_id) FROM Lessons WHERE lesson_status_code != \"Completed\" AND lesson_date != \"2018-02-26 02:36:35\""} {"question": "Can you list all aircraft IDs that are greater than 3 from the aircraft table, and combine that with a list of all aircraft IDs that are not equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iiqi2_5.png", "TableImg_Uxe9i_4.png"], "original_data_index": 5158, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you provide a list showing, for each effective date and template type, the number of effective-to dates and the smallest template ID, combining results from two groups: one where the version number is greater than 2, and another where the version number is not equal to 5, or the effective-from date is not \"2008-08-01 13:57:26\", and the effective-to date is not \"1994-12-07 13:26:23\", and the template details are not empty, or the template ID is not 25?", "answer": {"columns": ["Date_Effective_From", "Template_Type_Code", "COUNT(Date_Effective_To)", "MIN(Template_ID)"], "index": [0, 1], "data": [["2005-11-12 07:09:48", "PP", "15", "0"], ["2005-11-12 07:09:48", "PP", "19", "0"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_X86tz_20.png", "TableImg_2j7fw_20.png"], "original_data_index": 5159, "original_sql": "SELECT Date_Effective_From, Template_Type_Code, COUNT(Date_Effective_To), MIN(Template_ID) FROM Templates WHERE \"Version_Number\" > 2 UNION ALL SELECT Date_Effective_From, Template_Type_Code, COUNT(Date_Effective_To), MIN(Template_ID) FROM Templates WHERE \"Version_Number\" != 5 OR Date_Effective_From <> \"2008-08-01 13:57:26\" AND Date_Effective_To <> \"1994-12-07 13:26:23\" AND Template_Details <> \"\" OR \"Template_ID\" != 25"} {"question": "What is the average party value from the election table, excluding records where the delegate is Frank S. Turner, the election ID is less than 1, the party is 1 and first elected before 2002, or the committee is not Environmental Matters (Vice-Chair), after removing the average party value from the party table where the party is not Democratic, the party ID is less than 1, and neither the Attorney General nor the Governor is Eliot Spitzer?", "answer": {"columns": ["AVG(Party)"], "index": [0], "data": [["2.7142857143"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_6xkgu_8.png", "TableImg_A3l3i_7.png"], "original_data_index": 5160, "original_sql": "SELECT AVG(Party) FROM election WHERE Delegate <> \"Turner, Frank S. Frank S. Turner\" AND \"Election_ID\" < 1 OR \"Party\" = 1 AND \"First_Elected\" < 2002.0 OR Committee <> \"Environmental Matters (Vice-Chair)\" EXCEPT SELECT AVG(Party) FROM party WHERE Party != \"Democratic\" AND \"Party_ID\" < 1 AND Attorney_General <> \"Eliot Spitzer\" AND Governor <> \"Eliot Spitzer\""} {"question": "Can you give me a list of driver IDs from the driver table that are less than 4, combined with a list of driver IDs from the school_bus table that are 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tonvj_12.png", "TableImg_Uyp3g_5.png"], "original_data_index": 5161, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Could you give me a list of player IDs for players who either didn't have coach ID 2 or started after 2011, but excluding those who had coach ID 3?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["14"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_U465j_7.png", "TableImg_M33f3_7.png"], "original_data_index": 5162, "original_sql": "SELECT Player_ID FROM player_coach WHERE \"Coach_ID\" <> 2 OR \"Starting_year\" > 2011 EXCEPT SELECT Player_ID FROM player_coach WHERE \"Coach_ID\" = 3"} {"question": "Can you give me a list of driver IDs from the driver table that are 5 or greater, and combine that with a list of driver IDs from the school bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pbjqk_12.png", "TableImg_Arj4t_5.png"], "original_data_index": 5163, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you list all the driver IDs that are less than 9 from the driver table, and combine that with a list of all driver IDs that are less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dnowj_12.png", "TableImg_Ndvvc_5.png"], "original_data_index": 5164, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 11, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F9x20_12.png", "TableImg_Q9f64_5.png"], "original_data_index": 5155, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Could you give me a list of customer IDs from payments that weren't made by direct debit and were for 7440.34, or where the customer ID isn't 4 and the payment wasn't made on 2018-02-24 10:07:05, combined with a list of customer IDs from lessons that were held on 2018-03-03 15:10:16 at 5 o'clock, or where the staff ID isn't 11 and the lesson was cancelled and the customer ID is 6, or where the vehicle ID isn't 3?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_Irh7p_15.png", "TableImg_4md3b_15.png"], "original_data_index": 5154, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE payment_method_code <> \"Direct Debit\" AND \"amount_payment\" = 7440.34 OR \"customer_id\" != 4 AND datetime_payment <> \"2018-02-24 10:07:05\" UNION SELECT customer_id FROM Lessons WHERE lesson_date = \"2018-03-03 15:10:16\" AND lesson_time = \"5\" OR \"staff_id\" != 11 AND lesson_status_code = \"Cancelled\" AND \"customer_id\" = 6 OR \"vehicle_id\" != 3"} {"question": "Can you give me a list of People IDs, including those from the 'people' table who are not person ID 1, or are Russian, or are not 207 cm tall, or were not born on August 8, 1986, combined with those from the 'poker_player' table who have earnings less than $104,871?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Bdsb8_7.png", "TableImg_K459c_5.png"], "original_data_index": 5166, "original_sql": "SELECT People_ID FROM people WHERE \"People_ID\" != 1 OR Nationality = \"Russia\" OR \"Height\" != 207.0 OR Birth_Date != \"August 8, 1986\" UNION SELECT People_ID FROM poker_player WHERE \"Earnings\" < 104871.0"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 3, that appear in the aircraft table but not in the airport_aircraft table where the aircraft ID is less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bg20m_5.png", "TableImg_Rxn5j_4.png"], "original_data_index": 5167, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you list all the feature type codes, including those that aren't \"Amenity, eg Pool.\", and also those that aren't \"Security\" while also not being named \"Securiyt, eg Burglar Alarm.\"?", "answer": {"columns": ["feature_type_code"], "index": [0, 1], "data": [["Amenity"], ["Security"]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Ex4ke_2.png", "TableImg_Yq72z_2.png"], "original_data_index": 5165, "original_sql": "SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\" UNION SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code != \"Security\" AND feature_type_name != \"Securiyt, eg Burglar Alarm.\""} {"question": "Can you give me the student IDs of members who either don't hold the CTO position or have a ClubID less than or equal to 1 and a StuID of 1008, excluding the student IDs of students who don't live in YYZ, are not female, don't have the last name Rugh, have an advisor ID less than or equal to 8772, and don't have the first name Sarah?", "answer": {"columns": ["StuID"], "index": [0, 1], "data": [["1001"], ["1007"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_Wvqga_4.png", "TableImg_2vi59_34.png"], "original_data_index": 5168, "original_sql": "SELECT StuID FROM Member_of_club WHERE Position != \"CTO\" OR \"ClubID\" <= 1 AND \"StuID\" = 1008 EXCEPT SELECT StuID FROM Student WHERE city_code != \"YYZ\" AND Sex <> \"F\" AND LName != \"Rugh\" AND \"Advisor\" <= 8772 AND Fname <> \"Sarah\""} {"question": "Can you give me a list of driver IDs, including those with the ID 1 from the driver table, and those with IDs less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iy2eo_12.png", "TableImg_88mz1_5.png"], "original_data_index": 5171, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 2 and those from the school_bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wd92j_12.png", "TableImg_3jbse_5.png"], "original_data_index": 5172, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the highest document status code and the average document status description, first excluding entries where the code is \"done\" and the description is \"mailed late\", and then including only entries where the code is \"working\" or the description is not \"currently working on\"?", "answer": {"columns": ["MAX(document_status_code)", "AVG(document_status_description)"], "index": [0, 1], "data": [["working", "0"], ["working", "0"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_D5lul_3.png", "TableImg_E56h0_3.png"], "original_data_index": 5169, "original_sql": "SELECT MAX(document_status_code), AVG(document_status_description) FROM Ref_Document_Status WHERE document_status_code != \"done\" AND document_status_description != \"mailed late\" UNION ALL SELECT MAX(document_status_code), AVG(document_status_description) FROM Ref_Document_Status WHERE document_status_code = \"working\" OR document_status_description != \"currently working on\""} {"question": "Which driver IDs are both not equal to 5 in the driver table and equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_95szk_12.png", "TableImg_L80l5_5.png"], "original_data_index": 5170, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are less than 8 and also equal to 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ri4r_12.png", "TableImg_Ymh89_5.png"], "original_data_index": 5176, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 2, and also list all the aircraft IDs from the airport, excluding aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hjlr1_5.png", "TableImg_Lo4cm_4.png"], "original_data_index": 5174, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs that are also equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rvit7_12.png", "TableImg_Q0hc6_5.png"], "original_data_index": 5173, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of shipping agent codes from the Documents table where the document ID is less than 25, but exclude any codes that are either \"UP\" or have a description of \"g\" in the Ref_Shipping_Agents table?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2], "data": [["FE"], ["SH"], ["US"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Izpib_15.png", "TableImg_N6e75_5.png"], "original_data_index": 5175, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE \"document_id\" < 25 EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"UP\" OR shipping_agent_description = \"g\""} {"question": "Can you give me a list of driver IDs, including driver ID 1 from the driver table and any driver IDs less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mzbje_12.png", "TableImg_Sz79y_5.png"], "original_data_index": 5179, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 10 and are not equal to 7, considering only unique driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V83s4_12.png", "TableImg_Bif88_5.png"], "original_data_index": 5177, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are less than 12 from the driver table, combined with a list of driver IDs that are not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_07f06_12.png", "TableImg_4ybtb_5.png"], "original_data_index": 5178, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 7, with those from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bn438_12.png", "TableImg_In59l_5.png"], "original_data_index": 5180, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs, excluding 12, are also driver IDs less than 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dsp6y_12.png", "TableImg_Dstwl_5.png"], "original_data_index": 5183, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding those driver IDs that are also less than or equal to 7 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_82mr6_12.png", "TableImg_6dkct_5.png"], "original_data_index": 5184, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 11, and also including driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K7o5z_12.png", "TableImg_4xjw0_5.png"], "original_data_index": 5181, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of property IDs that either have a feature ID other than 3 or a property feature description that isn't \"hic\", combined with property IDs from properties where the vendor requested price is greater than 13.4715 and either apt_feature_2 is \"odio\", the date on market is \"1978-05-15 10:53:37\", or a complex set of conditions involving shp_feature_2, hse_feature_1, shp_feature_1, property_type_code, agreed_selling_price, other_property_details, fld_feature_1, hse_feature_3, room_count, hse_feature_2, oth_feature_1, fld_feature_2, oth_feature_3, and apt_feature_1?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_Hbbda_15.png", "TableImg_Pj35h_15.png"], "original_data_index": 5182, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"feature_id\" <> 3 OR property_feature_description != \"hic\" UNION SELECT property_id FROM Properties WHERE \"vendor_requested_price\" > 13.4715 AND apt_feature_2 = \"odio\" OR date_on_market = \"1978-05-15 10:53:37\" OR shp_feature_2 = \"None\" AND hse_feature_1 != \"None\" AND shp_feature_1 = \"None\" AND property_type_code <> \"Apartment\" OR \"agreed_selling_price\" >= 3344706.5755 OR other_property_details != \"None\" AND fld_feature_1 <> \"None\" AND hse_feature_3 <> \"None\" AND \"room_count\" < 8 OR hse_feature_2 <> \"None\" OR oth_feature_1 <> \"None\" AND fld_feature_2 = \"None\" AND oth_feature_3 = \"None\" AND apt_feature_1 = \"fuga\""} {"question": "What aircraft have an ID of 4, but are not in the set of aircraft with IDs less than 5 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mcgqy_5.png", "TableImg_Rs9fc_4.png"], "original_data_index": 5185, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What is the average party value from the election table, excluding elections with ID 3, minus the average party value from the party table, excluding parties with ID 7 that are not Democratic, where US Senator is not Hillary Rodham Clinton, or the year is 2002 or later, or the Comptroller is not Carl McCall, or the Lieutenant Governor is not Dennis Mehiel and the Governor is Eliot Spitzer?", "answer": {"columns": ["AVG(Party)"], "index": [0], "data": [["2.7142857143"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Wo8w7_8.png", "TableImg_Qzols_7.png"], "original_data_index": 5186, "original_sql": "SELECT AVG(Party) FROM election WHERE \"Election_ID\" != 3 EXCEPT SELECT AVG(Party) FROM party WHERE \"Party_ID\" <> 7 AND Party != \"Democratic\" AND US_Senate <> \"Hillary Rodham Clinton\" OR \"Year\" >= 2002.0 OR Comptroller <> \"Carl McCall\" OR Lieutenant_Governor <> \"Dennis Mehiel\" AND Governor = \"Eliot Spitzer\""} {"question": "Can you give me the IDs of clubs that either don't have the description \"Refurbish computers; teach kids and adults about computer basics.\" or are located in AKW and have a ClubID of 2, but excluding any club IDs that are associated with members whose student ID is less than 1001 and who don't hold the position of CTO?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_77fj7_4.png", "TableImg_Qg630_4.png"], "original_data_index": 5189, "original_sql": "SELECT ClubID FROM Club WHERE ClubDesc != \"Refurbish computers; teach kids and adults about computer basics.\" OR ClubLocation = \"AKW\" AND \"ClubID\" = 2 EXCEPT SELECT ClubID FROM Member_of_club WHERE \"StuID\" < 1001 AND Position <> \"CTO\""} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 2 and also less than 10, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kyos9_12.png", "TableImg_Cd5tb_5.png"], "original_data_index": 5190, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those that are not equal to 1 from the driver table, and those that are equal to 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aep13_12.png", "TableImg_D7j0v_5.png"], "original_data_index": 5192, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of student IDs from the Has_Pet table where the PetID is less than or equal to 2001, combined with a list of student IDs from the Student table where either the first name is not Mark and the Advisor is less than or equal to 8772 and the last name is Jones, or the sex is not female and the city code is not BAL, or the major is not 50 and the student ID is less than or equal to 1020, or the age is less than 19?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31], "data": [["1001"], ["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1032"], ["1033"], ["1034"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_Ji8j6_3.png", "TableImg_H2ny1_34.png"], "original_data_index": 5191, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"PetID\" <= 2001 UNION ALL SELECT StuID FROM Student WHERE Fname <> \"Mark\" AND \"Advisor\" <= 8772 AND LName = \"Jones\" OR Sex != \"F\" AND city_code <> \"BAL\" OR \"Major\" <> 50 AND \"StuID\" <= 1020 OR \"Age\" < 19"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 12 from the driver table, excluding any driver IDs that are less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ssgon_12.png", "TableImg_Qsj54_5.png"], "original_data_index": 5188, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, including those with ID 1 from the driver table and those with IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z3k18_12.png", "TableImg_Fdndz_5.png"], "original_data_index": 5187, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs that are equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T3ny5_12.png", "TableImg_59evg_5.png"], "original_data_index": 5195, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are not 4 from the driver table, but only include those driver IDs that are less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kndo5_12.png", "TableImg_Y7m28_5.png"], "original_data_index": 5193, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are greater than 4 and also not equal to 10, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_37b9o_12.png", "TableImg_Kbhxq_5.png"], "original_data_index": 5196, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 1, but excluding any driver IDs that are also in the school bus list, unless that ID is 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yp8ui_12.png", "TableImg_Iwuf6_5.png"], "original_data_index": 5194, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the property feature descriptions that apply to properties with a feature ID of 3 or higher and are not associated with property ID 12, excluding any feature descriptions that apply to properties with a property ID of 6 or lower?", "answer": {"columns": ["property_feature_description"], "index": [0, 1, 2, 3], "data": [["dolorem"], ["modi"], ["quo"], ["vitae"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_389gc_15.png", "TableImg_U4bzl_15.png"], "original_data_index": 5197, "original_sql": "SELECT property_feature_description FROM Other_Property_Features WHERE \"feature_id\" >= 3 AND \"property_id\" != 12 EXCEPT SELECT property_feature_description FROM Other_Property_Features WHERE \"property_id\" <= 6"} {"question": "Could you list the school IDs for all schools that are not private, not located in Cambridge, Massachusetts, not named Punahou School, and not offering 4th grade, combined with the school IDs from the school bus table where either the driver is full-time, the school ID is not 4, or the years of working is not 8?", "answer": {"columns": ["School_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["1"], ["5"], ["3"], ["7"], ["4"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_J2t01_7.png", "TableImg_Bwgls_5.png"], "original_data_index": 5200, "original_sql": "SELECT School_ID FROM school WHERE Type <> \"Private\" AND Location <> \"Cambridge, Massachusetts\" AND School != \"Punahou School\" AND Grade <> \"4th grade\" UNION ALL SELECT School_ID FROM school_bus WHERE If_full_time = \"T\" OR \"School_ID\" != 4 OR \"Years_Working\" <> 8"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding those driver IDs that are also greater than or equal to 10 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_41s2v_12.png", "TableImg_38ap5_5.png"], "original_data_index": 5199, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the aircraft IDs, up to and including 4, that appear in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bcjk8_5.png", "TableImg_5plej_4.png"], "original_data_index": 5198, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list all driver IDs that are less than 3, including those from the driver table and the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gh104_12.png", "TableImg_Rhf90_5.png"], "original_data_index": 5201, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which aircraft IDs are both less than or equal to 5 when considering only aircraft and less than 5 when considering only airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2urn7_5.png", "TableImg_5gxma_4.png"], "original_data_index": 5202, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 12, and those from the school bus table excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iuq0x_12.png", "TableImg_Elqey_5.png"], "original_data_index": 5203, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 9 or greater, and those from the school bus table where the ID is not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qmw79_12.png", "TableImg_Nai3o_5.png"], "original_data_index": 5204, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list all aircraft IDs, excluding aircraft ID 5, and also list all aircraft IDs from the airport aircraft table that are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wvrxo_5.png", "TableImg_5003u_4.png"], "original_data_index": 5206, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 8, combined with a list of driver IDs from the school_bus table where each ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R7rq3_12.png", "TableImg_455sp_5.png"], "original_data_index": 5205, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 4, from the aircraft table, and combine that with a list of aircraft IDs, excluding aircraft ID 2, from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qknt4_5.png", "TableImg_Ncur0_4.png"], "original_data_index": 5207, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Could you give me the document IDs from the drafts that either have draft details marked as \"r\" or are not document ID 13, but exclude any document IDs that were mailed to an address ID greater than 7, mailed on a date other than March 20, 2007 at 5:22:01 AM, and have a document ID less than or equal to 24?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["7"], ["10"], ["12"], ["14"], ["17"], ["20"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_U7g7q_15.png", "TableImg_R418j_14.png"], "original_data_index": 5208, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details = \"r\" OR \"document_id\" != 13 EXCEPT SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" > 7 AND mailing_date <> \"2007-03-20 05:22:01\" AND \"document_id\" <= 24"} {"question": "Can you give me a list of driver IDs that are less than 5 and also appear as driver IDs in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_56p53_12.png", "TableImg_Ne6qz_5.png"], "original_data_index": 5209, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the property type codes and their counts, excluding those where the property type description is not \"House, Bungalow, etc.\", from the property types that are either \"Apartment, Flat, Condo, etc.\" or not \"Other\"?", "answer": {"columns": ["property_type_code", "COUNT(property_type_description)"], "index": [0], "data": [["House", "4"]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Xwqj6_5.png", "TableImg_Ana3e_5.png"], "original_data_index": 5210, "original_sql": "SELECT property_type_code, COUNT(property_type_description) FROM Ref_Property_Types WHERE property_type_description = \"Apartment, Flat, Condo, etc.\" OR property_type_code != \"Other\" EXCEPT SELECT property_type_code, COUNT(property_type_description) FROM Ref_Property_Types WHERE property_type_description <> \"House, Bungalow, etc.\""} {"question": "Can you give me a list of driver IDs, including those that are exactly 1 from the driver list, and those that are 3 or greater from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1o8ct_12.png", "TableImg_Iv0az_5.png"], "original_data_index": 5211, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you give me the document IDs that are both in the circulation history for employees other than employee 8 with copy numbers less than or equal to 10, and also in the documents mailed on November 3, 1971 at 12:32:14 to address IDs less than or equal to 8, or are not document ID 2?", "answer": {"columns": ["document_id"], "index": [0], "data": [["10"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Dztnq_4.png", "TableImg_4ihex_14.png"], "original_data_index": 5212, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"employee_id\" <> 8 AND \"copy_number\" <= 10 INTERSECT SELECT document_id FROM Documents_Mailed WHERE mailing_date = \"1971-11-03 12:32:14\" AND \"mailed_to_address_id\" <= 8 OR \"document_id\" != 2"} {"question": "Can you give me a list of driver IDs where the ID is greater than 4 from the driver table, combined with a list of driver IDs that are exactly 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2u2im_12.png", "TableImg_Gi25q_5.png"], "original_data_index": 5215, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are not equal to 6, excluding any driver IDs from the school bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wlmqt_12.png", "TableImg_5sllq_5.png"], "original_data_index": 5213, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 8 or higher, and those from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dcsah_12.png", "TableImg_Zaavu_5.png"], "original_data_index": 5216, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you give me the copy numbers that are both less than or equal to 15 in the Circulation History, excluding those associated with employee ID 2, document IDs of 20 or greater, and draft numbers of 1 or less, and also less than or equal to 10 in the Draft Copies, excluding those associated with document ID 4?", "answer": {"columns": ["copy_number"], "index": [0], "data": [["5"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_Ksg2t_4.png", "TableImg_H3l8d_8.png"], "original_data_index": 5214, "original_sql": "SELECT copy_number FROM Circulation_History WHERE \"copy_number\" <= 15 AND \"employee_id\" != 2 AND \"document_id\" < 20 AND \"draft_number\" > 1 INTERSECT SELECT copy_number FROM Draft_Copies WHERE \"copy_number\" <= 10 AND \"document_id\" <> 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 9 with those from the school bus table that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fq2ob_12.png", "TableImg_Zmcet_5.png"], "original_data_index": 5217, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 7, excluding the IDs of school bus drivers that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Scrsz_12.png", "TableImg_86oiq_5.png"], "original_data_index": 5219, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you show me the Party, US Senate, and Governor information from the party table where the Party ID is 4, or the Attorney General isn't Jeanine Pirro, or the Party isn't Democratic, or the Comptroller is John Faso, or the Year is 2006 or later, combined with the Party, US Senate, and Governor information where the Year isn't 1998 and the Party isn't Democratic, or the Party ID is 1?", "answer": {"columns": ["Party", "US_Senate", "Governor"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["Democratic", "Charles Schumer", "Peter Vallone"], ["Liberal", "Charles Schumer", "Betsy McCaughey Ross"], ["Democratic", "(no election)", "Carl McCall"], ["Independence", "(no election)", "Tom Golisano"], ["Democratic", "Hillary Rodham Clinton", "Eliot Spitzer"], ["Independence", "Hillary Rodham Clinton", "Eliot Spitzer"], ["Working Families", "Hillary Rodham Clinton", "Eliot Spitzer"], ["Democratic", "Charles Schumer", "Peter Vallone"], ["Independence", "(no election)", "Tom Golisano"], ["Independence", "Hillary Rodham Clinton", "Eliot Spitzer"], ["Working Families", "Hillary Rodham Clinton", "Eliot Spitzer"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Fgwi3_7.png", "TableImg_Q7iyh_7.png"], "original_data_index": 5218, "original_sql": "SELECT Party, US_Senate, Governor FROM party WHERE \"Party_ID\" = 4 OR Attorney_General != \"Jeanine Pirro\" OR Party != \"Democratic\" OR Comptroller = \"John Faso\" OR \"Year\" >= 2006.0 UNION ALL SELECT Party, US_Senate, Governor FROM party WHERE \"Year\" <> 1998.0 AND Party <> \"Democratic\" OR \"Party_ID\" = 1"} {"question": "Can you show me the velocity, pilot, airport ID, and altitude from the flight table, combining two sets of results: first, flights where the airport ID is greater than 5 and the vehicle flight number is not \"M2-F1 #13\", or where the altitude is less than or equal to 3650, the ID is less than 10, the company ID is 2, and the pilot is Thompson, or where the velocity is greater than or equal to 240, or the date is not May 19, 1964; and second, flights where the vehicle flight number is not \"M2-F1 #39\", the ID is 7, the airport ID is not 4, the company ID is 7, the pilot is not Thompson, and the date is not March 1, 1963, or where the velocity is greater than 240?", "answer": {"columns": ["Velocity", "Pilot", "airport_id", "Altitude"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["135", "Thompson", "1", "0"], ["240", "Peterson", "2", "3650"], ["240", "Peterson", "5", "3650"], ["240", "Peterson", "8", "3650"], ["240", "Thompson", "2", "3650"], ["240", "Thompson", "3", "3650"], ["240", "Thompson", "4", "3650"], ["240", "Thompson", "6", "3650"], ["240", "Thompson", "9", "3650"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Ygpc6_13.png", "TableImg_Nd5fm_13.png"], "original_data_index": 5221, "original_sql": "SELECT Velocity, Pilot, airport_id, Altitude FROM flight WHERE \"airport_id\" > 5 AND Vehicle_Flight_number <> \"M2-F1 #13\" OR \"Altitude\" <= 3650.0 AND \"id\" < 10 AND \"company_id\" = 2 AND Pilot = \"Thompson\" OR \"Velocity\" >= 240.0 OR Date != \"May 19, 1964\" UNION SELECT Velocity, Pilot, airport_id, Altitude FROM flight WHERE Vehicle_Flight_number != \"M2-F1 #39\" AND \"id\" = 7 AND \"airport_id\" != 4 AND \"company_id\" = 7 AND Pilot <> \"Thompson\" AND Date != \"March 1, 1963\" OR \"Velocity\" > 240.0"} {"question": "Can you give me a list of driver IDs that are less than 4 and also not equal to 9, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0y1d5_12.png", "TableImg_Objrj_5.png"], "original_data_index": 5222, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 6 and not equal to 4, considering only the driver IDs present in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A2z9z_12.png", "TableImg_Fdg88_5.png"], "original_data_index": 5223, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the register year, branch ID, and member ID for all members with an ID less than 7 who registered in 2016, combined with the register year, branch ID, and member ID for all members who registered in 2017 at branch 8 and whose member ID is not 2?", "answer": {"columns": ["Register_Year", "Branch_ID", "Member_ID"], "index": [0, 1, 2, 3], "data": [["2016", "1", "1"], ["2016", "1", "4"], ["2016", "4", "2"], ["2016", "5", "5"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_856bv_8.png", "TableImg_Xzobl_8.png"], "original_data_index": 5225, "original_sql": "SELECT Register_Year, Branch_ID, Member_ID FROM membership_register_branch WHERE \"Member_ID\" < 7 AND Register_Year = \"2016\" UNION SELECT Register_Year, Branch_ID, Member_ID FROM membership_register_branch WHERE Register_Year = \"2017\" AND Branch_ID = \"8\" AND \"Member_ID\" <> 2"} {"question": "Can you list the aircraft IDs that are greater than or equal to 2, grouping by ID from the aircraft table, and combine that with a list of aircraft IDs greater than 2, grouping by ID from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4wzi5_5.png", "TableImg_Mwuev_4.png"], "original_data_index": 5226, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 6, excluding those driver IDs that are also in the school bus table and are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W4rux_12.png", "TableImg_Ub3jq_5.png"], "original_data_index": 5227, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 8 or higher, combined with a list of driver IDs from the school bus table where the driver ID is exactly 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_70018_12.png", "TableImg_Epa7a_5.png"], "original_data_index": 5228, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What aircraft IDs, excluding aircraft ID 1, are present in both the aircraft table and the airport_aircraft table, where only aircraft IDs greater than 3 are considered in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cjksa_5.png", "TableImg_66oke_4.png"], "original_data_index": 5229, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of all aircraft IDs, excluding aircraft ID 3, from both the aircraft and airport aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gdaxk_5.png", "TableImg_482mc_4.png"], "original_data_index": 5230, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 4, combined with a list of driver IDs from the school_bus table where each ID is less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E0w76_12.png", "TableImg_Ujv24_5.png"], "original_data_index": 5224, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver IDs greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pdrhi_12.png", "TableImg_Hnpdj_5.png"], "original_data_index": 5234, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the driver IDs that are both less than 10 and appear in the driver table, and also less than or equal to 7 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fppkx_12.png", "TableImg_Yzkg0_5.png"], "original_data_index": 5233, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 3 and also less than 9, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nanfr_12.png", "TableImg_Xfmz2_5.png"], "original_data_index": 5231, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of template type codes, including those that are not CV from the template types table, and also those from the templates table where the effective date is February 20, 2005, the template details are not empty, or the effective end date is not April 18, 2001 and the template type code is AD?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["PPT"], ["AD"], ["PP"], ["BK"], ["AD"], ["AD"], ["AD"], ["PP"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_T2vs6_5.png", "TableImg_H1llz_20.png"], "original_data_index": 5232, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description <> \"CV\" UNION ALL SELECT Template_Type_Code FROM Templates WHERE Date_Effective_From = \"2005-02-20 00:31:34\" OR Template_Details <> \"\" OR Date_Effective_To != \"2001-04-18 09:29:52\" AND Template_Type_Code = \"AD\""} {"question": "Could you list the weight and PetID for all pets, including those with a PetID of 2001 or those that are dogs and not one year old, along with those that weigh 13.4 or less, are not two years old, and are not dogs?", "answer": {"columns": ["weight", "PetID"], "index": [0, 1, 2], "data": [["12.0", "2001"], ["13.4", "2002"], ["12.0", "2001"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_Fknbc_3.png", "TableImg_Rznzm_3.png"], "original_data_index": 5235, "original_sql": "SELECT weight, PetID FROM Pets WHERE \"PetID\" = 2001 OR \"pet_age\" != 1 AND PetType = \"dog\" UNION ALL SELECT weight, PetID FROM Pets WHERE \"weight\" <= 13.4 AND \"pet_age\" <> 2 AND PetType != \"dog\""} {"question": "Which driver IDs appear in both the driver list, excluding driver ID 5, and the school bus list, including only driver IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lc7dp_12.png", "TableImg_3xv9x_5.png"], "original_data_index": 5237, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs that are at least 3, excluding those driver IDs that are also in the school bus list and are at least 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Knw9h_12.png", "TableImg_4dwdt_5.png"], "original_data_index": 5236, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, including driver ID 1 from the driver table and all driver IDs except 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P5a56_12.png", "TableImg_Vznn6_5.png"], "original_data_index": 5238, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs that are less than 10 from the driver table, combined with a list of driver IDs that are less than 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9uwjm_12.png", "TableImg_3hlxb_5.png"], "original_data_index": 5239, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs that are greater than 8, excluding any driver IDs less than 7 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4kvds_12.png", "TableImg_Qh1g1_5.png"], "original_data_index": 5240, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 12 and not equal to 9, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ya3le_12.png", "TableImg_8b7eo_5.png"], "original_data_index": 5241, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs, including driver ID 11 from the driver table, and all driver IDs from the school bus table except for driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dg0xz_12.png", "TableImg_Lon92_5.png"], "original_data_index": 5243, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you show me the lowest Club ID and the rank of coaches, excluding Joe Fabbri and clubs in Korea, and only including those who started in 2005 or later with a rank of 5 or less, or those who coach BK H\u00e4cken, or are not male, or have a Coach ID other than 3?", "answer": {"columns": ["MIN(T1.Club_ID)", "Rank"], "index": [0], "data": [["1", "1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_V61f0_6.png", "TableImg_Wwhno_5.png"], "original_data_index": 5242, "original_sql": "SELECT MIN(T1.Club_ID), T2.Rank FROM club as T1 JOIN coach as T2 ON T1.Club_ID = T2.Club_ID WHERE Coach_name <> \"Joe Fabbri\" AND Region <> \"Korea\" AND \"Start_year\" >= 2005 AND \"Rank\" <= 5 OR Club_name = \"BK H\u00e4cken\" OR Gender <> \"M\" OR \"Coach_ID\" <> 3"} {"question": "Can you give me a list of driver IDs less than or equal to 8, excluding any driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A0my1_12.png", "TableImg_Yree7_5.png"], "original_data_index": 5244, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7, and those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_No691_12.png", "TableImg_V7wwu_5.png"], "original_data_index": 5248, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 7, that appear in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kqfdu_12.png", "TableImg_3exxb_5.png"], "original_data_index": 5247, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver ID 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hc9u4_12.png", "TableImg_7pgo7_5.png"], "original_data_index": 5246, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the company ID, total group equity shareholding, principal activities, and earliest incorporation date for companies that meet both of these conditions: either they are not subsidiaries, or their group equity shareholding is 30% or less, or their ID is 12 or less; and also, either their principal activities are not catering services, or their ID is 14, or they are not subsidiaries, or their name is Cathay Pacific Catering Services (HK) Limited, or their group equity shareholding is exactly 100%, or they were incorporated in China?", "answer": {"columns": ["id", "SUM(Group_Equity_Shareholding)", "Principal_activities", "MIN(Incorporated_in)"], "index": [0], "data": [["14", "1042.77", "Catering services", "Canada"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_23uim_14.png", "TableImg_Jzbwb_14.png"], "original_data_index": 5245, "original_sql": "SELECT id, SUM(Group_Equity_Shareholding), Principal_activities, MIN(Incorporated_in) FROM operate_company WHERE Type != \"Subsidiary\" OR \"Group_Equity_Shareholding\" <= 30.0 OR \"id\" <= 12 INTERSECT SELECT id, SUM(Group_Equity_Shareholding), Principal_activities, MIN(Incorporated_in) FROM operate_company WHERE Principal_activities <> \"Catering services\" OR \"id\" = 14 OR Type != \"Subsidiary\" OR name = \"Cathay Pacific Catering Services (HK) Limited\" OR \"Group_Equity_Shareholding\" = 100.0 OR Incorporated_in = \"China\""} {"question": "Which aircraft IDs are not equal to 3 and are also greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ld965_5.png", "TableImg_Thppp_4.png"], "original_data_index": 5249, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2 from the driver table and driver ID 9 from the school_bus table, making sure to list each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Thvhx_12.png", "TableImg_9sipi_5.png"], "original_data_index": 5250, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of student IDs, including those with allergies excluding student 1027, and also those students from the student table who are not from Hong Kong or whose first name is not Jun?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34], "data": [["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1013"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Ds5x6_59.png", "TableImg_8cq6f_34.png"], "original_data_index": 5251, "original_sql": "SELECT StuID FROM Has_Allergy WHERE \"StuID\" <> 1027 UNION SELECT StuID FROM Student WHERE city_code <> \"HKG\" OR Fname != \"Jun\""} {"question": "Which driver IDs are greater than 2 and also not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U2g3p_12.png", "TableImg_Pl7qn_5.png"], "original_data_index": 5255, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are less than 5, excluding any driver IDs that are also equal to 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J7onv_12.png", "TableImg_1xbzr_5.png"], "original_data_index": 5252, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the driver ID, if it's equal to 9, but only if that driver ID is not also less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z628b_12.png", "TableImg_9e3r7_5.png"], "original_data_index": 5253, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What is the total of the property type codes from properties that were not sold on January 31, 1995 at 11:18:42 AM and had a vendor requested price of 2219.6778 and a property ID of 3 or greater, or had a third other feature that was not \"None\" and a first other feature of \"None\", or had a buyer offered price of 2.0 or less and an agreed selling price other than 4514.807, or had a second other feature that was not \"None\" and a third shop feature of \"None\", or had a second house feature of \"None\", or had more than 5 rooms and a property type code other than \"Apartment\", or had a first field feature that was not \"None\", or had a second field feature that was not \"None\", combined with the total of the property type codes from property types that are not \"Other\" and have a property type description that is not \"Shop, Retail Outlet.\"?", "answer": {"columns": ["SUM(property_type_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_B5iff_15.png", "TableImg_8yp6d_5.png"], "original_data_index": 5254, "original_sql": "SELECT SUM(property_type_code) FROM Properties WHERE date_sold <> \"1995-01-31 11:18:42\" AND \"vendor_requested_price\" = 2219.6778 AND \"property_id\" >= 3 OR oth_feature_3 <> \"None\" AND oth_feature_1 = \"None\" OR \"buyer_offered_price\" <= 2.0 AND \"agreed_selling_price\" <> 4514.807 OR oth_feature_2 <> \"None\" AND shp_feature_3 = \"None\" OR hse_feature_2 = \"None\" OR \"room_count\" > 5 AND property_type_code <> \"Apartment\" OR fld_feature_1 <> \"None\" OR fld_feature_2 <> \"None\" UNION SELECT SUM(property_type_code) FROM Ref_Property_Types WHERE property_type_code <> \"Other\" AND property_type_description != \"Shop, Retail Outlet.\""} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lpgb2_12.png", "TableImg_Aicyb_5.png"], "original_data_index": 5256, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are less than 8 and also appear in the list of school bus driver IDs, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cboyw_12.png", "TableImg_Ywunc_5.png"], "original_data_index": 5259, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What is the difference between the total document ID of documents with shipping agent code AL and receipt number 61, or document ID not equal to 13 and other details not equal to h and receipt date not equal to 2008-04-21 20:42:25, or document status code working, or document type code not equal to Paper, and the total document ID of draft copies with document ID greater than 23 and copy number not equal to 5 and draft number not equal to 8?", "answer": {"columns": ["SUM(document_id)"], "index": [0], "data": [["185"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Miw9g_15.png", "TableImg_Sepp4_8.png"], "original_data_index": 5258, "original_sql": "SELECT SUM(document_id) FROM Documents WHERE shipping_agent_code = \"AL\" AND receipt_number = \"61\" OR \"document_id\" != 13 AND other_details != \"h\" AND receipt_date <> \"2008-04-21 20:42:25\" OR document_status_code = \"working\" OR document_type_code <> \"Paper\" EXCEPT SELECT SUM(document_id) FROM Draft_Copies WHERE \"document_id\" > 23 AND \"copy_number\" != 5 AND \"draft_number\" != 8"} {"question": "What is the average template detail value that satisfies both of these conditions: either the template ID is 25, or the effective date is not 2001-04-18 09:29:52, the template type is not PP, the template details are empty, and the version number is less than 7; and also, the effective date is not 1986-11-14 12:20:18, the template details are not empty, the version number is less than or equal to 0, or the template type is not PP?", "answer": {"columns": ["AVG(Template_Details)"], "index": [0], "data": [["0"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_9xw99_20.png", "TableImg_4lxx2_20.png"], "original_data_index": 5257, "original_sql": "SELECT AVG(Template_Details) FROM Templates WHERE \"Template_ID\" = 25 OR Date_Effective_To != \"2001-04-18 09:29:52\" AND Template_Type_Code != \"PP\" AND Template_Details = \"\" AND \"Version_Number\" < 7 INTERSECT SELECT AVG(Template_Details) FROM Templates WHERE Date_Effective_From != \"1986-11-14 12:20:18\" AND Template_Details <> \"\" OR \"Version_Number\" <= 0 OR Template_Type_Code != \"PP\""} {"question": "Which driver IDs are both not equal to 5 and less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pyq0t_12.png", "TableImg_Pgvvq_5.png"], "original_data_index": 5263, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 2, and also including driver IDs from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tt3ml_12.png", "TableImg_0keoo_5.png"], "original_data_index": 5261, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the district IDs from the district table, excluding those headquartered in Bahawalpur City or named Chakwal District, but including those with a District ID of 3 or greater, or a City Area of 12.0 or greater, or a City Population greater than 172073, and then remove any district IDs that appear in the store_district table where the Store ID is 5 or the District ID is not 3?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["12"], ["13"], ["14"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Y6kaj_15.png", "TableImg_Rkx8t_5.png"], "original_data_index": 5262, "original_sql": "SELECT District_ID FROM district WHERE Headquartered_City <> \"Bahawalpur City\" AND District_name <> \"Chakwal District\" AND \"District_ID\" >= 3 AND \"City_Area\" >= 12.0 OR \"City_Population\" > 172073.0 EXCEPT SELECT District_ID FROM store_district WHERE \"Store_ID\" = 5 OR \"District_ID\" != 3"} {"question": "Can you give me a list of customer IDs from the Customer_Payments table where the customer ID is less than 13, or the payment date and time is March 12, 2018 at 8:41:47 AM and the payment method is not Direct Debit, combined with a list of customer IDs from the Customers table where the customer status is \"Good Customer\", or the first name is not \"Rylan\" and the phone number is +14(5)2351480248 and the customer ID is not 12?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["11"], ["2"], ["6"], ["3"], ["4"], ["7"], ["6"], ["2"], ["10"], ["1"], ["12"], ["2"], ["3"], ["4"], ["6"], ["11"], ["13"], ["14"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_J0bwq_15.png", "TableImg_Yntis_15.png"], "original_data_index": 5260, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"customer_id\" < 13 OR datetime_payment = \"2018-03-12 08:41:47\" AND payment_method_code != \"Direct Debit\" UNION ALL SELECT customer_id FROM Customers WHERE customer_status_code = \"Good Customer\" OR first_name != \"Rylan\" AND phone_number = \"+14(5)2351480248\" AND \"customer_id\" <> 12"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5, that are not also driver IDs, excluding driver ID 3, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jv5gy_12.png", "TableImg_Birso_5.png"], "original_data_index": 5264, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you show me the pet type, ID, and weight for all pets, including those that are not 3 years old or are not dogs, combined with those that don't weigh 9.3, don't have an ID of 2002, and aren't dogs?", "answer": {"columns": ["PetType", "PetID", "weight"], "index": [0, 1, 2], "data": [["cat", "2001", "12.0"], ["dog", "2002", "13.4"], ["dog", "2003", "9.3"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_Idyo7_3.png", "TableImg_Nthap_3.png"], "original_data_index": 5265, "original_sql": "SELECT PetType, PetID, weight FROM Pets WHERE \"pet_age\" <> 3 OR PetType <> \"dog\" UNION SELECT PetType, PetID, weight FROM Pets WHERE \"weight\" != 9.3 AND \"PetID\" != 2002 AND PetType != \"dog\""} {"question": "What are the total disk areas of aircraft and the corresponding airport IDs where those aircraft are located?", "answer": {"columns": ["Total_disk_area", "Airport_ID"], "index": [0, 1, 2, 3], "data": [["872 ft\u00b2 (81.1 m\u00b2)", "1"], ["497 ft\u00b2 (46.2 m\u00b2)", "2"], ["4,900 ft\u00b2 (460 m\u00b2)", "6"], ["5,655 ft\u00b2 (526 m\u00b2)", "9"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hcvu1_5.png", "TableImg_Bynkv_4.png"], "original_data_index": 5269, "original_sql": "SELECT T1.Total_disk_area, T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me the IDs of drivers, up to and including ID 4, excluding the IDs of school bus drivers up to ID 8?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ajf7p_12.png", "TableImg_5wt6e_5.png"], "original_data_index": 5268, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Could you give me a list of driver IDs that are not equal to 1 and are also greater than or equal to 9, considering both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9l3pm_12.png", "TableImg_44caa_5.png"], "original_data_index": 5266, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me the IDs of books that are not titled \"Cyberella\" and are written by \"Christopher Hinz\", or have more than 6 issues, but exclude any book IDs that are in publications with a Publication ID of 5 or less?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2], "data": [["6"], ["8"], ["9"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_Enbek_10.png", "TableImg_Yjwjw_7.png"], "original_data_index": 5267, "original_sql": "SELECT Book_ID FROM book WHERE Title != \"Cyberella\" AND Writer = \"Christopher Hinz\" OR \"Issues\" > 6.0 EXCEPT SELECT Book_ID FROM publication WHERE \"Publication_ID\" <= 5"} {"question": "Which aircraft IDs are not equal to 4 and also have an aircraft ID greater than 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0czh6_5.png", "TableImg_Jgdkc_4.png"], "original_data_index": 5273, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8 from the driver table and driver ID 9 from the school_bus table, combining the results and removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uxol1_12.png", "TableImg_835nr_5.png"], "original_data_index": 5270, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of aircraft IDs that are greater than 3 and also not equal to 2, considering the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Npl31_5.png", "TableImg_Fnr72_4.png"], "original_data_index": 5272, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 9, and also including driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jvjyk_12.png", "TableImg_5co5m_5.png"], "original_data_index": 5271, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Could you give me a list of driver IDs, including driver ID 5 from the driver table, and any driver IDs greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["5"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Upnu3_12.png", "TableImg_Nn9rn_5.png"], "original_data_index": 5274, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are not equal to 2 and are also equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2mndy_12.png", "TableImg_Ubrkw_5.png"], "original_data_index": 5275, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver has an ID of 3 and also drives a school bus, but is not driver number 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S3lvv_12.png", "TableImg_2z6py_5.png"], "original_data_index": 5276, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the highest club ID and the gender of coaches, grouped by start year, considering only clubs and coaches where either the gender is male, or the club name is not Gefle IF and the coach's name is James Wong, or the start year is 2011 or earlier, or the region is the UK, or the rank is 1 or less and the coach ID is 4 or greater, and then filtering these groups to only include those where either the club name is not Halmstads BK, or the coach's name is Joe Fabbri and the start year is before 2009, or the region is the USA, or the rank is less than 3, or the coach ID is 2 or less, or the gender is male?", "answer": {"columns": ["MAX(T1.Club_ID)", "Gender"], "index": [0, 1], "data": [["3", "M"], ["1", "M"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Ft7r2_6.png", "TableImg_6clr3_5.png"], "original_data_index": 5277, "original_sql": "SELECT MAX(T1.Club_ID), T2.Gender FROM club as T1 JOIN coach as T2 ON T1.Club_ID = T2.Club_ID WHERE Gender = \"M\" OR Club_name <> \"Gefle IF\" AND Coach_name = \"James Wong\" OR \"Start_year\" <= 2011 OR Region = \"UK\" OR \"Rank\" <= 1 AND \"Coach_ID\" >= 4 GROUP BY Start_year HAVING Club_name <> \"Halmstads BK\" OR Coach_name = \"Joe Fabbri\" AND Start_year < 2009 OR Region = \"USA\" OR Rank < 3 OR Coach_ID <= 2 OR Gender = \"M\""} {"question": "Which driver IDs are both not equal to 2 and less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_94aev_12.png", "TableImg_6bga4_5.png"], "original_data_index": 5280, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me the gender, occupation, highest residence value, votes, rank, sponsor name, and total player name count for players, combining two sets of results: first, those who are not sponsored by \"Winnipeg South\", are not ranked \"2nd\", or are not named \"Matt Schaubroeck\" and also have a player ID of 5 or less, live in Winnipeg, are not male, are not a \"Small Businessman\", and have a vote count other than 2353; and second, those who are not ranked \"3rd\" and live in Winnipeg, or are named \"Jean Luc Bouch\u00e9\" and are not a \"Product Consultant - MLCC\", or are not sponsored by \"Brandon\u2014Souris\" and are not female?", "answer": {"columns": ["Gender", "Occupation", "MAX(Residence)", "Votes", "Rank", "Sponsor_name", "SUM(Player_name)"], "index": [0, 1], "data": [["F", "Ministerial Assistant", "Winnipeg", "7190", "3rd", "Charleswood\u2014St. James\u2014Assiniboia", "0"], ["M", "Small Businessman", "Winnipeg", "14355", "1st", "Elmwood\u2014Transcona", "0"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_D4zom_14.png", "TableImg_Jy9wt_14.png"], "original_data_index": 5281, "original_sql": "SELECT Gender, Occupation, MAX(Residence), Votes, Rank, Sponsor_name, SUM(Player_name) FROM player WHERE Sponsor_name != \"Winnipeg South\" OR Rank <> \"2nd\" OR Player_name != \"Matt Schaubroeck\" AND \"Player_ID\" <= 5 AND Residence = \"Winnipeg\" AND Gender != \"M\" AND Occupation <> \"Small Businessman\" AND \"Votes\" != 2353 UNION SELECT Gender, Occupation, MAX(Residence), Votes, Rank, Sponsor_name, SUM(Player_name) FROM player WHERE Rank != \"3rd\" AND Residence = \"Winnipeg\" OR Player_name = \"Jean Luc Bouch\u00e9\" AND Occupation <> \"Product Consultant - MLCC\" OR Sponsor_name != \"Brandon\u2014Souris\" AND Gender != \"F\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 4, excluding those driver IDs that are also greater than 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_98c5y_12.png", "TableImg_Etqv0_5.png"], "original_data_index": 5282, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than 2, excluding any driver IDs that are also less than 9 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fpksl_12.png", "TableImg_9dwn9_5.png"], "original_data_index": 5283, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are less than 6, but exclude the driver ID 3 if it appears in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4t19i_12.png", "TableImg_Bl1w5_5.png"], "original_data_index": 5284, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me the total ID number and horsepower for car makers and cars, grouped by the car maker's full name, considering only cars with more than 4 cylinders or a 0-60 time of 18 seconds or more, and then filtering this further to only include groups where the number of cylinders is less than 6 or the year is after 1970 or the country isn't 1 or the MPG isn't 16 and the engine displacement is more than 140 or the maker isn't Opel and the weight is 2904, while also excluding cars with 105 horsepower?", "answer": {"columns": ["SUM(T1.Id)", "Horsepower"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1", "130"], ["3", "150"], ["6", "198"], ["7", "220"], ["13", "153"], ["9", "225"], ["5", "140"], ["23", "97"], ["22", "95"], ["12", "165"], ["8", "215"], ["14", "175"], ["15", "175"], ["16", "170"], ["17", "160"], ["18", "140"], ["19", "150"], ["20", "225"], ["2", "165"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Ddpgo_22.png", "TableImg_9y5vq_406.png"], "original_data_index": 5285, "original_sql": "SELECT SUM(T1.Id), T2.Horsepower FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE \"Cylinders\" > 4 AND Horsepower <> \"105\" OR \"Accelerate\" >= 18.0 GROUP BY FullName HAVING Cylinders < 6 AND Year > 1970 OR Country <> \"1\" OR MPG <> \"16\" AND Edispl > 140.0 OR Maker <> \"opel\" AND Weight = 2904"} {"question": "Can you give me a list of driver IDs that are less than 4 from the driver table, combined with a list of driver IDs that are less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nxsme_12.png", "TableImg_Gax64_5.png"], "original_data_index": 5286, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver IDs greater than or equal to 3 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_14z1q_12.png", "TableImg_Mc6hm_5.png"], "original_data_index": 5287, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs appear in the driver table, excluding driver ID 5, and also appear in the school_bus table as driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rn7v5_12.png", "TableImg_Rfh16_5.png"], "original_data_index": 5288, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs that are at least 1, excluding those driver IDs less than 4 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T8blt_12.png", "TableImg_Av2ja_5.png"], "original_data_index": 5278, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list the aircraft IDs that are greater than or equal to 5, excluding any aircraft IDs that are equal to 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Thujx_5.png", "TableImg_Xnlvj_4.png"], "original_data_index": 5279, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What template type codes, excluding \"PP\" and those with the description \"Book\", are not also template type codes used in templates with the code \"AD\"?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1], "data": [["CV"], ["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_R2ck1_5.png", "TableImg_9up98_20.png"], "original_data_index": 5289, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != \"PP\" AND Template_Type_Description != \"Book\" EXCEPT SELECT Template_Type_Code FROM Templates WHERE Template_Type_Code = \"AD\""} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are also equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_88780_12.png", "TableImg_4du7x_5.png"], "original_data_index": 5290, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs, excluding driver ID 2, are also driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4pmcd_12.png", "TableImg_1owiq_5.png"], "original_data_index": 5291, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of company IDs, including those from the company table where either the assets are less than 292.5 billion, the name isn't \"Industrial and Commercial Bank of China\", the company ID isn't 16 and the industry isn't \"Retailing\", the headquarters isn't in the Netherlands and the market value is greater than 227.6 billion, or the sales are not 145.9 billion, combined with company IDs from the employment table where the company ID is greater than or equal to 15 or the years working are greater than or equal to 2?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_J64h4_19.png", "TableImg_B890p_5.png"], "original_data_index": 5292, "original_sql": "SELECT Company_ID FROM company WHERE \"Assets_in_Billion\" < 292.5 OR Name != \"Industrial and Commercial Bank of China\" OR \"Company_ID\" <> 16.0 AND Industry <> \"Retailing\" OR Headquarters != \"Netherlands\" AND \"Market_Value_in_Billion\" > 227.6 OR \"Sales_in_Billion\" != 145.9 UNION SELECT Company_ID FROM employment WHERE \"Company_ID\" >= 15 OR \"Year_working\" >= 2"} {"question": "Could you list the aircraft IDs that are less than 4 when grouped in the aircraft table, but also less than or equal to 3 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_70dve_5.png", "TableImg_Zjcfr_4.png"], "original_data_index": 5295, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs, excluding driver ID 4, are also driver IDs less than or equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vpgit_12.png", "TableImg_2pn8r_5.png"], "original_data_index": 5296, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of all Driver IDs, excluding the ID 10, that appear in either the driver table or the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_06kkv_12.png", "TableImg_F00xr_5.png"], "original_data_index": 5294, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list all the Big Silver values from the match results, including those where the rank is less than 5, the Club ID is less than 3, the Gold is 20 or less, or the Points are greater than 89, and also including those where the Club ID is 5 or the Bronze is 7 or more?", "answer": {"columns": ["Big_Silver"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["14"], ["11"], ["9"], ["12"], ["7"], ["6"], ["14"], ["11"], ["9"], ["12"], ["7"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Qjfvq_6.png", "TableImg_Fgo5t_6.png"], "original_data_index": 5293, "original_sql": "SELECT Big_Silver FROM match_result WHERE \"Rank\" < 5 OR \"Club_ID\" < 3 OR \"Gold\" <= 20 OR \"Points\" > 89 UNION ALL SELECT Big_Silver FROM match_result WHERE \"Club_ID\" = 5 OR \"Bronze\" >= 7"} {"question": "Which driver IDs are less than 8 and also equal to 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6hfq3_12.png", "TableImg_I1qus_5.png"], "original_data_index": 5298, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs, excluding 10, are also driver IDs greater than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cw6pz_12.png", "TableImg_99nfz_5.png"], "original_data_index": 5300, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the aircraft IDs that are less than 5 from the aircraft table, combined with the aircraft IDs that are greater than 2 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C6vno_4.png"], "original_data_index": 5299, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of document IDs from the drafts table, including those where the draft details are not \"w\", and also including those where the draft details are not \"v\" and either the document ID is greater than or equal to 12 or the draft number is not 10?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["1"], ["1"], ["2"], ["2"], ["4"], ["7"], ["10"], ["12"], ["12"], ["13"], ["14"], ["17"], ["20"], ["23"], ["1"], ["1"], ["2"], ["2"], ["4"], ["10"], ["12"], ["12"], ["13"], ["13"], ["14"], ["17"], ["20"], ["23"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Ykwbx_15.png", "TableImg_Cfitz_15.png"], "original_data_index": 5297, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details != \"w\" UNION ALL SELECT document_id FROM Document_Drafts WHERE draft_details <> \"v\" AND \"document_id\" >= 12 OR \"draft_number\" != 10"} {"question": "What is the highest member ID of members who are not from Fort Campbell, Kentucky and are at level 6, excluding the highest member ID from purchases made in 2018?", "answer": {"columns": ["MAX(Member_ID)"], "index": [0], "data": [["9"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_W03nt_10.png", "TableImg_I9gyn_8.png"], "original_data_index": 5301, "original_sql": "SELECT MAX(Member_ID) FROM member WHERE Hometown <> \"Fort Campbell, Kentucky\" AND \"Level\" = 6 EXCEPT SELECT MAX(Member_ID) FROM purchase WHERE Year = \"2018\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 9 and not equal to 7, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fvgf2_12.png", "TableImg_Tl1sm_5.png"], "original_data_index": 5305, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you show me the salary, employee ID, and name of all employees whose salary is not 256481, excluding those employees named Larry West with a salary greater than 152013, or those with an employee ID not equal to 573284895?", "answer": {"columns": ["salary", "eid", "name"], "index": [0], "data": [["114323", "573284895", "Eric Cooper"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Fbdwd_31.png", "TableImg_3savr_31.png"], "original_data_index": 5302, "original_sql": "SELECT salary, eid, name FROM employee WHERE \"salary\" <> 256481 EXCEPT SELECT salary, eid, name FROM employee WHERE name = \"Larry West\" AND \"salary\" > 152013 OR \"eid\" != 573284895"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not 12 with those from the school_bus table that are less than 4, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0kcju_12.png", "TableImg_Knu6i_5.png"], "original_data_index": 5304, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What is the total of all car maker IDs from car_makers where the country code is 6, or where the ID is less than or equal to 18 and the maker is not peugeaut, combined with the total of all car IDs from cars_data where the MPG is not 16, and the accelerate value is 15.0, and the ID is not 3, and the year is before 1974, or the engine displacement is 140.0?", "answer": {"columns": ["SUM(Id)"], "index": [0, 1], "data": [["167"], ["3769"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Lbmj6_22.png", "TableImg_R7pvr_406.png"], "original_data_index": 5303, "original_sql": "SELECT SUM(Id) FROM car_makers WHERE Country = \"6\" OR \"Id\" <= 18 AND Maker <> \"peugeaut\" UNION ALL SELECT SUM(Id) FROM cars_data WHERE MPG != \"16\" AND \"Accelerate\" = 15.0 AND \"Id\" != 3 AND \"Year\" < 1974 OR \"Edispl\" = 140.0"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 9 and not equal to 7, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ltbat_12.png", "TableImg_B4i9y_5.png"], "original_data_index": 5308, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 5, and also list aircraft ID 2 from the airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lothj_5.png", "TableImg_Uq6b5_4.png"], "original_data_index": 5309, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 3, excluding any driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dx9wt_12.png", "TableImg_1ast9_5.png"], "original_data_index": 5310, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are less than 11 and also greater than or equal to 3, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H62ab_12.png", "TableImg_Mm95n_5.png"], "original_data_index": 5311, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs that are greater than or equal to 1, excluding those aircraft IDs that are less than 5 and are present in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fpgl1_5.png", "TableImg_25hmr_4.png"], "original_data_index": 5312, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you list all the aircraft IDs, combining those from the aircraft table that are greater than or equal to 1 with those from the airport_aircraft table that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_65ajz_5.png", "TableImg_L8v3k_4.png"], "original_data_index": 5313, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 7, and those from the school bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z3xcy_12.png", "TableImg_Xn494_5.png"], "original_data_index": 5314, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of all driver IDs, combining those from the driver table excluding ID 4 with those from the school bus table excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9s20e_12.png", "TableImg_Clgoy_5.png"], "original_data_index": 5315, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me the driver ID that appears exactly once, where the driver ID is 8 in the driver table, but is not a driver ID less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Apbe9_12.png", "TableImg_G731h_5.png"], "original_data_index": 5316, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are both not equal to 1 and also less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Arght_12.png", "TableImg_Novvw_5.png"], "original_data_index": 5306, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Could you list the address IDs and details for all addresses with an ID of 1 or greater, and also include the address IDs and details for addresses that don't have \"IT\" as their details and have an ID less than 5?", "answer": {"columns": ["address_id", "address_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1", "MX"], ["2", "DE"], ["3", "ES"], ["4", "ES"], ["5", "IE"], ["6", "US"], ["7", "PT"], ["8", "IE"], ["9", "MX"], ["1", "MX"], ["2", "DE"], ["3", "ES"], ["4", "ES"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Opht3_10.png", "TableImg_Wrzj4_10.png"], "original_data_index": 5319, "original_sql": "SELECT address_id, address_details FROM Addresses WHERE \"address_id\" >= 1 UNION ALL SELECT address_id, address_details FROM Addresses WHERE address_details <> \"IT\" AND \"address_id\" < 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 12, and those from the school bus table with driver IDs of 3 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Racbd_12.png", "TableImg_Tgdfn_5.png"], "original_data_index": 5320, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the altitude, airport ID, velocity, and flight number for flights where the altitude is at least 3650 or the flight number is \"M2-F1 #61\" and the company ID is greater than 4 and the ID is greater than 8, but exclude any flights where the date is not \"September 3, 1963\" or the pilot is not \"Thompson\" and the airport ID is less than 2?", "answer": {"columns": ["Altitude", "airport_id", "Velocity", "Vehicle_Flight_number"], "index": [0], "data": [["3650", "2", "240", "M2-F1 #6"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Vnght_13.png", "TableImg_N9kla_13.png"], "original_data_index": 5321, "original_sql": "SELECT Altitude, airport_id, Velocity, Vehicle_Flight_number FROM flight WHERE \"Altitude\" >= 3650.0 OR Vehicle_Flight_number = \"M2-F1 #61\" AND \"company_id\" > 4 AND \"id\" > 8 EXCEPT SELECT Altitude, airport_id, Velocity, Vehicle_Flight_number FROM flight WHERE Date <> \"September 3, 1963\" OR Pilot <> \"Thompson\" AND \"airport_id\" < 2"} {"question": "Can you list all aircraft IDs that are less than 5 from the aircraft table, and also list all aircraft IDs that are less than or equal to 2 from the airport_aircraft table, combining the two lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3qfac_5.png", "TableImg_Fq2qm_4.png"], "original_data_index": 5322, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs that are less than 2, excluding any driver IDs that are equal to 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3tao2_12.png", "TableImg_Kwcvm_5.png"], "original_data_index": 5323, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 3, that appear in the aircraft table but not in the airport_aircraft table, also excluding aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Abax0_5.png", "TableImg_Fqqgf_4.png"], "original_data_index": 5324, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What is the longest paragraph text and its document ID, excluding paragraph ID 241, combined with the longest paragraph text and document ID where the paragraph text is not \"Senegal\"?", "answer": {"columns": ["MAX(Paragraph_Text)", "Document_ID"], "index": [0], "data": [["Ukraine", "2394"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_3c0f7_15.png", "TableImg_Qwfz6_15.png"], "original_data_index": 5325, "original_sql": "SELECT MAX(Paragraph_Text), Document_ID FROM Paragraphs WHERE \"Paragraph_ID\" != 241 UNION SELECT MAX(Paragraph_Text), Document_ID FROM Paragraphs WHERE Paragraph_Text <> \"Senegal\""} {"question": "What environmental allergies, excluding anchovies, are not also animal allergies, excluding eggs?", "answer": {"columns": ["AllergyType", "Allergy"], "index": [0, 1, 2], "data": [["environmental", "Grass Pollen"], ["environmental", "Ragweed"], ["environmental", "Tree Pollen"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_E1kwv_14.png", "TableImg_Rj7jj_14.png"], "original_data_index": 5326, "original_sql": "SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy != \"Anchovies\" AND AllergyType = \"environmental\" EXCEPT SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy != \"Eggs\" AND AllergyType = \"animal\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 10 and also greater than or equal to 3, considering only the unique driver IDs from the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mfya4_12.png", "TableImg_Gtp8u_5.png"], "original_data_index": 5327, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the hometown, name, level, and card number for all members, including those who either don't live in Red Jacket, West Virginia and have a Member ID less than 6, or have a card number that isn't FS10, along with all members who either don't have a Member ID of 8, or have a level that isn't 6 and a card number that isn't LCB7?", "answer": {"columns": ["Hometown", "Name", "Level", "Card_Number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["Collierville, Tennessee", "Jeremy Jarmon", "6", "LE99"], ["Louisville, Kentucky", "Myron Pryor", "6", "LT98"], ["Louisville, Kentucky", "Corey Peters", "6", "RT91"], ["Columbia, South Carolina", "Ventrell Jenkins", "6", "RE95"], ["LaGrange, Georgia", "Braxton Kelley", "6", "OLB56"], ["Fort Campbell, Kentucky", "Micah Johnson", "4", "MLB4"], ["Jacksonville, Florida", "Johnny Williams", "6", "SLB51"], ["Hiram, Georgia", "Trevard Lindley", "6", "RCB32"], ["Red Jacket, West Virginia", "David Jones", "6", "LCB7"], ["Collierville, Tennessee", "Jeremy Jarmon", "6", "LE99"], ["Louisville, Kentucky", "Myron Pryor", "6", "LT98"], ["Louisville, Kentucky", "Corey Peters", "6", "RT91"], ["Columbia, South Carolina", "Ventrell Jenkins", "6", "RE95"], ["LaGrange, Georgia", "Braxton Kelley", "6", "OLB56"], ["Fort Campbell, Kentucky", "Micah Johnson", "4", "MLB4"], ["Jacksonville, Florida", "Johnny Williams", "6", "SLB51"], ["Red Jacket, West Virginia", "David Jones", "6", "LCB7"], ["Simpsonville, South Carolina", "Matt Lentz", "2", "FS10"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_Nm89y_10.png", "TableImg_Aetik_10.png"], "original_data_index": 5328, "original_sql": "SELECT Hometown, Name, Level, Card_Number FROM member WHERE Hometown <> \"Red Jacket, West Virginia\" AND \"Member_ID\" < 6 OR Card_Number <> \"FS10\" UNION ALL SELECT Hometown, Name, Level, Card_Number FROM member WHERE \"Member_ID\" <> 8 OR \"Level\" != 6 AND Card_Number != \"LCB7\""} {"question": "Can you list the aircraft IDs that are greater than or equal to 4 from the aircraft table, and also list the aircraft IDs that are less than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fu3t8_5.png", "TableImg_K4dim_4.png"], "original_data_index": 5318, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 6 or greater, combined with a list of driver IDs from the school bus table where the driver ID is exactly 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_007ra_12.png", "TableImg_Kra7v_5.png"], "original_data_index": 5317, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 2 from the driver table, combined with a list of driver IDs that are greater than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hgqql_12.png", "TableImg_9i5el_5.png"], "original_data_index": 5329, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are not equal to 3 and also not equal to 7 in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pblla_12.png", "TableImg_8m0q6_5.png"], "original_data_index": 5332, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What is the total distance of aircraft flights where either the distance is at least 4010 and the aircraft ID is 3, or the aircraft name is Boeing 777-300, combined with the total distance of flights where either the origin is not Los Angeles and the flight number is less than 13, or the destination is Sydney and the price is less than 220.98, or the aircraft ID is less than 7 and the arrival date is 04/12/2005 03:18 and the departure date is 04/12/2005 08:32?", "answer": {"columns": ["SUM(distance)"], "index": [0, 1], "data": [[""], ["13561.0"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_K342k_16.png", "TableImg_Zppry_10.png"], "original_data_index": 5330, "original_sql": "SELECT SUM(distance) FROM aircraft WHERE \"distance\" >= 4010 AND \"aid\" = 3 OR name = \"Boeing 777-300\" UNION SELECT SUM(distance) FROM flight WHERE origin != \"Los Angeles\" AND \"flno\" < 13 OR destination = \"Sydney\" AND \"price\" < 220.98 OR \"aid\" < 7 AND arrival_date = \"04/12/2005 03:18\" AND departure_date = \"04/12/2005 08:32\""} {"question": "Can you give me the total of all birth dates, the amount outstanding, the total of all customer sign-up dates, the latest first name, the number of last names, the earliest customer address ID, the email address, the earliest phone number, and the earliest customer status code for all customers, combining results from two groups: first, those who are bad customers with an amount outstanding less than 2099, or whose first name is not Amya and last name is not Trantow, or whose customer address ID is 1, or whose customer ID is less than 10 and birth date is July 9th, 1993, around 11:11 AM, or whose phone number is not (729)396-4354x3576, or whose email address is not mariela28@example.org, or whose cell phone number is not 577-584-4864; and second, those whose birth date is not February 7th, 1993, around 5:40 AM, or whose amount outstanding is not 9447 and sign-up date is not May 13th, 2016, around 7:38 AM and phone number is not (662)490-3108, or whose cell phone number is 578-518-4785x612 and customer address ID is 10 or greater?", "answer": {"columns": ["SUM(date_of_birth)", "amount_outstanding", "SUM(date_became_customer)", "MAX(first_name)", "COUNT(last_name)", "MIN(customer_address_id)", "email_address", "MIN(phone_number)", "MIN(customer_status_code)"], "index": [0], "data": [["29912", "255", "30241", "Sigrid", "15", "1", "everette.goyette@example.org", "(297)122-0086", "Bad Customer"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_0nnsm_15.png", "TableImg_Wb06f_15.png"], "original_data_index": 5331, "original_sql": "SELECT SUM(date_of_birth), amount_outstanding, SUM(date_became_customer), MAX(first_name), COUNT(last_name), MIN(customer_address_id), email_address, MIN(phone_number), MIN(customer_status_code) FROM Customers WHERE customer_status_code = \"Bad Customer\" AND \"amount_outstanding\" < 2099.0 OR first_name != \"Amya\" AND last_name != \"Trantow\" OR \"customer_address_id\" = 1 OR \"customer_id\" < 10 AND date_of_birth = \"1993-07-09 11:11:36\" OR phone_number <> \"(729)396-4354x3576\" OR email_address != \"mariela28@example.org\" OR cell_mobile_phone_number != \"577-584-4864\" UNION SELECT SUM(date_of_birth), amount_outstanding, SUM(date_became_customer), MAX(first_name), COUNT(last_name), MIN(customer_address_id), email_address, MIN(phone_number), MIN(customer_status_code) FROM Customers WHERE date_of_birth <> \"1993-02-07 05:40:26\" OR \"amount_outstanding\" != 9447.0 AND date_became_customer != \"2016-05-13 07:38:23\" AND phone_number <> \"(662)490-3108\" OR cell_mobile_phone_number = \"578-518-4785x612\" AND \"customer_address_id\" >= 10"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 10 and also not equal to 9, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fsy6e_12.png", "TableImg_El8vw_5.png"], "original_data_index": 5335, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the aircraft IDs that are less than 3, excluding those aircraft IDs from the airport that are greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Og9iu_5.png", "TableImg_1hi8p_4.png"], "original_data_index": 5334, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs that are greater than 9, excluding those driver IDs that are less than or equal to 3 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Famy5_12.png", "TableImg_Ajc3t_5.png"], "original_data_index": 5336, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the aircraft IDs, where each ID is greater than or equal to 1, excluding any aircraft IDs that are equal to 2 and also appear in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lqzkb_5.png", "TableImg_Xhnzb_4.png"], "original_data_index": 5333, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 1, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ni50l_5.png", "TableImg_28fxv_4.png"], "original_data_index": 5338, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 9, and those from the school_bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R5gys_12.png", "TableImg_Vs25a_5.png"], "original_data_index": 5337, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, where each ID is 6 or greater, but only include the IDs that are not also in a list of school bus driver IDs that are 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fq2wa_12.png", "TableImg_Kjt20_5.png"], "original_data_index": 5340, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list all aircraft IDs, making sure to include those from the aircraft table where the ID is not 1, and also those from the airport_aircraft table where the ID is not 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tgt6l_5.png", "TableImg_Rppyv_4.png"], "original_data_index": 5339, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you list the aircraft IDs that are greater than 3, and also list the aircraft IDs from the airport aircraft that are less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pecjc_5.png", "TableImg_56b8d_4.png"], "original_data_index": 5342, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 6, excluding any driver IDs that are less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8njzl_12.png", "TableImg_A6yag_5.png"], "original_data_index": 5343, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of company IDs, including those from companies with sales of at least 433.5 billion or those in the oil and gas industry, as well as company IDs from the employment table where the People ID is not 4?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["4"], ["7"], ["10"], ["11"], ["12"], ["15"], ["16"], ["18"], ["11"], ["13"], ["15"], ["17"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Rw8p0_19.png", "TableImg_N3ctk_5.png"], "original_data_index": 5341, "original_sql": "SELECT Company_ID FROM company WHERE \"Sales_in_Billion\" >= 433.5 OR Industry = \"Oil and gas\" UNION ALL SELECT Company_ID FROM employment WHERE \"People_ID\" <> 4"} {"question": "Can you give me a list of all Driver IDs, including those from the driver table where the ID is 12 or greater, and those from the school_bus table where the ID is not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Noy58_12.png", "TableImg_B7t1d_5.png"], "original_data_index": 5344, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What aircraft IDs are both greater than or equal to 2 in the aircraft table and not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mawvd_5.png", "TableImg_Fn5cg_4.png"], "original_data_index": 5346, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list all the address details that are not \"US\", or where the address ID is 2, and also list all address details that are not \"DE\"?", "answer": {"columns": ["address_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["IT"], ["MX"], ["DE"], ["ES"], ["ES"], ["IE"], ["PT"], ["IE"], ["MX"], ["IT"], ["MX"], ["ES"], ["ES"], ["IE"], ["US"], ["PT"], ["IE"], ["MX"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_5gi7g_10.png", "TableImg_0vk1h_10.png"], "original_data_index": 5347, "original_sql": "SELECT address_details FROM Addresses WHERE address_details <> \"US\" OR \"address_id\" = 2 UNION ALL SELECT address_details FROM Addresses WHERE address_details <> \"DE\""} {"question": "Can you give me a list showing the gender, coach name, and club ID for all coaches, including those with a coach ID greater than 5 and a club ID of 1 or higher, as well as those with a coach ID less than 5?", "answer": {"columns": ["Gender", "Coach_name", "Club_ID"], "index": [0, 1, 2, 3], "data": [["F", "Joe Fabbri", "1"], ["M", "James Wong", "3"], ["M", "Jameson Tomas", "1"], ["M", "Robert Chen", "3"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_As5yt_5.png", "TableImg_735u7_5.png"], "original_data_index": 5345, "original_sql": "SELECT Gender, Coach_name, Club_ID FROM coach WHERE \"Coach_ID\" > 5 AND \"Club_ID\" >= 1 UNION SELECT Gender, Coach_name, Club_ID FROM coach WHERE \"Coach_ID\" < 5"} {"question": "What are the average total pounds, member IDs, earliest branch IDs, and latest years for purchases made at branch 2, excluding those averages, IDs, branch IDs, and years from purchases where the total pounds are less than or equal to 343.76 and the member ID is less than 3, or the year isn't 2018, or the branch ID isn't 2?", "answer": {"columns": ["AVG(Total_pounds)", "Member_ID", "MIN(Branch_ID)", "MAX(Year)"], "index": [0], "data": [["402.1", "2", "2", "2018"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_Yytjt_8.png", "TableImg_Osf34_8.png"], "original_data_index": 5348, "original_sql": "SELECT AVG(Total_pounds), Member_ID, MIN(Branch_ID), MAX(Year) FROM purchase WHERE Branch_ID = \"2\" EXCEPT SELECT AVG(Total_pounds), Member_ID, MIN(Branch_ID), MAX(Year) FROM purchase WHERE \"Total_pounds\" <= 343.76 AND \"Member_ID\" < 3 OR Year != \"2018\" OR Branch_ID <> \"2\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 11, and those from the school_bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jcrao_12.png", "TableImg_Ox9xk_5.png"], "original_data_index": 5349, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding those driver IDs that are also less than or equal to 7 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ua5nm_12.png", "TableImg_Zafs8_5.png"], "original_data_index": 5351, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the aircraft IDs that are greater than 4 from the aircraft table, and combine that with a list of aircraft IDs that are not equal to 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9rdnl_5.png", "TableImg_60sdz_4.png"], "original_data_index": 5350, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me all the birth dates from the people table, including those where the name is not Aleksey Ostapenko, or the height is less than or equal to 207.0 and the nationality is not Russia, or the birth date is not April 17, 1987 and the People_ID is not 4, combined with all birth dates where the People_ID is not 1?", "answer": {"columns": ["Birth_Date"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["April 17, 1987"], ["August 16, 1982"], ["August 8, 1986"], ["February 8, 1981"], ["January 22, 1987"], ["July 14, 1983"], ["May 26, 1986"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_540ix_7.png", "TableImg_Wlhpx_7.png"], "original_data_index": 5352, "original_sql": "SELECT Birth_Date FROM people WHERE Name <> \"Aleksey Ostapenko\" OR \"Height\" <= 207.0 AND Nationality != \"Russia\" OR Birth_Date != \"April 17, 1987\" AND \"People_ID\" <> 4 UNION SELECT Birth_Date FROM people WHERE \"People_ID\" <> 1"} {"question": "Which driver IDs, excluding driver ID 6, are not also driver ID 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dcog9_12.png", "TableImg_5t9jn_5.png"], "original_data_index": 5355, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What is the smallest Template ID from the Documents table, excluding those with the description \"k\", combined with the smallest Template ID from the Templates table, considering entries where the Template Details are not empty and either the Version Number is not 2, the Template ID is greater than or equal to 9, or the Date Effective From is not \"2002-08-25 13:26:23\"?", "answer": {"columns": ["MIN(Template_ID)"], "index": [0, 1], "data": [["1"], ["0"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_7kgrn_15.png", "TableImg_Ics6b_20.png"], "original_data_index": 5353, "original_sql": "SELECT MIN(Template_ID) FROM Documents WHERE Document_Description != \"k\" UNION ALL SELECT MIN(Template_ID) FROM Templates WHERE Template_Details <> \"\" AND \"Version_Number\" <> 2 OR \"Template_ID\" >= 9 OR Date_Effective_From <> \"2002-08-25 13:26:23\""} {"question": "Can you give me the rank, total gender count, number of coaches, coach name, and average club ID for coaches where either the club ID is greater than 3 and the gender is male, or the rank is greater than 2, combined with the same information for coaches where the rank is greater than 1 and the coach ID is less than 1, or the club ID is greater than or equal to 3, or the coach name is not Jameson Tomas and the gender is male?", "answer": {"columns": ["Rank", "SUM(Gender)", "COUNT(Coach_ID)", "Coach_name", "AVG(Club_ID)"], "index": [0], "data": [["3", "0", "3", "Robert Chen", "2.3333333333"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Jqa0o_5.png", "TableImg_Xeom2_5.png"], "original_data_index": 5354, "original_sql": "SELECT Rank, SUM(Gender), COUNT(Coach_ID), Coach_name, AVG(Club_ID) FROM coach WHERE \"Club_ID\" > 3 AND Gender = \"M\" OR \"Rank\" > 2 UNION SELECT Rank, SUM(Gender), COUNT(Coach_ID), Coach_name, AVG(Club_ID) FROM coach WHERE \"Rank\" > 1 AND \"Coach_ID\" < 1 OR \"Club_ID\" >= 3 OR Coach_name != \"Jameson Tomas\" AND Gender = \"M\""} {"question": "Can you show me the Election ID, District, and earliest First Elected year for elections where either the Party is at least 2, or the Delegate is someone other than Gail H. Bates and the District is no more than 3, or the Committee is not Environmental Matters, or the First Elected year is before 2003 and the Election ID is not 1, combined with the Election ID, District, and earliest First Elected year for elections where the Party is no more than 2?", "answer": {"columns": ["Election_ID", "District", "MIN(First_Elected)"], "index": [0, 1], "data": [["4", "3", "1994"], ["4", "3", "1994"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_12294_8.png", "TableImg_6551i_8.png"], "original_data_index": 5356, "original_sql": "SELECT Election_ID, District, MIN(First_Elected) FROM election WHERE \"Party\" >= 2 OR Delegate != \"Bates, Gail H. Gail H. Bates\" AND \"District\" <= 3 OR Committee <> \"Environmental Matters\" OR \"First_Elected\" < 2003.0 AND \"Election_ID\" <> 1 UNION ALL SELECT Election_ID, District, MIN(First_Elected) FROM election WHERE \"Party\" <= 2"} {"question": "Can you give me a list of driver IDs that are less than 5 from the driver table, combined with a list of driver IDs that are less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rljb7_12.png", "TableImg_Jp15i_5.png"], "original_data_index": 5357, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs, excluding driver ID 4, are also driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gl529_12.png", "TableImg_7n00u_5.png"], "original_data_index": 5359, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of coach names, including those with a Coach ID greater than 1 or a rank less than 3, and also those with a Coach ID greater than 4 or a Club ID less than 1 who are male, have a rank less than 2, and are not named Joe Fabbri?", "answer": {"columns": ["Coach_name"], "index": [0, 1, 2, 3, 4, 5], "data": [["Jameson Tomas"], ["Joe Fabbri"], ["Robert Chen"], ["James Wong"], ["Smith Brown"], ["Smith Brown"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Tk9tz_5.png", "TableImg_X4knk_5.png"], "original_data_index": 5358, "original_sql": "SELECT Coach_name FROM coach WHERE \"Coach_ID\" > 1 OR \"Rank\" < 3 UNION ALL SELECT Coach_name FROM coach WHERE \"Coach_ID\" > 4 OR \"Club_ID\" < 1 AND \"Rank\" < 2 AND Gender = \"M\" AND Coach_name != \"Joe Fabbri\""} {"question": "Could you give me a list of document IDs from the Documents_Mailed table where either the mailed_to_address_id is less than 2, or the mailing date isn't April 1st, 1977 at 5:03 PM and the document ID is 14, combined with a list of document IDs where the mailing date is March 20th, 2007 at 5:22 AM?", "answer": {"columns": ["document_id"], "index": [0, 1, 2], "data": [["12"], ["14"], ["24"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_W7xlf_14.png", "TableImg_Bdx5x_14.png"], "original_data_index": 5361, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" < 2 OR mailing_date != \"1977-04-01 17:03:50\" AND \"document_id\" = 14 UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date = \"2007-03-20 05:22:01\""} {"question": "Can you give me the names and IDs of clubs that either don't have the description \"Play pen and paper games on campus.\", or don't have an ID of 2, or are named \"Hopkins Student Enterprises\", but only if they also have an ID less than or equal to 1, are named \"Bootup Baltimore\", and don't have the description \"Venture capital fund for student business.\" or are located in \"HHH\"?", "answer": {"columns": ["ClubName", "ClubID"], "index": [0, 1], "data": [["Bootup Baltimore", "1"], ["Pen and Paper Gaming", "3"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Gwdrz_4.png", "TableImg_R7lht_4.png"], "original_data_index": 5360, "original_sql": "SELECT ClubName, ClubID FROM Club WHERE ClubDesc != \"Play pen and paper games on campus.\" OR \"ClubID\" <> 2 OR ClubName = \"Hopkins Student Enterprises\" INTERSECT SELECT ClubName, ClubID FROM Club WHERE \"ClubID\" <= 1 AND ClubName = \"Bootup Baltimore\" AND ClubDesc <> \"Venture capital fund for student business.\" OR ClubLocation = \"HHH\""} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is greater than 3, combined with a list of driver IDs from the school_bus table where the driver ID is greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N1ua0_12.png", "TableImg_Rbkc0_5.png"], "original_data_index": 5365, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of district IDs, combining those from districts that aren't named \"Chakwal District,\" don't have a city population of 530438, have a district ID of 13 or greater, or aren't headquartered in \"Gujranwala City,\" or have a city area less than 22, with district IDs from stores that don't have a store ID of 4?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["11"], ["13"], ["14"], ["15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Y8msp_15.png", "TableImg_Unr3a_5.png"], "original_data_index": 5363, "original_sql": "SELECT District_ID FROM district WHERE District_name <> \"Chakwal District\" AND \"City_Population\" != 530438.0 AND \"District_ID\" >= 13 AND Headquartered_City <> \"Gujranwala City\" OR \"City_Area\" < 22.0 UNION SELECT District_ID FROM store_district WHERE \"Store_ID\" != 4"} {"question": "Which driver IDs are not equal to 12 and also not equal to 10, considering both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ztdbq_12.png", "TableImg_Wyndn_5.png"], "original_data_index": 5364, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you show me the source user ID, target user ID, and trust values from the trust table, including entries where the source user ID is not 2 or the trust value is not 10, along with all entries where the trust value is less than 6?", "answer": {"columns": ["source_u_id", "target_u_id", "trust"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1", "2", "10"], ["1", "3", "6"], ["2", "4", "8"], ["3", "6", "10"], ["7", "2", "3"], ["7", "5", "2"], ["7", "3", "4"], ["6", "2", "1"], ["1", "5", "7"], ["7", "2", "3"], ["7", "5", "2"], ["7", "3", "4"], ["6", "2", "1"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_27tk1_9.png", "TableImg_Ylt2d_9.png"], "original_data_index": 5362, "original_sql": "SELECT source_u_id, target_u_id, trust FROM trust WHERE \"source_u_id\" <> 2 OR \"trust\" <> 10 UNION ALL SELECT source_u_id, target_u_id, trust FROM trust WHERE \"trust\" < 6"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 7, and those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7j96s_12.png", "TableImg_7cafr_5.png"], "original_data_index": 5368, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the average country name for each continent, considering only countries with a CountryId of 13 or less, combined with the average country name for each continent, considering all countries except the one with CountryId 4?", "answer": {"columns": ["Continent", "AVG(CountryName)"], "index": [0, 1], "data": [["1", "0"], ["1", "0"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_Wa90m_15.png", "TableImg_Gcezm_15.png"], "original_data_index": 5369, "original_sql": "SELECT Continent, AVG(CountryName) FROM countries WHERE \"CountryId\" <= 13 UNION ALL SELECT Continent, AVG(CountryName) FROM countries WHERE \"CountryId\" <> 4"} {"question": "Can you give me a list of first names from the student records, including anyone who either doesn't live in PIT and has advisor 7134, or whose first name isn't Mark and is younger than 20, or whose last name isn't Jones, along with anyone whose major is 100 or higher, or isn't female, or has a student ID less than 1002, or has an advisor other than 8721 and a first name of Jun, or doesn't live in LOS and is older than 27?", "answer": {"columns": ["Fname"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65], "data": [["Linda"], ["Tracy"], ["Dinesh"], ["Paul"], ["Andy"], ["Lisa"], ["Jandy"], ["Eric"], ["Derek"], ["David"], ["Steven"], ["Charles"], ["Susan"], ["Mark"], ["Bruce"], ["Michael"], ["Arthur"], ["Ian"], ["George"], ["Michael"], ["David"], ["Stacy"], ["Mark"], ["Eric"], ["Paul"], ["Eric"], ["Jun"], ["Lisa"], ["Sarah"], ["Eric"], ["William"], ["Eric"], ["Sarah"], ["Linda"], ["Tracy"], ["Shiela"], ["Dinesh"], ["Paul"], ["Andy"], ["Lisa"], ["Jandy"], ["Eric"], ["Derek"], ["David"], ["Steven"], ["Charles"], ["Susan"], ["Mark"], ["Bruce"], ["Michael"], ["Arthur"], ["Ian"], ["George"], ["Michael"], ["David"], ["Stacy"], ["Mark"], ["Eric"], ["Paul"], ["Eric"], ["Jun"], ["Lisa"], ["Sarah"], ["Eric"], ["William"], ["Eric"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_G2a0f_34.png", "TableImg_9dypp_34.png"], "original_data_index": 5370, "original_sql": "SELECT Fname FROM Student WHERE city_code <> \"PIT\" AND \"Advisor\" = 7134 OR Fname <> \"Mark\" AND \"Age\" < 20 OR LName != \"Jones\" UNION ALL SELECT Fname FROM Student WHERE \"Major\" >= 100 OR Sex <> \"F\" OR \"StuID\" < 1002 OR \"Advisor\" != 8721 AND Fname = \"Jun\" OR city_code != \"LOS\" AND \"Age\" > 27"} {"question": "What are the role descriptions and codes for roles that are not 'Editor', excluding those that are also not 'Photo'?", "answer": {"columns": ["role_description", "role_code"], "index": [0], "data": [["Photo", "PT"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_6dunm_4.png", "TableImg_8ivwx_4.png"], "original_data_index": 5371, "original_sql": "SELECT role_description, role_code FROM Roles WHERE role_description <> \"Editor\" EXCEPT SELECT role_description, role_code FROM Roles WHERE role_description <> \"Photo\""} {"question": "Which driver IDs are both not equal to 7 in the driver table and greater than 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bv0l2_12.png", "TableImg_Zl6hc_5.png"], "original_data_index": 5372, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the lowest rank in the match results where the points are 168, the small silver is 6 or less, the gold is less than 12, the club ID is greater than 1, or the bronze is 10 or less, or the big silver is not 11, combined with the lowest rank of all players excluding player ID 5?", "answer": {"columns": ["MIN(Rank)"], "index": [0, 1], "data": [["1"], ["1st"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_36v6v_6.png", "TableImg_Of7fp_14.png"], "original_data_index": 5373, "original_sql": "SELECT MIN(Rank) FROM match_result WHERE \"Points\" = 168 OR \"Small_Silver\" <= 6 OR \"Gold\" < 12 OR \"Club_ID\" > 1 OR \"Bronze\" <= 10 OR \"Big_Silver\" != 11 UNION ALL SELECT MIN(Rank) FROM player WHERE \"Player_ID\" <> 5"} {"question": "Can you list all the aircraft IDs, excluding ID 4, from the aircraft table, and combine that with a list of aircraft IDs greater than or equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sz4tf_5.png", "TableImg_Gubjz_4.png"], "original_data_index": 5367, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you list all aircraft IDs, excluding aircraft ID 5, and also list all aircraft IDs from the airport aircraft table that are greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B5r0i_5.png", "TableImg_2pyyk_4.png"], "original_data_index": 5366, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver ID 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T8vd2_12.png", "TableImg_23690_5.png"], "original_data_index": 5374, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the Aircraft IDs that appear exactly as '4' in the aircraft table, but are not Aircraft IDs less than or equal to '3' in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ky9d5_5.png", "TableImg_85hqv_4.png"], "original_data_index": 5375, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me the IDs of drivers, where each ID is less than or equal to 4, excluding the driver ID 4 if it's also present in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G44i0_12.png", "TableImg_Vuflc_5.png"], "original_data_index": 5376, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of aircraft IDs, including those that appear in the aircraft table with an ID of 2, and also those that appear in the airport_aircraft table with an ID of 3 or higher?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_58go5_5.png", "TableImg_Cozbb_4.png"], "original_data_index": 5379, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the feature type names and codes that are both named \"Securiyt, eg Burglar Alarm.\" and have the code \"Security\"?", "answer": {"columns": ["feature_type_name", "feature_type_code"], "index": [0], "data": [["Securiyt, eg Burglar Alarm.", "Security"]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Btpqh_2.png", "TableImg_Ybhs6_2.png"], "original_data_index": 5380, "original_sql": "SELECT feature_type_name, feature_type_code FROM Ref_Feature_Types WHERE feature_type_name = \"Securiyt, eg Burglar Alarm.\" INTERSECT SELECT feature_type_name, feature_type_code FROM Ref_Feature_Types WHERE feature_type_code = \"Security\""} {"question": "Could you give me the total ID number from car makers, along with the weight from car data, but only for entries where the full name is \"American Motor Company,\" or the number of cylinders is less than 4 and the horsepower isn't \"75,\" or the year is 1982 or earlier, or the acceleration is 16.5 or less and the weight isn't 2472, or the country isn't \"8\" and the maker isn't \"toyota\"?", "answer": {"columns": ["SUM(T1.Id)", "Weight"], "index": [0], "data": [["266", "3504"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Gg286_22.png", "TableImg_Vylcx_406.png"], "original_data_index": 5377, "original_sql": "SELECT SUM(T1.Id), T2.Weight FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE FullName = \"American Motor Company\" OR \"Cylinders\" < 4 AND Horsepower <> \"75\" OR \"Year\" <= 1982 OR \"Accelerate\" <= 16.5 AND \"Weight\" <> 2472 OR Country <> \"8\" AND Maker <> \"toyota\""} {"question": "Can you give me a list of student IDs, last names, ages, majors, and the number of first names for students, combining two groups: first, those who don't have the first name \"Jandy\" or don't live in \"LON\" and have a major code of 600 or higher; and second, those who don't live in \"HKG\" and don't have the first name \"William\", or have a major code greater than 550?", "answer": {"columns": ["StuID", "LName", "Age", "Major", "COUNT(Fname)"], "index": [0, 1], "data": [["1001", "Smith", "18", "600", "32"], ["1001", "Smith", "18", "600", "34"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_B6l4y_34.png", "TableImg_Zig0b_34.png"], "original_data_index": 5378, "original_sql": "SELECT StuID, LName, Age, Major, COUNT(Fname) FROM Student WHERE Fname != \"Jandy\" OR city_code != \"LON\" AND \"Major\" >= 600 UNION SELECT StuID, LName, Age, Major, COUNT(Fname) FROM Student WHERE city_code != \"HKG\" AND Fname != \"William\" OR \"Major\" > 550"} {"question": "Which driver IDs are both not equal to 12 and less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3sb63_12.png", "TableImg_Fv5ah_5.png"], "original_data_index": 5381, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you show me the smallest city area and corresponding store ID for each store, considering only stores where the city population isn't 530438, the store ID is 1 or less, the city area isn't 22, and the district name isn't \"Chiniot District\", and then only including stores where the store ID is greater than 1 and the city population is 134936, or the headquartered city isn't \"Khanewal City\" and the district name isn't \"Khanewal District\"?", "answer": {"columns": ["MIN(T1.City_Area)", "Store_ID"], "index": [0, 1], "data": [["10", "3"], ["15", "4"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Cnf74_15.png", "TableImg_9oxau_5.png"], "original_data_index": 5382, "original_sql": "SELECT MIN(T1.City_Area), T2.Store_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE \"City_Population\" <> 530438.0 OR \"Store_ID\" <= 1 AND \"City_Area\" <> 22.0 AND District_name <> \"Chiniot District\" GROUP BY Store_ID HAVING Store_ID > 1 AND City_Population = 134936.0 OR Headquartered_City <> \"Khanewal City\" AND District_name <> \"Khanewal District\""} {"question": "Which driver has an ID of 4 and also drives a school bus, but not one with an ID of 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2v6ob_12.png", "TableImg_7w5rq_5.png"], "original_data_index": 5384, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding those driver IDs that are also less than or equal to 9 and are associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jri4p_12.png", "TableImg_D27f4_5.png"], "original_data_index": 5385, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Could you list all the company IDs from the employment table, including those where the working year is at least one, and also those where the working year is exactly four, or where the company ID isn't 11 and the people ID is no more than three?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["11"], ["13"], ["17"], ["15"], ["7"], ["13"], ["17"], ["15"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_R07le_5.png", "TableImg_Dmyuv_5.png"], "original_data_index": 5383, "original_sql": "SELECT Company_ID FROM employment WHERE \"Year_working\" >= 1 UNION ALL SELECT Company_ID FROM employment WHERE \"Year_working\" = 4 OR \"Company_ID\" != 11 AND \"People_ID\" <= 3"} {"question": "Can you list the aircraft IDs that are greater than or equal to 3, excluding those aircraft IDs that are also greater than 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ir3xi_5.png", "TableImg_Kt6sc_4.png"], "original_data_index": 5386, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs are both greater than or equal to 2 and also not equal to 4, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ums74_12.png", "TableImg_L7ca2_5.png"], "original_data_index": 5387, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are 11 or greater, excluding those driver IDs that appear in the school bus list, except for driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R4uj7_12.png", "TableImg_L13jr_5.png"], "original_data_index": 5389, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are either equal to 12 from the driver table, or greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y3grn_12.png", "TableImg_1ym0j_5.png"], "original_data_index": 5388, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are equal to 6, but not equal to 10 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ha5sw_12.png", "TableImg_95agc_5.png"], "original_data_index": 5390, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What is the total student ID and the age of pets that are not dogs?", "answer": {"columns": ["SUM(T1.StuID)", "pet_age"], "index": [0], "data": [["1001", "3"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_B7a66_3.png", "TableImg_73xgr_3.png"], "original_data_index": 5393, "original_sql": "SELECT SUM(T1.StuID), T2.pet_age FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID = T2.PetID WHERE PetType <> \"dog\""} {"question": "Can you give me the IDs of documents that were mailed on February 21, 1973, at 10:17:01 AM, but are not draft copies with a draft number greater than 9, a document ID that is not 12, and a copy number of 4?", "answer": {"columns": ["document_id"], "index": [0], "data": [["4"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_G3l81_14.png", "TableImg_0q2x9_8.png"], "original_data_index": 5395, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE mailing_date = \"1973-02-21 10:17:01\" EXCEPT SELECT document_id FROM Draft_Copies WHERE \"draft_number\" > 9 AND \"document_id\" != 12 AND \"copy_number\" = 4"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 5, combined with a list of driver IDs from the school_bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W4d20_12.png", "TableImg_Dykgs_5.png"], "original_data_index": 5399, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of document status codes, combining those from the Documents table where the document ID isn't 3 or the status isn't \"overdue\" but the shipping agent is \"SH\", with those from the Ref_Document_Status table where the status isn't \"overdue\" or the description isn't \"currently working on\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2], "data": [["done"], ["overdue"], ["working"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Iizgj_15.png", "TableImg_529wm_3.png"], "original_data_index": 5400, "original_sql": "SELECT document_status_code FROM Documents WHERE \"document_id\" <> 3 OR document_status_code != \"overdue\" AND shipping_agent_code = \"SH\" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code != \"overdue\" OR document_status_description <> \"currently working on\""} {"question": "Can you give me a list of occupations and residences of players, excluding Patricia Cordner or those not sponsored by Elmwood\u2014Transcona and not living in Winnipeg, or those with a Player ID of 6, but then remove any occupations and residences from that list where the player's votes aren't 12285 and their Player ID is not greater than 6, or they live in Winnipeg, or they aren't sponsored by Winnipeg North and are retired, or they are male and ranked 1st, or their name is Jim Maloway?", "answer": {"columns": ["Occupation", "Residence"], "index": [0], "data": [["Design Coordinator", "Oakbank"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_4osa6_14.png", "TableImg_Izfjw_14.png"], "original_data_index": 5401, "original_sql": "SELECT Occupation, Residence FROM player WHERE Player_name <> \"Patricia Cordner\" OR Sponsor_name != \"Elmwood\u2014Transcona\" AND Residence != \"Winnipeg\" OR \"Player_ID\" = 6 EXCEPT SELECT Occupation, Residence FROM player WHERE \"Votes\" <> 12285 AND \"Player_ID\" <= 6 OR Residence = \"Winnipeg\" OR Sponsor_name != \"Winnipeg North\" AND Occupation = \"Retired\" OR Gender = \"M\" AND Rank = \"1st\" OR Player_name = \"Jim Maloway\""} {"question": "Can you give me the head ID, department ID, and temporary acting status for management entries that are in departments other than department 7, and also in departments other than department 15 where the temporary acting status is not \"No\", or where the head ID is 6?", "answer": {"columns": ["head_ID", "department_ID", "temporary_acting"], "index": [0, 1], "data": [["5", "2", "Yes"], ["6", "2", "Yes"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_Cgnpi_5.png", "TableImg_Pvc2r_5.png"], "original_data_index": 5402, "original_sql": "SELECT head_ID, department_ID, temporary_acting FROM management WHERE \"department_ID\" != 7 INTERSECT SELECT head_ID, department_ID, temporary_acting FROM management WHERE \"department_ID\" <> 15 AND temporary_acting != \"No\" OR \"head_ID\" = 6"} {"question": "Can you give me a list of driver IDs, including driver ID 10 from the driver table, and all driver IDs except 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qchxr_12.png", "TableImg_Zee8l_5.png"], "original_data_index": 5403, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are both less than 9 and also greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zah0l_12.png", "TableImg_0iezf_5.png"], "original_data_index": 5404, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 9 from the driver table and not equal to 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kc3ln_12.png", "TableImg_G331d_5.png"], "original_data_index": 5405, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of first names of customers, excluding any first names of staff members, where the customers meet at least one of these conditions: their birthdate isn't 1988-09-19 14:45:56, their customer ID is less than 7, their customer address ID isn't 10, their last name isn't Mertz, their customer status code isn't \"Good Customer\" and their phone number is \"417.136.2900x672\" and their date became customer isn't \"2017-11-25 01:42:26\" and their first name is \"Amya\" and their amount outstanding is less than 5494.0, or their email address isn't \"karina.carroll@example.net\"; and the staff members meet at least one of these conditions: their staff address ID is less than or equal to 6 and their first name isn't \"Camylle\", their date joined staff is \"2017-08-30 15:08:37\", their last name is \"Weissnat\", their nickname isn't \"lsenger\", their birthdate isn't \"1997-03-29 10:55:45\" and their date left staff is \"2018-03-09 05:08:35\", or their middle name isn't \"Madelyn\"?", "answer": {"columns": ["first_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Amya"], ["Carole"], ["Clara"], ["Dameon"], ["Dianna"], ["Estelle"], ["Genevieve"], ["Jordy"], ["Leif"], ["Marina"], ["Millie"], ["Omer"], ["Ray"], ["Rylan"], ["Sigrid"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_X6huo_15.png", "TableImg_5jrz0_15.png"], "original_data_index": 5406, "original_sql": "SELECT first_name FROM Customers WHERE date_of_birth <> \"1988-09-19 14:45:56\" AND \"customer_id\" < 7 OR \"customer_address_id\" != 10 OR last_name <> \"Mertz\" OR customer_status_code != \"Good Customer\" AND phone_number = \"417.136.2900x672\" AND date_became_customer <> \"2017-11-25 01:42:26\" AND first_name = \"Amya\" AND \"amount_outstanding\" < 5494.0 OR email_address <> \"karina.carroll@example.net\" EXCEPT SELECT first_name FROM Staff WHERE \"staff_address_id\" <= 6 AND first_name != \"Camylle\" OR date_joined_staff = \"2017-08-30 15:08:37\" OR last_name = \"Weissnat\" OR nickname <> \"lsenger\" OR date_of_birth <> \"1997-03-29 10:55:45\" AND date_left_staff = \"2018-03-09 05:08:35\" OR middle_name != \"Madelyn\""} {"question": "Can you give me a list of driver IDs that are less than 12, excluding any driver IDs that are also 10 or greater and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ktrk0_12.png", "TableImg_9uz84_5.png"], "original_data_index": 5407, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list all the driver IDs, including those from the driver table where the ID is 10 or greater, and those from the school bus table where the ID is not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E0gsw_12.png", "TableImg_Svzr1_5.png"], "original_data_index": 5396, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 8, and those from the school bus table where the ID is not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P4c6f_12.png", "TableImg_Lt9lw_5.png"], "original_data_index": 5398, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me the IDs of documents that have a document ID less than 2 and also have a receipt date that isn't July 2nd, 2017 at 5:39:09 PM, or are in \"working\" status and not of type \"CD\", or have a shipping agent code of \"FE\", or have other details that are not \"p\"?", "answer": {"columns": ["document_id"], "index": [0], "data": [["1"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Cstgp_4.png", "TableImg_T3uh6_15.png"], "original_data_index": 5397, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" < 2 INTERSECT SELECT document_id FROM Documents WHERE receipt_date <> \"2017-07-02 17:39:09\" OR document_status_code = \"working\" AND document_type_code <> \"CD\" OR shipping_agent_code = \"FE\" OR other_details != \"p\""} {"question": "For each club, can you tell me the number of regions, the earliest start year, and the number of club names, but only for clubs where the number of regions isn't exactly one or the earliest start year is 2000 or earlier? Also, include the same information for clubs where the number of regions isn't exactly one or the earliest start year is 2001 or earlier.", "answer": {"columns": ["Club_ID", "COUNT(Region)", "MIN(Start_year)", "COUNT(Club_name)"], "index": [0, 1, 2, 3, 4], "data": [["2", "1", "1998", "1"], ["5", "1", "2000", "1"], ["2", "1", "1998", "1"], ["4", "1", "2001", "1"], ["5", "1", "2000", "1"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Vpmn2_6.png", "TableImg_Vdqxg_6.png"], "original_data_index": 5409, "original_sql": "SELECT Club_ID, COUNT(Region), MIN(Start_year), COUNT(Club_name) FROM club GROUP BY Club_ID HAVING COUNT(Region) != 1 OR MIN(Start_year) <= 2000 UNION ALL SELECT Club_ID, COUNT(Region), MIN(Start_year), COUNT(Club_name) FROM club GROUP BY Club_ID HAVING COUNT(Region) <> 1 OR MIN(Start_year) <= 2001"} {"question": "Can you list the aircraft IDs that are greater than 3 when grouped in the aircraft table, and also include aircraft ID 5 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1j92l_5.png", "TableImg_95tdg_4.png"], "original_data_index": 5410, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What was the highest enrollment and the invested amount for each IHSAA class, considering only schools where the year was 2005 or earlier, the invested amount was less than 5840, the IHSAA class was AAA but not A for football, the total budget percentage was less than 2.0, the enrollment was 620 or less, or the location was not Culver, and further filtering to only include those with enrollment less than 495 and school name Glenn, budget invested percentage not equal to 42.9, or county 71 St. Joseph?", "answer": {"columns": ["MAX(T1.Enrollment)", "Invested"], "index": [0, 1], "data": [["495", "85249"], ["620", "140102"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_2n4jg_8.png", "TableImg_Wfg4v_8.png"], "original_data_index": 5411, "original_sql": "SELECT MAX(T1.Enrollment), T2.Invested FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE \"Year\" <= 2005 OR \"Invested\" < 5840 AND IHSAA_Class = \"AAA\" AND IHSAA_Football_Class <> \"A\" AND \"total_budget_percent_budgeted\" < 2.0 OR \"Enrollment\" <= 620 OR Location <> \"Culver\" GROUP BY IHSAA_Class HAVING Enrollment < 495 AND School_name = \"Glenn\" OR Budget_invested_percent <> \"42.9\" OR County = \"71 St. Joseph\""} {"question": "Can you give me a list of airport names, excluding those that are either \"Baltimore-Washington Airport\" or have an IATA code of \"BWI\" and are not in Belgium, but then remove any names that also appear in a list of operate_company names where the type is \"Subsidiary\", the ID is not 7, the name is not \"Vogue Laundry Service Limited\", or the Group_Equity_Shareholding is less than 30%?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Akureyri Airport"], ["Bergen Airport"], ["Billund Airport"], ["El Prat Airport"], ["Logan International Airport"], ["National Airport"], ["Schiphol Airport"], ["Ted Stevens Airport"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Co42i_9.png", "TableImg_613q0_14.png"], "original_data_index": 5412, "original_sql": "SELECT name FROM airport WHERE name != \"Baltimore-Washington Airport\" OR IATA <> \"BWI\" AND Country <> \"Belgium\" EXCEPT SELECT name FROM operate_company WHERE Type = \"Subsidiary\" AND \"id\" <> 7 AND name <> \"Vogue Laundry Service Limited\" OR \"Group_Equity_Shareholding\" < 30.0"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 1 from the driver table, excluding those driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M2u39_12.png", "TableImg_Jhqxn_5.png"], "original_data_index": 5414, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver has a Driver ID of 10 and is also associated with a school bus having a Driver ID of 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Flpyf_12.png", "TableImg_Upxzj_5.png"], "original_data_index": 5408, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list the driver IDs that are less than 3 from the driver table, and combine that with a list of driver IDs that are not equal to 4 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2qhfq_12.png", "TableImg_Kcdsb_5.png"], "original_data_index": 5417, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the driver ID that appears exactly once with the value 8 in the driver table, but does not appear with a value greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uttsc_12.png", "TableImg_1s7yq_5.png"], "original_data_index": 5413, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are both greater than or equal to 9 in the driver table and greater than 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B4l2r_12.png", "TableImg_Nc03h_5.png"], "original_data_index": 5415, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are greater than 1 from the driver table, combined with a list of driver IDs that are greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Plpwj_12.png", "TableImg_3r9yo_5.png"], "original_data_index": 5419, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Could you list all the document status codes from the Documents table where the receipt number is not \"114\", and also list all the document status codes from the Ref_Document_Status table where the document status description is not \"currently working on\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["working"], ["done"], ["done"], ["done"], ["working"], ["overdue"], ["overdue"], ["working"], ["working"], ["overdue"], ["done"], ["working"], ["working"], ["overdue"], ["done"], ["overdue"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Og863_15.png", "TableImg_7hzyu_3.png"], "original_data_index": 5420, "original_sql": "SELECT document_status_code FROM Documents WHERE receipt_number <> \"114\" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> \"currently working on\""} {"question": "Which driver IDs are both greater than 8 and also equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vwwjo_12.png", "TableImg_8m5p2_5.png"], "original_data_index": 5421, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are greater than 4 and also greater than 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q7bdf_12.png", "TableImg_Mc555_5.png"], "original_data_index": 5422, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What aircraft IDs, excluding aircraft ID 4, are present in the aircraft table but not in the airport_aircraft table where the aircraft ID is at least 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ey9hw_5.png", "TableImg_Wtxur_4.png"], "original_data_index": 5424, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs that are not 6, and also are not driver IDs less than 7 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yucpa_12.png", "TableImg_Qqqrf_5.png"], "original_data_index": 5423, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding any driver IDs that are not equal to 4 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4g96p_12.png", "TableImg_Qo8ow_5.png"], "original_data_index": 5425, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J7o7p_12.png", "TableImg_A1tnx_5.png"], "original_data_index": 5427, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Could you give me the student IDs of students who either have an allergy other than to cats or whose ID is 1025 or less, and who are also majoring in subject 520?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1020"], ["1021"], ["1023"], ["1025"], ["1026"], ["1027"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Z7tf0_59.png", "TableImg_A2hoq_34.png"], "original_data_index": 5426, "original_sql": "SELECT StuID FROM Has_Allergy WHERE \"StuID\" <= 1025 OR Allergy != \"Cat\" INTERSECT SELECT StuID FROM Student WHERE \"Major\" = 520"} {"question": "Can you give me the driver IDs that are less than 10 and also less than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jczuz_12.png", "TableImg_Fxomr_5.png"], "original_data_index": 5428, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me the locations and school IDs of schools that are either not Noelani Elementary School, don't have grades 1st-3rd, or have a School ID less than 2 and are located in Jakarta, Indonesia, or are public, but only if they are also not private?", "answer": {"columns": ["Location", "School_ID"], "index": [0, 1, 2], "data": [["Honolulu, Hawaii", "1"], ["Jakarta, Indonesia", "2"], ["Jakarta, Indonesia", "3"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Modz5_7.png", "TableImg_Jnj6m_7.png"], "original_data_index": 5418, "original_sql": "SELECT Location, School_ID FROM school WHERE School != \"Noelani Elementary School\" OR Grade != \"1st-3rd grade\" OR \"School_ID\" < 2 AND Location = \"Jakarta, Indonesia\" OR Type = \"Public\" INTERSECT SELECT Location, School_ID FROM school WHERE Type != \"Private\""} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 8, and those from the school bus table where the ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_46n06_12.png", "TableImg_Orheq_5.png"], "original_data_index": 5429, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs, excluding driver ID 9, appear in the driver table but not in the school_bus table, where we only consider driver IDs less than 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_91hsa_12.png", "TableImg_9ei9p_5.png"], "original_data_index": 5432, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs, excluding driver ID 8, are also driver ID 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nj0bi_12.png", "TableImg_Fhu7f_5.png"], "original_data_index": 5431, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are also greater than or equal to 5 and found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Woh0g_5.png", "TableImg_999bi_4.png"], "original_data_index": 5430, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of template type codes, combining those that aren't \"Paper\" or \"CV\" from the template types reference with those from the templates that either aren't template ID 1 and aren't PP, or have a different effective from date than 1975-10-20 02:28:58 and a different effective to date than 2015-09-06 01:08:44 and aren't version number 4, or have empty template details?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3, 4], "data": [["AD"], ["BK"], ["CV"], ["PP"], ["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_G5758_5.png", "TableImg_Qf7tq_20.png"], "original_data_index": 5433, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != \"Paper\" AND Template_Type_Code <> \"CV\" UNION SELECT Template_Type_Code FROM Templates WHERE \"Template_ID\" != 1 AND Template_Type_Code <> \"PP\" OR Date_Effective_From != \"1975-10-20 02:28:58\" AND Date_Effective_To <> \"2015-09-06 01:08:44\" AND \"Version_Number\" != 4 OR Template_Details = \"\""} {"question": "How many document drafts have a draft number of 1 or higher, and how many mailed documents were sent to an address ID less than 5?", "answer": {"columns": ["COUNT(document_id)"], "index": [0, 1], "data": [["14"], ["6"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Wg9ri_15.png", "TableImg_Fwxve_14.png"], "original_data_index": 5434, "original_sql": "SELECT COUNT(document_id) FROM Document_Drafts WHERE \"draft_number\" >= 1 UNION ALL SELECT COUNT(document_id) FROM Documents_Mailed WHERE \"mailed_to_address_id\" < 5"} {"question": "Which driver IDs are present in both the driver list (excluding driver 9) and the school bus list (excluding driver 7)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Izoto_12.png", "TableImg_3pwzd_5.png"], "original_data_index": 5435, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Could you give me a list of document IDs, including those with the description \"w\" that don't have \"None\" in Other Details and aren't Template ID 14, along with any document IDs that don't have the name \"About Korea\"?", "answer": {"columns": ["Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["0"], ["1"], ["3"], ["76"], ["80"], ["82"], ["2394"], ["3830"], ["33930"], ["50123"], ["651512"], ["801801"], ["3540024"], ["16514113"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_B3fux_15.png", "TableImg_24fpz_15.png"], "original_data_index": 5436, "original_sql": "SELECT Document_ID FROM Documents WHERE Document_Description = \"w\" AND Other_Details <> \"None\" AND \"Template_ID\" <> 14 UNION ALL SELECT Document_ID FROM Documents WHERE Document_Name <> \"About Korea\""} {"question": "What are the trust values where the source user ID is at least 2, excluding the trust values where the target user ID is greater than 6?", "answer": {"columns": ["trust"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["8"], ["10"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_1lyb3_9.png", "TableImg_Qaly9_9.png"], "original_data_index": 5439, "original_sql": "SELECT trust FROM trust WHERE \"source_u_id\" >= 2 EXCEPT SELECT trust FROM trust WHERE \"target_u_id\" > 6"} {"question": "Can you give me a list of driver IDs that are 3 or greater from the driver table, excluding any driver IDs that are 7 or less from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3lnrv_12.png", "TableImg_Cqigl_5.png"], "original_data_index": 5438, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the driver IDs that are less than 4 from the driver table, combined with the driver IDs that are less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pklln_12.png", "TableImg_N7qg5_5.png"], "original_data_index": 5437, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs excluding driver ID 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3sku3_12.png", "TableImg_P8tqy_5.png"], "original_data_index": 5440, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xkfo0_12.png", "TableImg_M96jz_5.png"], "original_data_index": 5441, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of document IDs from the circulation history where either the employee ID is 2 or less, or the document ID is 20 or more and the copy number is 5, or the draft number is 1 or more, combined with a list of document IDs where the copy number is 15 or more and the employee ID is 8 or less?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["10"], ["20"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Cvd1c_4.png", "TableImg_Mr86x_4.png"], "original_data_index": 5442, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"employee_id\" <= 2 OR \"document_id\" >= 20 AND \"copy_number\" = 5 OR \"draft_number\" >= 1 UNION SELECT document_id FROM Circulation_History WHERE \"copy_number\" >= 15 AND \"employee_id\" <= 8"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 12 or greater, combined with a list of driver IDs from the school_bus table where the driver ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7o5rr_12.png", "TableImg_731xr_5.png"], "original_data_index": 5443, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 9 and not equal to 3, considering drivers from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jrwqh_12.png", "TableImg_K736c_5.png"], "original_data_index": 5445, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are both greater than or equal to 8 in the driver table and greater than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pwfal_12.png", "TableImg_P2hgo_5.png"], "original_data_index": 5446, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including driver ID 7 from the driver table, and any driver IDs greater than 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pvopf_12.png", "TableImg_Tc25u_5.png"], "original_data_index": 5444, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 5, and those from the school bus table with driver IDs up to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Arr99_12.png", "TableImg_Vcxtw_5.png"], "original_data_index": 5449, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me the IDs of drivers, up to ID 7, who are listed as drivers but not associated with any school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I4n07_12.png", "TableImg_Nb240_5.png"], "original_data_index": 5451, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the sum of the levels, the highest name, the sum of the hometowns, and the member IDs for members who either aren't named Johnny Williams and are from Columbia, South Carolina, or have a card number other than RCB32, or have a member ID greater than 10, combined with the sum of the levels, the highest name, the sum of the hometowns, and the member IDs for members who either have a level of 6 or are not from LaGrange, Georgia and don't have a card number of FS10?", "answer": {"columns": ["SUM(Level)", "MAX(Name)", "SUM(Hometown)", "Member_ID"], "index": [0, 1], "data": [["48", "Ventrell Jenkins", "0", "4"], ["52", "Ventrell Jenkins", "0", "4"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_Eveob_10.png", "TableImg_Lq6s5_10.png"], "original_data_index": 5450, "original_sql": "SELECT SUM(Level), MAX(Name), SUM(Hometown), Member_ID FROM member WHERE Name <> \"Johnny Williams\" AND Hometown = \"Columbia, South Carolina\" OR Card_Number <> \"RCB32\" OR \"Member_ID\" > 10 UNION ALL SELECT SUM(Level), MAX(Name), SUM(Hometown), Member_ID FROM member WHERE \"Level\" = 6 OR Hometown <> \"LaGrange, Georgia\" AND Card_Number != \"FS10\""} {"question": "Can you give me a list of driver IDs, including those that aren't 1 from the driver table, and those that are less than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rq7d3_12.png", "TableImg_Ursyk_5.png"], "original_data_index": 5452, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are both greater than 2 and also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lqp7z_12.png", "TableImg_Ex4vt_5.png"], "original_data_index": 5453, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs, including driver ID 1 from the driver table, and all driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rugl0_12.png", "TableImg_9o2f2_5.png"], "original_data_index": 5454, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 8 and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O7sup_12.png", "TableImg_4bojh_5.png"], "original_data_index": 5455, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are not 10, and also including driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1yfbx_12.png", "TableImg_Xgu2a_5.png"], "original_data_index": 5456, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1gy7q_12.png", "TableImg_K912t_5.png"], "original_data_index": 5457, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list the aircraft IDs that are greater than 2 in the aircraft table, and also list the aircraft IDs that are less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dhd3j_5.png", "TableImg_1lrjo_4.png"], "original_data_index": 5448, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs that are not equal to 3 and are also less than 9, considering only the unique driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gjsrm_12.png", "TableImg_Xyjfn_5.png"], "original_data_index": 5447, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Could you give me the District IDs that are both from districts where either the city area is less than 17 and the headquarters are in Faisalabad City, or the city population is not 1526168 and the District ID is 14 or greater, and also from store districts where the District ID is 15 or greater?", "answer": {"columns": ["District_ID"], "index": [0], "data": [["15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_P2iqg_15.png", "TableImg_2kqjo_5.png"], "original_data_index": 5460, "original_sql": "SELECT District_ID FROM district WHERE \"City_Area\" < 17.0 AND Headquartered_City = \"Faisalabad City\" OR \"City_Population\" <> 1526168.0 AND \"District_ID\" >= 14 INTERSECT SELECT District_ID FROM store_district WHERE \"District_ID\" >= 15"} {"question": "Which aircraft IDs are not equal to 3 and appear in the aircraft table, and are also not equal to 2 and appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_194ju_5.png", "TableImg_Zx7vu_4.png"], "original_data_index": 5461, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Which driver IDs, when considered individually, are equal to 8 in the driver table but not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tt2cd_12.png", "TableImg_9wqyr_5.png"], "original_data_index": 5462, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of aircraft IDs that are greater than 1, grouping by aircraft ID from the aircraft table, combined with a list of aircraft IDs that are greater than 2, grouping by aircraft ID from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L2xwb_5.png", "TableImg_Nrxjw_4.png"], "original_data_index": 5463, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, including those that are not 12 from the driver table, and those greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hb7xx_12.png", "TableImg_Fnfdq_5.png"], "original_data_index": 5464, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are exactly 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6rx78_12.png", "TableImg_0hjfg_5.png"], "original_data_index": 5465, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs less than or equal to 9, excluding those driver IDs that are not equal to 3 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_135fa_12.png", "TableImg_Dm9tk_5.png"], "original_data_index": 5466, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are greater than 11 from the driver table, combined with a list of driver IDs that are greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W4t07_12.png", "TableImg_L814d_5.png"], "original_data_index": 5467, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which aircraft IDs are both greater than or equal to 3 (when considering all aircraft) and equal to 5 (when considering aircraft at airports)?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_29alh_5.png", "TableImg_Wrhl2_4.png"], "original_data_index": 5468, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Which driver IDs are equal to 6, but not equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Prvir_12.png", "TableImg_Rrnp2_5.png"], "original_data_index": 5459, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which aircraft have an ID of 3 in the aircraft table, but not in the airport_aircraft table if we only consider aircraft IDs that are not 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pkyfv_5.png", "TableImg_Bzqvk_4.png"], "original_data_index": 5458, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you list all the driver IDs that are greater than or equal to 12 from the driver table, and combine that with a list of all driver IDs that are greater than 10 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7wqa9_12.png", "TableImg_7r3mz_5.png"], "original_data_index": 5472, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Could you list the Aircraft ID from the aircraft table alongside the corresponding ID from the airport_aircraft table, matching them by Aircraft ID?", "answer": {"columns": ["Aircraft_ID", "ID"], "index": [0, 1, 2, 3], "data": [["5", "1"], ["1", "2"], ["2", "3"], ["3", "4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_95it7_5.png", "TableImg_4zrk8_4.png"], "original_data_index": 5471, "original_sql": "SELECT T1.Aircraft_ID, T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of aircraft IDs that are greater than 3, but exclude any aircraft IDs from the airport aircraft list that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E51r3_5.png", "TableImg_O75nj_4.png"], "original_data_index": 5469, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding those driver IDs that are also greater than 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vpm5v_12.png", "TableImg_0ldbe_5.png"], "original_data_index": 5470, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What aircraft IDs are greater than or equal to 3, but not less than 5, considering all aircraft and airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T99bv_5.png", "TableImg_Y0zc8_4.png"], "original_data_index": 5476, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which document IDs in the drafts, excluding document ID 1, are not associated with documents received on May 8, 1974?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["17"], ["20"], ["23"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_M1fzt_15.png", "TableImg_Pl1ld_15.png"], "original_data_index": 5473, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" != 1 EXCEPT SELECT document_id FROM Documents WHERE receipt_date = \"1974-05-08 00:00:46\""} {"question": "Can you give me a list of driver IDs less than 5 that appear in both the driver table and the school bus table, where in the school bus table, the driver IDs are also less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F5j41_12.png", "TableImg_Tnbqw_5.png"], "original_data_index": 5474, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of employee IDs that either received a bonus greater than or equal to $3200 in a year other than 2016 and are not employee ID 2, or are from hiring records where the shop ID is not 1, the employee ID is less than 6 and they are not full-time, or their start year is not 2009?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["4"], ["7"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_345ss_6.png", "TableImg_7zqov_7.png"], "original_data_index": 5475, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Year_awarded <> \"2016\" AND \"Bonus\" >= 3200.0 AND Employee_ID <> \"2\" UNION SELECT Employee_ID FROM hiring WHERE \"Shop_ID\" <> 1 OR \"Employee_ID\" < 6 AND Is_full_time != \"T\" OR Start_from != \"2009\""} {"question": "Can you give me a list of driver IDs that are less than 3, excluding any driver IDs that are 9 or less and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xlqnk_12.png", "TableImg_94sny_5.png"], "original_data_index": 5477, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 4, that are not also aircraft ID 5 found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Albth_5.png", "TableImg_Axlhm_4.png"], "original_data_index": 5478, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_47u8n_12.png", "TableImg_Gd29l_5.png"], "original_data_index": 5479, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What is the highest airport ID associated with each number of transit passengers?", "answer": {"columns": ["Transit_Passengers", "MAX(T2.Airport_ID)"], "index": [0], "data": [["38458", "9"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Vgg6e_10.png", "TableImg_F3r62_4.png"], "original_data_index": 5480, "original_sql": "SELECT T1.Transit_Passengers, MAX(T2.Airport_ID) FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 3 and those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hgi2i_12.png", "TableImg_Wfszp_5.png"], "original_data_index": 5481, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 6, combined with a list of driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zgqb2_12.png", "TableImg_1ysfc_5.png"], "original_data_index": 5483, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tr64i_12.png", "TableImg_Gx11b_5.png"], "original_data_index": 5484, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Could you give me a list of People IDs from the employment table where either the Company ID is not 17 or the Year Working is not 1, combined with a list of People IDs from the people table where the name is not Tim Naegeli?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["3"], ["2"], ["7"], ["1"], ["4"], ["1"], ["2"], ["3"], ["4"], ["5"], ["7"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_Vrua4_5.png", "TableImg_P2znk_7.png"], "original_data_index": 5485, "original_sql": "SELECT People_ID FROM employment WHERE \"Company_ID\" != 17 OR \"Year_working\" != 1 UNION ALL SELECT People_ID FROM people WHERE Name <> \"Tim Naegeli\""} {"question": "What are the average zip code and county ID for counties that aren't named Mansfield and have a zip code of D02, combined with the average zip code and county ID for counties with a county ID less than 4 or a name other than Manning?", "answer": {"columns": ["AVG(Zip_code)", "AVG(County_Id)"], "index": [0, 1], "data": [["0", "2.5"], ["0", "3.0"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_Oqogw_5.png", "TableImg_X0ejn_5.png"], "original_data_index": 5482, "original_sql": "SELECT AVG(Zip_code), AVG(County_Id) FROM county WHERE County_name != \"Mansfield\" AND Zip_code = \"D02\" UNION SELECT AVG(Zip_code), AVG(County_Id) FROM county WHERE \"County_Id\" < 4 OR County_name != \"Manning\""} {"question": "Can you give me the last names and birth dates of customers, excluding staff members, based on a complex set of criteria involving address IDs, email addresses, names, customer status, phone numbers, birth dates, staff IDs, middle names, join/leave dates, nicknames, and first names?", "answer": {"columns": ["last_name", "date_of_birth"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Bernhard", "1998-12-15 13:24:40"], ["Bruen", "1991-02-10 00:42:17"], ["Goodwin", "1996-08-29 00:03:08"], ["Grant", "1996-05-23 01:21:54"], ["Koelpin", "1996-11-07 05:30:55"], ["Kohler", "1994-05-07 01:32:16"], ["Leuschke", "1993-07-09 11:11:36"], ["Mertz", "1991-12-05 02:50:15"], ["Ortiz", "1994-06-21 01:34:56"], ["Sanford", "1996-08-30 06:17:50"], ["Schmeler", "1988-09-19 14:45:56"], ["Spinka", "1993-03-08 08:48:42"], ["Terry", "1995-07-17 12:13:16"], ["Trantow", "1998-09-18 04:45:01"], ["Tromp", "1993-02-07 05:40:26"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_Qwhn9_15.png", "TableImg_98ma7_15.png"], "original_data_index": 5488, "original_sql": "SELECT last_name, date_of_birth FROM Customers WHERE \"customer_address_id\" < 7 OR email_address != \"kitty.hand@example.net\" AND last_name != \"Spinka\" OR first_name != \"Dameon\" AND customer_status_code != \"Good Customer\" AND cell_mobile_phone_number != \"(630)964-2426\" AND date_of_birth <> \"1996-08-30 06:17:50\" OR phone_number <> \"(297)122-0086\" EXCEPT SELECT last_name, date_of_birth FROM Staff WHERE \"staff_address_id\" >= 3 AND middle_name <> \"Stephania\" AND last_name <> \"Carroll\" OR date_joined_staff = \"2016-06-06 08:54:28\" OR date_left_staff = \"2018-03-10 15:25:00\" AND nickname != \"ynader\" OR date_of_birth != \"1995-06-03 08:09:17\" AND \"staff_id\" <= 15 AND first_name = \"Kaitlin\""} {"question": "Which driver IDs, excluding driver ID 10, are also driver IDs for school buses, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C31wm_12.png", "TableImg_Pjugl_5.png"], "original_data_index": 5489, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are greater than or equal to 6, but not less than 10, considering all drivers and school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qfm5w_12.png", "TableImg_Gtctd_5.png"], "original_data_index": 5490, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are both not equal to 3 and less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2gwyf_12.png", "TableImg_Purdl_5.png"], "original_data_index": 5486, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are less than 6, excluding any driver IDs that are also equal to 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Psflg_12.png", "TableImg_Q0bln_5.png"], "original_data_index": 5487, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the total maximum gross weight, total disk area, and the number of maximum disk loadings for aircraft meeting certain criteria, excluding those aircraft that meet other criteria?", "answer": {"columns": ["SUM(Max_Gross_Weight)", "Total_disk_area", "COUNT(Max_disk_Loading)"], "index": [0], "data": [["250", "497 ft\u00b2 (46.2 m\u00b2)", "5"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Q84zh_5.png", "TableImg_Z7n9h_5.png"], "original_data_index": 5491, "original_sql": "SELECT SUM(Max_Gross_Weight), Total_disk_area, COUNT(Max_disk_Loading) FROM aircraft WHERE \"Aircraft_ID\" <= 2 AND Aircraft != \"Robinson R-22\" OR Max_Gross_Weight != \"1,370 lb (635 kg)\" OR Description != \"Heavy-lift helicopter\" AND Max_disk_Loading <> \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\" EXCEPT SELECT SUM(Max_Gross_Weight), Total_disk_area, COUNT(Max_disk_Loading) FROM aircraft WHERE Max_Gross_Weight != \"1,370 lb (635 kg)\" AND \"Aircraft_ID\" >= 5 OR Max_disk_Loading <> \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\""} {"question": "Can you give me a list of driver IDs that are less than 8, but not if they are also driver IDs that are less than or equal to 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G7cs8_12.png", "TableImg_3bbww_5.png"], "original_data_index": 5493, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list the driver IDs that are less than 1 from the driver table, and also list the driver IDs that are less than 7 from the school_bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F39wj_12.png", "TableImg_Wwl1c_5.png"], "original_data_index": 5494, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of property IDs that either have a feature ID of 4 or higher, or a property feature description that isn't \"ad\", combined with a list of property IDs from the Properties table that meet a long list of criteria related to various features, dates, prices, and property types?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_B1gjy_15.png", "TableImg_Q4ptz_15.png"], "original_data_index": 5495, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"feature_id\" >= 4 OR property_feature_description <> \"ad\" UNION SELECT property_id FROM Properties WHERE fld_feature_1 <> \"None\" OR other_property_details <> \"None\" OR \"property_id\" != 6 AND date_on_market != \"1981-08-23 05:40:38\" OR property_name != \"wall street\" AND hse_feature_2 = \"None\" OR oth_feature_2 != \"None\" OR hse_feature_1 != \"None\" OR shp_feature_3 <> \"None\" OR fld_feature_3 != \"None\" OR date_sold <> \"2003-02-27 18:17:11\" AND fld_feature_2 != \"None\" AND apt_feature_1 <> \"ut\" AND shp_feature_1 != \"None\" AND property_type_code != \"Apartment\" AND apt_feature_2 != \"est\" AND apt_feature_3 = \"None\" AND \"agreed_selling_price\" <= 4201.8 OR oth_feature_3 != \"None\" OR hse_feature_3 = \"None\" OR \"buyer_offered_price\" <= 296733.0"} {"question": "Can you give me the customer address ID, phone number, last name, amount outstanding, first name, customer status code, customer ID, email address, date of birth, cell phone number, and date they became a customer for all customers who are either not named Koelpin, or don't have the email kitty.hand@example.net, or don't have a customer address ID of 1 and a cell phone number that isn't 578-518-4785x612 and didn't become a customer on 2017-11-12 04:34:44, but only if their email address is also not asha.kilback@example.org?", "answer": {"columns": ["customer_address_id", "phone_number", "last_name", "amount_outstanding", "first_name", "customer_status_code", "customer_id", "email_address", "date_of_birth", "cell_mobile_phone_number", "date_became_customer"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1", "(662)490-3108", "Koelpin", "8144", "Marina", "Bad Customer", "7", "mayert.judy@example.com", "1996-11-07 05:30:55", "848-099-2095x785", "2015-06-24 03:50:04"], ["1", "(729)396-4354x3576", "Sanford", "9332", "Dameon", "Bad Customer", "15", "kitty.hand@example.net", "1996-08-30 06:17:50", "(630)964-2426", "2015-09-25 13:59:21"], ["1", "1-387-884-0656", "Goodwin", "1000", "Rylan", "Bad Customer", "10", "nichole59@example.com", "1996-08-29 00:03:08", "+45(6)4872981083", "2017-11-25 01:42:26"], ["7", "192-395-2411", "Schmeler", "2255", "Sigrid", "Good Customer", "13", "wehner.harold@example.com", "1988-09-19 14:45:56", "+57(9)4602098297", "2016-09-04 23:08:20"], ["8", "218.550.1362", "Tromp", "3751", "Jordy", "Good Customer", "4", "afranecki@example.com", "1993-02-07 05:40:26", "081-097-3684", "2016-07-22 15:53:44"], ["9", "1-673-962-8158x7646", "Spinka", "3900", "Amya", "Good Customer", "6", "kozey.citlalli@example.org", "1993-03-08 08:48:42", "(780)719-4206x033", "2017-04-16 05:12:21"], ["9", "417.136.2900x672", "Leuschke", "2099", "Omer", "Bad Customer", "12", "myrl.lind@example.net", "1993-07-09 11:11:36", "200.830.8723", "2016-05-13 07:38:23"], ["10", "+14(5)2351480248", "Terry", "7256", "Genevieve", "Bad Customer", "2", "huel.jana@example.org", "1995-07-17 12:13:16", "578-518-4785x612", "2015-11-16 22:52:14"], ["10", "1-875-045-0806", "Grant", "5494", "Estelle", "Good Customer", "14", "ehowell@example.com", "1996-05-23 01:21:54", "1-401-108-8016x078", "2016-03-18 06:14:18"], ["10", "206-054-0689x05861", "Trantow", "9500", "Dianna", "Bad Customer", "8", "kroberts@example.org", "1998-09-18 04:45:01", "739-333-6966x187", "2017-10-05 14:15:46"], ["10", "374-483-2758x85087", "Ortiz", "9443", "Clara", "Good Customer", "3", "hilario.sporer@example.org", "1994-06-21 01:34:56", "1-197-686-2849x8761", "2016-04-08 00:28:15"], ["12", "753.921.0871", "Mertz", "7093", "Leif", "Bad Customer", "9", "mariela28@example.org", "1991-12-05 02:50:15", "1-387-258-1016x96963", "2016-02-17 08:26:23"], ["13", "(297)122-0086", "Kohler", "9447", "Ray", "Good Customer", "11", "karina.carroll@example.net", "1994-05-07 01:32:16", "577-584-4864", "2016-11-30 10:37:41"], ["13", "07278206718", "Bernhard", "255", "Carole", "Bad Customer", "1", "everette.goyette@example.org", "1998-12-15 13:24:40", "861-638-9797", "2016-05-11 17:03:48"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_Z3g1y_15.png", "TableImg_Hklzf_15.png"], "original_data_index": 5492, "original_sql": "SELECT customer_address_id, phone_number, last_name, amount_outstanding, first_name, customer_status_code, customer_id, email_address, date_of_birth, cell_mobile_phone_number, date_became_customer FROM Customers WHERE last_name != \"Koelpin\" OR email_address != \"kitty.hand@example.net\" OR \"customer_address_id\" <> 1 AND cell_mobile_phone_number != \"578-518-4785x612\" AND date_became_customer != \"2017-11-12 04:34:44\" INTERSECT SELECT customer_address_id, phone_number, last_name, amount_outstanding, first_name, customer_status_code, customer_id, email_address, date_of_birth, cell_mobile_phone_number, date_became_customer FROM Customers WHERE email_address <> \"asha.kilback@example.org\""} {"question": "What is the highest member ID from the member table, considering only members with card number OLB56, or a name other than Myron Pryor, or who are from Fort Campbell, Kentucky, excluding those with level 6 and member ID greater than or equal to 7, except for the highest member ID from the purchase table, considering only purchases where the total pounds is not 20.99, the member ID is not 3, and the year is not 2018?", "answer": {"columns": ["MAX(Member_ID)"], "index": [0], "data": [["10"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_U4ay5_10.png", "TableImg_Ne66n_8.png"], "original_data_index": 5496, "original_sql": "SELECT MAX(Member_ID) FROM member WHERE Card_Number = \"OLB56\" OR Name <> \"Myron Pryor\" OR Hometown = \"Fort Campbell, Kentucky\" AND \"Level\" != 6 AND \"Member_ID\" >= 7 EXCEPT SELECT MAX(Member_ID) FROM purchase WHERE \"Total_pounds\" <> 20.99 AND \"Member_ID\" <> 3 AND Year != \"2018\""} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nllx1_12.png", "TableImg_2x2a4_5.png"], "original_data_index": 5499, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are also aircraft IDs of at least 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_64hh8_5.png", "TableImg_44336_4.png"], "original_data_index": 5497, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you list all the aircraft IDs, including aircraft ID 5 from the aircraft table and any aircraft IDs greater than or equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Re3ry_5.png", "TableImg_U0n44_4.png"], "original_data_index": 5500, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of driver IDs that are less than 6 and also not equal to 3, considering driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hvyph_12.png", "TableImg_Xm47h_5.png"], "original_data_index": 5498, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 11, and those from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Soyvd_12.png", "TableImg_Vumfw_5.png"], "original_data_index": 5501, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you list the Aircraft IDs and Airport IDs, grouped by ID, but only for those groups where the total disk area is 497 square feet, or the Airport ID is less than 1 and the maximum gross weight is 50,000 pounds?", "answer": {"columns": ["Aircraft_ID", "Airport_ID"], "index": [0], "data": [["1", "2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1a4c5_5.png", "TableImg_3g2il_4.png"], "original_data_index": 5504, "original_sql": "SELECT T1.Aircraft_ID, T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID == T2.Aircraft_ID GROUP BY ID HAVING Total_disk_area = \"497 ft\u00b2 (46.2 m\u00b2)\" OR Airport_ID < 1 AND Max_Gross_Weight = \"50,000 lb (22,680 kg)\""} {"question": "Which aircraft have an ID of 2 in the aircraft table, and also have an ID of 2 or less in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3ox1v_5.png", "TableImg_Pdw5j_4.png"], "original_data_index": 5502, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you list the driver IDs that are less than 6 from the driver table, combined with the driver IDs that are greater than 3 from the school_bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qzmna_12.png", "TableImg_Qy6j7_5.png"], "original_data_index": 5503, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of all the driver IDs, combining those from the driver table excluding driver ID 4, and those from the school bus table excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U9860_12.png", "TableImg_D4hk9_5.png"], "original_data_index": 5506, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 5, but only if they don't appear in the airport_aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D83sv_5.png", "TableImg_Vj9jm_4.png"], "original_data_index": 5505, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me the aircraft IDs that are less than or equal to 4, excluding those aircraft IDs that are not equal to 3 and are found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aivic_5.png", "TableImg_1u15k_4.png"], "original_data_index": 5507, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What is the smallest model name, excluding \"amc\" or where the ModelId is not 16, and also the smallest model name where the Maker is not 15 or the ModelId is not 25?", "answer": {"columns": ["MIN(Model)"], "index": [0, 1], "data": [["amc"], ["amc"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Cgs6q_36.png", "TableImg_Lbjgg_36.png"], "original_data_index": 5508, "original_sql": "SELECT MIN(Model) FROM model_list WHERE Model != \"amc\" OR \"ModelId\" <> 16 UNION ALL SELECT MIN(Model) FROM model_list WHERE \"Maker\" != 15 OR \"ModelId\" != 25"} {"question": "Can you give me a list of driver IDs less than 8 from the driver table, excluding any driver IDs greater than or equal to 10 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nggyg_12.png", "TableImg_W49z4_5.png"], "original_data_index": 5509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aq6n9_12.png", "TableImg_6coof_5.png"], "original_data_index": 5510, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table with driver IDs 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ggf7b_12.png", "TableImg_C4tkf_5.png"], "original_data_index": 5512, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me the student IDs of students who have allergies other than tree pollen and whose ID is not 1029, excluding those who are male students with the last name Epp?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1010"], ["1011"], ["1012"], ["1013"], ["1014"], ["1015"], ["1016"], ["1018"], ["1022"], ["1023"], ["1024"], ["1026"], ["1030"], ["1031"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_N3qa1_59.png", "TableImg_Slxw3_34.png"], "original_data_index": 5511, "original_sql": "SELECT StuID FROM Has_Allergy WHERE Allergy <> \"Tree Pollen\" AND \"StuID\" != 1029 EXCEPT SELECT StuID FROM Student WHERE LName = \"Epp\" AND Sex = \"M\""} {"question": "Can you give me a list of Pet IDs from the Has_Pet table, including those greater than 2002 or where the StuID is greater than or equal to 1002, and also including Pet ID 2002?", "answer": {"columns": ["PetID"], "index": [0, 1], "data": [["2002"], ["2003"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Lqcyf_3.png", "TableImg_Ft2eu_3.png"], "original_data_index": 5514, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"PetID\" > 2002 OR \"StuID\" >= 1002 UNION SELECT PetID FROM Has_Pet WHERE \"PetID\" = 2002"} {"question": "Which driver has an ID of 4 and is also the driver of a school bus with a driver ID of 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zqy18_12.png", "TableImg_41cmw_5.png"], "original_data_index": 5515, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the driver IDs from the driver table, but only those less than or equal to 2, combined with the driver IDs from the school bus table that are less than 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ge2jy_12.png", "TableImg_Z81qa_5.png"], "original_data_index": 5519, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 6, but not also less than 9 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rd6x1_12.png", "TableImg_L866h_5.png"], "original_data_index": 5520, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are both greater than or equal to 7 in the driver table and less than or equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gjfmj_12.png", "TableImg_Ipdut_5.png"], "original_data_index": 5521, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of all driver IDs, excluding driver ID 5 from the driver table and excluding driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lew21_12.png", "TableImg_Ln1av_5.png"], "original_data_index": 5522, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the smallest address ID that is at least 3, and whose address details are not \"PT\" and also not the smallest address ID with address details not equal to \"MX\"?", "answer": {"columns": ["MIN(address_id)"], "index": [0], "data": [["7"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Jesy8_10.png", "TableImg_Ykbzk_10.png"], "original_data_index": 5523, "original_sql": "SELECT MIN(address_id) FROM Addresses WHERE \"address_id\" >= 3 AND address_details != \"PT\" IN (SELECT MIN(address_id) FROM Addresses WHERE address_details != \"MX\")"} {"question": "Could you list the school IDs from the budget table where either the year is after 2005, the budget invested percent is 127.6, the total budget percent invested is 2.7, the school ID is not 2, or the budgeted amount is greater than 3666, combined with the school IDs from the endowment table where the endowment ID is not 7 or the amount is not 9.51?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_Psmo6_8.png", "TableImg_Oufco_11.png"], "original_data_index": 5524, "original_sql": "SELECT School_id FROM budget WHERE \"Year\" > 2005 OR Budget_invested_percent = \"127.6\" OR \"total_budget_percent_invested\" = 2.7 OR \"School_id\" != 2 OR \"Budgeted\" > 3666 UNION SELECT School_id FROM endowment WHERE \"endowment_id\" != 7 OR \"amount\" != 9.51"} {"question": "Can you give me a list of driver IDs that are less than 5 and also appear in the list of school bus driver IDs that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2bset_12.png", "TableImg_M15vh_5.png"], "original_data_index": 5516, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs, excluding driver ID 9, are not also driver IDs associated with school buses, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lg5sh_12.png", "TableImg_A8oib_5.png"], "original_data_index": 5517, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 1, excluding those driver IDs from the school bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z1tf8_12.png", "TableImg_7vxp9_5.png"], "original_data_index": 5526, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you list the group equity shareholding, name, and incorporation location for all companies, including those that are not joint ventures, or have a group equity shareholding of at least 60%, or whose principal activities are not cargo, or are incorporated in Hong Kong, along with companies that are not subsidiaries, have an ID less than 1, and are not named Dragonair?", "answer": {"columns": ["Group_Equity_Shareholding", "name", "Incorporated_in"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["18.77", "Air China", "China"], ["49.0", "Air China Cargo", "China"], ["60.0", "Air Hong Kong", "Hong Kong"], ["100.0", "Dragonair", "Hong Kong"], ["100.0", "Cathay Pacific Cargo", "Hong Kong"], ["100.0", "Cathay Pacific Catering Services (HK) Limited", "Hong Kong"], ["100.0", "Cathay Pacific Services Limited", "Hong Kong"], ["100.0", "Cathay Pacific Holidays", "Hong Kong"], ["100.0", "Dragonair Holidays", "Hong Kong"], ["100.0", "Hong Kong Airport Services", "Hong Kong"], ["100.0", "Vogue Laundry Service Limited", "Hong Kong"], ["45.0", "China Pacific Laundry Services", "Taiwan"], ["40.0", "VN/CX Catering Services Limited", "Vietnam"], ["30.0", "CLS Catering Services Limited", "Canada"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_40nvj_14.png", "TableImg_1fv1c_14.png"], "original_data_index": 5525, "original_sql": "SELECT Group_Equity_Shareholding, name, Incorporated_in FROM operate_company WHERE Type != \"Joint Venture\" OR \"Group_Equity_Shareholding\" >= 60.0 OR Principal_activities <> \"Cargo\" OR Incorporated_in = \"Hong Kong\" UNION ALL SELECT Group_Equity_Shareholding, name, Incorporated_in FROM operate_company WHERE Type != \"Subsidiary\" AND \"id\" < 1 AND name != \"Dragonair\""} {"question": "Can you give me a list of driver IDs that are greater than 11 from the driver table, combined with a list of driver IDs that are greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zaf5p_12.png", "TableImg_V582o_5.png"], "original_data_index": 5527, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list the aircraft IDs that are equal to 5 from the aircraft table, and combine that with a list of aircraft IDs less than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J43cp_5.png", "TableImg_Jmpy6_4.png"], "original_data_index": 5528, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O897z_12.png", "TableImg_Y6qzl_5.png"], "original_data_index": 5531, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 7, and those from the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_465ri_12.png", "TableImg_714nq_5.png"], "original_data_index": 5529, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding driver ID 4 if it appears in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G9p1x_12.png", "TableImg_Inwqz_5.png"], "original_data_index": 5530, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs, other than 4, are present in both the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ahgc0_12.png", "TableImg_Yfl8o_5.png"], "original_data_index": 5532, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the sex, student ID, major, city code, advisor, first name, and last name of all students who either have a major other than 600, don't live in PEK, have a student ID of 1010 or less, have an advisor ID of 1121 or less, or are at least 16 years old, or whose first name is not Linda and are not male, combined with the sex, student ID, major, city code, advisor, first name, and last name of all students whose first name is not Susan, live in PEK, and whose last name is not Thornton, or whose advisor ID is 5718 or greater, or whose major is 600 or less, or whose student ID is 1010 or less, or who are 20 years old?", "answer": {"columns": ["Sex", "StuID", "Major", "city_code", "Advisor", "Fname", "LName"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], "data": [["F", "1002", "600", "HKG", "7712", "Tracy", "Kim"], ["F", "1003", "600", "WAS", "7792", "Shiela", "Jones"], ["F", "1007", "600", "PIT", "8918", "Lisa", "Apap"], ["F", "1008", "600", "BAL", "9172", "Jandy", "Nelson"], ["F", "1015", "600", "HKG", "8721", "Susan", "Lee"], ["F", "1024", "540", "BAL", "7271", "Stacy", "Prater"], ["F", "1030", "550", "SFO", "2311", "Lisa", "Cheng"], ["F", "1031", "550", "PHL", "8772", "Sarah", "Smith"], ["F", "1035", "50", "WAS", "5718", "Sarah", "Schmidt"], ["F", "1001", "600", "BAL", "1121", "Linda", "Smith"], ["F", "1002", "600", "HKG", "7712", "Tracy", "Kim"], ["F", "1003", "600", "WAS", "7792", "Shiela", "Jones"], ["M", "1004", "600", "CHI", "8423", "Dinesh", "Kumar"], ["M", "1005", "600", "YYZ", "1121", "Paul", "Gompers"], ["M", "1006", "600", "BAL", "1148", "Andy", "Schultz"], ["F", "1007", "600", "PIT", "8918", "Lisa", "Apap"], ["F", "1008", "600", "BAL", "9172", "Jandy", "Nelson"], ["M", "1009", "600", "YYZ", "2192", "Eric", "Tai"], ["M", "1010", "600", "HOU", "2192", "Derek", "Lee"], ["M", "1011", "600", "PHL", "1148", "David", "Adams"], ["M", "1012", "600", "PIT", "7723", "Steven", "Davis"], ["M", "1014", "600", "DAL", "8741", "Charles", "Norris"], ["F", "1015", "600", "HKG", "8721", "Susan", "Lee"], ["M", "1016", "600", "DET", "2192", "Mark", "Schwartz"], ["M", "1017", "600", "LON", "1148", "Bruce", "Wilson"], ["M", "1018", "600", "PIT", "1121", "Michael", "Leighton"], ["M", "1019", "600", "WAS", "2192", "Arthur", "Pang"], ["M", "1020", "520", "NYC", "7271", "Ian", "Thornton"], ["M", "1021", "520", "NYC", "8722", "George", "Andreou"], ["M", "1022", "540", "PHL", "8722", "Michael", "Woods"], ["M", "1023", "520", "NYC", "8722", "David", "Shieber"], ["F", "1024", "540", "BAL", "7271", "Stacy", "Prater"], ["M", "1025", "520", "PIT", "7134", "Mark", "Goldman"], ["M", "1026", "520", "HKG", "7134", "Eric", "Pang"], ["M", "1027", "520", "LOS", "8723", "Paul", "Brody"], ["M", "1028", "550", "ROC", "2311", "Eric", "Rugh"], ["M", "1029", "100", "PEK", "2311", "Jun", "Han"], ["F", "1030", "550", "SFO", "2311", "Lisa", "Cheng"], ["F", "1031", "550", "PHL", "8772", "Sarah", "Smith"], ["M", "1032", "550", "ATL", "8772", "Eric", "Brown"], ["M", "1033", "550", "NAR", "8772", "William", "Simms"], ["M", "1034", "50", "BOS", "5718", "Eric", "Epp"], ["F", "1035", "50", "WAS", "5718", "Sarah", "Schmidt"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Fxwbk_34.png", "TableImg_F0k0l_34.png"], "original_data_index": 5533, "original_sql": "SELECT Sex, StuID, Major, city_code, Advisor, Fname, LName FROM Student WHERE \"Major\" != 600 AND city_code != \"PEK\" AND \"StuID\" <= 1010 AND \"Advisor\" <= 1121 AND \"Age\" >= 16 OR Fname != \"Linda\" AND Sex != \"M\" UNION ALL SELECT Sex, StuID, Major, city_code, Advisor, Fname, LName FROM Student WHERE Fname != \"Susan\" AND city_code = \"PEK\" AND LName != \"Thornton\" AND \"Advisor\" >= 5718 OR \"Major\" <= 600 OR \"StuID\" <= 1010 OR \"Age\" = 20"} {"question": "Can you list the aircraft IDs that are greater than 4 from the aircraft table, and also list the aircraft IDs that are less than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1ic3k_5.png", "TableImg_T6w6j_4.png"], "original_data_index": 5534, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which driver IDs are greater than or equal to 7, excluding those driver IDs that are not equal to 9 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9mv0w_12.png", "TableImg_47lna_5.png"], "original_data_index": 5535, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "How many times has each aircraft been to an airport?", "answer": {"columns": ["Aircraft_ID", "COUNT(T2.Aircraft_ID)"], "index": [0], "data": [["2", "4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lvofb_5.png", "TableImg_Uts90_4.png"], "original_data_index": 5539, "original_sql": "SELECT T1.Aircraft_ID, COUNT(T2.Aircraft_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5 from the driver table and driver ID 4 from the school bus table, making sure to list each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_42m80_12.png", "TableImg_9zv3a_5.png"], "original_data_index": 5538, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the highest age and corresponding head ID for heads who were born in California and are 68 years old, or whose department ID is greater than 2, or whose name is Nick Faldo and are temporarily acting?", "answer": {"columns": ["MAX(T1.age)", "head_ID"], "index": [0], "data": [["", ""]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_31oos_10.png", "TableImg_S336d_5.png"], "original_data_index": 5537, "original_sql": "SELECT MAX(T1.age), T2.head_ID FROM head as T1 JOIN management as T2 ON T1.head_ID = T2.head_ID WHERE born_state = \"California\" AND age = 68.0 OR department_ID > 2 OR name = \"Nick Faldo\" AND temporary_acting = \"Yes\""} {"question": "What is the sum of shipping agent codes from documents where the receipt number is 34 and the document ID is not 4, or the receipt date is May 31, 1996, at 6:51:58 AM, or the shipping agent code is not SH, but only if it's also the sum of shipping agent codes from shipping agents where the shipping agent code is US or the shipping agent description is not g?", "answer": {"columns": ["SUM(shipping_agent_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Qmfzd_15.png", "TableImg_Grv12_5.png"], "original_data_index": 5536, "original_sql": "SELECT SUM(shipping_agent_code) FROM Documents WHERE receipt_number = \"34\" AND \"document_id\" != 4 OR receipt_date = \"1996-05-31 06:51:58\" OR shipping_agent_code != \"SH\" INTERSECT SELECT SUM(shipping_agent_code) FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"US\" OR shipping_agent_description <> \"g\""} {"question": "Which driver IDs are both not equal to 2 and also greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bt1sk_12.png", "TableImg_Pxpdr_5.png"], "original_data_index": 5540, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What is the earliest year a coach other than coach ID 1 started coaching since 2013, excluding the earliest year any player other than player ID 10 started playing?", "answer": {"columns": ["MIN(Starting_year)"], "index": [0], "data": [["2013"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_Wxwh1_7.png", "TableImg_Bs3z0_7.png"], "original_data_index": 5541, "original_sql": "SELECT MIN(Starting_year) FROM player_coach WHERE \"Coach_ID\" <> 1 AND \"Starting_year\" >= 2013 EXCEPT SELECT MIN(Starting_year) FROM player_coach WHERE \"Player_ID\" != 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1 from the driver table, combined with a list of driver IDs, excluding driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bldjn_12.png", "TableImg_G4soj_5.png"], "original_data_index": 5544, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are less than 11 and also greater than or equal to 10, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9t4ml_12.png", "TableImg_N7k67_5.png"], "original_data_index": 5543, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you find the minimum gold, bronze, sum of rank, minimum big silver, and maximum club ID from the match results, first considering only results where small silver is not 4 or where big silver is at most 7 and points are at least 168 and rank is greater than 4, and then combining those with results where points are at most 139 and big silver is not 14 or club ID is not 2 or gold is not 13 and rank is less than 2 or bronze is greater than 9 or small silver is at most 16?", "answer": {"columns": ["MIN(Gold)", "Bronze", "SUM(Rank)", "MIN(Big_Silver)", "MAX(Club_ID)"], "index": [0, 1], "data": [["5", "6", "18", "6", "6"], ["5", "6", "21", "6", "6"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_911aa_6.png", "TableImg_5fyo9_6.png"], "original_data_index": 5542, "original_sql": "SELECT MIN(Gold), Bronze, SUM(Rank), MIN(Big_Silver), MAX(Club_ID) FROM match_result WHERE \"Small_Silver\" != 4 OR \"Big_Silver\" <= 7 AND \"Points\" >= 168 AND \"Rank\" > 4 UNION ALL SELECT MIN(Gold), Bronze, SUM(Rank), MIN(Big_Silver), MAX(Club_ID) FROM match_result WHERE \"Points\" <= 139 AND \"Big_Silver\" != 14 OR \"Club_ID\" != 2 OR \"Gold\" != 13 AND \"Rank\" < 2 OR \"Bronze\" > 9 OR \"Small_Silver\" <= 16"} {"question": "What are the highest mailed-to address ID and document ID, along with the earliest mailing date, from the Documents Mailed table, both when the mailing date is not November 3, 1971, and when the document ID is greater than 24 and the mailing date is not May 22, 1999?", "answer": {"columns": ["MAX(mailed_to_address_id)", "MAX(document_id)", "MIN(mailing_date)"], "index": [0, 1], "data": [["", "", ""], ["9.0", "24.0", "1973-02-21 10:17:01"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_Du0jk_14.png", "TableImg_3nzqo_14.png"], "original_data_index": 5545, "original_sql": "SELECT MAX(mailed_to_address_id), MAX(document_id), MIN(mailing_date) FROM Documents_Mailed WHERE mailing_date <> \"1971-11-03 12:32:14\" UNION SELECT MAX(mailed_to_address_id), MAX(document_id), MIN(mailing_date) FROM Documents_Mailed WHERE \"document_id\" > 24 AND mailing_date <> \"1999-05-22 23:21:07\""} {"question": "What aircraft IDs are greater than or equal to 3, excluding those aircraft IDs that are also greater than 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_13qj0_5.png", "TableImg_Qvr8p_4.png"], "original_data_index": 5548, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What is the highest name among people who are either older than 25 or not person number 3, and whose name isn't Brad Lohaus and who graduated from Northeastern, excluding the highest name among people with a person ID less than 3?", "answer": {"columns": ["MAX(Name)"], "index": [0], "data": [["Tom Sheehey"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_02u00_7.png", "TableImg_Oxtcs_7.png"], "original_data_index": 5547, "original_sql": "SELECT MAX(Name) FROM people WHERE \"Age\" > 25 OR \"People_ID\" != 3 AND Name != \"Brad Lohaus\" AND Graduation_College = \"Northeastern\" EXCEPT SELECT MAX(Name) FROM people WHERE \"People_ID\" < 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4 from the driver table and driver ID 7 from the school_bus table, making sure to list each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kwuzi_12.png", "TableImg_Q9cfd_5.png"], "original_data_index": 5546, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which aircraft IDs are present in both the aircraft and airport_aircraft tables, considering only those aircraft IDs that are greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6ytvi_5.png", "TableImg_0inyn_4.png"], "original_data_index": 5549, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 6 from the driver table and driver ID 3 from the school_bus table, making sure to remove any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J6ugs_12.png", "TableImg_Ffz96_5.png"], "original_data_index": 5553, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2g98b_12.png", "TableImg_9svmt_5.png"], "original_data_index": 5550, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Could you give me a list of document IDs, including those from document drafts that don't have draft details marked as \"p\", and also those from mailed documents that weren't mailed on \"1991-05-27 14:17:37\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "data": [["1"], ["1"], ["2"], ["2"], ["4"], ["7"], ["10"], ["12"], ["12"], ["13"], ["14"], ["17"], ["20"], ["23"], ["2"], ["4"], ["4"], ["7"], ["10"], ["12"], ["12"], ["12"], ["14"], ["20"], ["20"], ["23"], ["24"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Itg0p_15.png", "TableImg_Ta637_14.png"], "original_data_index": 5552, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details != \"p\" UNION ALL SELECT document_id FROM Documents_Mailed WHERE mailing_date != \"1991-05-27 14:17:37\""} {"question": "Could you give me a list of employee IDs for people who either live in Bath, are at least 32 years old and have an employee ID of 1 or less, or have a name other than Louis Deacon, but excluding anyone who received an evaluation award in a year other than 2016?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Nyxmw_10.png", "TableImg_3ilhb_6.png"], "original_data_index": 5551, "original_sql": "SELECT Employee_ID FROM employee WHERE City = \"Bath\" OR \"Age\" >= 32 AND \"Employee_ID\" <= 1 OR Name != \"Louis Deacon\" EXCEPT SELECT Employee_ID FROM evaluation WHERE Year_awarded <> \"2016\""} {"question": "What are the aircraft IDs that are greater than or equal to 3, excluding those aircraft IDs that are less than or equal to 3 and are also associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qz2od_5.png", "TableImg_Lbd25_4.png"], "original_data_index": 5555, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, from the driver table, but then remove any driver IDs that are also driver ID 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M13ps_12.png", "TableImg_Ssf2a_5.png"], "original_data_index": 5556, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Could you give me a list of member IDs, including those from members whose name isn't Ventrell Jenkins and whose level is 6 or higher, along with those from purchases where the member ID is greater than 1, the year isn't 2018, the total pounds isn't 232.09, or the branch ID isn't 2?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["5"], ["7"], ["8"], ["9"], ["1"], ["2"], ["3"], ["4"], ["3"], ["6"], ["2"], ["2"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_Fln8t_10.png", "TableImg_8svwe_8.png"], "original_data_index": 5554, "original_sql": "SELECT Member_ID FROM member WHERE Name != \"Ventrell Jenkins\" AND \"Level\" >= 6 UNION ALL SELECT Member_ID FROM purchase WHERE \"Member_ID\" > 1 AND Year != \"2018\" OR \"Total_pounds\" <> 232.09 OR Branch_ID != \"2\""} {"question": "Which club IDs and positions are held by members who either have a student ID less than 1007 or are not Vice-President, and also either have a student ID not equal to 1007, or a club ID greater than or equal to 2, or are not President?", "answer": {"columns": ["ClubID", "Position"], "index": [0, 1, 2], "data": [["1", "President"], ["1", "Teaching Coordinator"], ["2", "CTO"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_B4p3n_4.png", "TableImg_055xs_4.png"], "original_data_index": 5557, "original_sql": "SELECT ClubID, Position FROM Member_of_club WHERE \"StuID\" < 1007 OR Position != \"Vice-President\" INTERSECT SELECT ClubID, Position FROM Member_of_club WHERE \"StuID\" <> 1007 OR \"ClubID\" >= 2 OR Position <> \"President\""} {"question": "Which driver IDs are both greater than or equal to 6 in the driver table and greater than or equal to 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4nh7k_12.png", "TableImg_Bndxs_5.png"], "original_data_index": 5558, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the aircraft IDs that are either aircraft ID 3 from the aircraft table or aircraft IDs greater than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Seco1_5.png", "TableImg_Wketg_4.png"], "original_data_index": 5559, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs, up to and including 6, that are not also driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6y9ew_12.png", "TableImg_G0mpx_5.png"], "original_data_index": 5560, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 2, excluding those driver IDs that are also school bus driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vikve_12.png", "TableImg_Xkw41_5.png"], "original_data_index": 5562, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "How many aircraft meet these conditions: either their description isn't \"Light utility helicopter\" or their total disk area isn't \"497 ft\u00b2 (46.2 m\u00b2)\", and their aircraft type isn't \"Robinson R-22\", and their max disk loading isn't \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\", or their max gross weight is \"73,500 lb (33,300 kg)\" and their Aircraft ID is greater than 4, but only counting those that also have an Aircraft ID less than or equal to 5 in the airport aircraft table?", "answer": {"columns": ["COUNT(Aircraft_ID)"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uvtuz_5.png", "TableImg_Oqgpr_4.png"], "original_data_index": 5561, "original_sql": "SELECT COUNT(Aircraft_ID) FROM aircraft WHERE Description <> \"Light utility helicopter\" OR Total_disk_area != \"497 ft\u00b2 (46.2 m\u00b2)\" AND Aircraft <> \"Robinson R-22\" AND Max_disk_Loading <> \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" OR Max_Gross_Weight = \"73,500 lb (33,300 kg)\" AND \"Aircraft_ID\" > 4 INTERSECT SELECT COUNT(Aircraft_ID) FROM airport_aircraft WHERE \"Aircraft_ID\" <= 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 11, and those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lku5g_12.png", "TableImg_1imyz_5.png"], "original_data_index": 5565, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are both greater than or equal to 3 and appear in the driver table, and also greater than or equal to 10 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_28j1q_12.png", "TableImg_4sxfv_5.png"], "original_data_index": 5566, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 4, and also list the aircraft IDs from the airport_aircraft table that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jfnvd_5.png", "TableImg_Z9qe0_4.png"], "original_data_index": 5564, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of aircraft IDs from the aircraft table, excluding aircraft ID 3, but only if those IDs are not also in the airport_aircraft table where the aircraft ID is greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tnj86_5.png", "TableImg_P85hl_4.png"], "original_data_index": 5563, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What is the average draft number for document 20, excluding the average draft numbers for documents with IDs greater than 12?", "answer": {"columns": ["AVG(draft_number)"], "index": [0], "data": [["17"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_Gmz3o_15.png", "TableImg_C592a_8.png"], "original_data_index": 5569, "original_sql": "SELECT AVG(draft_number) FROM Document_Drafts WHERE \"document_id\" = 20 EXCEPT SELECT AVG(draft_number) FROM Draft_Copies WHERE \"document_id\" > 12"} {"question": "Can you give me a list of driver IDs that are less than 8, excluding those driver IDs that are also less than or equal to 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gbtka_12.png", "TableImg_3i66l_5.png"], "original_data_index": 5568, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Could you give me the member IDs of members who either live in Simpsonville, South Carolina, have a card number other than LE99, have a member ID of 5 or greater, or are not named Braxton Kelley, but only if those members also made purchases where the total pounds purchased was not 430.29 or the purchase year was not 2017?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["6"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_Si7kv_10.png", "TableImg_Wmwlh_8.png"], "original_data_index": 5570, "original_sql": "SELECT Member_ID FROM member WHERE Hometown = \"Simpsonville, South Carolina\" OR Card_Number <> \"LE99\" OR \"Member_ID\" >= 5 OR Name <> \"Braxton Kelley\" INTERSECT SELECT Member_ID FROM purchase WHERE \"Total_pounds\" <> 430.29 OR Year <> \"2017\""} {"question": "Can you list the document ID, draft number, and employee ID from the circulation history for documents with an ID of 20 or less and employees with an ID of 2 or less, combined with a list of the same information for circulation history entries where either the copy number isn't 4 and the document ID isn't 10, or the employee ID isn't 1 and the draft number isn't 17?", "answer": {"columns": ["document_id", "draft_number", "employee_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "2", "1"], ["2", "1", "2"], ["10", "20", "2"], ["20", "17", "8"], ["1", "2", "1"], ["2", "1", "2"], ["10", "20", "2"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Qea05_4.png", "TableImg_Oo5ht_4.png"], "original_data_index": 5567, "original_sql": "SELECT document_id, draft_number, employee_id FROM Circulation_History WHERE \"document_id\" <= 20 AND \"employee_id\" <= 2 UNION ALL SELECT document_id, draft_number, employee_id FROM Circulation_History WHERE \"copy_number\" != 4 AND \"document_id\" != 10 OR \"employee_id\" != 1 AND \"draft_number\" <> 17"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 1, and those from the school bus table that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pyd5i_12.png", "TableImg_6jitp_5.png"], "original_data_index": 5571, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 11, and those from the school bus table that are 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I2col_12.png", "TableImg_0h22x_5.png"], "original_data_index": 5572, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list all car models that are either a \"cadillac\" with a MakeId of 169 or greater, or a \"toyota corolla\", except for those models made by Maker 4?", "answer": {"columns": ["Model"], "index": [0], "data": [["cadillac"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_Z2cpy_406.png", "TableImg_Zk03f_36.png"], "original_data_index": 5573, "original_sql": "SELECT Model FROM car_names WHERE Model = \"cadillac\" AND \"MakeId\" >= 169 OR Make = \"toyota corolla\" EXCEPT SELECT Model FROM model_list WHERE \"Maker\" <> 4"} {"question": "Which aircraft IDs, excluding ID 4, appear in the aircraft table and are also less than ID 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1zxci_5.png", "TableImg_X21yf_4.png"], "original_data_index": 5575, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you list all the feature names from the Other_Available_Features table, including those with a description of \"Burglar Alarm\", those that aren't named \"BurglarAlarm\" and have a feature ID greater than 2, those with a feature type code that isn't \"Security\", and also all feature names where the description is not \"Burglar Alarm\"?", "answer": {"columns": ["feature_name"], "index": [0, 1, 2, 3, 4], "data": [["AirCon"], ["Pool"], ["BurglarAlarm"], ["AirCon"], ["Pool"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_Q8bx1_3.png", "TableImg_0jjq8_3.png"], "original_data_index": 5574, "original_sql": "SELECT feature_name FROM Other_Available_Features WHERE feature_description = \"Burglar Alarm\" OR feature_name <> \"BurglarAlarm\" AND \"feature_id\" > 2 OR feature_type_code != \"Security\" UNION ALL SELECT feature_name FROM Other_Available_Features WHERE feature_description != \"Burglar Alarm\""} {"question": "Can you give me a list of driver IDs, where the IDs are not equal to 3 from the driver table, combined with a list of driver IDs less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J5h51_12.png", "TableImg_J94gs_5.png"], "original_data_index": 5577, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ww7zq_12.png", "TableImg_Bn0dn_5.png"], "original_data_index": 5578, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of item IDs, including those that are 6 or greater, and also those that don't have the title \"apple\"?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["6"], ["7"], ["0"], ["1"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_C91en_8.png", "TableImg_Q2y8u_8.png"], "original_data_index": 5576, "original_sql": "SELECT i_id FROM item WHERE \"i_id\" >= 6 UNION ALL SELECT i_id FROM item WHERE title <> \"apple\""} {"question": "Can you give me the name, ranking, creation date, number of employees, budget, and department ID for departments that meet two sets of criteria: first, they're either named \"Transportation\" or have a department ID of 2 or greater, a budget not equal to 59.7 billion, a creation date other than 1966, no more than 115,897 employees, and a ranking of 4 or less; and second, they have at least 17,347 employees, a department ID of 2, a ranking of 14 or less, or a name other than \"Justice\"?", "answer": {"columns": ["Name", "Ranking", "Creation", "Num_Employees", "Budget_in_Billions", "Department_ID"], "index": [0, 1, 2], "data": [["Justice", "4", "1870", "112557", "23.4", "4"], ["Transportation", "11", "1966", "58622", "58.0", "11"], ["Treasury", "2", "1789", "115897", "11.1", "2"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_118lp_15.png", "TableImg_Wh18u_15.png"], "original_data_index": 5579, "original_sql": "SELECT Name, Ranking, Creation, Num_Employees, Budget_in_Billions, Department_ID FROM department WHERE Name = \"Transportation\" OR \"Department_ID\" >= 2 AND \"Budget_in_Billions\" != 59.7 AND Creation <> \"1966\" AND \"Num_Employees\" <= 115897.0 AND \"Ranking\" <= 4 INTERSECT SELECT Name, Ranking, Creation, Num_Employees, Budget_in_Billions, Department_ID FROM department WHERE \"Num_Employees\" >= 17347.0 AND \"Department_ID\" = 2 OR \"Ranking\" <= 14 OR Name != \"Justice\""} {"question": "What are the average branch ID and lowest member ID for members registered in 2016, excluding member ID 6, minus the average branch ID and lowest member ID from purchases made in years other than 2018 where the total pounds spent was no more than 343.76?", "answer": {"columns": ["AVG(Branch_ID)", "MIN(Member_ID)"], "index": [0], "data": [["3.5", "1"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Snz0q_8.png", "TableImg_Tqjh7_8.png"], "original_data_index": 5582, "original_sql": "SELECT AVG(Branch_ID), MIN(Member_ID) FROM membership_register_branch WHERE \"Member_ID\" != 6 AND Register_Year = \"2016\" EXCEPT SELECT AVG(Branch_ID), MIN(Member_ID) FROM purchase WHERE Year <> \"2018\" AND \"Total_pounds\" <= 343.76"} {"question": "Can you list all the aircraft IDs that are either equal to 5 in the aircraft table, or less than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fcq0y_5.png", "TableImg_Vcwn1_4.png"], "original_data_index": 5580, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 2, and combine that with a list of all aircraft IDs from the airport aircraft, excluding aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iy853_5.png", "TableImg_4zjes_4.png"], "original_data_index": 5583, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me a list of customer IDs from payments where either the payment amount isn't $6782.84 or the customer ID isn't 6, but exclude any customer IDs from lessons where the lesson date isn't March 5, 2018 at 6:05:31 PM, the vehicle ID isn't 2, the lesson ID isn't less than 5, the staff ID isn't greater than or equal to 8, or the lesson status is not completed?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["12"], ["14"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_2wbd4_15.png", "TableImg_1vgwm_15.png"], "original_data_index": 5581, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"amount_payment\" != 6782.84 OR \"customer_id\" != 6 EXCEPT SELECT customer_id FROM Lessons WHERE lesson_date <> \"2018-03-05 18:05:31\" OR \"vehicle_id\" != 2 OR \"lesson_id\" < 5 OR \"staff_id\" >= 8 OR lesson_status_code = \"Completed\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 9 and also greater than or equal to 3, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kfiy4_12.png", "TableImg_Mq6yu_5.png"], "original_data_index": 5584, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are greater than 2 and also not equal to 10, considering only unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ivl82_12.png", "TableImg_6bya2_5.png"], "original_data_index": 5586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me the smallest aircraft ID and corresponding airport ID for each maximum gross weight, excluding airport ID 9, but only for those where the description is \"Tandem rotor helicopter\", the aircraft isn't \"CH-47D Chinook\", or the airport ID is less than 9, and the max disk loading isn't \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\"?", "answer": {"columns": ["MIN(T1.Aircraft_ID)", "Airport_ID"], "index": [0, 1, 2], "data": [["1", "2"], ["2", "1"], ["5", "6"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P2yl2_5.png", "TableImg_S71bj_4.png"], "original_data_index": 5585, "original_sql": "SELECT MIN(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID WHERE \"Airport_ID\" <> 9 GROUP BY Max_Gross_Weight HAVING Description = \"Tandem rotor helicopter\" AND Aircraft <> \"CH-47D Chinook\" AND Max_disk_Loading <> \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" OR Airport_ID < 9"} {"question": "Which driver IDs are greater than 2 and also greater than or equal to 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0e894_12.png", "TableImg_8boyu_5.png"], "original_data_index": 5587, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me the total number of issues, the sum of the titles, and the writer for books where either the writer isn't Dave Gibbons, or the title is Bloody Mary, the number of issues isn't 6, and the book ID isn't 2, combined with the total number of issues, the sum of the titles, and the writer for books where either the title isn't The Dome: Ground Zero, or the number of issues isn't 4, and the writer is Garth Ennis?", "answer": {"columns": ["SUM(Issues)", "SUM(Title)", "Writer"], "index": [0], "data": [["62", "0", "Timothy Truman"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_F5nhp_10.png", "TableImg_Wf35w_10.png"], "original_data_index": 5588, "original_sql": "SELECT SUM(Issues), SUM(Title), Writer FROM book WHERE Writer <> \"Dave Gibbons\" OR Title = \"Bloody Mary\" AND \"Issues\" != 6.0 AND \"Book_ID\" != 2 UNION SELECT SUM(Issues), SUM(Title), Writer FROM book WHERE Title != \"The Dome: Ground Zero\" OR \"Issues\" <> 4.0 AND Writer = \"Garth Ennis\""} {"question": "Can you give me a list of driver IDs that are less than 5, excluding any driver IDs that are not equal to 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0y4xb_12.png", "TableImg_As2js_5.png"], "original_data_index": 5592, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 9 from the driver table, excluding any driver IDs that are less than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lc8lg_12.png", "TableImg_B2le5_5.png"], "original_data_index": 5589, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 7, and those from the school bus table with driver IDs of 4 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Scfw8_12.png", "TableImg_Ioql0_5.png"], "original_data_index": 5591, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What is the smallest continent name when the continent is Australia and the ContId is less than 3, and also, what is the smallest continent name when the ContId is 5?", "answer": {"columns": ["MIN(Continent)"], "index": [0, 1], "data": [[""], ["australia"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_C1w4z_5.png", "TableImg_9ofsx_5.png"], "original_data_index": 5590, "original_sql": "SELECT MIN(Continent) FROM continents WHERE Continent = \"australia\" AND \"ContId\" < 3 UNION ALL SELECT MIN(Continent) FROM continents WHERE \"ContId\" = 5"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 7, excluding those driver IDs from the school_bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xb4r2_12.png", "TableImg_Fpaov_5.png"], "original_data_index": 5594, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which aircraft IDs are both less than or equal to 5 in the aircraft table and greater than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vo0pu_5.png", "TableImg_Ur9jv_4.png"], "original_data_index": 5595, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Could you list the names and budgets in billions for departments that are ranked 8 or lower, have a budget less than 21.5 billion, a department ID less than 7, and fewer than 115,897 employees, but exclude any departments with more than 116,100 employees?", "answer": {"columns": ["Name", "Budget_in_Billions"], "index": [0, 1], "data": [["Interior", "10.7"], ["State", "9.96"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Zb565_15.png", "TableImg_3cas8_15.png"], "original_data_index": 5593, "original_sql": "SELECT Name, Budget_in_Billions FROM department WHERE \"Ranking\" <= 8 AND \"Budget_in_Billions\" < 21.5 AND \"Department_ID\" < 7 AND \"Num_Employees\" < 115897.0 EXCEPT SELECT Name, Budget_in_Billions FROM department WHERE \"Num_Employees\" > 116100.0"} {"question": "Can you give me the IDs of drivers with IDs up to 12, excluding those drivers with IDs up to 9 who are also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Freyr_12.png", "TableImg_Tmrjl_5.png"], "original_data_index": 5596, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me the amount, donator name, and school ID for endowments that meet these two conditions: first, the amount isn't 8.99 or the endowment ID isn't 7 and the school ID is 4; and second, the amount isn't 9.51 and the school ID is 3, or the endowment ID is 4?", "answer": {"columns": ["amount", "donator_name", "School_id"], "index": [0, 1, 2], "data": [["9.05", "San Crist\u00f3bal", "3"], ["9.55", "Distrito Nacional", "3"], ["9.73", "Valverde", "3"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_Bvffi_11.png", "TableImg_17sbi_11.png"], "original_data_index": 5597, "original_sql": "SELECT amount, donator_name, School_id FROM endowment WHERE \"amount\" <> 8.99 OR \"endowment_id\" != 7 AND \"School_id\" = 4 INTERSECT SELECT amount, donator_name, School_id FROM endowment WHERE \"amount\" != 9.51 AND \"School_id\" = 3 OR \"endowment_id\" = 4"} {"question": "Can you give me the address details and IDs for addresses with IDs less than 9 that also have IDs greater than or equal to 6?", "answer": {"columns": ["address_details", "address_id"], "index": [0, 1, 2], "data": [["IE", "8"], ["PT", "7"], ["US", "6"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_X6yzq_10.png", "TableImg_Tug80_10.png"], "original_data_index": 5600, "original_sql": "SELECT address_details, address_id FROM Addresses WHERE \"address_id\" < 9 INTERSECT SELECT address_details, address_id FROM Addresses WHERE \"address_id\" >= 6"} {"question": "Can you list the employee IDs and cities for all employees who either live in Bristol and are named Jason Hobson and have an employee ID that is not 1 or are 23 years old, along with the employee IDs and cities for all employees who are not named Jason Hobson?", "answer": {"columns": ["Employee_ID", "City"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1", "Bristol"], ["4", "Bristol"], ["1", "Bristol"], ["2", "Bath"], ["3", "Bristol"], ["5", "Wasps"], ["6", "Sale"], ["7", "Bath"], ["8", "Wasps"], ["9", "Bath"], ["10", "Leicester"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Ovarh_10.png", "TableImg_4a63t_10.png"], "original_data_index": 5599, "original_sql": "SELECT Employee_ID, City FROM employee WHERE City = \"Bristol\" AND Name = \"Jason Hobson\" AND \"Employee_ID\" != 1 OR \"Age\" = 23 UNION ALL SELECT Employee_ID, City FROM employee WHERE Name <> \"Jason Hobson\""} {"question": "Which customer IDs are associated with direct debit payments made at times other than 2018-03-12 08:41:47, and also belong to customers who either have an amount outstanding greater than 3751.0 and were born on 1995-07-17 12:13:16, have a \"Good Customer\" status, became a customer on a date other than 2015-06-24 03:50:04, and have the email address mariela28@example.org, and whose customer address ID is less than or equal to 10, or whose last name is not Sanford and whose cell phone number is not 578-518-4785x612, or whose customer ID is less than 9 and whose first name is not Estelle?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["6"], ["7"], ["10"], ["11"], ["14"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Vwc66_15.png", "TableImg_4yvc5_15.png"], "original_data_index": 5598, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment != \"2018-03-12 08:41:47\" AND payment_method_code = \"Direct Debit\" INTERSECT SELECT customer_id FROM Customers WHERE \"amount_outstanding\" > 3751.0 AND date_of_birth = \"1995-07-17 12:13:16\" AND customer_status_code = \"Good Customer\" AND date_became_customer != \"2015-06-24 03:50:04\" AND email_address = \"mariela28@example.org\" AND \"customer_address_id\" <= 10 OR last_name <> \"Sanford\" AND cell_mobile_phone_number != \"578-518-4785x612\" OR \"customer_id\" < 9 AND first_name != \"Estelle\""} {"question": "Can you give me a list of driver IDs that are 10 or greater from the driver table, excluding any driver IDs less than 4 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lm9t5_12.png", "TableImg_Apfba_5.png"], "original_data_index": 5601, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, including driver ID 10 from the driver table and driver ID 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1umfk_12.png", "TableImg_Bkyto_5.png"], "original_data_index": 5603, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of all Driver IDs, including those from the driver table where the ID is 1 or greater, and those from the school_bus table where the ID is not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9210q_12.png", "TableImg_1wfzq_5.png"], "original_data_index": 5604, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of aircraft IDs, including aircraft ID 5 from the aircraft table and aircraft ID 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0o5zj_5.png", "TableImg_0w5ue_4.png"], "original_data_index": 5605, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of aircraft IDs that are less than 3, and also appear in the list of aircraft IDs from the airport, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0gh3o_5.png", "TableImg_V26si_4.png"], "original_data_index": 5602, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are not equal to 3 and are also not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mx7j5_12.png", "TableImg_W3il1_5.png"], "original_data_index": 5608, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you list the Aircraft IDs that are greater than 5 from the aircraft table, and combine that with a list of Aircraft IDs that are not equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Epcus_5.png", "TableImg_Gp7nl_4.png"], "original_data_index": 5606, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or less, and those from the school_bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iqlad_12.png", "TableImg_Zklg4_5.png"], "original_data_index": 5607, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list all the aircraft IDs, first those from the aircraft table excluding ID 5, and then those from the airport_aircraft table that are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ujlcp_5.png", "TableImg_Wyvg6_4.png"], "original_data_index": 5609, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which aircraft IDs, excluding aircraft ID 1, are also among the aircraft IDs less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_98ihc_5.png", "TableImg_De1w9_4.png"], "original_data_index": 5612, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 10, and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F12b0_12.png", "TableImg_Bletd_5.png"], "original_data_index": 5611, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 6, and those from the school bus table with driver IDs of 3 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Agsbb_12.png", "TableImg_O91rl_5.png"], "original_data_index": 5613, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of people IDs, including those who are Russian and at least 182 cm tall, as well as poker players with an ID of 1 or higher who have made fewer than 26 final tables?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Hbr20_7.png", "TableImg_Kbacw_5.png"], "original_data_index": 5610, "original_sql": "SELECT People_ID FROM people WHERE Nationality = \"Russia\" AND \"Height\" >= 182.0 UNION SELECT People_ID FROM poker_player WHERE \"People_ID\" >= 1 AND \"Final_Table_Made\" < 26.0"} {"question": "Can you give me a list of driver IDs that are less than 5 and also not equal to 9, considering only the unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xula9_12.png", "TableImg_Px3gn_5.png"], "original_data_index": 5614, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs, excluding driver ID 7, are not also driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S1362_12.png", "TableImg_Uvln2_5.png"], "original_data_index": 5615, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 1 and not equal to 7, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cqqxh_12.png", "TableImg_Fkmwj_5.png"], "original_data_index": 5617, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list the aircraft IDs that are equal to 1 from the aircraft table, and combine that with a list of aircraft IDs greater than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3z5ak_5.png", "TableImg_6zygi_4.png"], "original_data_index": 5618, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you list the country and full name of all car makers with an ID less than 16, combined with the country and full name of car makers that are either Volkswagen, BMW, not from country code 3, or have an ID that is not 17?", "answer": {"columns": ["Country", "FullName"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35], "data": [["1", "American Motor Company"], ["2", "Volkswagen"], ["2", "BMW"], ["1", "General Motors"], ["1", "Ford Motor Company"], ["1", "Chrysler"], ["3", "Citroen"], ["4", "Nissan Motors"], ["5", "Fiat"], ["4", "Honda"], ["4", "Mazda"], ["2", "Daimler Benz"], ["2", "Opel"], ["3", "Peugeaut"], ["1", "American Motor Company"], ["2", "Volkswagen"], ["2", "BMW"], ["1", "General Motors"], ["1", "Ford Motor Company"], ["1", "Chrysler"], ["3", "Citroen"], ["4", "Nissan Motors"], ["5", "Fiat"], ["4", "Honda"], ["4", "Mazda"], ["2", "Daimler Benz"], ["2", "Opel"], ["3", "Peugeaut"], ["3", "Renault"], ["6", "Saab"], ["4", "Subaru"], ["4", "Toyota"], ["7", "Triumph"], ["6", "Volvo"], ["8", "Kia Motors"], ["8", "Hyundai"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_Gkfwg_22.png", "TableImg_Npw26_22.png"], "original_data_index": 5616, "original_sql": "SELECT Country, FullName FROM car_makers WHERE \"Id\" < 16 UNION ALL SELECT Country, FullName FROM car_makers WHERE Maker = \"volkswagen\" OR FullName = \"BMW\" OR Country <> \"3\" OR \"Id\" != 17"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are also aircraft IDs, excluding aircraft ID 1, found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yfjsd_5.png", "TableImg_Bnjsb_4.png"], "original_data_index": 5619, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What is the total of all contestant numbers excluding contestant number 10, combined with the total of all contestant numbers from the votes table excluding contestant number 3?", "answer": {"columns": ["SUM(contestant_number)"], "index": [0, 1], "data": [["7"], ["56"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_50dy3_11.png", "TableImg_B1x53_4.png"], "original_data_index": 5620, "original_sql": "SELECT SUM(contestant_number) FROM CONTESTANTS WHERE \"contestant_number\" <> 10 UNION SELECT SUM(contestant_number) FROM VOTES WHERE \"contestant_number\" <> 3"} {"question": "Can you give me a list of aircraft IDs, including those that appear with an ID of 3 in the aircraft table and those that appear with an ID of 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tt3o7_5.png", "TableImg_Qxd6z_4.png"], "original_data_index": 5622, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me the IDs of drivers who have an ID less than 4 and also drive a school bus, but whose ID is not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vozvf_12.png", "TableImg_Jxrvb_5.png"], "original_data_index": 5621, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list the aircraft IDs that are both less than or equal to 4 and not equal to 2, considering only the aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mzox7_5.png", "TableImg_P70si_4.png"], "original_data_index": 5623, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are also greater than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rrcr3_12.png", "TableImg_Hmm2y_5.png"], "original_data_index": 5625, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of aircraft IDs that are greater than 1, excluding those aircraft IDs that are not equal to 5 and are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zy9w0_5.png", "TableImg_Ztuax_4.png"], "original_data_index": 5626, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Could you list the store IDs that are not 1 and are in districts with an ID less than 15, combined with the store IDs that are 1 but have products that are not product 6?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_R9xxc_5.png", "TableImg_Ahkh1_15.png"], "original_data_index": 5624, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" != 1 AND \"District_ID\" < 15 UNION SELECT Store_ID FROM store_product WHERE \"Store_ID\" = 1 AND \"Product_ID\" != 6"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 3, and those from the school_bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1ip12_12.png", "TableImg_Dhoix_5.png"], "original_data_index": 5629, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are greater than 11, excluding any driver IDs from the school bus list that aren't 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C3eez_12.png", "TableImg_59zwm_5.png"], "original_data_index": 5627, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Could you give me the IDs that are both in albums that don't have the title \"Kill 'Em All\" or don't have an ID of 164 or have an artist ID less than or equal to 240, and also in playlists named \"Music Videos\"?", "answer": {"columns": ["id"], "index": [0], "data": [["9"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_1m0c2_347.png", "TableImg_Nrb7a_18.png"], "original_data_index": 5630, "original_sql": "SELECT id FROM albums WHERE title != \"Kill 'Em All\" OR \"id\" <> 164 OR \"artist_id\" <= 240 INTERSECT SELECT id FROM playlists WHERE name = \"Music Videos\""} {"question": "What is the highest book ID from the book table where the writer is not Howard Chaykin or the number of issues is not 12, combined with the highest book ID from the publication table where the publication ID is greater than 2?", "answer": {"columns": ["MAX(Book_ID)"], "index": [0, 1], "data": [["10"], ["10"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_Otznm_10.png", "TableImg_Dpzk3_7.png"], "original_data_index": 5628, "original_sql": "SELECT MAX(Book_ID) FROM book WHERE Writer <> \"Howard Chaykin\" OR \"Issues\" != 12.0 UNION ALL SELECT MAX(Book_ID) FROM publication WHERE \"Publication_ID\" > 2"} {"question": "What is the highest vehicle detail, excluding \"Van\", minus the highest vehicle detail when excluding vehicle ID 3?", "answer": {"columns": ["MAX(vehicle_details)"], "index": [0], "data": [["Truck"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Mqgic_3.png", "TableImg_Yf78z_3.png"], "original_data_index": 5634, "original_sql": "SELECT MAX(vehicle_details) FROM Vehicles WHERE vehicle_details != \"Van\" EXCEPT SELECT MAX(vehicle_details) FROM Vehicles WHERE \"vehicle_id\" != 3"} {"question": "Can you list all feature type codes and names, including those that are not \"Security\" and also those that are not \"Amenity\"?", "answer": {"columns": ["feature_type_code", "feature_type_name"], "index": [0, 1], "data": [["Amenity", "Amenity, eg Pool."], ["Security", "Securiyt, eg Burglar Alarm."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Onuzi_2.png", "TableImg_87sqf_2.png"], "original_data_index": 5635, "original_sql": "SELECT feature_type_code, feature_type_name FROM Ref_Feature_Types WHERE feature_type_code <> \"Security\" UNION ALL SELECT feature_type_code, feature_type_name FROM Ref_Feature_Types WHERE feature_type_code != \"Amenity\""} {"question": "Which driver has an ID of 4 and also drives a school bus, but not school bus number 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Thio4_12.png", "TableImg_Osswq_5.png"], "original_data_index": 5636, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Could you list the Club IDs of coaches who are not female, have a rank of 4 or less, and are not named Smith Brown, excluding the Club IDs from match results where Bronze is not 8 and the rank is greater than 6, or where Big Silver is not 14, points are at least 89, and Gold is at least 7?", "answer": {"columns": ["Club_ID"], "index": [0], "data": [["1"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Ro0vn_5.png", "TableImg_Tcsd0_6.png"], "original_data_index": 5637, "original_sql": "SELECT Club_ID FROM coach WHERE Gender <> \"F\" AND \"Rank\" <= 4 AND Coach_name <> \"Smith Brown\" EXCEPT SELECT Club_ID FROM match_result WHERE \"Bronze\" != 8 AND \"Rank\" > 6 OR \"Big_Silver\" != 14 AND \"Points\" >= 89 AND \"Gold\" >= 7"} {"question": "Can you give me a list of driver IDs, including those less than 9 from the driver list and those greater than 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U9zs8_12.png", "TableImg_R1409_5.png"], "original_data_index": 5638, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are less than or equal to 7, excluding those driver IDs that are also greater than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5u1ja_12.png", "TableImg_Sqlky_5.png"], "original_data_index": 5639, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are greater than 6 from the driver table, combined with a list of driver IDs that are exactly 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wgze3_12.png", "TableImg_Op85p_5.png"], "original_data_index": 5640, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me the names and employee IDs of employees who either don't make $18,050 or aren't named William Jones, but only if they also aren't named Barbara Wilson and don't make $44,740?", "answer": {"columns": ["name", "eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["Angela Martinez", "355548984"], ["Betty Adams", "142519864"], ["Chad Stewart", "310454877"], ["David Anderson", "486512566"], ["Donald King", "15645489"], ["Dorthy Lewis", "552455348"], ["Elizabeth Taylor", "90873519"], ["Eric Cooper", "573284895"], ["George Wright", "269734834"], ["Haywood Kelly", "348121549"], ["James Smith", "242518965"], ["Jennifer Thomas", "619023588"], ["John Williams", "11564812"], ["Joseph Thompson", "310454876"], ["Karen Scott", "550156548"], ["Larry West", "552455318"], ["Lawrence Sperry", "390487451"], ["Linda Davis", "489456522"], ["Lisa Walker", "567354612"], ["Mark Young", "556784565"], ["Mary Johnson", "141582651"], ["Michael Miller", "274878974"], ["Michael Miller", "287321212"], ["Milo Brooks", "574489457"], ["Patricia Jones", "254099823"], ["Richard Jackson", "489221823"], ["William Jones", "574489456"], ["William Moore", "159542516"], ["William Ward", "548977562"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Bnwrk_31.png", "TableImg_Xsgeq_31.png"], "original_data_index": 5641, "original_sql": "SELECT name, eid FROM employee WHERE \"salary\" != 18050 OR name <> \"William Jones\" INTERSECT SELECT name, eid FROM employee WHERE name != \"Barbara Wilson\" AND \"salary\" <> 44740"} {"question": "Which driver IDs are both less than 8 and present in the driver table, and also less than or equal to 10 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gibb9_12.png", "TableImg_Bem2w_5.png"], "original_data_index": 5642, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "For each aircraft, what is the total number of IDs associated with it in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID", "SUM(T2.ID)"], "index": [0], "data": [["5", "10"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xg3r2_5.png", "TableImg_Br8rg_4.png"], "original_data_index": 5633, "original_sql": "SELECT T1.Aircraft_ID, SUM(T2.ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the allergy types that are either \"Shellfish\" or \"Soy\"?", "answer": {"columns": ["Allergy"], "index": [0, 1], "data": [["Shellfish"], ["Soy"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_Bwy0b_14.png", "TableImg_6a775_14.png"], "original_data_index": 5632, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE Allergy = \"Shellfish\" UNION SELECT Allergy FROM Allergy_Type WHERE Allergy = \"Soy\""} {"question": "Can you give me a list of aircraft IDs that are less than 2 and appear in the aircraft table, and are also less than 5 and appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4tsl1_5.png", "TableImg_Z7661_4.png"], "original_data_index": 5631, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you list the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are not equal to 5 and are found in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5iyk5_5.png", "TableImg_Lyo4l_4.png"], "original_data_index": 5644, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me a list of aircraft IDs less than 5, excluding any aircraft IDs less than 3 that are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0bv8q_5.png", "TableImg_Deiqu_4.png"], "original_data_index": 5645, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What is the highest branch ID from purchases where the total pounds are less than 321.13, and also the highest branch ID from purchases where the total pounds are not equal to 988.09?", "answer": {"columns": ["MAX(Branch_ID)"], "index": [0], "data": [["6"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_Tsnwf_8.png", "TableImg_0ddkk_8.png"], "original_data_index": 5643, "original_sql": "SELECT MAX(Branch_ID) FROM purchase WHERE \"Total_pounds\" < 321.13 UNION SELECT MAX(Branch_ID) FROM purchase WHERE \"Total_pounds\" != 988.09"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 3, and those from the school bus table with driver IDs up to and including 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lol3t_12.png", "TableImg_65y2p_5.png"], "original_data_index": 5646, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are equal to 3 in the driver table, but not greater than 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rvfrr_12.png", "TableImg_Yvj2g_5.png"], "original_data_index": 5647, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are both not equal to 3 and also less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ob5p_12.png", "TableImg_7obqu_5.png"], "original_data_index": 5648, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "How many lessons have either a price greater than 167 or a vehicle ID greater than 2, excluding the number of vehicles that are not trucks?", "answer": {"columns": ["COUNT(vehicle_id)"], "index": [0], "data": [["15"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_L0vg7_15.png", "TableImg_Lkj0w_3.png"], "original_data_index": 5649, "original_sql": "SELECT COUNT(vehicle_id) FROM Lessons WHERE \"price\" > 167.0 OR \"vehicle_id\" > 2 EXCEPT SELECT COUNT(vehicle_id) FROM Vehicles WHERE vehicle_details <> \"Truck\""} {"question": "Can you give me the age, city, and employee ID of employees who are both under 32 and named Andrew Sheridan, and also not named Steve Borthwick?", "answer": {"columns": ["Age", "City", "Employee_ID"], "index": [0], "data": [["28", "Sale", "6"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Rse7m_10.png", "TableImg_Wjhnr_10.png"], "original_data_index": 5650, "original_sql": "SELECT Age, City, Employee_ID FROM employee WHERE \"Age\" < 32 AND Name = \"Andrew Sheridan\" INTERSECT SELECT Age, City, Employee_ID FROM employee WHERE Name <> \"Steve Borthwick\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 9, that are not also driver IDs in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ybbxu_12.png", "TableImg_3zrim_5.png"], "original_data_index": 5651, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs, excluding 9, are also driver IDs that are greater than or equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jlh7j_12.png", "TableImg_Kjp9e_5.png"], "original_data_index": 5653, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 6, and those from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_61616_12.png", "TableImg_8fui5_5.png"], "original_data_index": 5655, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of employee IDs from the certificate table where the employee ID is less than 269734834, combined with a list of employee IDs from the employee table where the employee's name is not Joseph Thompson and their salary is not 48090?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["11564812"], ["15645489"], ["90873519"], ["141582651"], ["142519864"], ["159542516"], ["242518965"], ["248965255"], ["254099823"], ["269734834"], ["274878974"], ["310454877"], ["348121549"], ["355548984"], ["356187925"], ["390487451"], ["486512566"], ["489221823"], ["489456522"], ["548977562"], ["550156548"], ["552455318"], ["552455348"], ["556784565"], ["567354612"], ["573284895"], ["574489456"], ["574489457"], ["619023588"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Ytc4k_69.png", "TableImg_6m84r_31.png"], "original_data_index": 5652, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" < 269734834 UNION SELECT eid FROM employee WHERE name <> \"Joseph Thompson\" AND \"salary\" <> 48090"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 4, excluding any driver IDs from the school_bus table that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ot53b_12.png", "TableImg_Ewfsr_5.png"], "original_data_index": 5654, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list all environmental allergies and allergies that are not tree pollen, along with all allergies that are not grass pollen?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68], "data": [["Eggs"], ["Nuts"], ["Milk"], ["Shellfish"], ["Anchovies"], ["Wheat"], ["Soy"], ["Ragweed"], ["Tree Pollen"], ["Grass Pollen"], ["Cat"], ["Dog"], ["Rodent"], ["Bee Stings"], ["Cat"], ["Shellfish"], ["Tree Pollen"], ["Dog"], ["Nuts"], ["Nuts"], ["Tree Pollen"], ["Nuts"], ["Ragweed"], ["Tree Pollen"], ["Eggs"], ["Milk"], ["Shellfish"], ["Anchovies"], ["Cat"], ["Dog"], ["Tree Pollen"], ["Ragweed"], ["Tree Pollen"], ["Eggs"], ["Milk"], ["Shellfish"], ["Anchovies"], ["Cat"], ["Dog"], ["Ragweed"], ["Ragweed"], ["Ragweed"], ["Nuts"], ["Nuts"], ["Soy"], ["Nuts"], ["Milk"], ["Tree Pollen"], ["Nuts"], ["Soy"], ["Tree Pollen"], ["Tree Pollen"], ["Tree Pollen"], ["Nuts"], ["Anchovies"], ["Rodent"], ["Cat"], ["Nuts"], ["Ragweed"], ["Tree Pollen"], ["Tree Pollen"], ["Tree Pollen"], ["Tree Pollen"], ["Soy"], ["Nuts"], ["Eggs"], ["Nuts"], ["Shellfish"], ["Soy"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_8m6p0_14.png", "TableImg_Wvp65_59.png"], "original_data_index": 5656, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType = \"environmental\" OR Allergy <> \"Tree Pollen\" UNION ALL SELECT Allergy FROM Has_Allergy WHERE Allergy <> \"Grass Pollen\""} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 8, with those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ayyco_12.png", "TableImg_Pxek1_5.png"], "original_data_index": 5658, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are 12 or greater, excluding those driver IDs that are less than 10 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9dmbm_12.png", "TableImg_D4tci_5.png"], "original_data_index": 5657, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me the customer address ID, mobile number, email, amount outstanding, phone number, the sum of customer IDs, and the count of dates they became customers for all customers, combining two sets of results: first, those who are \"Good Customers\" and either not named Carole, or have an amount outstanding less than or equal to $1000 and an email of \"huel.jana@example.org\", or have a customer address ID less than 2; and second, those who are not named Jordy or whose birthdate is not March 8th, 1993 at 8:48:42 AM?", "answer": {"columns": ["customer_address_id", "cell_mobile_phone_number", "email_address", "amount_outstanding", "phone_number", "SUM(customer_id)", "COUNT(date_became_customer)"], "index": [0, 1], "data": [["10", "1-197-686-2849x8761", "hilario.sporer@example.org", "9443", "374-483-2758x85087", "83", "9"], ["13", "861-638-9797", "everette.goyette@example.org", "255", "07278206718", "120", "15"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_8w2hm_15.png", "TableImg_Vgeuk_15.png"], "original_data_index": 5659, "original_sql": "SELECT customer_address_id, cell_mobile_phone_number, email_address, amount_outstanding, phone_number, SUM(customer_id), COUNT(date_became_customer) FROM Customers WHERE customer_status_code = \"Good Customer\" AND first_name != \"Carole\" OR \"amount_outstanding\" <= 1000.0 AND email_address = \"huel.jana@example.org\" OR \"customer_address_id\" < 2 UNION ALL SELECT customer_address_id, cell_mobile_phone_number, email_address, amount_outstanding, phone_number, SUM(customer_id), COUNT(date_became_customer) FROM Customers WHERE first_name <> \"Jordy\" OR date_of_birth <> \"1993-03-08 08:48:42\""} {"question": "Can you give me a list of user IDs from the review table, excluding user ID 2, combined with a list of user IDs from the user accounts table where the user ID is less than or equal to 1 or the name is not Helen?", "answer": {"columns": ["u_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_9999x_7.png", "TableImg_1nn51_7.png"], "original_data_index": 5662, "original_sql": "SELECT u_id FROM review WHERE \"u_id\" <> 2 UNION SELECT u_id FROM useracct WHERE \"u_id\" <= 1 OR name <> \"Helen\""} {"question": "Can you give me the driver IDs that are both in the driver list with IDs up to 10 and in the school bus list with IDs up to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1j3ay_12.png", "TableImg_7ohsj_5.png"], "original_data_index": 5660, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are both greater than 4 and also not equal to 9, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P9pwj_12.png", "TableImg_9bz4a_5.png"], "original_data_index": 5661, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or greater, and those from the school bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wf6yx_12.png", "TableImg_Mk3kk_5.png"], "original_data_index": 5663, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "For each club position, can you tell me the club ID for clubs where student ID 1007 is a member?", "answer": {"columns": ["ClubID -1", "ClubID -2"], "index": [0], "data": [["4", "4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Vfe51_4.png", "TableImg_0ifjc_4.png"], "original_data_index": 5664, "original_sql": "SELECT T1.ClubID, T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID == T2.ClubID GROUP BY Position HAVING StuID = 1007"} {"question": "Could you give me a list of driver IDs that are not 10 and are also less than 9, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8haro_12.png", "TableImg_2lu1z_5.png"], "original_data_index": 5665, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which aircraft IDs are both greater than or equal to 3 (when considering all aircraft) and not equal to 2 (when considering aircraft at airports)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D6xis_5.png", "TableImg_0qh9u_4.png"], "original_data_index": 5666, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of aircraft IDs that are greater than 4, excluding those aircraft IDs greater than 5 that are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Heq16_5.png", "TableImg_Nh5u8_4.png"], "original_data_index": 5667, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 4, combined with a list of driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A1psl_12.png", "TableImg_Cpjsb_5.png"], "original_data_index": 5669, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Could you list the branch IDs from the branch table where the ID is 8 and the membership amount isn't 7, or where the road isn't Cecilia Avenue, the name isn't Taverner, and the opening year isn't 2012, combined with a list of branch IDs from the purchase table where the branch ID isn't 5, or the total pounds are greater than 988.09 and the member ID is greater than 2, or the year isn't 2017?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["8"], ["3"], ["5"], ["1"], ["1"], ["5"], ["6"], ["2"], ["3"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Oijfy_8.png", "TableImg_Adero_8.png"], "original_data_index": 5668, "original_sql": "SELECT Branch_ID FROM branch WHERE \"Branch_ID\" = 8 AND membership_amount != \"7\" OR Address_road != \"Cecilia Avenue\" AND Name != \"Taverner\" AND Open_year != \"2012\" UNION ALL SELECT Branch_ID FROM purchase WHERE Branch_ID <> \"5\" OR \"Total_pounds\" > 988.09 AND \"Member_ID\" > 2 OR Year != \"2017\""} {"question": "Can you give me a list of driver IDs that are not 7, and also exclude any driver IDs that are less than 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_685dh_12.png", "TableImg_1opsg_5.png"], "original_data_index": 5670, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs less than 10, combining the IDs from both the driver and school bus lists, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ikkvu_12.png", "TableImg_Vd647_5.png"], "original_data_index": 5671, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are also aircraft IDs less than or equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wahqq_5.png", "TableImg_Qrf90_4.png"], "original_data_index": 5672, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the shipping agent codes and their counts, excluding US codes, minus the shipping agent codes and their counts where the description is \"k\"?", "answer": {"columns": ["shipping_agent_code", "COUNT(shipping_agent_name)"], "index": [0], "data": [["UP", "4"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_O2r60_5.png", "TableImg_Iel2f_5.png"], "original_data_index": 5673, "original_sql": "SELECT shipping_agent_code, COUNT(shipping_agent_name) FROM Ref_Shipping_Agents WHERE shipping_agent_code != \"US\" EXCEPT SELECT shipping_agent_code, COUNT(shipping_agent_name) FROM Ref_Shipping_Agents WHERE shipping_agent_description = \"k\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10 and those from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_86ghh_12.png", "TableImg_Fpjpk_5.png"], "original_data_index": 5674, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs, excluding driver ID 4, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ipma9_12.png", "TableImg_Sqe8p_5.png"], "original_data_index": 5675, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are not 4 and are also less than 9, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yxxil_12.png", "TableImg_Pvv8e_5.png"], "original_data_index": 5679, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8x41i_12.png", "TableImg_Acdqb_5.png"], "original_data_index": 5676, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are both greater than or equal to 10 in the driver table and greater than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mzrws_12.png", "TableImg_177j6_5.png"], "original_data_index": 5677, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the smallest aid number from the certificate table where the aid is greater than 3, excluding the smallest aid number from the flight table where the flight number is greater than 33, the distance is not 7487, the origin is Los Angeles, the arrival date is not 04/12/2005 09:40, or the price is greater than or equal to 202.45?", "answer": {"columns": ["MIN(aid)"], "index": [0], "data": [["4"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_024ql_69.png", "TableImg_D5kpb_10.png"], "original_data_index": 5678, "original_sql": "SELECT MIN(aid) FROM certificate WHERE \"aid\" > 3 EXCEPT SELECT MIN(aid) FROM flight WHERE \"flno\" > 33 OR \"distance\" <> 7487 OR origin = \"Los Angeles\" OR arrival_date != \"04/12/2005 09:40\" OR \"price\" >= 202.45"} {"question": "Can you give me a list of driver IDs, including driver ID 6 from the driver table and any driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oqpl7_12.png", "TableImg_Wpbl1_5.png"], "original_data_index": 5680, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 1, and those from the school_bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tdu2r_12.png", "TableImg_Foep0_5.png"], "original_data_index": 5681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are 12 or less from the driver table, excluding those driver IDs that are greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q2mpq_12.png", "TableImg_Vlny6_5.png"], "original_data_index": 5682, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me the member IDs that are both from years other than 2016 and also either have a member ID less than 1 from 2016 or are not from branch 5?", "answer": {"columns": ["Member_ID"], "index": [0, 1], "data": [["3"], ["6"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Cn5pi_8.png", "TableImg_Alkdz_8.png"], "original_data_index": 5683, "original_sql": "SELECT Member_ID FROM membership_register_branch WHERE Register_Year != \"2016\" INTERSECT SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" < 1 AND Register_Year = \"2016\" OR Branch_ID != \"5\""} {"question": "Can you give me a list of school IDs, including those from schools that are either not in Elkhart County or are in football class A and named \"Knox Community\", along with school IDs from the budget table where either the year is not 2004 and the invested amount is not 146102, or the budgeted amount is less than 113531, or the total budget percent budgeted is not 2.0, or the budget invested percent is 146.9, or the school ID is less than or equal to 5 and the total budget percent invested is 2.7?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["2"], ["2"], ["2"], ["3"], ["1"], ["4"], ["5"], ["5"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_S6nqz_8.png", "TableImg_Cpu06_8.png"], "original_data_index": 5684, "original_sql": "SELECT School_id FROM School WHERE County != \"20 Elkhart\" OR IHSAA_Football_Class != \"A\" AND School_name = \"Knox Community\" UNION ALL SELECT School_id FROM budget WHERE \"Year\" <> 2004 AND \"Invested\" != 146102 OR \"Budgeted\" < 113531 OR \"total_budget_percent_budgeted\" != 2.0 OR Budget_invested_percent = \"146.9\" OR \"School_id\" <= 5 AND \"total_budget_percent_invested\" = 2.7"} {"question": "Can you give me the Aircraft ID from the aircraft table, where the Aircraft ID is 1, excluding any Aircraft IDs from the airport_aircraft table that are less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nqtgy_5.png", "TableImg_3fcmf_4.png"], "original_data_index": 5685, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "How many people from Bulgaria, or with specific final table, best finish, money rank, or birth date information, are linked to poker players, specifically those with a Poker_Player_ID of 1 and a height under 196, and what are the Poker_Player_IDs, grouped by best finish, where the earnings are exactly 104871, or the height is less than 196 and best finish is less than 3, or the nationality isn't Russia and the birth date isn't April 17, 1987 and the name isn't Maksim Botin, or the final table made isn't 42 and the Poker_Player_ID is greater than or equal to 1?", "answer": {"columns": ["COUNT(T1.People_ID)", "Poker_Player_ID"], "index": [0, 1], "data": [["2", "2"], ["1", "5"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_F77fi_7.png", "TableImg_R1q9n_5.png"], "original_data_index": 5687, "original_sql": "SELECT COUNT(T1.People_ID), T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID = T2.People_ID WHERE Nationality = \"Bulgaria\" OR \"Final_Table_Made\" <> 26.0 OR \"Best_Finish\" = 1.0 OR \"Money_Rank\" <> 68.0 OR Birth_Date <> \"April 17, 1987\" AND \"Poker_Player_ID\" = 1 AND \"Height\" < 196.0 GROUP BY Best_Finish HAVING Earnings = 104871.0 OR Height < 196.0 AND Best_Finish < 3.0 OR Nationality <> \"Russia\" AND Birth_Date <> \"April 17, 1987\" AND Name <> \"Maksim Botin\" OR Final_Table_Made <> 42.0 AND Poker_Player_ID >= 1"} {"question": "Can you give me a list of customer IDs for those who either made a payment greater than 4032.33 or paid with a credit card on March 20, 2018, at 9:38 PM, combined with a list of customer IDs for those who were born on May 7, 1994, at 1:32 AM and don't have the mobile number 848-099-2095x785 and aren't classified as a \"Bad Customer\", or became a customer on November 30, 2016, at 10:37 AM?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["11"], ["2"], ["14"], ["14"], ["4"], ["7"], ["13"], ["6"], ["10"], ["1"], ["12"], ["11"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Zsxgl_15.png", "TableImg_Zqpvh_15.png"], "original_data_index": 5686, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"amount_payment\" > 4032.33 OR datetime_payment = \"2018-03-20 21:38:41\" AND payment_method_code = \"Credit Card\" UNION ALL SELECT customer_id FROM Customers WHERE date_of_birth = \"1994-05-07 01:32:16\" AND cell_mobile_phone_number <> \"848-099-2095x785\" AND customer_status_code <> \"Bad Customer\" OR date_became_customer = \"2016-11-30 10:37:41\""} {"question": "Can you list the makers and models from the model list where the maker is 19, the model ID is not 14, or the model is not a Buick, combined with the makers and models where the model is not a Volvo, the model ID is greater than 35, and the maker is less than 14?", "answer": {"columns": ["Maker", "Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35], "data": [["1", "amc"], ["2", "audi"], ["2", "volkswagen"], ["3", "bmw"], ["4", "buick"], ["4", "cadillac"], ["4", "chevrolet"], ["4", "oldsmobile"], ["4", "pontiac"], ["5", "capri"], ["5", "ford"], ["5", "mercury"], ["6", "chrysler"], ["6", "dodge"], ["6", "jeep"], ["6", "plymouth"], ["7", "citroen"], ["8", "datsun"], ["8", "nissan"], ["9", "fiat"], ["10", "hi"], ["11", "honda"], ["12", "mazda"], ["13", "mercedes"], ["13", "mercedes-benz"], ["14", "opel"], ["15", "peugeot"], ["16", "renault"], ["17", "saab"], ["18", "subaru"], ["19", "scion"], ["19", "toyota"], ["20", "triumph"], ["21", "volvo"], ["22", "kia"], ["23", "hyundai"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_0m02d_36.png", "TableImg_Cqzws_36.png"], "original_data_index": 5688, "original_sql": "SELECT Maker, Model FROM model_list WHERE \"Maker\" = 19 OR \"ModelId\" <> 14 OR Model != \"buick\" UNION SELECT Maker, Model FROM model_list WHERE Model != \"volvo\" AND \"ModelId\" > 35 AND \"Maker\" < 14"} {"question": "Which aircraft IDs, excluding aircraft ID 5, are also aircraft IDs less than 3 and present in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_32jl7_5.png", "TableImg_Otyw0_4.png"], "original_data_index": 5690, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 3 or greater, and those from the school bus table that are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ruhcm_12.png", "TableImg_F3mou_5.png"], "original_data_index": 5694, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including driver ID 1 from the driver table and all driver IDs less than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bst9n_12.png", "TableImg_B47rg_5.png"], "original_data_index": 5695, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list the aircraft IDs that appear in the aircraft table with an ID of 4 or higher, combined with the aircraft IDs that appear in the airport_aircraft table with an ID greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C86wl_5.png", "TableImg_5hq87_4.png"], "original_data_index": 5696, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What starting years are common to both coach 1 and players who have a player ID of 1 or higher, a starting year other than 2012, or a coach ID less than 3?", "answer": {"columns": ["Starting_year"], "index": [0, 1, 2], "data": [["2010"], ["2011"], ["2012"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_Zmwe6_7.png", "TableImg_Zh6t5_7.png"], "original_data_index": 5697, "original_sql": "SELECT Starting_year FROM player_coach WHERE \"Coach_ID\" = 1 INTERSECT SELECT Starting_year FROM player_coach WHERE \"Player_ID\" >= 1 OR \"Starting_year\" <> 2012 OR \"Coach_ID\" < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding ID 12, and those from the school bus table with IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2jtsc_12.png", "TableImg_Yo72x_5.png"], "original_data_index": 5698, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me the number of products, name, manager's name, location, and district for all shops in Helsinki that aren't named \"FC Lahti\", along with the same information for all shops that aren't named \"FC Inter\"?", "answer": {"columns": ["Number_products", "Name", "Manager_name", "Location", "District"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["10770", "HJK", "Antti Muurinen", "Helsinki", "Finnair Stadium"], ["3516", "FC Haka", "Olli Huttunen", "Valkeakoski", "Tehtaan kentt\u00e4"], ["10770", "HJK", "Antti Muurinen", "Helsinki", "Finnair Stadium"], ["6000", "FC Honka", "Mika Lehkosuo", "Espoo", "Tapiolan Urheilupuisto"], ["5000", "FF Jaro", "Mika Laurikainen", "Jakobstad", "Jakobstads Centralplan"], ["4780", "FC KooTeePee", "Tommi Kautonen", "Kotka", "Arto Tolsa Areena"], ["3500", "KuPS", "Kai Nyyss\u00f6nen", "Kuopio", "Magnum Areena"], ["15000", "FC Lahti", "Ilkka M\u00e4kel\u00e4", "Lahti", "Lahden Stadion"], ["1600", "IFK Mariehamn", "Pekka Lyyski", "Mariehamn", "Wikl\u00f6f Holding Arena"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_5lwoj_9.png", "TableImg_299qo_9.png"], "original_data_index": 5699, "original_sql": "SELECT Number_products, Name, Manager_name, Location, District FROM shop WHERE Name <> \"FC Lahti\" AND Location = \"Helsinki\" UNION ALL SELECT Number_products, Name, Manager_name, Location, District FROM shop WHERE Name != \"FC Inter\""} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 7, excluding any driver IDs that also appear in the school_bus table with a driver ID of 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_679up_12.png", "TableImg_Hw4kf_5.png"], "original_data_index": 5691, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are both not equal to 8 and also greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bq9tk_12.png", "TableImg_Zdkiz_5.png"], "original_data_index": 5692, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are less than 10, excluding those driver IDs that are also less than or equal to 3 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tdvau_12.png", "TableImg_G0xyz_5.png"], "original_data_index": 5701, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are both greater than 9 and present in the driver table, and also greater than or equal to 4 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4bzaf_12.png", "TableImg_14nsw_5.png"], "original_data_index": 5700, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding the driver ID 10, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rmmnj_12.png", "TableImg_6erwg_5.png"], "original_data_index": 5703, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are less than or equal to 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2p9px_12.png", "TableImg_Vybs1_5.png"], "original_data_index": 5702, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are less than 1 from the driver table, combined with a list of driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1hlwe_12.png", "TableImg_55ckr_5.png"], "original_data_index": 5704, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding any driver IDs that are also 9 or greater and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7l34o_12.png", "TableImg_Qxskb_5.png"], "original_data_index": 5706, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table except for driver ID 3, and also including driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rpkg8_12.png", "TableImg_Vy24y_5.png"], "original_data_index": 5705, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the maximum distance, minimum name, and average aid for aircraft, excluding Boeing 777-300s, where either the aid is 7 or the distance is at least 2605, but excluding any results where the distance is 1530 and the name is Airbus A319?", "answer": {"columns": ["MAX(distance)", "MIN(name)", "AVG(aid)"], "index": [0], "data": [["8430", "Airbus A320", "7.6"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Mepmb_16.png", "TableImg_O8eex_16.png"], "original_data_index": 5708, "original_sql": "SELECT MAX(distance), MIN(name), AVG(aid) FROM aircraft WHERE name <> \"Boeing 777-300\" AND \"aid\" = 7 OR \"distance\" >= 2605 EXCEPT SELECT MAX(distance), MIN(name), AVG(aid) FROM aircraft WHERE \"distance\" = 1530 AND name = \"Airbus A319\""} {"question": "Could you list the shop IDs from the hiring information, including those with a Shop ID of 6, or an Employee ID not equal to 4, or those that are full-time, or those that didn't start in 2012, but exclude any shop IDs that are located in Turku?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_52ijy_7.png", "TableImg_Igaiv_9.png"], "original_data_index": 5707, "original_sql": "SELECT Shop_ID FROM hiring WHERE \"Shop_ID\" = 6 OR \"Employee_ID\" != 4 OR Is_full_time = \"T\" OR Start_from <> \"2012\" EXCEPT SELECT Shop_ID FROM shop WHERE Location = \"Turku\""} {"question": "Which car makers from countries other than country code 6 are not listed as makers with a value greater than 18 in the model list?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["amc"], ["bmw"], ["chrysler"], ["citroen"], ["daimler benz"], ["fiat"], ["ford"], ["gm"], ["honda"], ["hyundai"], ["kia"], ["mazda"], ["nissan"], ["opel"], ["peugeaut"], ["renault"], ["subaru"], ["toyota"], ["triumph"], ["volkswagen"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Y0fpp_22.png", "TableImg_Ia5et_36.png"], "original_data_index": 5709, "original_sql": "SELECT Maker FROM car_makers WHERE Country <> \"6\" EXCEPT SELECT Maker FROM model_list WHERE \"Maker\" > 18"} {"question": "What is the maximum aircraft ID associated with each airport, along with the total number of passengers at that airport?", "answer": {"columns": ["Total_Passengers", "MAX(T2.Aircraft_ID)"], "index": [0], "data": [["9627589", "5"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_As33n_10.png", "TableImg_Co50w_4.png"], "original_data_index": 5711, "original_sql": "SELECT T1.Total_Passengers, MAX(T2.Aircraft_ID) FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Which aircraft IDs are not equal to 2 and are also greater than 2 when considering aircraft and airport aircraft separately?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pi4nx_5.png", "TableImg_4pj8i_4.png"], "original_data_index": 5710, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 7, and exclude any driver IDs that also appear in the school bus list, unless that driver ID is 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4d1gu_12.png", "TableImg_U9rcd_5.png"], "original_data_index": 5712, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs less than or equal to 9 from the driver table, excluding any driver IDs less than 10 that are in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_76km7_12.png", "TableImg_Thh83_5.png"], "original_data_index": 5713, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 4, and those from the school bus table excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nt3an_12.png", "TableImg_4hafn_5.png"], "original_data_index": 5716, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs that are 5 or greater, excluding those driver IDs that are greater than 9 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2y8v6_12.png", "TableImg_Q7xvu_5.png"], "original_data_index": 5715, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 9, excluding any driver IDs that appear in the school bus table where the driver ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zvk0a_12.png", "TableImg_V7zn5_5.png"], "original_data_index": 5717, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you tell me the highest Club ID, earliest start year, club name, and region for clubs that either started after 1998 and have an ID less than 5, or are located in the USA and aren't named \"Gefle IF\", combined with the same information for clubs with a Club ID of 4?", "answer": {"columns": ["MAX(Club_ID)", "MIN(Start_year)", "Club_name", "Region"], "index": [0], "data": [["4", "2001", "Gefle IF", "Korea"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Efwdf_6.png", "TableImg_Evub8_6.png"], "original_data_index": 5714, "original_sql": "SELECT MAX(Club_ID), MIN(Start_year), Club_name, Region FROM club WHERE \"Start_year\" > 1998 AND \"Club_ID\" < 5 OR Region = \"USA\" AND Club_name != \"Gefle IF\" UNION SELECT MAX(Club_ID), MIN(Start_year), Club_name, Region FROM club WHERE \"Club_ID\" = 4"} {"question": "Could you give me the store IDs for stores that either have an ID of 4 and an area size of at least 28.74 and aren't named Rogersville, or have a number of product categories that isn't 990, or aren't a City Mall, or have a ranking greater than 1, but excluding any store IDs that are greater than 5 in the store_product table?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_4j7m2_5.png", "TableImg_Hihxe_15.png"], "original_data_index": 5718, "original_sql": "SELECT Store_ID FROM store WHERE \"Store_ID\" = 4 AND \"Area_size\" >= 28.74 AND Store_Name <> \"Rogersville\" OR \"Number_of_product_category\" <> 990.0 OR Type != \"City Mall\" OR \"Ranking\" > 1 EXCEPT SELECT Store_ID FROM store_product WHERE \"Store_ID\" > 5"} {"question": "What are the counts of draft numbers from circulation history for employees with IDs of 1 or greater, combined with the counts of draft numbers from draft copies for documents with ID 2 or copies with number 10?", "answer": {"columns": ["COUNT(draft_number)"], "index": [0], "data": [["4"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_G01bi_4.png", "TableImg_Racoh_8.png"], "original_data_index": 5721, "original_sql": "SELECT COUNT(draft_number) FROM Circulation_History WHERE \"employee_id\" >= 1 UNION SELECT COUNT(draft_number) FROM Draft_Copies WHERE \"document_id\" = 2 OR \"copy_number\" = 10"} {"question": "Can you give me a list of driver IDs that are greater than 10, excluding any driver IDs greater than or equal to 7 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ftcqi_12.png", "TableImg_T8vvc_5.png"], "original_data_index": 5719, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of student IDs from the Member_of_club table, including those who aren't presidents or whose student ID is greater than 1001, but excluding any student IDs from the Student table where the student isn't 18, doesn't live in YYZ, and isn't male?", "answer": {"columns": ["StuID"], "index": [0, 1], "data": [["1007"], ["1010"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_Dwclu_4.png", "TableImg_Humg1_34.png"], "original_data_index": 5720, "original_sql": "SELECT StuID FROM Member_of_club WHERE Position != \"President\" OR \"StuID\" > 1001 EXCEPT SELECT StuID FROM Student WHERE \"Age\" <> 18 AND city_code != \"YYZ\" AND Sex <> \"M\""} {"question": "Can you list the aircraft IDs, excluding 5, from the aircraft table, and also list the aircraft IDs less than or equal to 2 from the airport_aircraft table, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rf0ps_5.png", "TableImg_X7juo_4.png"], "original_data_index": 5722, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of school IDs, combining those from the budget table where the budget invested percentage isn't 127.6, the budgeted amount is more than 61283, and the year is after 2004, with those from the endowment table where the school ID isn't 6, the amount is 8.53 or less, and the endowment ID is 8 or less?", "answer": {"columns": ["School_id"], "index": [0, 1], "data": [["5"], ["5"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_Qqnvh_8.png", "TableImg_Allol_11.png"], "original_data_index": 5723, "original_sql": "SELECT School_id FROM budget WHERE Budget_invested_percent <> \"127.6\" AND \"Budgeted\" > 61283 AND \"Year\" > 2004 UNION ALL SELECT School_id FROM endowment WHERE \"School_id\" <> 6 AND \"amount\" <= 8.53 AND \"endowment_id\" <= 8"} {"question": "Which driver IDs are equal to 11 in the driver table, but not equal to 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ryh61_12.png", "TableImg_Vauim_5.png"], "original_data_index": 5725, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 3, and those from the school bus table with driver IDs of 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Slvsg_12.png", "TableImg_Gk35q_5.png"], "original_data_index": 5726, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of school IDs, including those from the School table where the ID isn't \"2\" and either the enrollment is at least 852 and the IHSAA class is \"AAA\", or the mascot isn't \"Jimmies\" and the location isn't \"New Carlisle\", as well as those from the Budget table where the total budget percent invested is greater than 2.0, or the invested amount isn't 5840, or the budget invested percent isn't \"159.3\"?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["2"], ["2"], ["3"], ["1"], ["4"], ["5"], ["5"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_H91kj_8.png", "TableImg_Emc9h_8.png"], "original_data_index": 5727, "original_sql": "SELECT School_id FROM School WHERE School_id <> \"2\" AND \"Enrollment\" >= 852 AND IHSAA_Class = \"AAA\" OR Mascot <> \"Jimmies\" AND Location != \"New Carlisle\" UNION ALL SELECT School_id FROM budget WHERE \"total_budget_percent_invested\" > 2.0 OR \"Invested\" != 5840 OR Budget_invested_percent != \"159.3\""} {"question": "Can you list the assets, names, sales, profits, and industries for companies that meet either of these conditions: having a market value of at least 79.5 billion, or a company ID of at least 17 and sales less than 87.6 billion, or assets of exactly 2039.1 billion and profits of exactly 15.7 billion, along with companies that meet any of these other conditions: having a market value of at most 154.8 billion and not headquartered in France and not named Citigroup, or sales not equal to 433.5 billion, or assets of at least 304.7 billion, or a company ID not equal to 8, or profits not equal to 25.7 billion?", "answer": {"columns": ["Assets_in_Billion", "Name", "Sales_in_Billion", "Profits_in_Billion", "Industry"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37], "data": [["331.1", "ExxonMobil", "433.5", "41.1", "Oil and gas"], ["2265.8", "JPMorgan Chase", "110.8", "19.0", "Banking"], ["717.2", "General Electric", "147.3", "14.2", "Conglomerate"], ["340.5", "Royal Dutch Shell", "470.2", "30.9", "Oil and gas"], ["2039.1", "Industrial and Commercial Bank of China", "82.6", "25.1", "Banking"], ["2550.0", "HSBC", "102.0", "16.2", "Banking"], ["304.7", "PetroChina", "310.1", "20.6", "Oil and gas"], ["392.6", "Berkshire Hathaway", "143.7", "10.3", "Conglomerate"], ["1313.9", "Wells Fargo", "87.6", "15.9", "Banking"], ["319.4", "Petrobras", "145.9", "20.1", "Oil and gas"], ["292.5", "BP", "375.5", "25.7", "Oil and gas"], ["209.5", "Chevron", "236.3", "26.9", "Oil and gas"], ["1637.8", "China Construction Bank", "68.7", "20.5", "Banking"], ["1873.9", "Citigroup", "102.6", "11.1", "Banking"], ["302.6", "Gazprom", "117.6", "31.7", "Oil and gas"], ["193.4", "Walmart", "447.0", "15.7", "Retailing"], ["328.7", "Volkswagen Group", "221.9", "21.5", "Automotive"], ["213.0", "Total", "216.2", "15.9", "Oil and gas"], ["1563.9", "Agricultural Bank of China", "62.4", "14.4", "Banking"], ["331.1", "ExxonMobil", "433.5", "41.1", "Oil and gas"], ["2265.8", "JPMorgan Chase", "110.8", "19.0", "Banking"], ["717.2", "General Electric", "147.3", "14.2", "Conglomerate"], ["340.5", "Royal Dutch Shell", "470.2", "30.9", "Oil and gas"], ["2039.1", "Industrial and Commercial Bank of China", "82.6", "25.1", "Banking"], ["2550.0", "HSBC", "102.0", "16.2", "Banking"], ["304.7", "PetroChina", "310.1", "20.6", "Oil and gas"], ["392.6", "Berkshire Hathaway", "143.7", "10.3", "Conglomerate"], ["1313.9", "Wells Fargo", "87.6", "15.9", "Banking"], ["319.4", "Petrobras", "145.9", "20.1", "Oil and gas"], ["292.5", "BP", "375.5", "25.7", "Oil and gas"], ["209.5", "Chevron", "236.3", "26.9", "Oil and gas"], ["1637.8", "China Construction Bank", "68.7", "20.5", "Banking"], ["1873.9", "Citigroup", "102.6", "11.1", "Banking"], ["302.6", "Gazprom", "117.6", "31.7", "Oil and gas"], ["193.4", "Walmart", "447.0", "15.7", "Retailing"], ["328.7", "Volkswagen Group", "221.9", "21.5", "Automotive"], ["213.0", "Total", "216.2", "15.9", "Oil and gas"], ["1563.9", "Agricultural Bank of China", "62.4", "14.4", "Banking"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Fake4_19.png", "TableImg_Ffmov_19.png"], "original_data_index": 5724, "original_sql": "SELECT Assets_in_Billion, Name, Sales_in_Billion, Profits_in_Billion, Industry FROM company WHERE \"Market_Value_in_Billion\" >= 79.5 OR \"Company_ID\" >= 17.0 AND \"Sales_in_Billion\" < 87.6 OR \"Assets_in_Billion\" = 2039.1 AND \"Profits_in_Billion\" = 15.7 UNION ALL SELECT Assets_in_Billion, Name, Sales_in_Billion, Profits_in_Billion, Industry FROM company WHERE \"Market_Value_in_Billion\" <= 154.8 AND Headquarters != \"France\" AND Name != \"Citigroup\" OR \"Sales_in_Billion\" != 433.5 OR \"Assets_in_Billion\" >= 304.7 OR \"Company_ID\" != 8.0 OR \"Profits_in_Billion\" != 25.7"} {"question": "Can you give me the driver IDs that are both less than or equal to 7 in the driver table and greater than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lhian_12.png", "TableImg_X3f53_5.png"], "original_data_index": 5731, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 6 and are not equal to 3, considering only unique driver IDs from the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7t968_12.png", "TableImg_Ic3e7_5.png"], "original_data_index": 5729, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, including driver ID 6 from the driver table and any driver IDs less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eqgee_12.png", "TableImg_Bsx5m_5.png"], "original_data_index": 5730, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are not 10 from the driver table, but only include those IDs that are also not 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Whb1x_12.png", "TableImg_D9qb5_5.png"], "original_data_index": 5728, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me the Driver ID, School ID, and full-time status for school bus drivers who either aren't full-time, have worked for 3 years or less, are assigned to school ID 5 or lower, or have a Driver ID less than 9, but only if their Driver ID is also 3 or greater?", "answer": {"columns": ["Driver_ID", "School_ID", "If_full_time"], "index": [0, 1, 2, 3, 4], "data": [["3", "4", "T"], ["4", "3", "T"], ["7", "5", "T"], ["9", "7", "T"], ["10", "1", "F"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_Xug5z_5.png", "TableImg_Wcax5_5.png"], "original_data_index": 5734, "original_sql": "SELECT Driver_ID, School_ID, If_full_time FROM school_bus WHERE If_full_time <> \"T\" OR \"Years_Working\" <= 3 OR \"School_ID\" <= 5 OR \"Driver_ID\" < 9 INTERSECT SELECT Driver_ID, School_ID, If_full_time FROM school_bus WHERE \"Driver_ID\" >= 3"} {"question": "Which driver IDs appear in the driver table, excluding driver ID 1, and also appear in the school bus table as driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Olkpp_12.png", "TableImg_Vrs7k_5.png"], "original_data_index": 5735, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the IDs of drivers who are both either 37 years old or have an ID of 12 or greater and are not named Timothy Ackert, and also either not full-time or not ID 4 and drive for school ID 1?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9jssi_12.png", "TableImg_2skwr_5.png"], "original_data_index": 5733, "original_sql": "SELECT Driver_ID FROM driver WHERE \"Age\" = 37 OR \"Driver_ID\" >= 12 AND Name != \"Timothy Ackert\" INTERSECT SELECT Driver_ID FROM school_bus WHERE If_full_time <> \"T\" OR \"Driver_ID\" <> 4 AND \"School_ID\" = 1"} {"question": "Can you give me a list of employee IDs for employees named Louis Deacon, or who live in Leicester, or are not 23 years old, or have an employee ID greater than 2, excluding those employee IDs that are also in the hiring table where the shop ID is 8 or greater?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_33p10_10.png", "TableImg_Gaqf9_7.png"], "original_data_index": 5732, "original_sql": "SELECT Employee_ID FROM employee WHERE Name = \"Louis Deacon\" OR City = \"Leicester\" OR \"Age\" != 23 OR \"Employee_ID\" > 2 EXCEPT SELECT Employee_ID FROM hiring WHERE \"Shop_ID\" >= 8"} {"question": "Which head IDs are associated with heads aged 43 or older, and also associated with management positions in departments other than department 7?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["5"], ["6"], ["10"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Ktqsu_10.png", "TableImg_Prv8b_5.png"], "original_data_index": 5739, "original_sql": "SELECT head_ID FROM head WHERE \"age\" >= 43.0 INTERSECT SELECT head_ID FROM management WHERE \"department_ID\" <> 7"} {"question": "Can you give me a list of driver IDs that are less than 2, and combine that with a list of driver IDs from the school bus database that are greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G5woa_12.png", "TableImg_Hholf_5.png"], "original_data_index": 5738, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 3, that are present in the aircraft table but not in the airport_aircraft table, where aircraft ID 2 is excluded from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J9pt7_5.png", "TableImg_Mp5py_4.png"], "original_data_index": 5737, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of names, including employee names that aren't George Chuter or are from employees who aren't 30 years old and don't live in Wasps, combined with shop names where the manager isn't Mika Lehkosuo and the shop ID is 4 or greater and the number of products is 10000 or greater, or the district is Finnair Stadium, or the location isn't Valkeakoski and the shop name isn't FC Haka?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["Andrew Sheridan"], ["FC Honka"], ["FC Inter"], ["FC KooTeePee"], ["FC Lahti"], ["FF Jaro"], ["George Chuter"], ["HJK"], ["IFK Mariehamn"], ["Jason Hobson"], ["KuPS"], ["Lee Mears"], ["Louis Deacon"], ["Mark Regan"], ["Matt Stevens"], ["Phil Vickery"], ["Steve Borthwick"], ["Tim Payne"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_R2rbx_10.png", "TableImg_Frxb6_9.png"], "original_data_index": 5736, "original_sql": "SELECT Name FROM employee WHERE Name <> \"George Chuter\" OR \"Age\" <> 30 AND City != \"Wasps\" UNION SELECT Name FROM shop WHERE Manager_name != \"Mika Lehkosuo\" AND \"Shop_ID\" >= 4 AND \"Number_products\" >= 10000 OR District = \"Finnair Stadium\" OR Location != \"Valkeakoski\" AND Name != \"FC Haka\""} {"question": "Which driver IDs are both greater than or equal to 9 in the driver table and less than or equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K718h_12.png", "TableImg_Erg6r_5.png"], "original_data_index": 5743, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are not equal to 5 and are found in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pf0ys_5.png", "TableImg_Cn0cq_4.png"], "original_data_index": 5741, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me a list of employee IDs for employees who are either younger than 32, not named Andrew Sheridan, or don't live in Bristol, excluding employee ID 6, but then remove any employee IDs that are not full-time or are not employee ID 1 from that list?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2], "data": [["8"], ["9"], ["10"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_7xfxc_10.png", "TableImg_Ph411_7.png"], "original_data_index": 5740, "original_sql": "SELECT Employee_ID FROM employee WHERE \"Age\" < 32 OR Name != \"Andrew Sheridan\" OR City != \"Bristol\" AND \"Employee_ID\" <> 6 EXCEPT SELECT Employee_ID FROM hiring WHERE Is_full_time <> \"F\" OR \"Employee_ID\" <> 1"} {"question": "Can you list all the driver IDs, including those from the driver table that are greater than or equal to 2, and those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_119de_12.png", "TableImg_Y5ij5_5.png"], "original_data_index": 5746, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 5 and not equal to 9, considering drivers from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9vmg3_12.png", "TableImg_2ru8u_5.png"], "original_data_index": 5745, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you list all the aircraft IDs, including aircraft ID 2 from the aircraft table and any aircraft IDs greater than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yt75q_5.png", "TableImg_Eql0i_4.png"], "original_data_index": 5747, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Could you list the store IDs from the store table where either the number of product categories is 17811 or less, or the ranking isn't 2, the area size is at least 28.74, and the store ID is less than 2, or the store name is \"Doaktown\" and the type is not \"City Mall\", combined with the store IDs from the store_product table where the store ID is greater than 1?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_Jvf1n_5.png", "TableImg_81y87_15.png"], "original_data_index": 5748, "original_sql": "SELECT Store_ID FROM store WHERE \"Number_of_product_category\" <= 17811.0 OR \"Ranking\" != 2 AND \"Area_size\" >= 28.74 AND \"Store_ID\" < 2 OR Store_Name = \"Doaktown\" AND Type <> \"City Mall\" UNION SELECT Store_ID FROM store_product WHERE \"Store_ID\" > 1"} {"question": "Which aircraft have an ID of 1 and are also not associated with an airport having an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mezxi_5.png", "TableImg_Jewze_4.png"], "original_data_index": 5742, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 1, excluding any driver IDs that appear in the school_bus table and are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0coxz_12.png", "TableImg_Lv1oc_5.png"], "original_data_index": 5749, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 7 with those from the school bus table where the ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eoods_12.png", "TableImg_G2eqb_5.png"], "original_data_index": 5750, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me the publication date, ID, publisher, book ID, and price for publications that satisfy both of these conditions: first, the publication ID is less than 7 or the book ID is less than 9; and second, the publication ID is 2, or the publisher is not Pearson, or the book ID is greater than or equal to 7, or the price is not 4100000?", "answer": {"columns": ["Publication_Date", "Publication_ID", "Publisher", "Book_ID", "Price"], "index": [0, 1, 2, 3, 4, 5], "data": [["August 2008", "1", "Pearson", "1", "15000000"], ["August 2008", "5", "Springer Nature", "7", "3000000"], ["June 2006", "3", "Wiley", "4", "4100000"], ["March 2007", "6", "Pearson", "9", "2000000"], ["March 2008", "2", "Thomson Reuters", "3", "6000000"], ["October 2005", "4", "Wiley", "5", "3000000"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_K74f3_7.png", "TableImg_I0vt7_7.png"], "original_data_index": 5751, "original_sql": "SELECT Publication_Date, Publication_ID, Publisher, Book_ID, Price FROM publication WHERE \"Publication_ID\" < 7 OR \"Book_ID\" < 9 INTERSECT SELECT Publication_Date, Publication_ID, Publisher, Book_ID, Price FROM publication WHERE \"Publication_ID\" = 2 OR Publisher != \"Pearson\" OR \"Book_ID\" >= 7 OR \"Price\" <> 4100000.0"} {"question": "Can you give me a list of driver IDs less than or equal to 9 that are in the driver table, but not in the school bus table, excluding driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wpxoo_12.png", "TableImg_Xav6o_5.png"], "original_data_index": 5752, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 5, but then remove any aircraft IDs that also appear in the airport_aircraft table with an aircraft ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M373o_5.png", "TableImg_Cpif5_4.png"], "original_data_index": 5744, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you list all the driver IDs from the driver table that are 11 or greater, and combine that with a list of all driver IDs from the school_bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eecie_12.png", "TableImg_Jb50i_5.png"], "original_data_index": 5756, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are not equal to 2 from the driver table, excluding any driver IDs greater than 9 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I1nip_12.png", "TableImg_K3ipd_5.png"], "original_data_index": 5754, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 1, combined with a list of driver IDs from the school_bus table that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3bj8g_12.png", "TableImg_20tgt_5.png"], "original_data_index": 5755, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list all the feature type codes from the Other_Available_Features table where the feature ID is not 3, or the feature name is not \"BurglarAlarm\", and the feature type code is not \"Amenity\", and the feature description is not \"Air Conditioning.\", along with all the feature type codes from the Ref_Feature_Types table where the feature type code is not \"Amenity\" and the feature type name is \"Securiyt, eg Burglar Alarm.\"?", "answer": {"columns": ["feature_type_code"], "index": [0, 1, 2], "data": [["Amenity"], ["Security"], ["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Rlus0_3.png", "TableImg_X2vki_2.png"], "original_data_index": 5753, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE \"feature_id\" != 3 OR feature_name <> \"BurglarAlarm\" AND feature_type_code <> \"Amenity\" AND feature_description != \"Air Conditioning.\" UNION ALL SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code <> \"Amenity\" AND feature_type_name = \"Securiyt, eg Burglar Alarm.\""} {"question": "Which driver IDs, excluding driver ID 7, are present in both the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gljul_12.png", "TableImg_Nsl50_5.png"], "original_data_index": 5759, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, and combine that with a list of school bus driver IDs, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_20uqn_12.png", "TableImg_F2iok_5.png"], "original_data_index": 5757, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 9 and also not equal to 7, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H3rzx_12.png", "TableImg_Kzsl0_5.png"], "original_data_index": 5758, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What is the difference between the total number of airports that are not LEBL and the total number of flights that either have an ID greater than or equal to 9 and an airport ID greater than or equal to 1 and an altitude not equal to 3650, or are flown by pilot Thompson on August 30, 1965, or have a company ID less than or equal to 5, or have a velocity less than or equal to 240?", "answer": {"columns": ["COUNT(id)"], "index": [0], "data": [["8"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Q9c2o_9.png", "TableImg_A5upr_13.png"], "original_data_index": 5760, "original_sql": "SELECT COUNT(id) FROM airport WHERE ICAO != \"LEBL\" EXCEPT SELECT COUNT(id) FROM flight WHERE \"id\" >= 9 AND \"airport_id\" >= 1 AND \"Altitude\" <> 3650.0 OR Pilot = \"Thompson\" AND Date = \"August 30, 1965\" OR \"company_id\" <= 5 OR \"Velocity\" <= 240.0"} {"question": "Which aircraft have an ID of 3 and are also associated with airports that don't have an aircraft ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_74mbs_5.png", "TableImg_4h7ko_4.png"], "original_data_index": 5762, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you list all aircraft IDs that are greater than or equal to 5, and also list aircraft ID 1 from the airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jqleo_5.png", "TableImg_Dnh91_4.png"], "original_data_index": 5761, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Could you give me the IDs of car makers that are either not from country 6 and are not Peugeaut, or have an ID less than 7 and are not Kia, combined with the IDs of cars that either have an engine displacement of 302 and were not made in 1977 and weigh less than 3365, or accelerate faster than 16.4 and have an ID of 125 or greater and have horsepower that isn't 68 and get 24 MPG, or have 4 cylinders?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["16"], ["18"], ["19"], ["20"], ["22"], ["23"], ["11"], ["18"], ["21"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["36"], ["37"], ["38"], ["39"], ["40"], ["54"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["110"], ["116"], ["117"], ["118"], ["120"], ["122"], ["125"], ["126"], ["127"], ["128"], ["130"], ["137"], ["138"], ["139"], ["140"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["174"], ["175"], ["176"], ["178"], ["179"], ["180"], ["181"], ["183"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["201"], ["203"], ["204"], ["205"], ["206"], ["211"], ["212"], ["213"], ["214"], ["215"], ["217"], ["224"], ["225"], ["226"], ["227"], ["228"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["250"], ["252"], ["253"], ["254"], ["255"], ["256"], ["263"], ["272"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["284"], ["286"], ["287"], ["290"], ["301"], ["302"], ["303"], ["304"], ["307"], ["309"], ["310"], ["311"], ["312"], ["313"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["336"], ["337"], ["338"], ["339"], ["340"], ["343"], ["344"], ["345"], ["346"], ["347"], ["348"], ["350"], ["351"], ["352"], ["353"], ["354"], ["355"], ["356"], ["357"], ["358"], ["359"], ["360"], ["361"], ["362"], ["363"], ["364"], ["365"], ["366"], ["367"], ["368"], ["376"], ["377"], ["378"], ["379"], ["380"], ["381"], ["382"], ["383"], ["384"], ["385"], ["386"], ["387"], ["388"], ["389"], ["390"], ["391"], ["392"], ["393"], ["394"], ["397"], ["399"], ["400"], ["401"], ["402"], ["403"], ["404"], ["405"], ["406"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Zb39c_22.png", "TableImg_M2qo8_406.png"], "original_data_index": 5763, "original_sql": "SELECT Id FROM car_makers WHERE Country != \"6\" AND FullName != \"Peugeaut\" OR \"Id\" < 7 AND Maker <> \"kia\" UNION ALL SELECT Id FROM cars_data WHERE \"Edispl\" = 302.0 AND \"Year\" <> 1977 AND \"Weight\" < 3365 OR \"Accelerate\" > 16.4 AND \"Id\" >= 125 AND Horsepower != \"68\" AND MPG = \"24\" OR \"Cylinders\" = 4"} {"question": "Can you give me the company name, sales in billions, and company ID for companies that meet certain criteria, excluding those that meet other criteria? Specifically, first find companies that either have profits not equal to 15.9 billion and a company ID of 6 or greater, or are named \"JPMorgan Chase\" and have sales of 68.7 billion or less. Then, from that list, remove any companies that either have sales of 310.1 billion or more, or are not named \"Gazprom\" and have assets of 328.7 billion or less and are not headquartered in the USA, or have a company ID of 18 or less and a market value not equal to 227.6 billion and are not in the Banking industry, or have profits greater than 11.1 billion.", "answer": {"columns": ["Name", "Sales_in_Billion", "Company_ID"], "index": [0], "data": [["Citigroup", "102.6", "14"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Ldzbt_19.png", "TableImg_5vi9e_19.png"], "original_data_index": 5764, "original_sql": "SELECT Name, Sales_in_Billion, Company_ID FROM company WHERE \"Profits_in_Billion\" <> 15.9 AND \"Company_ID\" >= 6.0 OR Name = \"JPMorgan Chase\" AND \"Sales_in_Billion\" <= 68.7 EXCEPT SELECT Name, Sales_in_Billion, Company_ID FROM company WHERE \"Sales_in_Billion\" >= 310.1 OR Name != \"Gazprom\" AND \"Assets_in_Billion\" <= 328.7 AND Headquarters <> \"USA\" OR \"Company_ID\" <= 18.0 AND \"Market_Value_in_Billion\" <> 227.6 AND Industry != \"Banking\" OR \"Profits_in_Billion\" > 11.1"} {"question": "Can you give me a list of aircraft IDs that are less than 5, and also appear in a list of aircraft IDs from the airport, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tvvsp_5.png", "TableImg_Noces_4.png"], "original_data_index": 5765, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not 11 with those from the school bus table that are less than 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xxdq8_12.png", "TableImg_S0mrq_5.png"], "original_data_index": 5767, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, from the driver table, but then remove any driver IDs that are also driver ID 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dun8m_12.png", "TableImg_Gzoqx_5.png"], "original_data_index": 5766, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and all driver IDs except 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6awjp_12.png", "TableImg_S2yye_5.png"], "original_data_index": 5768, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are both less than 11 and appear in the driver table, and also less than or equal to 10 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5y2q0_12.png", "TableImg_Cb7tu_5.png"], "original_data_index": 5773, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are less than 3 from the school bus table, making sure to remove any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Knpas_12.png", "TableImg_Lvpjj_5.png"], "original_data_index": 5769, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What is the sum of student IDs from the Has_Pet table where the pet ID is greater than or equal to 2001 or the student ID is less than or equal to 1002, combined with the sum of student IDs from the Student table where the major is less than 600 and the last name is not Smith, or the city code is PIT, the student ID is 1009, and the sex is male?", "answer": {"columns": ["SUM(StuID)"], "index": [0, 1], "data": [["3005"], ["15409"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_Q8t90_3.png", "TableImg_Wo2we_34.png"], "original_data_index": 5771, "original_sql": "SELECT SUM(StuID) FROM Has_Pet WHERE \"PetID\" >= 2001 OR \"StuID\" <= 1002 UNION SELECT SUM(StuID) FROM Student WHERE \"Major\" < 600 AND LName != \"Smith\" OR city_code = \"PIT\" AND \"StuID\" = 1009 AND Sex = \"M\""} {"question": "Can you give me a list of student IDs from the Has_Pet table where the pet ID is greater than 2001 and the student ID is less than 1002, combined with a list of student IDs from the Student table where the student ID is less than or equal to 1018, or the first name is George and the last name is not Kim, or the city code is not PHL and the sex is not female and the age is less than 17, or the major is less than or equal to 600?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_E0g5x_3.png", "TableImg_21v4r_34.png"], "original_data_index": 5772, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"PetID\" > 2001 AND \"StuID\" < 1002 UNION SELECT StuID FROM Student WHERE \"StuID\" <= 1018 OR Fname = \"George\" AND LName != \"Kim\" OR city_code != \"PHL\" AND Sex <> \"F\" AND \"Age\" < 17 OR \"Major\" <= 600"} {"question": "What is the average aircraft ID for aircraft that either aren't ID 3, aren't named Boeing 777-300, or have a distance greater than 6475, combined with the average aircraft ID for flights where the aircraft ID is less than 3, the origin is not Los Angeles, the price is not 278.56, and the destination is not Chicago?", "answer": {"columns": ["AVG(aid)"], "index": [0, 1], "data": [["8.5"], [""]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_Sv5tp_16.png", "TableImg_Lcnxv_10.png"], "original_data_index": 5774, "original_sql": "SELECT AVG(aid) FROM aircraft WHERE \"aid\" != 3 OR name != \"Boeing 777-300\" OR \"distance\" > 6475 UNION ALL SELECT AVG(aid) FROM flight WHERE \"aid\" < 3 AND origin <> \"Los Angeles\" AND \"price\" <> 278.56 AND destination != \"Chicago\""} {"question": "Can you give me a list of driver IDs that are greater than 4 from the driver table, combined with driver IDs that are exactly 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nrny2_12.png", "TableImg_1nsw7_5.png"], "original_data_index": 5775, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are both less than or equal to 8 and also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yzcx5_12.png", "TableImg_8wg2k_5.png"], "original_data_index": 5776, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What aircraft IDs are present in the aircraft table, excluding aircraft ID 2, but not present in the airport_aircraft table where the aircraft ID is greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xugvu_5.png", "TableImg_Ggzwr_4.png"], "original_data_index": 5777, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of aircraft IDs where the ID is greater than 4 from the aircraft table, combined with a list of aircraft IDs that are not equal to 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C7sxw_5.png", "TableImg_1f4cu_4.png"], "original_data_index": 5778, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the average draft details and document IDs for drafts with \"m\" as draft details and either a draft number less than 14 or a document ID greater than or equal to 13, excluding the average draft details and document IDs for drafts with a draft number less than 17 and a document ID greater than or equal to 2?", "answer": {"columns": ["AVG(draft_details)", "document_id"], "index": [0], "data": [["0", "7"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Gnqco_15.png", "TableImg_Fqc3s_15.png"], "original_data_index": 5779, "original_sql": "SELECT AVG(draft_details), document_id FROM Document_Drafts WHERE draft_details = \"m\" AND \"draft_number\" < 14 OR \"document_id\" >= 13 EXCEPT SELECT AVG(draft_details), document_id FROM Document_Drafts WHERE \"draft_number\" < 17 AND \"document_id\" >= 2"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 8, excluding any driver IDs from the school_bus table that are equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ayqw3_12.png", "TableImg_M8mdu_5.png"], "original_data_index": 5780, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs from the driver table, excluding driver ID 6, but then remove any driver IDs that also appear in the school_bus table with a driver ID of 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0umko_12.png", "TableImg_Lf60w_5.png"], "original_data_index": 5781, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What aircraft IDs are greater than 2, when considering each unique aircraft ID, excluding those aircraft IDs from airport aircraft that are not equal to 3, when considering each unique aircraft ID?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vi39r_5.png", "TableImg_M4rhc_4.png"], "original_data_index": 5782, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you list the aircraft IDs that are less than or equal to 1, and also list the aircraft IDs from the airport aircraft table that are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wmzsi_5.png", "TableImg_Ocznq_4.png"], "original_data_index": 5785, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of branch IDs, excluding those with a Branch ID that isn't \"5\" in the membership register, from branches that are not in London, or opened in 2001, or have a Branch ID less than or equal to 2, or have a membership amount that isn't 112, or are named Cochrane?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_12144_8.png", "TableImg_Wv61y_8.png"], "original_data_index": 5784, "original_sql": "SELECT Branch_ID FROM branch WHERE City != \"London\" OR Open_year = \"2001\" OR \"Branch_ID\" <= 2 OR membership_amount <> \"112\" OR Name = \"Cochrane\" EXCEPT SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID != \"5\""} {"question": "Can you give me the document ID, average draft number, and draft details for documents with an ID of 2 or less, draft details equal to \"p\", and a draft number not equal to 8, excluding those documents with an ID of 20 or less, a draft number of 14 or greater, and draft details not equal to \"r\"?", "answer": {"columns": ["document_id", "AVG(draft_number)", "draft_details"], "index": [0], "data": [["", "", ""]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Eck90_15.png", "TableImg_Zlpra_15.png"], "original_data_index": 5783, "original_sql": "SELECT document_id, AVG(draft_number), draft_details FROM Document_Drafts WHERE \"document_id\" <= 2 AND draft_details = \"p\" AND \"draft_number\" != 8 EXCEPT SELECT document_id, AVG(draft_number), draft_details FROM Document_Drafts WHERE \"document_id\" <= 20 AND \"draft_number\" >= 14 AND draft_details != \"r\""} {"question": "Can you give me the album IDs that meet these conditions: either the album title is not \"Radio Brasil (O Som da Jovem Vanguarda) - Seleccao de Henrique Amaro\" and the ID is greater than or equal to 153, or the artist ID is not 254, but exclude any IDs that also appear in a list of employee IDs where the employee's last name is \"Park\", their first name is not \"Jane\", or their ID is greater than 1?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338], "data": [["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_9v4e4_347.png", "TableImg_Y49dw_8.png"], "original_data_index": 5786, "original_sql": "SELECT id FROM albums WHERE title != \"Radio Brasil (O Som da Jovem Vanguarda) - Seleccao de Henrique Amaro\" AND \"id\" >= 153 OR \"artist_id\" != 254 EXCEPT SELECT id FROM employees WHERE last_name = \"Park\" OR first_name <> \"Jane\" OR \"id\" > 1"} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are less than or equal to 7 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2y8m4_12.png", "TableImg_7jfyk_5.png"], "original_data_index": 5787, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are both greater than 6 and present in the driver table, and also greater than or equal to 9 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Prumm_12.png", "TableImg_2kvco_5.png"], "original_data_index": 5788, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What is the highest bonus amount, excluding those where the employee ID is 10, after removing the highest bonus amounts where the employee ID is not 7 or the year awarded is not 2016?", "answer": {"columns": ["MAX(Bonus)"], "index": [0], "data": [["3200"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_2fhz2_6.png", "TableImg_Bswfe_6.png"], "original_data_index": 5789, "original_sql": "SELECT MAX(Bonus) FROM evaluation WHERE Employee_ID != \"10\" EXCEPT SELECT MAX(Bonus) FROM evaluation WHERE Employee_ID <> \"7\" OR Year_awarded != \"2016\""} {"question": "Could you list the draft numbers from the Document Drafts table where the draft details are \"b\" or the document ID is greater than 10 and the draft number is not 14, combined with the draft numbers from the Draft Copies table where the draft number is greater than or equal to 12 and the copy number is not 5?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["11"], ["12"], ["4"], ["16"], ["19"], ["17"], ["9"], ["20"], ["17"], ["12"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_Lcjqv_15.png", "TableImg_Shgbf_8.png"], "original_data_index": 5790, "original_sql": "SELECT draft_number FROM Document_Drafts WHERE draft_details = \"b\" OR \"document_id\" > 10 AND \"draft_number\" != 14 UNION ALL SELECT draft_number FROM Draft_Copies WHERE \"draft_number\" >= 12 AND \"copy_number\" <> 5"} {"question": "Can you give me the total branch ID and year from the purchase table, first for purchases where the member ID is greater than 3 or the total pounds is not equal to 321.13 and the branch ID is not \"3\", and then also for purchases where the member ID is 3 or the year is not \"2018\" and the branch ID is \"2\" and the total pounds is less than 2013.32?", "answer": {"columns": ["SUM(Branch_ID)", "Year"], "index": [0, 1], "data": [["15", "2017"], ["6", "2017"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_X643j_8.png", "TableImg_Aozol_8.png"], "original_data_index": 5791, "original_sql": "SELECT SUM(Branch_ID), Year FROM purchase WHERE \"Member_ID\" > 3 OR \"Total_pounds\" <> 321.13 AND Branch_ID != \"3\" UNION ALL SELECT SUM(Branch_ID), Year FROM purchase WHERE \"Member_ID\" = 3 OR Year != \"2018\" AND Branch_ID = \"2\" AND \"Total_pounds\" < 2013.32"} {"question": "Which driver has an ID of 5, but is not a driver with an ID other than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fgtgk_12.png", "TableImg_1s5ed_5.png"], "original_data_index": 5792, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 5, that appear in the aircraft table but not in the airport_aircraft table where the aircraft ID is less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F7xpf_5.png", "TableImg_7zs63_4.png"], "original_data_index": 5794, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me the ID, country, total maker count, and full name of car makers that meet these two conditions: first, they're not Peugeaut and their maker is \"gm\", or their ID is less than or equal to 18, or their country isn't \"1\"; and second, they're not Subaru and their ID isn't 12?", "answer": {"columns": ["Id", "Country", "SUM(Maker)", "FullName"], "index": [0], "data": [["1", "1", "0", "American Motor Company"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_Alba6_22.png", "TableImg_Obajh_22.png"], "original_data_index": 5793, "original_sql": "SELECT Id, Country, SUM(Maker), FullName FROM car_makers WHERE FullName != \"Peugeaut\" AND Maker = \"gm\" OR \"Id\" <= 18 OR Country <> \"1\" INTERSECT SELECT Id, Country, SUM(Maker), FullName FROM car_makers WHERE FullName != \"Subaru\" AND \"Id\" <> 12"} {"question": "Can you give me the zip codes, cities, and address IDs that are both not from address ID 2, zip code 85954, South Richieport, or 376 Kallie Tunnel Apt. 784, and also not from Washington, South Richieport, or the USA, or 2291 Larkin Ports?", "answer": {"columns": ["zip_postcode", "city", "address_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["5", "Buckridgehaven", "4"], ["8938", "Lake Elaina", "3"], ["14445", "Port Melyssa", "1"], ["27559", "Powlowskichester", "5"], ["34975", "Lockmanfurt", "7"], ["38197", "New Bernieceburgh", "12"], ["43988", "West Edmondview", "15"], ["61121", "Damianfort", "14"], ["75074", "Ericamouth", "13"], ["80376", "Lake Rafaela", "8"], ["99903", "South Eugene", "11"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Ei8be_15.png", "TableImg_Od2cj_15.png"], "original_data_index": 5797, "original_sql": "SELECT zip_postcode, city, address_id FROM Addresses WHERE \"address_id\" != 2 AND zip_postcode != \"85954\" AND city != \"South Richieport\" AND line_1_number_building <> \"376 Kallie Tunnel Apt. 784\" INTERSECT SELECT zip_postcode, city, address_id FROM Addresses WHERE state_province_county != \"Washington\" AND city <> \"South Richieport\" OR country <> \"USA\" OR line_1_number_building <> \"2291 Larkin Ports\""} {"question": "Can you give me the actor ID and rating from the review table where either the item ID is 1, or the actor ID is not 4 and the rating is 5 or less, but only if they also appear in the review table where the rating is 5, or the user ID is less than 1, or the actor ID is 3, the item ID is 7 or greater, and the rank is 7 or greater?", "answer": {"columns": ["a_id", "rating"], "index": [0, 1], "data": [["2", "5"], ["6", "5"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Q10ea_7.png", "TableImg_Cv3c6_7.png"], "original_data_index": 5795, "original_sql": "SELECT a_id, rating FROM review WHERE \"i_id\" = 1 OR \"a_id\" <> 4 AND \"rating\" <= 5 INTERSECT SELECT a_id, rating FROM review WHERE \"rating\" = 5 OR \"u_id\" < 1 OR \"a_id\" = 3 AND \"i_id\" >= 7 AND \"rank\" >= 7"} {"question": "Could you give me the customer ID and customer address ID for customers, grouped by the date they became a customer, where the payment datetime is exactly \"2018-03-12 13:31:36\" and their last name is \"Ortiz\", or where the date they became a customer is exactly \"2016-09-04 23:08:20\", or where the payment method is not \"Direct Debit\", the phone number is \"1-875-045-0806\", the payment amount is less than 5475.26, the outstanding amount is less than 3900.0, and the customer status is not \"Bad Customer\"?", "answer": {"columns": ["customer_id", "customer_address_id"], "index": [0], "data": [["13", "7"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_E1eog_15.png", "TableImg_8hlz5_15.png"], "original_data_index": 5796, "original_sql": "SELECT T1.customer_id, T2.customer_address_id FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id == T2.customer_id GROUP BY date_became_customer HAVING datetime_payment = \"2018-03-12 13:31:36\" AND last_name = \"Ortiz\" OR date_became_customer = \"2016-09-04 23:08:20\" OR payment_method_code <> \"Direct Debit\" AND phone_number = \"1-875-045-0806\" AND amount_payment < 5475.26 AND amount_outstanding < 3900.0 AND customer_status_code <> \"Bad Customer\""} {"question": "Which driver IDs are both not equal to 6 and greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lqhys_12.png", "TableImg_Ohawb_5.png"], "original_data_index": 5801, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What aircraft IDs are greater than or equal to 2, excluding those aircraft IDs that are also greater than or equal to 5 and found in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8vczv_5.png", "TableImg_Wb62l_4.png"], "original_data_index": 5800, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs less than or equal to 8, excluding any driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4rpfy_12.png", "TableImg_G65lb_5.png"], "original_data_index": 5798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of vehicle IDs that either belong to completed lesson number 5 or are cars?", "answer": {"columns": ["vehicle_id"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_Maa5w_15.png", "TableImg_Kym9a_3.png"], "original_data_index": 5799, "original_sql": "SELECT vehicle_id FROM Lessons WHERE lesson_status_code = \"Completed\" AND \"lesson_id\" = 5 UNION SELECT vehicle_id FROM Vehicles WHERE vehicle_details = \"Car\""} {"question": "Can you give me a list of driver IDs that are not 5 and also not 10, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hewkr_12.png", "TableImg_Oxnfm_5.png"], "original_data_index": 5805, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 3, excluding any driver IDs that are not equal to 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qb4mi_12.png", "TableImg_7zrql_5.png"], "original_data_index": 5803, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those driver IDs that are also not equal to 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B92zy_12.png", "TableImg_9lol9_5.png"], "original_data_index": 5802, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What is the smallest People ID from the employment table where the Company ID is greater than 15, and also, what is the smallest People ID from the people table where the People ID is 2 and either the Graduation College is California, the name is not David Butler, the age is not 25, or the nationality is United Kingdom?", "answer": {"columns": ["MIN(People_ID)"], "index": [0, 1], "data": [["7"], ["1"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_Iqqan_5.png", "TableImg_5byg8_7.png"], "original_data_index": 5804, "original_sql": "SELECT MIN(People_ID) FROM employment WHERE \"Company_ID\" > 15 UNION ALL SELECT MIN(People_ID) FROM people WHERE \"People_ID\" = 2 AND Graduation_College = \"California\" OR Name != \"David Butler\" OR \"Age\" <> 25 OR Nationality = \"United Kindom\""} {"question": "What vehicle details and IDs are available for vehicles that are not vehicle ID 2, excluding those that are also not vehicle ID 1?", "answer": {"columns": ["vehicle_details", "vehicle_id"], "index": [0], "data": [["Van", "1"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Cy44w_3.png", "TableImg_0s0hm_3.png"], "original_data_index": 5806, "original_sql": "SELECT vehicle_details, vehicle_id FROM Vehicles WHERE \"vehicle_id\" <> 2 EXCEPT SELECT vehicle_details, vehicle_id FROM Vehicles WHERE \"vehicle_id\" <> 1"} {"question": "Can you give me a list of driver IDs less than or equal to 6, excluding any driver IDs that are not equal to 9, based on the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_91dpc_12.png", "TableImg_1f38e_5.png"], "original_data_index": 5808, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me the mailing date, average address ID, and document ID for all mailings where the document ID is greater than 13 or the address ID is less than 3, combined with the mailing date, average address ID, and document ID for all mailings where the address ID is not 4?", "answer": {"columns": ["mailing_date", "AVG(mailed_to_address_id)", "document_id"], "index": [0, 1], "data": [["1999-05-22 23:21:07", "3.6666666667000003", "12"], ["1977-04-01 17:03:50", "5.0", "2"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_Gc7yi_14.png", "TableImg_Hcrsf_14.png"], "original_data_index": 5809, "original_sql": "SELECT mailing_date, AVG(mailed_to_address_id), document_id FROM Documents_Mailed WHERE \"document_id\" > 13 OR \"mailed_to_address_id\" < 3 UNION ALL SELECT mailing_date, AVG(mailed_to_address_id), document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <> 4"} {"question": "What are the Book IDs and the total Publisher values for publications with Publication ID 6, excluding those that also appear for publications with Publication ID 3?", "answer": {"columns": ["Book_ID", "SUM(Publisher)"], "index": [0], "data": [["9", "0"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_Ag4xi_7.png", "TableImg_Pff08_7.png"], "original_data_index": 5812, "original_sql": "SELECT Book_ID, SUM(Publisher) FROM publication WHERE \"Publication_ID\" = 6 EXCEPT SELECT Book_ID, SUM(Publisher) FROM publication WHERE \"Publication_ID\" = 3"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 12, combined with a list of driver IDs from the school_bus table where the ID is exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ag5ny_12.png", "TableImg_Rlb1f_5.png"], "original_data_index": 5811, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me the age, nationality, and people ID for individuals who either aren't from the United States and didn't graduate from California, or are 34 or younger, or have a people ID of 3 and are named Tom Sheehey; combined with the age, nationality, and people ID for individuals who aren't named Brad Lohaus, don't have a people ID of 3, are 37 years old, are from the United States, and didn't graduate from California?", "answer": {"columns": ["Age", "Nationality", "People_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["25", "United States", "2"], ["27", "United States", "1"], ["30", "United States", "7"], ["31", "United States", "4"], ["34", "United Kindom", "5"], ["37", "United Kindom", "3"], ["37", "United States", "6"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Wmg6o_7.png", "TableImg_I9cdp_7.png"], "original_data_index": 5810, "original_sql": "SELECT Age, Nationality, People_ID FROM people WHERE Nationality <> \"United States\" AND Graduation_College != \"California\" OR \"Age\" <= 34 OR \"People_ID\" = 3 AND Name = \"Tom Sheehey\" UNION SELECT Age, Nationality, People_ID FROM people WHERE Name != \"Brad Lohaus\" AND \"People_ID\" != 3 AND \"Age\" = 37 AND Nationality = \"United States\" AND Graduation_College != \"California\""} {"question": "Which driver has an ID of 10 and also drives a school bus, but not one with an ID of 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ue5d0_12.png", "TableImg_Gxjjh_5.png"], "original_data_index": 5807, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What aircraft have an ID of 3 when considering aircraft IDs in the aircraft table, excluding those aircraft IDs from the airport_aircraft table that are greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mmk1c_5.png", "TableImg_9n3ij_4.png"], "original_data_index": 5813, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only aircraft IDs less than 3, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6xw15_5.png", "TableImg_4ozso_4.png"], "original_data_index": 5816, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 6, excluding any driver IDs that also appear in the school_bus table where the driver ID is not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wfr35_12.png", "TableImg_25ch0_5.png"], "original_data_index": 5815, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ph3r9_12.png", "TableImg_O0nz7_5.png"], "original_data_index": 5814, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs less than 8 from the driver table, excluding any driver IDs greater than or equal to 9 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dneri_12.png", "TableImg_Jj3rw_5.png"], "original_data_index": 5818, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list the trust values and target user IDs from the trust table where the source user ID is 6, or the target user ID is 5 or less, or the trust value is 8, and also include all trust values and target user IDs where the trust value is 1 or greater?", "answer": {"columns": ["trust", "target_u_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["10", "2"], ["6", "3"], ["8", "4"], ["3", "2"], ["2", "5"], ["4", "3"], ["1", "2"], ["7", "5"], ["10", "2"], ["6", "3"], ["8", "4"], ["10", "6"], ["3", "2"], ["2", "5"], ["4", "3"], ["1", "2"], ["7", "5"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_Ick2s_9.png", "TableImg_Wi3wt_9.png"], "original_data_index": 5817, "original_sql": "SELECT trust, target_u_id FROM trust WHERE \"source_u_id\" = 6 OR \"target_u_id\" <= 5 OR \"trust\" = 8 UNION ALL SELECT trust, target_u_id FROM trust WHERE \"trust\" >= 1"} {"question": "Can you give me a list of driver IDs that are 3 or greater, excluding those driver IDs that are 7 or greater and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Brg3c_12.png", "TableImg_Tnltk_5.png"], "original_data_index": 5820, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Could you give me the Aircraft IDs for all aircraft that are either a \"Robinson R-22\", or have a total disk area of \"4,900 ft\u00b2 (460 m\u00b2)\" but not a max disk loading of \"3.7 lb/ft\u00b2 (18 kg/m\u00b2)\", or have an Aircraft ID of 2 but not a max gross weight of \"73,500 lb (33,300 kg)\", except for those Aircraft IDs that are associated with an ID of 3 or with an Aircraft ID of 5 and an Airport ID of 6 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9224e_5.png", "TableImg_Jbb62_4.png"], "original_data_index": 5819, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Aircraft = \"Robinson R-22\" OR Total_disk_area = \"4,900 ft\u00b2 (460 m\u00b2)\" AND Max_disk_Loading <> \"3.7 lb/ft\u00b2 (18 kg/m\u00b2)\" OR \"Aircraft_ID\" = 2 AND Max_Gross_Weight <> \"73,500 lb (33,300 kg)\" EXCEPT SELECT Aircraft_ID FROM airport_aircraft WHERE \"ID\" = 3 OR \"Aircraft_ID\" = 5 AND \"Airport_ID\" = 6"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver IDs less than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hyuem_12.png", "TableImg_Dkztg_5.png"], "original_data_index": 5822, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of all driver IDs, excluding driver ID 7 from the driver table and driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U53lx_12.png", "TableImg_W7kzj_5.png"], "original_data_index": 5823, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you show me the earnings and final table appearances for poker players if their ID is 1 or higher, or their earnings are at least $476,090 and their money rank is at least 58, or they've made 42 or fewer final tables; and also show me the earnings and final table appearances for poker players if their best finish isn't first place, or their earnings are greater than $596,462, or their people ID is not 6?", "answer": {"columns": ["Earnings", "Final_Table_Made"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["476090", "42"], ["189233", "10"], ["104871", "21"], ["596462", "19"], ["142800", "26"], ["476090", "42"], ["189233", "10"], ["104871", "21"], ["596462", "19"], ["142800", "26"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Gmb3r_5.png", "TableImg_4lay0_5.png"], "original_data_index": 5821, "original_sql": "SELECT Earnings, Final_Table_Made FROM poker_player WHERE \"Poker_Player_ID\" >= 1 OR \"Earnings\" >= 476090.0 AND \"Money_Rank\" >= 58.0 OR \"Final_Table_Made\" <= 42.0 UNION ALL SELECT Earnings, Final_Table_Made FROM poker_player WHERE \"Best_Finish\" <> 1.0 OR \"Earnings\" > 596462.0 OR \"People_ID\" != 6"} {"question": "Can you give me a list of driver IDs that are less than or equal to 3 from the driver table, combined with a list of driver IDs that are less than or equal to 10 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L924k_12.png", "TableImg_4aece_5.png"], "original_data_index": 5824, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list all the driver IDs that are less than 9 from the driver table, and combine that with a list of all driver IDs that are less than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2q7rx_12.png", "TableImg_A3lt1_5.png"], "original_data_index": 5825, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the maximum gross weights of aircraft and the corresponding airport IDs they are associated with?", "answer": {"columns": ["Max_Gross_Weight", "Airport_ID"], "index": [0, 1, 2, 3], "data": [["3,200 lb (1,451 kg)", "1"], ["1,370 lb (635 kg)", "2"], ["73,500 lb (33,300 kg)", "6"], ["50,000 lb (22,680 kg)", "9"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uod4j_5.png", "TableImg_0qg7o_4.png"], "original_data_index": 5827, "original_sql": "SELECT T1.Max_Gross_Weight, T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you tell me the age, driver ID, and party for Jason Rojas, and also for anyone who either doesn't live in Bethel and is named Dan Carter, or is in the Dem party, or whose age is not 45, or whose driver ID is 6 or higher?", "answer": {"columns": ["Age", "Driver_ID", "Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["35", "8", "Rep"], ["36", "7", "Dem"], ["36", "11", "Dem"], ["37", "10", "Dem"], ["38", "9", "Dem"], ["40", "1", "Dem"], ["42", "4", "Dem"], ["46", "3", "Dem"], ["52", "6", "Dem"], ["52", "12", "Dem"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_Efjlf_12.png", "TableImg_09xb1_12.png"], "original_data_index": 5826, "original_sql": "SELECT Age, Driver_ID, Party FROM driver WHERE Name = \"Jason Rojas\" UNION SELECT Age, Driver_ID, Party FROM driver WHERE Home_city != \"Bethel\" AND Name = \"Dan Carter\" OR Party = \"Dem\" AND \"Age\" != 45 OR \"Driver_ID\" >= 6"} {"question": "Can you give me a list of driver IDs less than or equal to 12, excluding any driver IDs that are not equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qqnfv_12.png", "TableImg_0415f_5.png"], "original_data_index": 5828, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of store IDs, including those from the store district table where the store ID is not 1 and the district ID is 15 or greater, and also those from the store product table where the store ID is greater than 1 or the product ID is less than or equal to 2?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["2"], ["1"], ["1"], ["2"], ["3"], ["2"], ["3"], ["2"], ["5"], ["5"], ["5"], ["5"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_Cmhp9_5.png", "TableImg_S6pc6_15.png"], "original_data_index": 5830, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" != 1 AND \"District_ID\" >= 15 UNION ALL SELECT Store_ID FROM store_product WHERE \"Store_ID\" > 1 OR \"Product_ID\" <= 2"} {"question": "Can you give me a list of aircraft IDs that are not equal to 1, excluding those aircraft IDs less than 2 that are also found in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9z0nk_5.png", "TableImg_3i9dx_4.png"], "original_data_index": 5829, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you list the party, name, driver ID, age, and home city for all drivers who are not 46 years old or are not in the Dem party, along with the party, name, driver ID, age, and home city for all drivers in the Rep party who are not driver ID 4?", "answer": {"columns": ["Party", "Name", "Driver_ID", "Age", "Home_city"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["Dem", "Matthew Ritter", "1", "40", "Hartford"], ["Rep", "Dan Carter", "2", "30", "Bethel"], ["Dem", "Angel Acre", "4", "42", "Hartford"], ["Dem", "Brandon McGee", "5", "45", "Hartford"], ["Dem", "Edwin Vargas", "6", "52", "Hartford"], ["Dem", "Douglas McCrory", "7", "36", "Hartford"], ["Rep", "Timothy Ackert", "8", "35", "Coventry"], ["Dem", "Jason Rojas", "9", "38", "East Hartford"], ["Dem", "Henry Genga", "10", "37", "East Hartford"], ["Dem", "Tim Larson", "11", "36", "East Hartford"], ["Dem", "Geoff Luxenberg", "12", "52", "Manchester"], ["Rep", "Dan Carter", "2", "30", "Bethel"], ["Rep", "Timothy Ackert", "8", "35", "Coventry"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_Tl2dn_12.png", "TableImg_49kck_12.png"], "original_data_index": 5831, "original_sql": "SELECT Party, Name, Driver_ID, Age, Home_city FROM driver WHERE \"Age\" <> 46 OR Party != \"Dem\" UNION ALL SELECT Party, Name, Driver_ID, Age, Home_city FROM driver WHERE Party = \"Rep\" AND \"Driver_ID\" != 4"} {"question": "Can you give me the school IDs for schools that either don't have \"Cavaliers\" as their mascot, aren't located in \"50 Marshall\" county, or are not classified as \"AAA\" but are classified as \"AA\" in IHSAA football, combined with the school IDs from endowments where the donator's name is \"Monte Plata\" or the endowment ID is less than or equal to 5 and the amount is greater than or equal to 8.43?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_Zys0k_8.png", "TableImg_Cecty_11.png"], "original_data_index": 5832, "original_sql": "SELECT School_id FROM School WHERE Mascot != \"Cavaliers\" OR County <> \"50 Marshall\" OR IHSAA_Class <> \"AAA\" AND IHSAA_Football_Class = \"AA\" UNION SELECT School_id FROM endowment WHERE donator_name = \"Monte Plata\" OR \"endowment_id\" <= 5 AND \"amount\" >= 8.43"} {"question": "Which driver IDs are equal to 2 in the driver table, excluding any driver IDs that are not equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cruoc_12.png", "TableImg_Nmco8_5.png"], "original_data_index": 5833, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are both not equal to 2 and less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D6ut3_12.png", "TableImg_Vc8hr_5.png"], "original_data_index": 5836, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 2, and those from the airport_aircraft table that are less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hp4sk_5.png", "TableImg_R6z5a_4.png"], "original_data_index": 5835, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "How many certificates are associated with employee ID 141582651, and how many employees have an ID greater than 489221823 or a name other than Michael Miller and a salary greater than 48090?", "answer": {"columns": ["COUNT(eid)"], "index": [0, 1], "data": [["3"], ["20"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Ednqb_69.png", "TableImg_Igeri_31.png"], "original_data_index": 5834, "original_sql": "SELECT COUNT(eid) FROM certificate WHERE \"eid\" = 141582651 UNION ALL SELECT COUNT(eid) FROM employee WHERE \"eid\" > 489221823 OR name != \"Michael Miller\" AND \"salary\" > 48090"} {"question": "Can you list the aircraft IDs that are greater than or equal to 2, excluding those aircraft IDs that are also greater than 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zhmbg_5.png", "TableImg_P4ht4_4.png"], "original_data_index": 5838, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you give me the lowest People ID, highest age, earliest graduation college, earliest name, and average nationality for people, excluding those who are 34 years old or named David Butler or graduated from Northeastern, but including those whose nationality isn't United Kingdom and whose People ID is greater than 2, then remove from that result the lowest People ID, highest age, earliest graduation college, earliest name, and average nationality for people who graduated from Iowa, or whose People ID is 7 or less and nationality isn't United Kingdom, or are named Jerry Corcoran?", "answer": {"columns": ["MIN(People_ID)", "MAX(Age)", "MIN(Graduation_College)", "MIN(Name)", "AVG(Nationality)"], "index": [0], "data": [["2", "37", "Iowa", "Brad Lohaus", "0"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Ahcw2_7.png", "TableImg_W2wuv_7.png"], "original_data_index": 5837, "original_sql": "SELECT MIN(People_ID), MAX(Age), MIN(Graduation_College), MIN(Name), AVG(Nationality) FROM people WHERE \"Age\" <> 34 AND Name != \"David Butler\" AND Graduation_College <> \"Northeastern\" OR Nationality != \"United Kindom\" AND \"People_ID\" > 2 EXCEPT SELECT MIN(People_ID), MAX(Age), MIN(Graduation_College), MIN(Name), AVG(Nationality) FROM people WHERE Graduation_College = \"Iowa\" OR \"People_ID\" <= 7 AND Nationality <> \"United Kindom\" OR Name = \"Jerry Corcoran\""} {"question": "Can you give me a list of driver IDs, including driver ID 10 from the driver table, and all driver IDs except 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8jg6f_12.png", "TableImg_0fl5v_5.png"], "original_data_index": 5839, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 5, and those from the school bus table that are greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q80nq_12.png", "TableImg_6nq8u_5.png"], "original_data_index": 5840, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, including driver ID 11 from the driver table and any driver IDs greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Voko8_12.png", "TableImg_03ycz_5.png"], "original_data_index": 5843, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are greater than 7 from the driver table, combined with a list of driver IDs that are greater than or equal to 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Blpvk_12.png", "TableImg_Kqoa3_5.png"], "original_data_index": 5844, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you list all the store IDs from the store_district table that are less than 1, and also list all the store IDs from the store_product table where the product ID is not 2 and the store ID is 5 or greater?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["5"], ["5"], ["5"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_X5fsp_5.png", "TableImg_3ycbp_15.png"], "original_data_index": 5842, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" < 1 UNION ALL SELECT Store_ID FROM store_product WHERE \"Product_ID\" <> 2 AND \"Store_ID\" >= 5"} {"question": "Can you list the names from the branch table where either the Branch ID is 1 and the membership amount isn't 6, or the road isn't Glebe Street, the city is Oxford, and the name isn't Popert, or the opening year isn't 2015, combined with the names from the member table where either the level isn't 6, or the member ID is less than 9, the name isn't Johnny Williams, and the hometown isn't Jacksonville, Florida?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Alexandre"], ["Braxton Kelley"], ["Brooke Greville"], ["Cochrane"], ["Corey Peters"], ["Jeremy Jarmon"], ["Matt Lentz"], ["Micah Johnson"], ["Myron Pryor"], ["Popert"], ["Stanley"], ["Taverner"], ["Trevard Lindley"], ["Ventrell Jenkins"], ["Zytogorski"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_1ivv8_8.png", "TableImg_Ql9ev_10.png"], "original_data_index": 5841, "original_sql": "SELECT Name FROM branch WHERE \"Branch_ID\" = 1 AND membership_amount <> \"6\" OR Address_road != \"Glebe Street\" AND City = \"Oxford\" AND Name != \"Popert\" OR Open_year != \"2015\" UNION SELECT Name FROM member WHERE \"Level\" <> 6 OR \"Member_ID\" < 9 AND Name <> \"Johnny Williams\" AND Hometown != \"Jacksonville, Florida\""} {"question": "Can you give me a list of driver IDs that are less than 1 from the driver table, combined with a list of driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kj366_12.png", "TableImg_F7npn_5.png"], "original_data_index": 5845, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, excluding those equal to 3, that are greater than 5 and appear more than once in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ecvaz_12.png", "TableImg_M329f_5.png"], "original_data_index": 5846, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Could you list the driver IDs that are both less than or equal to 10 and appear in the driver table, and also less than 7 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dcuxn_12.png", "TableImg_006dt_5.png"], "original_data_index": 5848, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me the IDs of drivers with IDs less than 4, excluding those who drive school buses and have IDs not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tsve4_12.png", "TableImg_Sdabw_5.png"], "original_data_index": 5847, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list all the driver IDs that are less than or equal to 3, combining the IDs from both the driver and school_bus lists, but only showing each ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uxvkw_12.png", "TableImg_Ahe7c_5.png"], "original_data_index": 5849, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those that are exactly 12 from the driver table, and those that are 3 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lvflj_12.png", "TableImg_N5fmw_5.png"], "original_data_index": 5850, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the name, ID, and description of all clubs, excluding those with an ID of 4 or higher, but also excluding any clubs that either aren't named \"Tennis Club\", don't have a description of \"A competitive tennis club.\", or aren't located in \"HHH\"?", "answer": {"columns": ["ClubName", "ClubID", "ClubDesc"], "index": [0, 1, 2], "data": [["Bootup Baltimore", "1", "Refurbish computers; teach kids and adults about computer basics."], ["Hopkins Student Enterprises", "2", "Venture capital fund for student business."], ["Pen and Paper Gaming", "3", "Play pen and paper games on campus."]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_B5cfx_4.png", "TableImg_9ofvk_4.png"], "original_data_index": 5851, "original_sql": "SELECT ClubName, ClubID, ClubDesc FROM Club WHERE \"ClubID\" != 4 AND ClubName != \"Tennis Club\" OR ClubDesc != \"A competitive tennis club.\" OR ClubLocation <> \"HHH\" EXCEPT SELECT ClubName, ClubID, ClubDesc FROM Club WHERE \"ClubID\" >= 4"} {"question": "Which driver IDs are both not equal to 7 and also greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_61n2p_12.png", "TableImg_E9cxk_5.png"], "original_data_index": 5852, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of aircraft IDs that are either aircraft ID 2 from the aircraft table or aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4cuyw_5.png", "TableImg_P2bx8_4.png"], "original_data_index": 5853, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Could you list the template type codes and descriptions that are both not \"Paper\" and have a template type code of \"AD\"?", "answer": {"columns": ["Template_Type_Code", "Template_Type_Description"], "index": [0], "data": [["AD", "Advertisement"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Llybz_5.png", "TableImg_Tnidw_5.png"], "original_data_index": 5856, "original_sql": "SELECT Template_Type_Code, Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Description <> \"Paper\" INTERSECT SELECT Template_Type_Code, Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Code = \"AD\""} {"question": "Can you give me a list of driver IDs that are greater than 2, excluding those driver IDs that are also greater than 7 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rtin4_12.png", "TableImg_3jl5z_5.png"], "original_data_index": 5857, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs appear in the driver table, excluding driver ID 4, and also appear in the school_bus table only with driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z353q_12.png", "TableImg_Fyw16_5.png"], "original_data_index": 5854, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of employee IDs, including those who have worked with copy numbers other than 15, along with employee IDs from the employee table where either their other details are not \"b\", or their employee ID is 5 or greater and their role code is not \"ED\", or their name is \"Clemens\"?", "answer": {"columns": ["employee_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["2"], ["1"], ["2"], ["5"], ["7"], ["8"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_Rubei_4.png", "TableImg_0hoy3_6.png"], "original_data_index": 5855, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"copy_number\" <> 15 UNION ALL SELECT employee_id FROM Employees WHERE other_details <> \"b\" OR \"employee_id\" >= 5 AND role_code <> \"ED\" OR employee_name = \"Clemens\""} {"question": "Can you give me the IDs of aircraft that are less than or equal to 1, excluding those aircraft IDs that are equal to 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pxg9t_5.png", "TableImg_835k1_4.png"], "original_data_index": 5860, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs that are not equal to 8, excluding any driver IDs less than 9 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ovewl_12.png", "TableImg_Ee57a_5.png"], "original_data_index": 5861, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 9, and those from the school bus table that are specifically 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lf4to_12.png", "TableImg_X1zho_5.png"], "original_data_index": 5859, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 10 and not equal to 3, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Co4ae_12.png", "TableImg_0r7zb_5.png"], "original_data_index": 5858, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What aircraft IDs appear exactly once in the aircraft table with an ID of 4, but do not appear in the airport_aircraft table with an ID less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5zpsz_5.png", "TableImg_Ic5hl_4.png"], "original_data_index": 5862, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs that are not 5, and are also not driver IDs greater than 3 that are used on school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7w2ul_12.png", "TableImg_Bm3ez_5.png"], "original_data_index": 5865, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of member names, including those who don't have a Member ID of 1 and those who are from Louisville, Kentucky?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Braxton Kelley"], ["Corey Peters"], ["David Jones"], ["Johnny Williams"], ["Matt Lentz"], ["Micah Johnson"], ["Myron Pryor"], ["Trevard Lindley"], ["Ventrell Jenkins"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_Yn2g1_10.png", "TableImg_Dtj45_10.png"], "original_data_index": 5864, "original_sql": "SELECT Name FROM member WHERE \"Member_ID\" != 1 UNION SELECT Name FROM member WHERE Hometown = \"Louisville, Kentucky\""} {"question": "Can you give me a list of driver IDs that are less than 12 from the driver table, combined with a list of driver IDs that are less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bwwvy_12.png", "TableImg_Afrm1_5.png"], "original_data_index": 5866, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of aircraft IDs that are less than 4, excluding any aircraft IDs that also appear in the airport aircraft list, except for aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ees1_5.png", "TableImg_Kmq99_4.png"], "original_data_index": 5863, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but also less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N7wx5_12.png", "TableImg_Gktcx_5.png"], "original_data_index": 5867, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs that are not equal to 4 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cnbvh_12.png", "TableImg_56j4a_5.png"], "original_data_index": 5869, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which aircraft IDs are both greater than or equal to 2 when grouped in the aircraft table, and equal to 5 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_64zfm_5.png", "TableImg_Obkw3_4.png"], "original_data_index": 5868, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 6, that are not also driver IDs less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0v0fr_12.png", "TableImg_1a8ri_5.png"], "original_data_index": 5870, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs, excluding driver ID 12, are also driver IDs of school buses where the driver ID is 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O4nyd_12.png", "TableImg_Iwed1_5.png"], "original_data_index": 5871, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you list the writers of books that either don't have the title \"Bloody Mary : Lady Liberty\", or have an \"Issues\" value greater than 1.0 and are not written by Howard Chaykin for books with a \"Book_ID\" of 2 or greater?", "answer": {"columns": ["Writer"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["Timothy Truman"], ["Garth Ennis"], ["Garth Ennis"], ["Elaine Lee"], ["Howard Chaykin"], ["Christopher Hinz"], ["Dave Gibbons"], ["Christopher Hinz"], ["Michael Moorcock"], ["Christopher Moeller"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_9rdwb_10.png", "TableImg_G3ud3_10.png"], "original_data_index": 5874, "original_sql": "SELECT Writer FROM book WHERE Title != \"Bloody Mary : Lady Liberty\" OR \"Issues\" > 1.0 NOT IN (SELECT Writer FROM book WHERE \"Book_ID\" >= 2 AND Writer = \"Howard Chaykin\")"} {"question": "Can you give me the Driver ID of drivers with ID 1, excluding any driver IDs greater than 10 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jivse_12.png", "TableImg_Kw2bi_5.png"], "original_data_index": 5872, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are both not equal to 5 and less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0ubbj_12.png", "TableImg_Mg2wm_5.png"], "original_data_index": 5873, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me the Aircraft IDs that are both less than or equal to 1 when looking at the aircraft table and less than 2 when looking at the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hbeaw_5.png", "TableImg_Gzz9n_4.png"], "original_data_index": 5875, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 1 from the driver table, excluding any driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zw986_12.png", "TableImg_Em3cq_5.png"], "original_data_index": 5876, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_01z1t_12.png", "TableImg_Fssb8_5.png"], "original_data_index": 5877, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What is the smallest driver ID from all drivers with an ID of 1 or greater, excluding the smallest driver ID from school bus drivers who either have worked for a number of years other than 10 and are not associated with school ID 4, or are not full-time?", "answer": {"columns": ["MIN(Driver_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qcutn_12.png", "TableImg_Sb753_5.png"], "original_data_index": 5878, "original_sql": "SELECT MIN(Driver_ID) FROM driver WHERE \"Driver_ID\" >= 1 EXCEPT SELECT MIN(Driver_ID) FROM school_bus WHERE \"Driver_ID\" < 3 AND \"Years_Working\" <> 10 AND \"School_ID\" != 4 OR If_full_time != \"T\""} {"question": "Can you give me the driver ID that appears exactly once as 8 in the driver table, but not in the school_bus table where the driver ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cephd_12.png", "TableImg_Paoo9_5.png"], "original_data_index": 5879, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are less than 3, excluding any driver IDs that are also 9 or greater and are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8f3v7_12.png", "TableImg_73skz_5.png"], "original_data_index": 5881, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding ID 9, and those from the school bus table with IDs 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kv7vj_12.png", "TableImg_Kkcha_5.png"], "original_data_index": 5883, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding ID 9, and those from the school bus table with IDs of 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6uoti_12.png", "TableImg_Pwgu3_5.png"], "original_data_index": 5882, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of shipping agent codes from the Documents table where the document ID is less than 20, or the receipt date isn't May 31st, 1996 at 6:51:58 AM and the receipt number isn't 189, but excluding any shipping agent codes from the Ref_Shipping_Agents table where the shipping agent code isn't \"FE\" and the shipping agent name isn't \"USPS\"?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1], "data": [["FE"], ["US"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Yb5dw_15.png", "TableImg_Qx3kw_5.png"], "original_data_index": 5880, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE \"document_id\" < 20 OR receipt_date <> \"1996-05-31 06:51:58\" AND receipt_number <> \"189\" EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code <> \"FE\" AND shipping_agent_name != \"USPS\""} {"question": "Can you give me a list of driver IDs, including those that are not equal to 1 from the driver table, and those that are equal to 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wnw0r_12.png", "TableImg_Czbvw_5.png"], "original_data_index": 5884, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, excluding those equal to 7, that are greater than 8 and appear more than once in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zkxo7_12.png", "TableImg_9mlrs_5.png"], "original_data_index": 5885, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list the aircraft IDs that are greater than or equal to 3, excluding those aircraft IDs that are equal to 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gacb0_5.png", "TableImg_7dewa_4.png"], "original_data_index": 5887, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, from the driver table, but only those driver IDs that are not in the school bus table where the driver ID is less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qwfm9_12.png", "TableImg_4uqfb_5.png"], "original_data_index": 5886, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What is the average feature type name for feature types that are not security or are named \"Securiyt, eg Burglar Alarm.\", and also have a feature type code of \"Amenity\"?", "answer": {"columns": ["AVG(feature_type_name)"], "index": [0], "data": [["0"]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Bq84r_2.png", "TableImg_Ca3ix_2.png"], "original_data_index": 5889, "original_sql": "SELECT AVG(feature_type_name) FROM Ref_Feature_Types WHERE feature_type_code <> \"Security\" OR feature_type_name = \"Securiyt, eg Burglar Alarm.\" INTERSECT SELECT AVG(feature_type_name) FROM Ref_Feature_Types WHERE feature_type_code = \"Amenity\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs less than 10 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fhhd0_12.png", "TableImg_C3snn_5.png"], "original_data_index": 5888, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver has an ID of 4, but is not a driver with an ID less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xa8u1_12.png", "TableImg_Axij9_5.png"], "original_data_index": 5890, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are both not equal to 5 and greater than 9, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hfxy7_12.png", "TableImg_Tw64t_5.png"], "original_data_index": 5891, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are either driver ID 8 from the driver table or driver IDs greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9a30g_12.png", "TableImg_Xd26p_5.png"], "original_data_index": 5893, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which aircraft IDs are both greater than 3 and also less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ux9b8_5.png", "TableImg_W4b0g_4.png"], "original_data_index": 5892, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me the IDs of aircraft, excluding ID 11, that have a distance of 8430 or less, where the ID is greater than 10, but only if those IDs are not also found among aircraft that aren't named \"Airbus A320\" with a distance of 2128 and an ID of 6 or less?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4], "data": [["12"], ["13"], ["14"], ["15"], ["16"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Vzkme_16.png", "TableImg_9uoti_16.png"], "original_data_index": 5894, "original_sql": "SELECT aid FROM aircraft WHERE \"aid\" <> 11 AND \"distance\" <= 8430 GROUP BY aid HAVING aid > 10 EXCEPT SELECT aid FROM aircraft WHERE name <> \"Airbus A320\" AND \"distance\" = 2128 GROUP BY aid HAVING aid <= 6"} {"question": "Which driver IDs, excluding 11, are also driver IDs of school buses where those IDs are 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Llshd_12.png", "TableImg_1llgk_5.png"], "original_data_index": 5897, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs that are less than 4, but not if they are also driver IDs less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0kwm9_12.png", "TableImg_9si1t_5.png"], "original_data_index": 5898, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the average coach ID for coaches who are not male or have a rank greater than 2, combined with the average coach ID for player coaches who started in or before 2013 and have a player ID of 6 or less?", "answer": {"columns": ["AVG(Coach_ID)"], "index": [0, 1], "data": [["3.5"], ["1.6"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_P0tz1_5.png", "TableImg_C744y_7.png"], "original_data_index": 5895, "original_sql": "SELECT AVG(Coach_ID) FROM coach WHERE Gender <> \"M\" OR \"Rank\" > 2 UNION ALL SELECT AVG(Coach_ID) FROM player_coach WHERE \"Starting_year\" <= 2013 AND \"Player_ID\" <= 6"} {"question": "Can you give me a list of driver IDs, including those from the driver table that aren't 5, and those from the school bus table that are 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y7r2m_12.png", "TableImg_S8fjo_5.png"], "original_data_index": 5896, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that aren't 12 with those from the school bus table that are less than 10, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rnwqe_12.png", "TableImg_Nexi1_5.png"], "original_data_index": 5902, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which aircraft have an ID of 5 and also appear in the list of aircraft with IDs less than or equal to 5 at the airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jfy0b_5.png", "TableImg_4cfrp_4.png"], "original_data_index": 5901, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you list the maker, the lowest model ID, and the model name for all cars where either the maker isn't 16, the model ID is 10 or less, or the model isn't a Volvo, combined with a list of the maker, lowest model ID, and model name for cars where either the model ID is 35 or greater, or the maker isn't 4 and the model is a Buick?", "answer": {"columns": ["Maker", "MIN(ModelId)", "Model"], "index": [0, 1], "data": [["1", "1", "amc"], ["6", "35", "jeep"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Ffg2d_36.png", "TableImg_O4c67_36.png"], "original_data_index": 5899, "original_sql": "SELECT Maker, MIN(ModelId), Model FROM model_list WHERE \"Maker\" != 16 OR \"ModelId\" <= 10 OR Model != \"volvo\" UNION SELECT Maker, MIN(ModelId), Model FROM model_list WHERE \"ModelId\" >= 35 OR \"Maker\" != 4 AND Model = \"buick\""} {"question": "What is the difference between the average user ID for users named Helen with an ID greater than 7 and the average user ID for all users with an ID greater than 6?", "answer": {"columns": ["AVG(u_id)"], "index": [0], "data": [[""]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_Cqwhh_7.png", "TableImg_1o4bm_7.png"], "original_data_index": 5903, "original_sql": "SELECT AVG(u_id) FROM useracct WHERE \"u_id\" > 7 AND name = \"Helen\" EXCEPT SELECT AVG(u_id) FROM useracct WHERE \"u_id\" > 6"} {"question": "Can you give me a list of driver IDs, where each ID is greater than or equal to 2, but not equal to 7 if that driver ID is also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X9ckf_12.png", "TableImg_1zv7w_5.png"], "original_data_index": 5900, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Could you give me a list of driver IDs that are both greater than or equal to 10 in the driver table and greater than 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qawk1_12.png", "TableImg_3gcrw_5.png"], "original_data_index": 5906, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 12 and also greater than or equal to 9, considering only the unique driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yx7k0_12.png", "TableImg_1pimo_5.png"], "original_data_index": 5904, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of employee IDs that includes employees who are 23 or younger, or have an employee ID greater than or equal to 1, combined with a list of employee IDs from evaluations where the bonus is 3000?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["1"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Hdhjs_10.png", "TableImg_4o7k5_6.png"], "original_data_index": 5907, "original_sql": "SELECT Employee_ID FROM employee WHERE \"Age\" <= 23 OR \"Employee_ID\" >= 1 UNION SELECT Employee_ID FROM evaluation WHERE \"Bonus\" = 3000.0"} {"question": "What is the average employee ID for evaluations where the bonus is at least 2900 or the year awarded is 2015, combined with the average employee ID for hiring where the employee ID is not 1 and either they are full-time or started from 2011?", "answer": {"columns": ["AVG(Employee_ID)"], "index": [0, 1], "data": [["4.1666666667"], ["4.2"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Y2m8i_6.png", "TableImg_Wfkj2_7.png"], "original_data_index": 5905, "original_sql": "SELECT AVG(Employee_ID) FROM evaluation WHERE \"Bonus\" >= 2900.0 OR Year_awarded = \"2015\" UNION ALL SELECT AVG(Employee_ID) FROM hiring WHERE \"Employee_ID\" != 1 AND Is_full_time = \"T\" OR Start_from = \"2011\""} {"question": "Can you list all feature type names, including those that aren't amenities, along with any feature type names that aren't \"Securiyt, eg Burglar Alarm.\" or have a feature type code of \"Security\"?", "answer": {"columns": ["feature_type_name"], "index": [0, 1, 2], "data": [["Securiyt, eg Burglar Alarm."], ["Amenity, eg Pool."], ["Securiyt, eg Burglar Alarm."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_J2sm6_2.png", "TableImg_Rct1q_2.png"], "original_data_index": 5911, "original_sql": "SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code <> \"Amenity\" UNION ALL SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_name != \"Securiyt, eg Burglar Alarm.\" OR feature_type_code = \"Security\""} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are less than or equal to 9 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Owv81_12.png", "TableImg_Pid73_5.png"], "original_data_index": 5909, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list the aircraft IDs that are less than 3 when grouped in the aircraft table, but also not equal to 1 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1tzaj_5.png", "TableImg_Akdud_4.png"], "original_data_index": 5908, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs that are less than 2, but exclude any driver IDs that are equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F5jdy_12.png", "TableImg_Tarjw_5.png"], "original_data_index": 5910, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are greater than 9, but not including any driver IDs from the school bus list that are greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jrruk_12.png", "TableImg_As0zl_5.png"], "original_data_index": 5912, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are both greater than 3 and not equal to 10, considering only the unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K3gag_12.png", "TableImg_2lacw_5.png"], "original_data_index": 5913, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me the IDs of drivers, considering only those with an ID of 2 or less, but excluding any driver IDs that appear in the school bus list, unless that ID is 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dneqz_12.png", "TableImg_0mwjs_5.png"], "original_data_index": 5914, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Could you list the Aircraft IDs that are less than 3 when looking at the aircraft table, but are also less than or equal to 2 when looking at the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pyzc1_5.png", "TableImg_4tm8c_4.png"], "original_data_index": 5915, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you list the other details from documents with an ID of 80 or higher and a document name of \"Introduction of OS\", excluding those with \"None\" as the other details, combined with the other details from paragraphs with an ID less than 608931827?", "answer": {"columns": ["Other_Details"], "index": [0], "data": [[""]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_Ybj8i_15.png", "TableImg_Ksosy_15.png"], "original_data_index": 5916, "original_sql": "SELECT Other_Details FROM Documents WHERE \"Document_ID\" >= 80 AND Document_Name = \"Introduction of OS\" AND Other_Details <> \"None\" UNION SELECT Other_Details FROM Paragraphs WHERE \"Paragraph_ID\" < 608931827"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding the driver ID 10, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Apgsi_12.png", "TableImg_Yill8_5.png"], "original_data_index": 5919, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which store IDs have an area size less than 26.69, excluding store ID 2?", "answer": {"columns": ["Store_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Fgxdi_5.png", "TableImg_S3lbv_5.png"], "original_data_index": 5917, "original_sql": "SELECT Store_ID FROM store WHERE \"Area_size\" < 26.69 EXCEPT SELECT Store_ID FROM store_district WHERE \"Store_ID\" = 2"} {"question": "Can you give me the ID of the driver that appears exactly once in the driver table, specifically with an ID of 1, but is not a driver with any ID other than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Alo9b_12.png", "TableImg_07m6d_5.png"], "original_data_index": 5918, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you list all driver IDs from the driver table that are less than or equal to 5, and combine that with a list of all driver IDs from the school_bus table that are less than or equal to 9, making sure to only list each driver ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J3d0y_12.png", "TableImg_Pjflw_5.png"], "original_data_index": 5920, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are greater than 6 and also not equal to 3, considering only the unique driver IDs from both the driver and school_bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yz34h_12.png", "TableImg_7vs6l_5.png"], "original_data_index": 5923, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list all driver IDs from the driver table that are less than or equal to 8, combined with all driver IDs from the school_bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q221l_12.png", "TableImg_3aaw1_5.png"], "original_data_index": 5921, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list all driver IDs that are greater than or equal to 2 from the driver table, and combine that with a list of all driver IDs greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sou84_12.png", "TableImg_P3aah_5.png"], "original_data_index": 5924, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs less than or equal to 11, excluding those driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hrg6h_12.png", "TableImg_K7rza_5.png"], "original_data_index": 5922, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which aircraft IDs, excluding 3, are also aircraft IDs that are greater than or equal to 5 and found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5xdaq_5.png", "TableImg_K7zlg_4.png"], "original_data_index": 5926, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me the Driver IDs that are equal to 12 from the driver table and also the Driver IDs that are equal to 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zedti_12.png", "TableImg_2nqja_5.png"], "original_data_index": 5925, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs that are less than 6, excluding any driver IDs that are also equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W6etx_12.png", "TableImg_0bcfc_5.png"], "original_data_index": 5927, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the IDs of all items that are not titled \"comb\", excluding those items with an ID of 1 that are also not titled \"pear\"?", "answer": {"columns": ["i_id"], "index": [0], "data": [["5"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_Y3ovg_8.png", "TableImg_Cjtvn_8.png"], "original_data_index": 5928, "original_sql": "SELECT i_id FROM item WHERE title != \"comb\" NOT IN (SELECT i_id FROM item WHERE \"i_id\" = 1 AND title != \"pear\")"} {"question": "Which aircraft IDs, excluding ID 2, are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U240o_5.png", "TableImg_0szpz_4.png"], "original_data_index": 5929, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, excluding driver 8, from the driver table, combined with a list of driver IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bffnh_12.png", "TableImg_B1gb3_5.png"], "original_data_index": 5930, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those greater than 10 from the driver table and those less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y5cl1_12.png", "TableImg_Yin6g_5.png"], "original_data_index": 5931, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is 4 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ybb84_12.png", "TableImg_Tbsb8_5.png"], "original_data_index": 5935, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me the IDs of drivers with an ID of 2 or less, excluding those drivers whose IDs appear in the school bus table, unless that ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dzl1p_12.png", "TableImg_95w5t_5.png"], "original_data_index": 5933, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list the names of aircraft with an ID of 2 or less, or a distance that isn't 30 and a name that isn't \"Boeing 777-300\", along with the names of employees named \"Richard Jackson\" or with an employee ID of 310454876 or less?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["Boeing 747-400"], ["Boeing 737-800"], ["Airbus A340-300"], ["British Aerospace Jetstream 41"], ["Embraer ERJ-145"], ["SAAB 340"], ["Piper Archer III"], ["Tupolev 154"], ["Lockheed L1011"], ["Boeing 757-300"], ["Boeing 767-400ER"], ["Airbus A320"], ["Airbus A319"], ["Boeing 727"], ["James Smith"], ["Mary Johnson"], ["John Williams"], ["Michael Miller"], ["Patricia Jones"], ["Joseph Thompson"], ["Richard Jackson"], ["Betty Adams"], ["George Wright"], ["Michael Miller"], ["Barbara Wilson"], ["William Moore"], ["Elizabeth Taylor"], ["Donald King"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Chol0_16.png", "TableImg_Wfmbx_31.png"], "original_data_index": 5934, "original_sql": "SELECT name FROM aircraft WHERE \"aid\" <= 2 OR \"distance\" != 30 AND name <> \"Boeing 777-300\" UNION ALL SELECT name FROM employee WHERE name = \"Richard Jackson\" OR \"eid\" <= 310454876"} {"question": "Can you give me a list of car makers, including those who make models that aren't Fords or have a ModelId of 16, and also those who make models with a ModelId of 13 that aren't Chryslers?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_1yth3_36.png", "TableImg_O1hd4_36.png"], "original_data_index": 5932, "original_sql": "SELECT Maker FROM model_list WHERE Model != \"ford\" OR \"ModelId\" = 16 UNION SELECT Maker FROM model_list WHERE \"ModelId\" = 13 AND Model <> \"chrysler\""} {"question": "What is the lowest vehicle ID for lesson 3, and what is the lowest vehicle ID for a truck?", "answer": {"columns": ["MIN(vehicle_id)"], "index": [0, 1], "data": [["2"], ["2"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_Dpamk_15.png", "TableImg_B6epo_3.png"], "original_data_index": 4069, "original_sql": "SELECT MIN(vehicle_id) FROM Lessons WHERE \"lesson_id\" = 3 UNION ALL SELECT MIN(vehicle_id) FROM Vehicles WHERE vehicle_details = \"Truck\""} {"question": "What are the driver IDs that are either less than or equal to 5, or not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M887z_12.png", "TableImg_Ijlzq_5.png"], "original_data_index": 3935, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are greater than or equal to 4 in the aircraft table, but not present in the airport_aircraft table with IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U67vm_5.png", "TableImg_6eb7v_4.png"], "original_data_index": 4200, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are less than 6 but not present in the school bus table with IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ato13_12.png", "TableImg_G8wom_5.png"], "original_data_index": 4201, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are either less than or equal to 9 from the driver table or greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xsrxq_12.png", "TableImg_Mvebg_5.png"], "original_data_index": 4111, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the aircraft IDs that are not equal to 3 in the aircraft table, excluding those aircraft IDs that are equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bku5k_5.png", "TableImg_Wiiaf_4.png"], "original_data_index": 4253, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the driver IDs that are either less than or equal to 8 or not equal to 3, considering both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yrrd1_12.png", "TableImg_Ec5yf_5.png"], "original_data_index": 4308, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are either equal to 1 or less than 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yvl0u_12.png", "TableImg_F72zo_5.png"], "original_data_index": 4368, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which districts, election IDs, and counties represented are associated with elections where the party value is 7 or greater, or the election ID is 1 or greater, or the delegate is not \"Bates, Gail H. Gail H. Bates\", and also with elections where the committee is \"Appropriations\"?", "answer": {"columns": ["District", "Election_ID", "Counties_Represented"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1", "1", "09.1 9A"], ["1", "2", "09.1 9A"], ["1", "6", "13"], ["2", "3", "12.1 12A"], ["2", "5", "12.2 12B"], ["3", "4", "12.1 12A"], ["3", "8", "13"], ["4", "7", "13"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Kzkwl_8.png", "TableImg_Cdd1a_8.png"], "original_data_index": 4406, "original_sql": "SELECT District, Election_ID, Counties_Represented FROM election WHERE \"Party\" >= 7 OR \"Election_ID\" >= 1 OR Delegate <> \"Bates, Gail H. Gail H. Bates\" UNION SELECT District, Election_ID, Counties_Represented FROM election WHERE Committee = \"Appropriations\""} {"question": "What are the driver IDs that are both greater than or equal to 4 and also less than 7, considering only those drivers who are in the driver table and the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1yev4_12.png", "TableImg_6c46w_5.png"], "original_data_index": 4452, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are both less than or equal to 9 and present in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_59uex_12.png", "TableImg_Hluam_5.png"], "original_data_index": 4481, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs, excluding ID 1, from the aircraft table, combined with aircraft IDs greater than or equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cjvbm_5.png", "TableImg_Xcvvm_4.png"], "original_data_index": 4578, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the driver IDs that are less than 10 in the driver table or less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wqnjk_12.png", "TableImg_7vmpr_5.png"], "original_data_index": 4654, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the aircraft IDs that are either greater than or equal to 4 in the aircraft table or not equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9601f_5.png", "TableImg_0t52s_4.png"], "original_data_index": 4579, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What is the maximum departure date, average arrival date, average aid, origin, average destination, count of flight numbers, sum of prices, and count of distances for flights, considering two scenarios: first, flights departing at 06:30 on 04/12/2005 but not arriving at 05:03 on 04/12/2005 and with flight numbers greater than 76; and second, flights arriving at 10:03 on 04/12/2005 and with flight number 76, or flights not departing at 12:45 on 04/12/2005 and with distance not equal to 5478, or with aid greater or equal to 5?", "answer": {"columns": ["MAX(departure_date)", "AVG(arrival_date)", "AVG(aid)", "origin", "AVG(destination)", "COUNT(flno)", "SUM(price)", "COUNT(distance)"], "index": [0, 1], "data": [["", "", "", "", "", "0", "", "0"], ["04/12/2005 11:50", "4.0", "5.125", "Los Angeles", "0.0", "8", "1977.74", "8"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_3hri2_10.png", "TableImg_El25a_10.png"], "original_data_index": 4520, "original_sql": "SELECT MAX(departure_date), AVG(arrival_date), AVG(aid), origin, AVG(destination), COUNT(flno), SUM(price), COUNT(distance) FROM flight WHERE arrival_date <> \"04/12/2005 05:03\" AND departure_date = \"04/12/2005 06:30\" AND \"flno\" > 76 UNION SELECT MAX(departure_date), AVG(arrival_date), AVG(aid), origin, AVG(destination), COUNT(flno), SUM(price), COUNT(distance) FROM flight WHERE departure_date != \"04/12/2005 12:45\" AND \"distance\" <> 5478 OR \"aid\" >= 5 AND arrival_date = \"04/12/2005 10:03\" AND \"flno\" = 76"} {"question": "What is the sum of Store IDs and the minimum Product ID for products with ID 6, and also the sum of Store IDs and the minimum Product ID for products where the Store ID is less than 1 and the Product ID is less than 1?", "answer": {"columns": ["SUM(Store_ID)", "MIN(Product_ID)"], "index": [0, 1], "data": [["8.0", "6.0"], ["", ""]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Kjg0x_15.png", "TableImg_Aj59r_15.png"], "original_data_index": 4844, "original_sql": "SELECT SUM(Store_ID), MIN(Product_ID) FROM store_product WHERE \"Product_ID\" = 6 UNION ALL SELECT SUM(Store_ID), MIN(Product_ID) FROM store_product WHERE \"Store_ID\" < 1 AND \"Product_ID\" < 1"} {"question": "What are the aircraft IDs that are not 1 and are present in the aircraft table but not in the airport_aircraft table, excluding those with IDs less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1b6m5_5.png", "TableImg_2pikd_4.png"], "original_data_index": 4903, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the aircraft IDs that are either less than or equal to 3 in the aircraft table or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P2ree_5.png", "TableImg_Pt1yw_4.png"], "original_data_index": 5034, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the driver IDs greater than 6 from the driver table, combined with the driver IDs not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4rr1i_12.png", "TableImg_Eungl_5.png"], "original_data_index": 5114, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs that are both less than or equal to 9 and also not equal to 9, considering the driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Snsdh_12.png", "TableImg_Gj386_5.png"], "original_data_index": 5132, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs that are either 3 or not 4, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ti9m_12.png", "TableImg_G41ff_5.png"], "original_data_index": 5133, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the minimum DPI and the count of products that meet the following criteria: DPI is less than 600 and the interface is not USB 2.0, or the color pages per minute is greater than or equal to 4, the dimensions are not 280 x 95 x 40, the product is Canon DR-2080C, and the max page size is not 216mm x 355mm, excluding the minimum DPI and count of products where the product is Plustek MobileOffice D28 Corporate, the dimensions are not 300 x 50 x 45, the product ID is less than or equal to 5, the color pages per minute is greater than 4.0, and the interface is USB 2.0?", "answer": {"columns": ["MIN(dpi)", "COUNT(product)"], "index": [0], "data": [["", "0"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_I852x_6.png", "TableImg_Stjav_6.png"], "original_data_index": 5134, "original_sql": "SELECT MIN(dpi), COUNT(product) FROM product WHERE \"dpi\" < 600.0 AND interface != \"USB 2.0\" OR \"pages_per_minute_color\" >= 4.0 AND dimensions <> \"280 x 95 x 40\" AND product = \"Canon DR-2080C\" AND max_page_size <> \"216mm x 355mm\" EXCEPT SELECT MIN(dpi), COUNT(product) FROM product WHERE product = \"Plustek MobileOffice D28 Corporate\" AND dimensions <> \"300 x 50 x 45\" AND \"product_id\" <= 5 AND \"pages_per_minute_color\" > 4.0 AND interface = \"USB 2.0\""} {"question": "Which driver IDs are less than or equal to 7, excluding driver ID 7, considering only the driver table and school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6hjr4_12.png", "TableImg_3qmry_5.png"], "original_data_index": 5220, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the maximum salaries and corresponding employee IDs, considering employees who are not employee ID 552455318 or not named Jennifer Thomas, and also considering employees who are not employee ID 269734834 or whose salary is not 23980 and not named Mary Johnson?", "answer": {"columns": ["MAX(salary)", "eid"], "index": [0], "data": [["289950", "269734834"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_5fgj3_31.png", "TableImg_5c47k_31.png"], "original_data_index": 5307, "original_sql": "SELECT MAX(salary), eid FROM employee WHERE \"eid\" <> 552455318 OR name <> \"Jennifer Thomas\" INTERSECT SELECT MAX(salary), eid FROM employee WHERE \"eid\" != 269734834 OR \"salary\" != 23980 AND name != \"Mary Johnson\""} {"question": "Which driver IDs are equal to 11 in the driver table but not equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dhidu_12.png", "TableImg_Isyro_5.png"], "original_data_index": 5391, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs that are not equal to 2, but are not also aircraft IDs less than or equal to 5 that are associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9ctai_5.png", "TableImg_Pathe_4.png"], "original_data_index": 5392, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the budget invested percentages, school IDs, budgeted amounts, years, invested amounts, total budgeted percent invested, and total budgeted percent budgeted for budget entries that meet either of these two sets of criteria: the first set where the total budgeted percent budgeted is not 2.0, or the total budgeted percent invested is not 2.0, or the budgeted amount is less than 6803, or the year is before 2003 and the invested amount is not 5840, or the budget invested percentage is not 42.9; and the second set where the total budgeted percent budgeted is 2.4, or the invested amount is 5840, or the year is 2003 or later and the budget invested percentage is not 122.5 and the school ID is not 5?", "answer": {"columns": ["Budget_invested_percent", "School_id", "Budgeted", "Year", "Invested", "total_budget_percent_invested", "total_budget_percent_budgeted"], "index": [0, 1, 2], "data": [["127.6", "4", "74849", "2004", "95542", "2.2", "2.0"], ["159.3", "2", "3666", "2000", "5840", "2.0", "2.0"], ["71.3", "1", "119527", "2003", "85249", "2.2", "2.4"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Towoo_8.png", "TableImg_Tclcn_8.png"], "original_data_index": 5394, "original_sql": "SELECT Budget_invested_percent, School_id, Budgeted, Year, Invested, total_budget_percent_invested, total_budget_percent_budgeted FROM budget WHERE \"total_budget_percent_budgeted\" <> 2.0 OR \"total_budget_percent_invested\" <> 2.0 OR \"Budgeted\" < 6803 OR \"Year\" < 2003 AND \"Invested\" <> 5840 OR Budget_invested_percent != \"42.9\" INTERSECT SELECT Budget_invested_percent, School_id, Budgeted, Year, Invested, total_budget_percent_invested, total_budget_percent_budgeted FROM budget WHERE \"total_budget_percent_budgeted\" = 2.4 OR \"Invested\" = 5840 OR \"Year\" >= 2003 AND Budget_invested_percent != \"122.5\" AND \"School_id\" <> 5"} {"question": "Which driver IDs are not 1 and are in the driver table, but not in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7c4ft_12.png", "TableImg_H51ua_5.png"], "original_data_index": 5416, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are either less than or equal to 5, or equal to 10, considering driver information from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Knl0s_12.png", "TableImg_I6zll_5.png"], "original_data_index": 5513, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the allergy types and allergies that are not environmental allergies and also not rodent allergies?", "answer": {"columns": ["AllergyType", "Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["animal", "Bee Stings"], ["animal", "Cat"], ["animal", "Dog"], ["animal", "Rodent"], ["food", "Anchovies"], ["food", "Eggs"], ["food", "Milk"], ["food", "Nuts"], ["food", "Shellfish"], ["food", "Soy"], ["food", "Wheat"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_Hqpdi_14.png", "TableImg_Fck4w_14.png"], "original_data_index": 5518, "original_sql": "SELECT AllergyType, Allergy FROM Allergy_Type WHERE AllergyType != \"environmental\" INTERSECT SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy <> \"Rodent\" OR AllergyType <> \"environmental\""} {"question": "Which driver IDs are either 4 or not 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vzt3i_12.png", "TableImg_Zvzg0_5.png"], "original_data_index": 5689, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are less than 9 from the driver table, combined with the driver IDs that are greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fziie_12.png", "TableImg_Qo8tn_5.png"], "original_data_index": 5693, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and also greater than or equal to 2, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_09iqe_5.png", "TableImg_8qfjs_4.png"], "original_data_index": 5936, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which driver IDs are either less than or equal to 3, or greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wtleb_12.png", "TableImg_Y89se_5.png"], "original_data_index": 5078, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the last and first names of students who are either 18 or older, or whose first name is Paul, or whose sex is male, or whose last name is not Schmidt, and also have a major other than 50, or a student ID greater than 1015, or an advisor greater than 7271, and are not female and whose first name is not Dinesh?", "answer": {"columns": ["LName", "Fname"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["Adams", "David"], ["Andreou", "George"], ["Apap", "Lisa"], ["Brody", "Paul"], ["Brown", "Eric"], ["Cheng", "Lisa"], ["Davis", "Steven"], ["Epp", "Eric"], ["Goldman", "Mark"], ["Gompers", "Paul"], ["Han", "Jun"], ["Jones", "Shiela"], ["Kim", "Tracy"], ["Kumar", "Dinesh"], ["Lee", "Derek"], ["Lee", "Susan"], ["Leighton", "Michael"], ["Nelson", "Jandy"], ["Norris", "Charles"], ["Pang", "Arthur"], ["Pang", "Eric"], ["Prater", "Stacy"], ["Rugh", "Eric"], ["Schmidt", "Sarah"], ["Schultz", "Andy"], ["Schwartz", "Mark"], ["Shieber", "David"], ["Simms", "William"], ["Smith", "Linda"], ["Smith", "Sarah"], ["Tai", "Eric"], ["Thornton", "Ian"], ["Wilson", "Bruce"], ["Woods", "Michael"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_8cye8_34.png", "TableImg_Gadgf_34.png"], "original_data_index": 5937, "original_sql": "SELECT LName, Fname FROM Student WHERE \"Age\" >= 18 OR Fname = \"Paul\" OR Sex = \"M\" OR LName <> \"Schmidt\" INTERSECT SELECT LName, Fname FROM Student WHERE \"Major\" != 50 OR \"StuID\" > 1015 OR \"Advisor\" > 7271 AND Sex <> \"F\" AND Fname != \"Dinesh\""} {"question": "What are the driver IDs that are less than or equal to 1, but not driver IDs that are greater than or equal to 3, considering drivers from the 'driver' table and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I4c1m_12.png", "TableImg_38z72_5.png"], "original_data_index": 5938, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs, excluding driver ID 10, that are present in both the driver and school bus tables, where the school bus driver ID is 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Isyoi_12.png", "TableImg_Ubyd1_5.png"], "original_data_index": 5939, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs that appear in both the aircraft table (with IDs greater than 1) and the airport_aircraft table (with IDs greater than or equal to 1)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9c296_5.png", "TableImg_Zc6yv_4.png"], "original_data_index": 5940, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs are either 9 or 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rz0hj_12.png", "TableImg_Y4lm7_5.png"], "original_data_index": 5941, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs, excluding ID 11, that are present in both the driver and school bus records, where the school bus driver IDs are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dd34y_12.png", "TableImg_Wt1xc_5.png"], "original_data_index": 5942, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are less than 6, and also the driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Abd32_12.png", "TableImg_Pi2ey_5.png"], "original_data_index": 5943, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are both equal to 7 in the driver table and not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cyj1b_12.png", "TableImg_7n8cj_5.png"], "original_data_index": 5944, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs that are either less than or equal to 4 in the aircraft table or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tt3ck_5.png", "TableImg_3r7ab_4.png"], "original_data_index": 5945, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the aircraft IDs that are either aircraft ID 2 or any aircraft ID except 3 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hggy5_5.png", "TableImg_L95nl_4.png"], "original_data_index": 5946, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the driver IDs greater than 5 from the driver table, combined with driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lt4mt_12.png", "TableImg_Bd40c_5.png"], "original_data_index": 5947, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are greater than or equal to 9, or the driver IDs that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_09tyi_12.png", "TableImg_Jzyf2_5.png"], "original_data_index": 5948, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the IDs of drivers, excluding driver 4, and the IDs of school buses, excluding bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xz36b_12.png", "TableImg_Twhi6_5.png"], "original_data_index": 5949, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are both less than or equal to 2 and also appear in the airport aircraft table with IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bv5yx_5.png", "TableImg_1daq0_4.png"], "original_data_index": 5950, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs that are less than 5 from the driver table, combined with the driver IDs that are less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oqpfe_12.png", "TableImg_H42n9_5.png"], "original_data_index": 5953, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are both less than or equal to 9 and also not equal to 7, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0bput_12.png", "TableImg_Q2u89_5.png"], "original_data_index": 5954, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are not 4 and are present in the aircraft table, but not in the airport_aircraft table (excluding aircraft ID 3)?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cm0kd_5.png", "TableImg_P5ptu_4.png"], "original_data_index": 5955, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the driver IDs greater than 8 that are also present in the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oacve_12.png", "TableImg_1xne8_5.png"], "original_data_index": 5956, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are not equal to 2 and are not present in the school bus table with driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4afw9_12.png", "TableImg_E70cs_5.png"], "original_data_index": 5957, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the aircraft IDs, excluding aircraft ID 3, from the aircraft table, combined with aircraft IDs greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xvwuv_5.png", "TableImg_48qpp_4.png"], "original_data_index": 5770, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs are less than 10 but not equal to 7, considering only the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5avnq_12.png", "TableImg_6dw57_5.png"], "original_data_index": 5958, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the employee IDs and bonuses, but only for bonuses not awarded in 2011 or for employees named Matt Stevens who are older than 23?", "answer": {"columns": ["Employee_ID", "Bonus"], "index": [0, 1, 2], "data": [["1", "2900"], ["2", "3200"], ["10", "4000"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_0xns2_10.png", "TableImg_Ls0wm_6.png"], "original_data_index": 5959, "original_sql": "SELECT T1.Employee_ID, T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID == T2.Employee_ID GROUP BY Bonus HAVING Year_awarded <> \"2011\" OR Name = \"Matt Stevens\" AND Age > 23"} {"question": "What are the driver IDs, excluding driver ID 5, that are present in both the driver and school bus tables, where the driver ID is less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1mdjn_12.png", "TableImg_Edavy_5.png"], "original_data_index": 5960, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs greater than 2, and also the aircraft IDs that are less than or equal to 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8z2qy_5.png", "TableImg_R6pjv_4.png"], "original_data_index": 5961, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the aircraft IDs that are less than 1, and also the aircraft IDs that are at most 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kjno7_5.png", "TableImg_O8exd_4.png"], "original_data_index": 5962, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the driver IDs greater than 1 from the driver table, combined with the driver IDs from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qoipj_12.png", "TableImg_Jodka_5.png"], "original_data_index": 5963, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the aircraft IDs that are not 3 and are also present in the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9mynh_5.png", "TableImg_5ix8t_4.png"], "original_data_index": 5964, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What is the highest document ID from the circulation history where the document ID is greater than 1 or the employee ID is 8 or more and the draft number is greater than 1, excluding the highest document ID from the document drafts where the document ID is 2 or greater?", "answer": {"columns": ["MAX(document_id)"], "index": [0], "data": [["20"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_D2yu6_4.png", "TableImg_O33oc_15.png"], "original_data_index": 5966, "original_sql": "SELECT MAX(document_id) FROM Circulation_History WHERE \"document_id\" > 1 OR \"employee_id\" >= 8 AND \"draft_number\" > 1 EXCEPT SELECT MAX(document_id) FROM Document_Drafts WHERE \"document_id\" >= 2"} {"question": "What are the distance, departure date, average origin, count of destinations, and arrival date for flights that meet all of these conditions: the flight number is greater than 34, or the price is not 182.0, or the airline ID is 7, and the arrival date is 04/12/2005 12:02, and the origin is not Los Angeles, and the distance is at least 1749, and the destination is not Dallas, and also meet at least one of these conditions: the airline ID is greater than or equal to 1, or the distance is 2551, or the origin is Chicago, but the departure date is not 04/12/2005 06:30?", "answer": {"columns": ["distance", "departure_date", "AVG(origin)", "COUNT(destination)", "arrival_date"], "index": [0], "data": [["2308", "04/12/2005 09:30", "0", "10", "04/12/2005 09:40"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_B2nq1_10.png", "TableImg_Rbzl6_10.png"], "original_data_index": 5965, "original_sql": "SELECT distance, departure_date, AVG(origin), COUNT(destination), arrival_date FROM flight WHERE \"flno\" > 34 OR \"price\" <> 182.0 OR \"aid\" = 7 AND arrival_date = \"04/12/2005 12:02\" AND origin != \"Los Angeles\" AND \"distance\" >= 1749 AND destination <> \"Dallas\" INTERSECT SELECT distance, departure_date, AVG(origin), COUNT(destination), arrival_date FROM flight WHERE \"aid\" >= 1 OR \"distance\" = 2551 AND departure_date <> \"04/12/2005 06:30\" OR origin = \"Chicago\""} {"question": "What are the aircraft IDs, excluding aircraft ID 2, from the aircraft table, combined with aircraft IDs less than 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_20dgr_5.png", "TableImg_Ddovg_4.png"], "original_data_index": 5967, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are present in both the driver and school bus tables, where the driver ID is at least 5 in the driver table and at least 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zexxb_12.png", "TableImg_8bc7j_5.png"], "original_data_index": 5951, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs that are either less than or equal to 3 in the aircraft table or not equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sx327_5.png", "TableImg_Jjddz_4.png"], "original_data_index": 5952, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs are greater than or equal to 11 but not found in the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pja58_12.png", "TableImg_Lx7zs_5.png"], "original_data_index": 5971, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 1 from the driver table and driver IDs 9 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xkrh1_12.png", "TableImg_Pdt74_5.png"], "original_data_index": 5970, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that are not 4, and also the aircraft IDs that are less than or equal to 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_29oxu_5.png", "TableImg_47sgt_4.png"], "original_data_index": 5969, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Which driver IDs are less than or equal to 12 in the driver table, but not equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4hxhn_12.png", "TableImg_Wio5r_5.png"], "original_data_index": 5968, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs, excluding driver ID 9, that are present in both the driver table and the school bus table, where the school bus driver IDs are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1zpm6_12.png", "TableImg_Bixyy_5.png"], "original_data_index": 5973, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs, excluding ID 9, from the driver table and the driver IDs, excluding ID 10, from the school bus table, combined into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7gxc9_12.png", "TableImg_1kae5_5.png"], "original_data_index": 5974, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the IDs of drivers, excluding driver ID 9, and also the IDs of school bus drivers, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Skgyv_12.png", "TableImg_Mii7a_5.png"], "original_data_index": 5975, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs that are not 1 and are not found in the school bus table with driver IDs greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ipmtu_12.png", "TableImg_Dttou_5.png"], "original_data_index": 5972, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs, excluding ID 1, are present in both the driver and school bus tables, excluding ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ht4j_12.png", "TableImg_62lzj_5.png"], "original_data_index": 5977, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs, excluding ID 10, from the driver table and the driver IDs greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7pqdf_12.png", "TableImg_Y4dvx_5.png"], "original_data_index": 5979, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are both less than 11 and also not equal to 10, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nmyt7_12.png", "TableImg_V5enu_5.png"], "original_data_index": 5978, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the names and the number of product categories for village stores with an ID greater than 2 and an area size not equal to 7.23, or stores with a number of product categories not equal to 17811, or stores with a ranking greater than 1, or stores not named \"Doaktown\"? Also, what are the names and the number of product categories for stores with fewer than 1170 product categories that are not city malls?", "answer": {"columns": ["Store_Name", "Number_of_product_category"], "index": [0, 1, 2, 3, 4], "data": [["Blackville", "990"], ["Doaktown", "793"], ["Miramichi", "17811"], ["Neguac", "1678"], ["Rogersville", "1170"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_L4uhb_5.png", "TableImg_B90az_5.png"], "original_data_index": 5976, "original_sql": "SELECT Store_Name, Number_of_product_category FROM store WHERE Type = \"Village Store\" AND \"Store_ID\" > 2 AND \"Area_size\" <> 7.23 OR \"Number_of_product_category\" != 17811.0 OR \"Ranking\" > 1 OR Store_Name != \"Doaktown\" UNION SELECT Store_Name, Number_of_product_category FROM store WHERE \"Number_of_product_category\" < 1170.0 AND Type != \"City Mall\""} {"question": "What are the aircraft IDs that are either less than or equal to 5, or not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hahjh_5.png", "TableImg_Yethv_4.png"], "original_data_index": 5981, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the aircraft IDs that are greater than 2 in the aircraft table, combined with the aircraft IDs that are not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I434e_5.png", "TableImg_914hr_4.png"], "original_data_index": 5980, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs, excluding driver ID 10, are in the driver table but not in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2x3cs_12.png", "TableImg_Mu1f9_5.png"], "original_data_index": 5984, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the customer status codes, phone numbers, the earliest email addresses, and last names of customers who meet the following criteria: either their customer address ID is not 10 and their customer ID is at least 7, or their email address is not \"kitty.hand@example.net\", and their date of birth is \"1998-12-15 13:24:40\", and their date of becoming a customer is \"2016-04-08 00:28:15\", and their last name is not \"Ortiz\", or their cell phone number is not \"00659133944\", or their phone number is \"(729)396-4354x3576\" and their customer status is \"Good Customer\" and their outstanding amount is less than or equal to 7093.0; and also, either their first name is \"Marina\", or their date of becoming a customer is not \"2017-10-05 14:15:46\", or their outstanding amount is not 5687.0 and their date of birth is not \"1994-05-07 01:32:16\"?", "answer": {"columns": ["customer_status_code", "phone_number", "MIN(email_address)", "last_name"], "index": [0], "data": [["Good Customer", "218.550.1362", "afranecki@example.com", "Tromp"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_6p0pl_15.png", "TableImg_H4iq6_15.png"], "original_data_index": 5982, "original_sql": "SELECT customer_status_code, phone_number, MIN(email_address), last_name FROM Customers WHERE \"customer_address_id\" <> 10 AND \"customer_id\" >= 7 OR email_address <> \"kitty.hand@example.net\" AND date_of_birth = \"1998-12-15 13:24:40\" AND date_became_customer = \"2016-04-08 00:28:15\" AND last_name <> \"Ortiz\" OR cell_mobile_phone_number <> \"00659133944\" OR phone_number = \"(729)396-4354x3576\" AND customer_status_code = \"Good Customer\" AND \"amount_outstanding\" <= 7093.0 INTERSECT SELECT customer_status_code, phone_number, MIN(email_address), last_name FROM Customers WHERE first_name = \"Marina\" OR date_became_customer <> \"2017-10-05 14:15:46\" OR \"amount_outstanding\" != 5687.0 AND date_of_birth != \"1994-05-07 01:32:16\""} {"question": "Which staff IDs are in lessons that are not lesson ID 4, or have a vehicle ID of 2 or greater, or are not at time 9, or have staff ID 12 and a lesson date not on 2018-03-16 07:08:52, but are not staff with a last name other than Herzog or a date left staff on 2018-03-06 23:17:41 and a middle name other than Duane?", "answer": {"columns": ["staff_id"], "index": [0], "data": [["5"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Bdrn8_15.png", "TableImg_Hleqi_15.png"], "original_data_index": 5983, "original_sql": "SELECT staff_id FROM Lessons WHERE \"lesson_id\" != 4 AND lesson_status_code = \"Completed\" OR \"vehicle_id\" >= 2 OR lesson_time != \"9\" OR \"staff_id\" = 12 AND lesson_date != \"2018-03-16 07:08:52\" EXCEPT SELECT staff_id FROM Staff WHERE last_name <> \"Herzog\" OR date_left_staff = \"2018-03-06 23:17:41\" AND middle_name != \"Duane\""} {"question": "What are the prices, lesson IDs, and lesson times for lessons that are not cancelled and not on March 17, 2018 at 19:02:07, where the customer ID is not 3 or the vehicle ID is less than or equal to 1 and the price is 277.0 and the staff ID is greater than or equal to 12, combined with the prices, lesson IDs, and lesson times for lessons where the price is not 199.0 and the lesson ID is greater than or equal to 9 and the customer ID is greater than 11 or the staff ID is greater than or equal to 11?", "answer": {"columns": ["price", "lesson_id", "lesson_time"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["167", "2", "6"], ["184", "12", "2"], ["223", "11", "2"], ["231", "7", "9"], ["295", "5", "9"], ["352", "3", "3"], ["446", "13", "5"], ["456", "9", "9"], ["483", "14", "5"], ["492", "6", "6"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Je557_15.png", "TableImg_Jong7_15.png"], "original_data_index": 5985, "original_sql": "SELECT price, lesson_id, lesson_time FROM Lessons WHERE lesson_status_code <> \"Cancelled\" AND lesson_date <> \"2018-03-17 19:02:07\" AND \"customer_id\" != 3 OR \"vehicle_id\" <= 1 AND \"price\" = 277.0 AND \"staff_id\" >= 12 UNION SELECT price, lesson_id, lesson_time FROM Lessons WHERE \"price\" != 199.0 AND \"lesson_id\" >= 9 AND \"customer_id\" > 11 OR \"staff_id\" >= 11"} {"question": "What are the driver IDs that are less than 12, and also the driver IDs from the school bus table that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yqd64_12.png", "TableImg_Qvs07_5.png"], "original_data_index": 5988, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the IDs of drivers, excluding driver 9, and the IDs of school buses, excluding bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_12zic_12.png", "TableImg_9qq7b_5.png"], "original_data_index": 5987, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are less than 3, or any aircraft IDs except 3, found in either the aircraft or airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yzr5i_5.png", "TableImg_F52gf_4.png"], "original_data_index": 5989, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "For each year, and for party ID 7 or where the governor isn't Carl McCall or the attorney general isn't Eliot Spitzer, and also for years before 2006 or where the lieutenant governor isn't David Paterson and the US Senate member isn't Hillary Rodham Clinton and the governor isn't Peter Vallone or the attorney general isn't Andrew Cuomo and the party isn't Liberal, how many governors and lieutenant governors are there, what's the sum of the attorney generals, and what are the party IDs?", "answer": {"columns": ["COUNT(Governor)", "Party_ID", "COUNT(Lieutenant_Governor)", "Year", "SUM(Attorney_General)"], "index": [0, 1], "data": [["5", "1", "5", "1998", "0"], ["7", "1", "7", "1998", "0"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Elwfc_7.png", "TableImg_D6iii_7.png"], "original_data_index": 5986, "original_sql": "SELECT COUNT(Governor), Party_ID, COUNT(Lieutenant_Governor), Year, SUM(Attorney_General) FROM party WHERE Comptroller <> \"Carl McCall\" OR Party != \"Democratic\" AND US_Senate <> \"Hillary Rodham Clinton\" AND Lieutenant_Governor <> \"Jonathan Reiter\" AND \"Party_ID\" = 7 OR Governor <> \"Carl McCall\" OR Attorney_General != \"Eliot Spitzer\" UNION SELECT COUNT(Governor), Party_ID, COUNT(Lieutenant_Governor), Year, SUM(Attorney_General) FROM party WHERE Lieutenant_Governor <> \"David Paterson\" AND US_Senate <> \"Hillary Rodham Clinton\" AND Governor <> \"Peter Vallone\" OR \"Year\" < 2006.0 OR Attorney_General != \"Andrew Cuomo\" AND Party != \"Liberal\""} {"question": "What are the number of employees, average department name, and department ID for departments that have a budget of 46.2 billion and are not named \"Health and Human Services\" and have 235,000 or fewer employees, combined with departments that have 67,000 or fewer employees or have a department ID greater than 7?", "answer": {"columns": ["Num_Employees", "AVG(Name)", "Department_ID"], "index": [0, 1], "data": [["10600", "0", "10"], ["30266", "0", "1"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_55xw5_15.png", "TableImg_W7iyx_15.png"], "original_data_index": 5993, "original_sql": "SELECT Num_Employees, AVG(Name), Department_ID FROM department WHERE \"Budget_in_Billions\" = 46.2 AND Name <> \"Health and Human Services\" AND \"Num_Employees\" <= 235000.0 UNION ALL SELECT Num_Employees, AVG(Name), Department_ID FROM department WHERE \"Num_Employees\" <= 67000.0 OR \"Department_ID\" > 7"} {"question": "Which driver IDs are less than 9 but not greater than 3, considering only driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cngm3_12.png", "TableImg_Tg5g9_5.png"], "original_data_index": 5994, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the sum of the shipping agent descriptions, excluding those described as \"w\", combined with the sum of the shipping agent descriptions for agents that are not \"UPS\"?", "answer": {"columns": ["SUM(shipping_agent_description)"], "index": [0], "data": [["0"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_7zt39_5.png", "TableImg_Thm2y_5.png"], "original_data_index": 5996, "original_sql": "SELECT SUM(shipping_agent_description) FROM Ref_Shipping_Agents WHERE shipping_agent_description != \"w\" UNION SELECT SUM(shipping_agent_description) FROM Ref_Shipping_Agents WHERE shipping_agent_name <> \"UPS\""} {"question": "What are the driver IDs of drivers with ID 6 or school buses with ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["6"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2eoxk_12.png", "TableImg_Iop30_5.png"], "original_data_index": 5997, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the incorporation locations and types of \"Air China Cargo\" where the group equity shareholding is not 40.0, or the principal activities are not \"Ground handling\" and the type is not \"Joint Venture\", or the ID is greater than 10 and the incorporation location is not \"Hong Kong\", excluding those with type \"Joint Venture\" and ID greater than or equal to 10?", "answer": {"columns": ["Incorporated_in", "Type"], "index": [0, 1, 2, 3], "data": [["China", "Corporate"], ["China", "Joint Venture"], ["Hong Kong", "Joint Venture"], ["Hong Kong", "Subsidiary"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Qrwua_14.png", "TableImg_Gqjas_14.png"], "original_data_index": 5998, "original_sql": "SELECT Incorporated_in, Type FROM operate_company WHERE \"Group_Equity_Shareholding\" != 40.0 OR Principal_activities <> \"Ground handling\" AND Type <> \"Joint Venture\" AND name = \"Air China Cargo\" OR \"id\" > 10 AND Incorporated_in != \"Hong Kong\" EXCEPT SELECT Incorporated_in, Type FROM operate_company WHERE Type = \"Joint Venture\" AND \"id\" >= 10"} {"question": "What is the sum of the 'Party' values from the 'election' table where 'Party' is less than 1 and the 'Election_ID' is 5, excluding the sum of 'Party' from the 'party' table where the 'Attorney_General' is not \"Jeanine Pirro\" and the 'Year' is greater than 2006, or the 'Governor' is not \"Carl McCall\", or the 'Lieutenant_Governor' is not \"Sandra Frankel\" and the 'Party' is \"Independence\", or the 'US_Senate' is not \"Charles Schumer\" and the 'Party_ID' is not 4, or the 'Comptroller' is not \"Alan Hevesi\"?", "answer": {"columns": ["SUM(Party)"], "index": [0], "data": [[""]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Ykb99_8.png", "TableImg_Z91n7_7.png"], "original_data_index": 5999, "original_sql": "SELECT SUM(Party) FROM election WHERE \"Party\" < 1 AND \"Election_ID\" = 5 EXCEPT SELECT SUM(Party) FROM party WHERE Attorney_General <> \"Jeanine Pirro\" AND \"Year\" > 2006.0 AND Governor <> \"Carl McCall\" OR Lieutenant_Governor != \"Sandra Frankel\" AND Party = \"Independence\" OR US_Senate <> \"Charles Schumer\" AND \"Party_ID\" != 4 OR Comptroller != \"Alan Hevesi\""} {"question": "What are the aircraft IDs that are less than 1, and also the aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q78ah_5.png", "TableImg_P240j_4.png"], "original_data_index": 6002, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the driver IDs, excluding driver ID 3, and also any driver IDs from school buses that are 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2o1r6_12.png", "TableImg_Xa7et_5.png"], "original_data_index": 5995, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the aircraft IDs that are either equal to 1 in the aircraft table or not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3hmql_5.png", "TableImg_99gzp_4.png"], "original_data_index": 6004, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the club IDs of coaches who are not Jameson Tomas, combined with the club IDs from match results where the bronze value isn't 10 and the small silver value is greater than 4 and the big silver value isn't 12, or the club ID isn't 1 and the points are greater than 102 and the gold value isn't 20, or the rank is 3?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["3"], ["3"], ["1"], ["1"], ["2"], ["3"], ["6"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Zyg7s_5.png", "TableImg_93tly_6.png"], "original_data_index": 6005, "original_sql": "SELECT Club_ID FROM coach WHERE Coach_name <> \"Jameson Tomas\" UNION ALL SELECT Club_ID FROM match_result WHERE \"Bronze\" != 10 AND \"Small_Silver\" > 4 AND \"Big_Silver\" <> 12 OR \"Club_ID\" <> 1 AND \"Points\" > 102 AND \"Gold\" <> 20 OR \"Rank\" = 3"} {"question": "Which driver IDs are not equal to 11, but are not found in the school bus table with driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_741gi_12.png", "TableImg_X7hmh_5.png"], "original_data_index": 6006, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the employee IDs from the certificate table where the employee ID is not 142519864 or the activity ID is less than 7, but not including those employee IDs from the employee table where the employee ID is not 567354612 and the salary is 289950?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["11564812"], ["90873519"], ["141582651"], ["142519864"], ["159542516"], ["242518965"], ["274878974"], ["310454876"], ["355548984"], ["356187925"], ["390487451"], ["548977562"], ["550156548"], ["552455318"], ["556784565"], ["567354612"], ["573284895"], ["574489456"], ["574489457"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Mhqqc_69.png", "TableImg_R6o0a_31.png"], "original_data_index": 6007, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" != 142519864 OR \"aid\" < 7 EXCEPT SELECT eid FROM employee WHERE \"eid\" != 567354612 AND \"salary\" = 289950"} {"question": "What are the IDs of drivers, excluding driver 2, and also the IDs of school bus drivers, excluding driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U7eee_12.png", "TableImg_Cc93t_5.png"], "original_data_index": 6008, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that are either less than or equal to 3, or not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B99bb_5.png", "TableImg_U29p8_4.png"], "original_data_index": 6009, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are not equal to 9 but are present in the driver table, excluding those driver IDs that are equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kxbo4_12.png", "TableImg_V0ru3_5.png"], "original_data_index": 6010, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that are both greater than or equal to 5 and not equal to 1, considering only those aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Usyim_5.png", "TableImg_1w4ow_4.png"], "original_data_index": 6011, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs, excluding driver ID 5, are associated with drivers, and which driver IDs, less than 10, are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sv87c_12.png", "TableImg_J8j69_5.png"], "original_data_index": 6012, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What is the sum of `document_type_code` from the `Documents` table where `shipping_agent_code` is not \"UP\", `document_type_code` is not \"Paper\", `receipt_number` is not \"114\", `other_details` is \"p\", `document_status_code` is not \"done\", and `document_id` is 1, combined with the sum of `document_type_code` from `Ref_Document_Types` where `document_type_code` is not \"CD\"?", "answer": {"columns": ["SUM(document_type_code)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Dv34z_15.png", "TableImg_D5bon_3.png"], "original_data_index": 6001, "original_sql": "SELECT SUM(document_type_code) FROM Documents WHERE shipping_agent_code <> \"UP\" AND document_type_code <> \"Paper\" OR receipt_number <> \"114\" AND other_details = \"p\" AND document_status_code != \"done\" AND \"document_id\" = 1 UNION ALL SELECT SUM(document_type_code) FROM Ref_Document_Types WHERE document_type_code != \"CD\""} {"question": "What are the driver IDs that are either greater than or equal to 5 from the driver table, or not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Phen4_12.png", "TableImg_3891t_5.png"], "original_data_index": 6014, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs, up to 4, are in the driver table but not in the school bus table, considering only driver IDs up to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F5sf7_12.png", "TableImg_Kphdb_5.png"], "original_data_index": 6015, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which store IDs are not from a store named Miramichi and don't have a ranking of 3, or are associated with a product ID of 3 or less?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["1"], ["1"], ["1"], ["2"], ["3"], ["2"], ["5"], ["5"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_61z8s_5.png", "TableImg_Fx52i_15.png"], "original_data_index": 6016, "original_sql": "SELECT Store_ID FROM store WHERE Store_Name != \"Miramichi\" AND \"Store_ID\" <> 3 OR \"Ranking\" != 3 UNION ALL SELECT Store_ID FROM store_product WHERE \"Product_ID\" <= 3"} {"question": "What are the aircraft IDs greater than 4 that are not present in the airport_aircraft table with IDs less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2vq4l_5.png", "TableImg_4dom1_4.png"], "original_data_index": 6018, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the aircraft IDs that are less than 2 and are not aircraft ID 2, considering the aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hm50t_5.png", "TableImg_3kbc5_4.png"], "original_data_index": 6017, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are not from Bethel and not Democrats, or whose names are not Timothy Ackert and have a driver ID greater than 8, or are 38 years old, but are not driver IDs from school buses where the school ID is greater than 1, the driver ID is not 10, and the driver is not part-time?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G2zd4_12.png", "TableImg_Zr2js_5.png"], "original_data_index": 6019, "original_sql": "SELECT Driver_ID FROM driver WHERE Home_city != \"Bethel\" AND Party != \"Dem\" OR Name != \"Timothy Ackert\" AND \"Driver_ID\" > 8 OR \"Age\" = 38 EXCEPT SELECT Driver_ID FROM school_bus WHERE \"School_ID\" > 1 AND \"Driver_ID\" <> 10 AND If_full_time != \"F\""} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 3 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dovgt_12.png", "TableImg_Pnq6m_5.png"], "original_data_index": 6021, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs, excluding aircraft ID 4, and also the aircraft IDs that are less than or equal to 1, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_44bgi_5.png", "TableImg_Twszq_4.png"], "original_data_index": 6020, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Which driver IDs are less than 9 but not equal to 9, based on the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zw0jm_12.png", "TableImg_0su8v_5.png"], "original_data_index": 6022, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the driver IDs that are less than 3, and also the driver IDs that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fq3h4_12.png", "TableImg_Euc7h_5.png"], "original_data_index": 6023, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the driver IDs that are equal to 5, excluding those driver IDs that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fp785_12.png", "TableImg_9vbxx_5.png"], "original_data_index": 6024, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are all the contestant numbers, including contestant number 8 and any contestant numbers greater than 9, or any contestant numbers where the contestant name is not \"Loraine NygrenTania Mattioli\"?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["8"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Wysz0_11.png", "TableImg_3b6vs_11.png"], "original_data_index": 6025, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE \"contestant_number\" = 8 UNION ALL SELECT contestant_number FROM CONTESTANTS WHERE contestant_name != \"Loraine NygrenTania Mattioli\" OR \"contestant_number\" > 9"} {"question": "What are the driver IDs that are either 5 or 9, considering driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["5"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ly730_12.png", "TableImg_Tr0tw_5.png"], "original_data_index": 6026, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the vehicle IDs from lessons that aren't on February 26, 2018, or have a customer ID other than 2, a lesson time other than 4, a lesson ID other than 10, a lesson status that isn't \"Cancelled\", and a price greater than 199, plus the vehicle IDs of all vans?", "answer": {"columns": ["vehicle_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["3"], ["3"], ["2"], ["2"], ["2"], ["2"], ["1"], ["2"], ["2"], ["1"], ["2"], ["1"], ["1"], ["1"], ["1"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_B0o96_15.png", "TableImg_Ub3yi_3.png"], "original_data_index": 6027, "original_sql": "SELECT vehicle_id FROM Lessons WHERE lesson_date <> \"2018-02-26 02:36:35\" OR \"customer_id\" != 2 AND lesson_time <> \"4\" AND \"lesson_id\" <> 10 AND lesson_status_code != \"Cancelled\" AND \"price\" > 199.0 AND \"vehicle_id\" >= 1 UNION ALL SELECT vehicle_id FROM Vehicles WHERE vehicle_details = \"Van\""} {"question": "What is the average Template ID from the Documents table where Other Details is not \"None\", Template ID is less than or equal to 25, Document Description is not \"y\", and Document Name is not \"Palm reading\", combined with the average Template ID from the Templates table where Date Effective From is not \"2005-02-20 00:31:34\" and Template ID is less than 9?", "answer": {"columns": ["AVG(Template_ID)"], "index": [0, 1], "data": [[""], ["4.3333333333"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_2x17m_15.png", "TableImg_8nxtn_20.png"], "original_data_index": 6028, "original_sql": "SELECT AVG(Template_ID) FROM Documents WHERE Other_Details <> \"None\" AND \"Template_ID\" <= 25 AND Document_Description <> \"y\" AND Document_Name <> \"Palm reading\" UNION ALL SELECT AVG(Template_ID) FROM Templates WHERE Date_Effective_From != \"2005-02-20 00:31:34\" AND \"Template_ID\" < 9"} {"question": "Which driver IDs, excluding ID 3, are present in both the 'driver' table and the 'school_bus' table, where the 'school_bus' table specifically includes driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4i8wv_12.png", "TableImg_Iptag_5.png"], "original_data_index": 6013, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the aircraft IDs that are not equal to 2, but are not present in the airport aircraft table with an ID less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A7wqr_5.png", "TableImg_Spk9j_4.png"], "original_data_index": 6032, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the smallest school IDs from the School table where the enrollment is 316, or the school name isn't \"Knox Community\", or the IHSAA class isn't \"AA\" and the location is \"Bourbon\", or the football class isn't \"AA\", or the mascot is \"Trojans\" and the county isn't \"50 Marshall\"? Also, what are the smallest school IDs from the endowment table where the amount isn't 8.85, or the donor name isn't \"Valverde\", or the endowment ID is less than 1, or the school ID is less than or equal to 3?", "answer": {"columns": ["MIN(School_id)"], "index": [0, 1], "data": [["1"], ["1"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_Ol4ey_8.png", "TableImg_Q6reh_11.png"], "original_data_index": 6033, "original_sql": "SELECT MIN(School_id) FROM School WHERE \"Enrollment\" = 316 OR School_name <> \"Knox Community\" OR IHSAA_Class <> \"AA\" AND Location = \"Bourbon\" OR IHSAA_Football_Class <> \"AA\" OR Mascot = \"Trojans\" AND County <> \"50 Marshall\" UNION ALL SELECT MIN(School_id) FROM endowment WHERE \"amount\" <> 8.85 AND donator_name != \"Valverde\" OR \"endowment_id\" < 1 OR \"School_id\" <= 3"} {"question": "What are the driver IDs that are greater than 3 and also greater than or equal to 7, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ulj2l_12.png", "TableImg_N0nxw_5.png"], "original_data_index": 6034, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are less than 3 but not greater than or equal to 4, considering only the driver IDs found in the driver table and excluding those found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Umvtm_12.png", "TableImg_Gwok0_5.png"], "original_data_index": 6035, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the effective start dates, counts of template details, template type codes, and effective end dates for templates, excluding those where the effective start date is \"2012-04-05 07:11:42\", the version number is greater than 5, or the template ID is less than or equal to 20, and the effective end date is not \"2007-06-06 06:18:53\", or the template details are empty, or the template type code is \"PP\", but also excluding those where the version number is greater than 5, or the template type code is not \"AD\" and the effective end date is \"1993-03-24 14:30:23\", or the template details are not empty, or the effective start date is \"1975-10-20 02:28:58\"?", "answer": {"columns": ["Date_Effective_From", "COUNT(Template_Details)", "Template_Type_Code", "Date_Effective_To"], "index": [0], "data": [["2002-03-02 14:39:49", "14", "BK", "2001-04-18 09:29:52"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_W9fqt_20.png", "TableImg_Flagp_20.png"], "original_data_index": 6036, "original_sql": "SELECT Date_Effective_From, COUNT(Template_Details), Template_Type_Code, Date_Effective_To FROM Templates WHERE Date_Effective_From != \"2012-04-05 07:11:42\" AND \"Version_Number\" <= 5 AND \"Template_ID\" > 20 AND Date_Effective_To = \"2007-06-06 06:18:53\" OR Template_Details <> \"\" OR Template_Type_Code != \"PP\" EXCEPT SELECT Date_Effective_From, COUNT(Template_Details), Template_Type_Code, Date_Effective_To FROM Templates WHERE \"Version_Number\" <= 5 OR Template_Type_Code != \"AD\" AND Date_Effective_To <> \"1993-03-24 14:30:23\" OR Template_Details != \"\" OR Date_Effective_From = \"1975-10-20 02:28:58\""} {"question": "What are the aircraft IDs greater than 4, and also the aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z09ch_5.png", "TableImg_Uipye_4.png"], "original_data_index": 6037, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are less than or equal to 1 but not present in the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Htpwz_12.png", "TableImg_Vxze7_5.png"], "original_data_index": 6038, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the IDs of albums that aren't \"Handel: Music for the Royal Fireworks (Original Version 1749)\" and the IDs of playlists that are not 18?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_Zfeuc_347.png", "TableImg_42ty3_18.png"], "original_data_index": 6039, "original_sql": "SELECT id FROM albums WHERE title <> \"Handel: Music for the Royal Fireworks (Original Version 1749)\" UNION ALL SELECT id FROM playlists WHERE \"id\" != 18"} {"question": "Which driver IDs are less than 6 but not equal to 9, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qsdq8_12.png", "TableImg_88etr_5.png"], "original_data_index": 6040, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are greater than 1 and also appear in the school bus table with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mabta_12.png", "TableImg_6mbid_5.png"], "original_data_index": 6041, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are less than 8, and also the driver IDs from school buses that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kftc1_12.png", "TableImg_Zl4s3_5.png"], "original_data_index": 6042, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are less than 3, considering both drivers and school buses, and combining the results?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_41yu9_12.png", "TableImg_Zd15f_5.png"], "original_data_index": 6043, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are either 6 or not 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_635wq_12.png", "TableImg_85n1l_5.png"], "original_data_index": 6044, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that are both less than or equal to 3 and not equal to 1, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zmi7l_5.png", "TableImg_Gs0uo_4.png"], "original_data_index": 6045, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which driver IDs are greater than 4 but not present in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nijf4_12.png", "TableImg_57da7_5.png"], "original_data_index": 6046, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs greater than 3 that are also present in the school bus table with driver IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0uv57_12.png", "TableImg_95nt7_5.png"], "original_data_index": 6029, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are less than or equal to 10 but not present in the school bus table with driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Te7jx_12.png", "TableImg_J9n44_5.png"], "original_data_index": 6048, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are both 7 and not 9, considering driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y85lq_12.png", "TableImg_Upttr_5.png"], "original_data_index": 6049, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are all the continents, excluding the one with ID 1, and also all the continents from countries except for New Zealand?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["europe"], ["asia"], ["africa"], ["australia"], ["1"], ["2"], ["2"], ["3"], ["2"], ["2"], ["2"], ["3"], ["2"], ["4"], ["5"], ["4"], ["1"], ["1"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_M1rf3_5.png", "TableImg_Yu5js_15.png"], "original_data_index": 6050, "original_sql": "SELECT Continent FROM continents WHERE \"ContId\" != 1 UNION ALL SELECT Continent FROM countries WHERE CountryName != \"new zealand\""} {"question": "Which aircraft IDs are greater than or equal to 1 in the aircraft table but not equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sjt9z_5.png", "TableImg_392xj_4.png"], "original_data_index": 6051, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which driver IDs are less than 2, and which driver ID is 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8gmsw_12.png", "TableImg_Vpipy_5.png"], "original_data_index": 6052, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the names and regions of clubs where the club ID is 2 and the club name isn't Helsingborgs IF, or the start year is before or equal to 2005? Also, include the names and regions of clubs where the club ID is greater than 1, or the start year is not 2005 and the region is Korea.", "answer": {"columns": ["Club_name", "Region"], "index": [0, 1, 2, 3, 4], "data": [["BK H\u00e4cken", "UK"], ["Djurg\u00e5rdens IF", "USA"], ["Gefle IF", "Korea"], ["Halmstads BK", "Russia"], ["Helsingborgs IF", "France"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_P2rnt_6.png", "TableImg_U9vs2_6.png"], "original_data_index": 6053, "original_sql": "SELECT Club_name, Region FROM club WHERE \"Club_ID\" = 2 AND Club_name != \"Helsingborgs IF\" OR \"Start_year\" <= 2005 UNION SELECT Club_name, Region FROM club WHERE \"Club_ID\" > 1 OR \"Start_year\" <> 2005 AND Region = \"Korea\""} {"question": "What are the driver IDs greater than 1, and also the driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X9s0w_12.png", "TableImg_Jsmrh_5.png"], "original_data_index": 6054, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the property type descriptions and codes for property types that are \"Field\" but not \"House, Bungalow, etc.\", excluding those that are \"Shop\"?", "answer": {"columns": ["property_type_description", "property_type_code"], "index": [0], "data": [["Field, Meadow.", "Field"]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_I01c9_5.png", "TableImg_Py2qm_5.png"], "original_data_index": 6055, "original_sql": "SELECT property_type_description, property_type_code FROM Ref_Property_Types WHERE property_type_code = \"Field\" AND property_type_description <> \"House, Bungalow, etc.\" EXCEPT SELECT property_type_description, property_type_code FROM Ref_Property_Types WHERE property_type_code = \"Shop\""} {"question": "What are the driver IDs that are less than or equal to 7, excluding those driver IDs that are greater than 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oxs76_12.png", "TableImg_6bn19_5.png"], "original_data_index": 6056, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs greater than 3, excluding aircraft ID 5, considering only the aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N2nvm_5.png", "TableImg_Is64f_4.png"], "original_data_index": 6057, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the driver IDs that are both equal to 3 in the driver table and not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ukps5_12.png", "TableImg_Mtd66_5.png"], "original_data_index": 6058, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the smallest branch ID from the branch table where the branch ID is greater than 8, or the opening year is not 2009, and the city is not London, and the membership amount is not 91, and the name is not Cochrane? Also, what is the smallest branch ID from the purchase table where the year is 2017, or the branch ID is 5, or the member ID is not 3, or the total pounds is less than 321.13?", "answer": {"columns": ["MIN(Branch_ID)"], "index": [0, 1], "data": [["6"], ["1"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Oxx4y_8.png", "TableImg_Gnk9v_8.png"], "original_data_index": 6059, "original_sql": "SELECT MIN(Branch_ID) FROM branch WHERE \"Branch_ID\" > 8 OR Open_year <> \"2009\" AND City <> \"London\" AND membership_amount <> \"91\" AND Name != \"Cochrane\" UNION SELECT MIN(Branch_ID) FROM purchase WHERE Year = \"2017\" OR Branch_ID = \"5\" OR \"Member_ID\" <> 3 OR \"Total_pounds\" < 321.13"} {"question": "What are the aircraft IDs that are either 3 or less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4a191_5.png", "TableImg_Wc0c7_4.png"], "original_data_index": 6060, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are less than or equal to 7, excluding driver ID 3, considering only the driver IDs present in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7uop6_12.png", "TableImg_Tlxh1_5.png"], "original_data_index": 6061, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the driver IDs that are less than 10 in the driver table, combined with the driver IDs that are greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I2iha_12.png", "TableImg_C56bv_5.png"], "original_data_index": 6063, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are less than or equal to 11 but not present in the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ybj0l_12.png", "TableImg_Fvi4w_5.png"], "original_data_index": 6066, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are greater than 5 in the driver table, combined with the driver IDs that are greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lc70p_12.png", "TableImg_Y4d4o_5.png"], "original_data_index": 6064, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs, excluding driver ID 10, are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B1t4i_12.png", "TableImg_Mhi2n_5.png"], "original_data_index": 6070, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are either 2 or 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S1vdv_12.png", "TableImg_Mvgly_5.png"], "original_data_index": 6071, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What is the minimum ID and the pilot's name from the airport and flight tables where the IATA code is BLL and the minimum altitude is not 3650, or the airport ID is not 1, or the airport name is Bergen Airport, or the minimum company ID is at least 11 and the country is Belgium, or the minimum velocity is not 240 and the date is October 25, 1963, or the city is Akureyri, or the pilot's name is not Thompson?", "answer": {"columns": ["MIN(T1.id)", "Pilot"], "index": [0], "data": [["1", "Thompson"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Vnqmk_9.png", "TableImg_56svs_13.png"], "original_data_index": 6072, "original_sql": "SELECT MIN(T1.id), T2.Pilot FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA = \"BLL\" AND MIN(Altitude) <> 3650.0 OR airport_id <> 1 OR name = \"Bergen Airport\" OR MIN(company_id) >= 11 AND Country = \"Belgium\" OR MIN(Velocity) <> 240.0 AND Date = \"October 25, 1963\" OR City = \"Akureyri\" OR Pilot <> \"Thompson\""} {"question": "What are the aircraft IDs, excluding ID 3, from the aircraft table, combined with the aircraft IDs, excluding ID 2, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nrgts_5.png", "TableImg_8wyvk_4.png"], "original_data_index": 6068, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the driver IDs, excluding driver ID 2, that are in the driver table but not in the school bus table, where the driver IDs in the school bus table are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6obv1_12.png", "TableImg_Cxivr_5.png"], "original_data_index": 6069, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the minimum aircraft ID and airport ID for aircraft, excluding those at airport 9, grouped by maximum gross weight, where the description is \"Tandem rotor helicopter\" and the aircraft is not \"CH-47D Chinook\" and the maximum disk loading is not \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" or the airport ID is less than 9?", "answer": {"columns": ["MIN(T1.Aircraft_ID)", "Airport_ID"], "index": [0, 1, 2], "data": [["1", "2"], ["2", "1"], ["5", "6"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ab0o9_5.png", "TableImg_Kh3oj_4.png"], "original_data_index": 6074, "original_sql": "SELECT MIN(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID WHERE \"Airport_ID\" <> 9 GROUP BY Max_Gross_Weight HAVING Description = \"Tandem rotor helicopter\" AND Aircraft <> \"CH-47D Chinook\" AND Max_disk_Loading <> \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" OR Airport_ID < 9"} {"question": "What are the template details, average effective dates, sum of template type codes, average version numbers, and template IDs for templates with version number 4 and effective to dates not equal to October 28, 1976, and also for templates with IDs less than 7?", "answer": {"columns": ["Template_Details", "AVG(Date_Effective_From)", "SUM(Template_Type_Code)", "AVG(Version_Number)", "Template_ID"], "index": [0, 1], "data": [["", "2002", "0", "4", "4"], ["", "1998", "0", "5", "0"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_Ueusm_20.png", "TableImg_Exsg4_20.png"], "original_data_index": 6075, "original_sql": "SELECT Template_Details, AVG(Date_Effective_From), SUM(Template_Type_Code), AVG(Version_Number), Template_ID FROM Templates WHERE \"Version_Number\" = 4 AND Date_Effective_To <> \"1976-10-28 10:08:50\" UNION ALL SELECT Template_Details, AVG(Date_Effective_From), SUM(Template_Type_Code), AVG(Version_Number), Template_ID FROM Templates WHERE \"Template_ID\" < 7"} {"question": "What are the aircraft IDs, excluding aircraft ID 5, from the aircraft table, combined with aircraft IDs less than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nnyoi_5.png", "TableImg_5wk08_4.png"], "original_data_index": 6076, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the continents listed in the 'continents' table where the continent ID is less than or equal to 1, combined with the continents from the 'countries' table where the country name is not \"uk\", the country ID is greater than or equal to 3, and the continent value is greater than or equal to 4?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3, 4], "data": [["america"], ["4"], ["5"], ["5"], ["4"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_Fa59o_5.png", "TableImg_F6sgx_15.png"], "original_data_index": 6077, "original_sql": "SELECT Continent FROM continents WHERE \"ContId\" <= 1 UNION ALL SELECT Continent FROM countries WHERE CountryName <> \"uk\" AND \"CountryId\" >= 3 AND \"Continent\" >= 4"} {"question": "What are the driver IDs that are both greater than or equal to 2 and less than or equal to 10, considering only those IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3uixo_12.png", "TableImg_M2h3r_5.png"], "original_data_index": 6078, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the names of employees whose employee ID is greater than or equal to 269734834 and are not Lisa Walker, or whose salary is greater than 152013, combined with the names of employees whose employee ID is greater than or equal to 287321212?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["Angela Martinez"], ["Betty Adams"], ["Chad Stewart"], ["David Anderson"], ["Dorthy Lewis"], ["Eric Cooper"], ["George Wright"], ["Haywood Kelly"], ["Jennifer Thomas"], ["John Williams"], ["Joseph Thompson"], ["Karen Scott"], ["Larry West"], ["Lawrence Sperry"], ["Linda Davis"], ["Lisa Walker"], ["Mark Young"], ["Mary Johnson"], ["Michael Miller"], ["Milo Brooks"], ["Richard Jackson"], ["Robert Brown"], ["William Jones"], ["William Ward"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_B1gf2_31.png", "TableImg_1e2gl_31.png"], "original_data_index": 6079, "original_sql": "SELECT name FROM employee WHERE \"eid\" >= 269734834 AND name != \"Lisa Walker\" OR \"salary\" > 152013 UNION SELECT name FROM employee WHERE \"eid\" >= 287321212"} {"question": "Which aircraft have ID 2, or which aircraft have ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sjg1u_5.png", "TableImg_1zq0r_4.png"], "original_data_index": 6080, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the driver IDs that are less than 11 and also greater than 4, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Payg6_12.png", "TableImg_Zw29n_5.png"], "original_data_index": 6081, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the club IDs of clubs not in the USA that have a club ID of 6 or a club name that is not BK H\u00e4cken, combined with the club IDs from match results where Small_Silver is 4, or Bronze is less than 8 and Points is not 102, or Rank is 6, or Club_ID is greater than or equal to 1, or Big_Silver is not 14?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_Xmbx9_6.png", "TableImg_Sycj6_6.png"], "original_data_index": 6082, "original_sql": "SELECT Club_ID FROM club WHERE Region <> \"USA\" AND \"Club_ID\" = 6 OR Club_name <> \"BK H\u00e4cken\" UNION SELECT Club_ID FROM match_result WHERE \"Small_Silver\" = 4 OR \"Bronze\" < 8 AND \"Points\" != 102 OR \"Rank\" = 6 OR \"Club_ID\" >= 1 OR \"Big_Silver\" != 14"} {"question": "What are the feature type codes for features that are not \"Pool\", excluding those feature type codes associated with feature types that are not \"Security, eg Burglar Alarm.\"?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_A0re5_3.png", "TableImg_73oc9_2.png"], "original_data_index": 6083, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE feature_name <> \"Pool\" EXCEPT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> \"Securiyt, eg Burglar Alarm.\""} {"question": "Which driver IDs are less than or equal to 3, excluding those with driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xaixm_12.png", "TableImg_7gvlw_5.png"], "original_data_index": 6084, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are not 3, and also have an ID greater than or equal to 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ph3wu_5.png", "TableImg_Kfizo_4.png"], "original_data_index": 6085, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the driver IDs greater than 3 that are not present in the school bus table with driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xw1m1_12.png", "TableImg_4qapn_5.png"], "original_data_index": 6087, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are both less than 10 and also greater than or equal to 7, considering only driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F1jt0_12.png", "TableImg_334yz_5.png"], "original_data_index": 6086, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs, excluding driver ID 4, from the driver table, and also the driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4p9uw_12.png", "TableImg_Nmt7d_5.png"], "original_data_index": 6073, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs, excluding driver ID 9, and also driver IDs greater than 9, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hctuw_12.png", "TableImg_5s2ia_5.png"], "original_data_index": 6091, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are either 4 or higher, or greater than 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oys7q_12.png", "TableImg_82ufz_5.png"], "original_data_index": 6092, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the average club name, club ID, location, and description for clubs that have a club ID other than 2, or a location that is not AKW, or a description that is not \"Venture capital fund for student business.\", and also for clubs that have a club ID of 1, or a location that is not AKW?", "answer": {"columns": ["AVG(ClubName)", "ClubID", "ClubLocation", "ClubDesc"], "index": [0], "data": [["0", "1", "AKW", "Refurbish computers; teach kids and adults about computer basics."]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_O4d7x_4.png", "TableImg_013pv_4.png"], "original_data_index": 6093, "original_sql": "SELECT AVG(ClubName), ClubID, ClubLocation, ClubDesc FROM Club WHERE \"ClubID\" <> 2 OR ClubLocation != \"AKW\" OR ClubDesc != \"Venture capital fund for student business.\" INTERSECT SELECT AVG(ClubName), ClubID, ClubLocation, ClubDesc FROM Club WHERE \"ClubID\" = 1 OR ClubLocation != \"AKW\""} {"question": "What are the driver IDs that are both less than 11 and also greater than or equal to 3, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gkqtd_12.png", "TableImg_Beejn_5.png"], "original_data_index": 6094, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the names of employees whose ID is less than or equal to 242518965 and salary is less than 114323, or whose name is Betty Adams? Also, what are the names of employees who are not Chad Stewart, or whose ID is 90873519?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["Angela Martinez"], ["Barbara Wilson"], ["Betty Adams"], ["David Anderson"], ["Donald King"], ["Dorthy Lewis"], ["Elizabeth Taylor"], ["Eric Cooper"], ["George Wright"], ["Haywood Kelly"], ["James Smith"], ["Jennifer Thomas"], ["John Williams"], ["Joseph Thompson"], ["Karen Scott"], ["Larry West"], ["Lawrence Sperry"], ["Linda Davis"], ["Lisa Walker"], ["Mark Young"], ["Mary Johnson"], ["Michael Miller"], ["Milo Brooks"], ["Patricia Jones"], ["Richard Jackson"], ["Robert Brown"], ["William Jones"], ["William Moore"], ["William Ward"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Avril_31.png", "TableImg_S6t1n_31.png"], "original_data_index": 6095, "original_sql": "SELECT name FROM employee WHERE \"eid\" <= 242518965 AND \"salary\" < 114323 OR name = \"Betty Adams\" UNION SELECT name FROM employee WHERE name != \"Chad Stewart\" OR \"eid\" = 90873519"} {"question": "What are the aircraft IDs that are not 3 and also have an ID of 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4z4uo_5.png", "TableImg_19af6_4.png"], "original_data_index": 6096, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the driver IDs that are either less than or equal to 3 in the driver table or less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5441y_12.png", "TableImg_Tsy0s_5.png"], "original_data_index": 6097, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are either greater than or equal to 11 in the driver table or greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zjkmf_12.png", "TableImg_C65gn_5.png"], "original_data_index": 6098, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are present in both the driver table (with driver ID greater than or equal to 3) and the school bus table (with driver ID not equal to 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N6btq_12.png", "TableImg_8ox7t_5.png"], "original_data_index": 6099, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the aircraft IDs that are either less than or equal to 2, or greater than 2, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4i5pt_5.png", "TableImg_Nqb81_4.png"], "original_data_index": 6100, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the aircraft IDs, excluding aircraft ID 5, from the aircraft table, and also the aircraft IDs, excluding aircraft ID 2, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H6vx7_5.png", "TableImg_8a841_4.png"], "original_data_index": 6101, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the aircraft IDs that are not 2 and also appear in the airport_aircraft table with an ID of 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nrejf_5.png", "TableImg_4mi6r_4.png"], "original_data_index": 6102, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are not 8 and are in the driver table, or which driver IDs are at least 4 and are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wx8ib_12.png", "TableImg_Mmydg_5.png"], "original_data_index": 6103, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the aircraft IDs that are less than 1, and also the aircraft IDs that are greater than 1, considering the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_401q2_5.png", "TableImg_27djs_4.png"], "original_data_index": 6104, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are either 2 or less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dvb2h_12.png", "TableImg_M76dk_5.png"], "original_data_index": 6088, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the property type codes for properties that have other details not equal to \"None\", or an apt feature not equal to \"fuga\", or a sale date not equal to \"1998-09-15 05:26:22\", or an agreed selling price not equal to 4201.8, excluding those property type codes that are not \"House\"?", "answer": {"columns": ["property_type_code"], "index": [0], "data": [["House"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Qh0np_15.png", "TableImg_Bzpc4_5.png"], "original_data_index": 6090, "original_sql": "SELECT property_type_code FROM Properties WHERE other_property_details != \"None\" OR apt_feature_1 != \"fuga\" OR date_sold != \"1998-09-15 05:26:22\" OR \"agreed_selling_price\" != 4201.8 EXCEPT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> \"House\""} {"question": "How many students are in WAS or under 19, and what's the sum of their majors? Also, how many students are not StuID 1016 and not Jandy, or have advisor 8741, or are male and not 22, or have a major other than 600 and a last name of Han, and what's the sum of their majors?", "answer": {"columns": ["COUNT(Fname)", "SUM(Major)"], "index": [0, 1], "data": [["17", "8270"], ["33", "17350"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Wwd31_34.png", "TableImg_U1inq_34.png"], "original_data_index": 6089, "original_sql": "SELECT COUNT(Fname), SUM(Major) FROM Student WHERE city_code = \"WAS\" OR \"Age\" < 19 UNION ALL SELECT COUNT(Fname), SUM(Major) FROM Student WHERE \"StuID\" != 1016 AND Fname != \"Jandy\" OR \"Advisor\" = 8741 OR Sex = \"M\" AND \"Age\" != 22 OR \"Major\" != 600 AND LName = \"Han\""} {"question": "What are the driver IDs that are less than 3 but not greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8zvpu_12.png", "TableImg_H003x_5.png"], "original_data_index": 6105, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the count and minimum ID for car makers where the full name isn't Opel, the country isn't 1, the ID is 15 or greater, or the maker isn't gm, and also where the ID isn't 8 or the country isn't 6 and the full name isn't Opel?", "answer": {"columns": ["COUNT(FullName)", "MIN(Id)"], "index": [0], "data": [["22", "1"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_B5wt2_22.png", "TableImg_6i62l_22.png"], "original_data_index": 6108, "original_sql": "SELECT COUNT(FullName), MIN(Id) FROM car_makers WHERE FullName != \"Opel\" OR Country <> \"1\" OR \"Id\" >= 15 OR Maker <> \"gm\" INTERSECT SELECT COUNT(FullName), MIN(Id) FROM car_makers WHERE \"Id\" <> 8 OR Country <> \"6\" AND FullName != \"Opel\""} {"question": "What is the sum of coach IDs, coach name, average rank, count of gender, and club ID for male coaches who are not in club 1 or whose name is not James Wong and whose coach ID is not 4 and rank is less than 4, excluding those who are not male and have a coach ID of 2 or more?", "answer": {"columns": ["SUM(Coach_ID)", "Coach_name", "AVG(Rank)", "COUNT(Gender)", "Club_ID"], "index": [0], "data": [["10", "Jameson Tomas", "2.5", "4", "1"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_5i2fr_5.png", "TableImg_G9hlc_5.png"], "original_data_index": 6106, "original_sql": "SELECT SUM(Coach_ID), Coach_name, AVG(Rank), COUNT(Gender), Club_ID FROM coach WHERE \"Club_ID\" != 1 AND Gender = \"M\" OR Coach_name != \"James Wong\" AND \"Coach_ID\" != 4 AND \"Rank\" < 4 EXCEPT SELECT SUM(Coach_ID), Coach_name, AVG(Rank), COUNT(Gender), Club_ID FROM coach WHERE Gender <> \"M\" AND \"Coach_ID\" >= 2"} {"question": "What are the aircraft IDs that are both greater than or equal to 5 in the aircraft table and less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vyy3n_5.png", "TableImg_4aqnh_4.png"], "original_data_index": 6107, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are less than 10 but not present in the school bus table with driver IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ynmbv_12.png", "TableImg_18bk9_5.png"], "original_data_index": 6111, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs greater than 10, and also any driver IDs from the school bus table that are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ha1hs_12.png", "TableImg_Fdxdw_5.png"], "original_data_index": 6112, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the aircraft IDs that appear in both the aircraft and airport_aircraft tables, where the aircraft ID is 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jfwzi_5.png", "TableImg_1a1y9_4.png"], "original_data_index": 6110, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 1 from the driver table and driver IDs 10 and above from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C32hs_12.png", "TableImg_Rg149_5.png"], "original_data_index": 6109, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs, excluding ID 11, are present in both the driver and school bus records, excluding ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qsc9h_12.png", "TableImg_0cq9t_5.png"], "original_data_index": 6113, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are either less than or equal to 5, or equal to 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jogi1_12.png", "TableImg_Eocat_5.png"], "original_data_index": 6114, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are present in both the driver table (excluding driver ID 7) and the school bus table (with driver ID 9)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z4kim_12.png", "TableImg_6uaey_5.png"], "original_data_index": 6115, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the customer IDs of customers who meet at least one of the following conditions: their first name is Carole, their mobile phone number is 1-387-258-1016x96963, and their date of birth is 1988-09-19 14:45:56; or their phone number is not 1-875-045-0806; or their customer address ID is greater than or equal to 2; or their customer ID is greater than 3 and their email address is karina.carroll@example.net; or their last name is Spinka, their amount outstanding is 8144.0, their customer status code is not Good Customer, and their date became a customer is 2016-03-18 06:14:18; but exclude any customer IDs that are also associated with lessons where the lesson ID is greater than or equal to 9, or the price is not 199.0, or the customer ID is not 2 and the staff ID is not 12, or the lesson date is 2018-03-07 22:03:49?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2], "data": [["1"], ["4"], ["12"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_Zcy4w_15.png", "TableImg_P3nsl_15.png"], "original_data_index": 6116, "original_sql": "SELECT customer_id FROM Customers WHERE first_name = \"Carole\" AND cell_mobile_phone_number = \"1-387-258-1016x96963\" AND date_of_birth = \"1988-09-19 14:45:56\" OR phone_number <> \"1-875-045-0806\" AND \"customer_address_id\" >= 2 OR \"customer_id\" > 3 AND email_address = \"karina.carroll@example.net\" OR last_name = \"Spinka\" AND \"amount_outstanding\" = 8144.0 AND customer_status_code <> \"Good Customer\" AND date_became_customer = \"2016-03-18 06:14:18\" EXCEPT SELECT customer_id FROM Lessons WHERE \"lesson_id\" >= 9 OR \"price\" <> 199.0 OR \"customer_id\" <> 2 AND \"staff_id\" <> 12 OR lesson_date = \"2018-03-07 22:03:49\""} {"question": "Which member IDs meet either of these conditions: their level is 6 or higher, or their name is not Jeremy Jarmon and their hometown is not Fort Campbell, Kentucky; or meet any of these conditions: their member ID is greater than 3, their branch ID is 6, or their registration year is not 2016?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_Iuv8f_10.png", "TableImg_8msc1_8.png"], "original_data_index": 6117, "original_sql": "SELECT Member_ID FROM member WHERE \"Level\" >= 6 OR Name != \"Jeremy Jarmon\" AND Hometown != \"Fort Campbell, Kentucky\" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" > 3 OR Branch_ID = \"6\" OR Register_Year != \"2016\""} {"question": "Which school IDs satisfy all of these conditions: they have a total budget percentage invested less than 2.0 and an invested amount less than 85249, or a budgeted amount not equal to 61283, or a school ID greater than or equal to 2 and a budget invested percentage not equal to 228.6, AND they also have a donor named Santiago and a school ID greater than or equal to 4?", "answer": {"columns": ["School_id"], "index": [0], "data": [["4"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_1e04m_8.png", "TableImg_Emhlz_11.png"], "original_data_index": 6118, "original_sql": "SELECT School_id FROM budget WHERE \"total_budget_percent_invested\" < 2.0 AND \"Invested\" < 85249 OR \"Budgeted\" <> 61283 OR \"School_id\" >= 2 AND Budget_invested_percent <> \"228.6\" INTERSECT SELECT School_id FROM endowment WHERE donator_name = \"Santiago\" AND \"School_id\" >= 4"} {"question": "What are the counts of assets, maximum profits, sales, and counts of headquarters for companies, excluding those with assets not equal to 302.6 and market value less than 294.7, or headquartered in the UK and in the Banking industry and with company ID 17, or with sales greater than 143.7? Group the results by sales, and only include groups where the count of assets is greater than 1, or the maximum profit is greater than 11.1, or the count of headquarters is less than 1. Then, exclude the results where the industry is not \"Oil and gas\" and profits are greater than 25.1, or the market value is greater than or equal to 79.5 and the company ID is greater than 10, or the assets are not equal to 209.5 and the headquarters is not in the USA and sales are greater than 433.5 and the company name is not \"Walmart\". Group these excluded results by sales, and only include groups where the count of assets is not 1 and the count of headquarters is less than or equal to 1.", "answer": {"columns": ["COUNT(Assets_in_Billion)", "MAX(Profits_in_Billion)", "Sales_in_Billion", "COUNT(Headquarters)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1", "14.2", "147.3", "1"], ["1", "14.4", "62.4", "1"], ["1", "15.7", "447.0", "1"], ["1", "15.9", "87.6", "1"], ["1", "15.9", "216.2", "1"], ["1", "16.2", "102.0", "1"], ["1", "19.0", "110.8", "1"], ["1", "20.1", "145.9", "1"], ["1", "20.5", "68.7", "1"], ["1", "20.6", "310.1", "1"], ["1", "21.5", "221.9", "1"], ["1", "25.1", "82.6", "1"], ["1", "25.7", "375.5", "1"], ["1", "26.9", "236.3", "1"], ["1", "30.9", "470.2", "1"], ["1", "41.1", "433.5", "1"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Uwp2t_19.png", "TableImg_Il7cz_19.png"], "original_data_index": 6119, "original_sql": "SELECT COUNT(Assets_in_Billion), MAX(Profits_in_Billion), Sales_in_Billion, COUNT(Headquarters) FROM company WHERE \"Assets_in_Billion\" <> 302.6 AND \"Market_Value_in_Billion\" < 294.7 OR Headquarters = \"UK\" AND Industry = \"Banking\" AND \"Company_ID\" = 17.0 OR \"Sales_in_Billion\" > 143.7 GROUP BY Sales_in_Billion HAVING COUNT(Assets_in_Billion) > 1 OR MAX(Profits_in_Billion) > 11.1 OR COUNT(Headquarters) < 1 EXCEPT SELECT COUNT(Assets_in_Billion), MAX(Profits_in_Billion), Sales_in_Billion, COUNT(Headquarters) FROM company WHERE Industry <> \"Oil and gas\" AND \"Profits_in_Billion\" > 25.1 OR \"Market_Value_in_Billion\" >= 79.5 AND \"Company_ID\" > 10.0 OR \"Assets_in_Billion\" != 209.5 AND Headquarters <> \"USA\" AND \"Sales_in_Billion\" > 433.5 AND Name <> \"Walmart\" GROUP BY Sales_in_Billion HAVING COUNT(Assets_in_Billion) <> 1 AND COUNT(Headquarters) <= 1"} {"question": "Which driver IDs are equal to 5, or less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oo1a5_12.png", "TableImg_T1rza_5.png"], "original_data_index": 6122, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs, excluding driver ID 4, and also the driver IDs greater than 4, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0nqcl_12.png", "TableImg_Ddzof_5.png"], "original_data_index": 6121, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs that are both less than or equal to 5 and also greater than or equal to 3, considering only aircraft IDs present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ily55_5.png", "TableImg_Hee8j_4.png"], "original_data_index": 6120, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the aircraft IDs that are not 1 and are present in the aircraft table but not in the airport_aircraft table where the aircraft ID is less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3647o_5.png", "TableImg_Lwuvp_4.png"], "original_data_index": 6123, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs that are less than 4, excluding those that are not equal to 9 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8okto_12.png", "TableImg_837q2_5.png"], "original_data_index": 6124, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs that are equal to 10 but not less than 9, considering driver IDs from the driver table and school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uaniy_12.png", "TableImg_3q805_5.png"], "original_data_index": 6128, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What is the highest lesson ID, considering lessons where the staff ID isn't 11 and the price is at least 456, or where the lesson ID is less than 12, or where the customer ID isn't 8? Also, what is the highest lesson ID for lessons where the vehicle ID is less than 1 and the customer ID is at most 2, or where the lesson status isn't \"Cancelled\"?", "answer": {"columns": ["MAX(lesson_id)"], "index": [0, 1], "data": [["15"], ["13"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Arp63_15.png", "TableImg_Lnhw9_15.png"], "original_data_index": 6126, "original_sql": "SELECT MAX(lesson_id) FROM Lessons WHERE \"staff_id\" <> 11 AND \"price\" >= 456.0 AND \"lesson_id\" < 12 OR \"customer_id\" <> 8 UNION ALL SELECT MAX(lesson_id) FROM Lessons WHERE \"vehicle_id\" < 1 AND \"customer_id\" <= 2 OR lesson_status_code <> \"Cancelled\""} {"question": "What are the payment methods, minimum payment amounts, earliest payment dates, and maximum customer IDs for payments that are not Direct Debit and either belong to customer 10 or have an amount greater than or equal to 6970.98, or were made on March 12, 2018 at 1:31:36 PM?", "answer": {"columns": ["payment_method_code", "MIN(amount_payment)", "MIN(datetime_payment)", "MAX(customer_id)"], "index": [0, 1], "data": [["Credit Card", "6970.98", "2018-02-05 18:44:46", "14"], ["Credit Card", "6970.98", "2018-03-12 13:31:36", "14"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Jl1zq_15.png", "TableImg_Amnhq_15.png"], "original_data_index": 6125, "original_sql": "SELECT payment_method_code, MIN(amount_payment), MIN(datetime_payment), MAX(customer_id) FROM Customer_Payments WHERE payment_method_code <> \"Direct Debit\" AND \"customer_id\" = 10 OR \"amount_payment\" >= 6970.98 UNION SELECT payment_method_code, MIN(amount_payment), MIN(datetime_payment), MAX(customer_id) FROM Customer_Payments WHERE payment_method_code <> \"Direct Debit\" AND datetime_payment = \"2018-03-12 13:31:36\""} {"question": "What is the sum of feature type codes from the 'Other_Available_Features' table where the feature type code is not \"Amenity\", or the feature name is not \"BurglarAlarm\", or the feature description is not \"Air Conditioning.\" and the feature ID is greater than 3, intersected with the sum of feature type codes from the 'Ref_Feature_Types' table where the feature type name is not \"Securiyt, eg Burglar Alarm.\" or the feature type code is not \"Amenity\"?", "answer": {"columns": ["SUM(feature_type_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Jw854_3.png", "TableImg_7o64j_2.png"], "original_data_index": 6127, "original_sql": "SELECT SUM(feature_type_code) FROM Other_Available_Features WHERE feature_type_code != \"Amenity\" OR feature_name != \"BurglarAlarm\" OR feature_description != \"Air Conditioning.\" AND \"feature_id\" > 3 INTERSECT SELECT SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name != \"Securiyt, eg Burglar Alarm.\" OR feature_type_code != \"Amenity\""} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G693p_12.png", "TableImg_Sicog_5.png"], "original_data_index": 6129, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the document IDs from draft documents that don't have \"x\" as draft details, combined with the document IDs from documents that don't have a receipt date of \"1996-05-31 06:51:58\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["1"], ["1"], ["2"], ["2"], ["4"], ["7"], ["10"], ["12"], ["12"], ["13"], ["13"], ["17"], ["20"], ["23"], ["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Angk8_15.png", "TableImg_Fnsk6_15.png"], "original_data_index": 6130, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details <> \"x\" UNION ALL SELECT document_id FROM Documents WHERE receipt_date <> \"1996-05-31 06:51:58\""} {"question": "What are the IDs of airports that are not in Anchorage, Norway, or with ICAO code ENBR, and also IDs of flights where the pilot is not Peterson, the flight ID is not 12, the flight number is not M2-F1 #71, the date is not March 30, 1964, the airport ID is not 9, the altitude is not at least 3650.0, and the company ID is not greater than 6?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_6f9ju_9.png", "TableImg_S30lx_13.png"], "original_data_index": 6133, "original_sql": "SELECT id FROM airport WHERE IATA != \"ANC\" OR Country <> \"Norway\" OR City != \"Anchorage\" OR ICAO <> \"ENBR\" INTERSECT SELECT id FROM flight WHERE Pilot != \"Peterson\" OR \"id\" != 12 OR Vehicle_Flight_number <> \"M2-F1 #71\" OR Date <> \"March 30, 1964\" OR \"airport_id\" != 9 OR \"Altitude\" >= 3650.0 OR \"company_id\" > 6"} {"question": "Which driver IDs are less than 11, and also include driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Imzxc_12.png", "TableImg_Weqp9_5.png"], "original_data_index": 6131, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What is the maximum first name, average last name, and average date of birth for customers who meet any of the following conditions: their phone number isn't (297)122-0086, their customer start date isn't 2016-04-08, their last name isn't Leuschke, their customer ID is 2 or greater and their outstanding amount is 1000 or less, their cell phone number isn't 577-584-4864, their first name is Millie, or their customer status is \"Bad Customer\" and their email is ehowell@example.com? Also, what is the maximum first name, average last name, and average date of birth for staff who meet any of the following conditions: their departure date isn't 2018-02-28, their middle name is Dejon, their last name is Jast and their staff ID isn't 13, their staff address ID isn't 1 and their join date is 2017-08-30, their first name isn't Janessa and their nickname is weissnat.vincenzo, or their birth date isn't 2007-06-11?", "answer": {"columns": ["MAX(first_name)", "AVG(last_name)", "AVG(date_of_birth)"], "index": [0, 1], "data": [["Sigrid", "0", "1994.1333333333"], ["Winnifred", "0", "2002.0"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_567y8_15.png", "TableImg_Lkkd2_15.png"], "original_data_index": 6132, "original_sql": "SELECT MAX(first_name), AVG(last_name), AVG(date_of_birth) FROM Customers WHERE phone_number <> \"(297)122-0086\" AND date_became_customer != \"2016-04-08 00:28:15\" OR last_name != \"Leuschke\" OR \"customer_id\" >= 2 AND \"amount_outstanding\" <= 1000.0 OR cell_mobile_phone_number <> \"577-584-4864\" OR first_name = \"Millie\" OR customer_status_code = \"Bad Customer\" AND email_address = \"ehowell@example.com\" UNION SELECT MAX(first_name), AVG(last_name), AVG(date_of_birth) FROM Staff WHERE date_left_staff != \"2018-02-28 08:26:10\" AND middle_name = \"Dejon\" OR last_name = \"Jast\" AND \"staff_id\" <> 13 OR \"staff_address_id\" <> 1 AND date_joined_staff = \"2017-08-30 15:08:37\" OR first_name != \"Janessa\" AND nickname = \"weissnat.vincenzo\" OR date_of_birth <> \"2007-06-11 20:03:28\""} {"question": "What are the IDs of drivers, excluding driver 12, and the IDs of school buses, excluding bus 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ssb18_12.png", "TableImg_Fhuxd_5.png"], "original_data_index": 6136, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the roles, excluding those of managers, held by employees who are not employee ID 5, or have the role \"PT\", or are not named \"Clemens\", or have other details that are not \"u\"?", "answer": {"columns": ["role_code"], "index": [0, 1, 2], "data": [["ED"], ["PR"], ["PT"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_In614_6.png", "TableImg_W476h_4.png"], "original_data_index": 6137, "original_sql": "SELECT role_code FROM Employees WHERE \"employee_id\" <> 5 OR role_code = \"PT\" OR employee_name != \"Clemens\" OR other_details != \"u\" INTERSECT SELECT role_code FROM Roles WHERE role_description <> \"Manager\""} {"question": "What are the states, excluding Connecticut, from the area code state table, and also the states from the votes table where the state is New York or the contestant number is less than 3, the vote ID is less than or equal to 5, and the phone number is less than 6209222712?", "answer": {"columns": ["state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303], "data": [["NJ"], ["DC"], ["CT"], ["AL"], ["WA"], ["ME"], ["ID"], ["CA"], ["TX"], ["NY"], ["CA"], ["TX"], ["PA"], ["OH"], ["IL"], ["MN"], ["IN"], ["IL"], ["LA"], ["MS"], ["GA"], ["MI"], ["OH"], ["VA"], ["FL"], ["MD"], ["MI"], ["AL"], ["NC"], ["WA"], ["TX"], ["AL"], ["IN"], ["WI"], ["PA"], ["MI"], ["KY"], ["VA"], ["MI"], ["TX"], ["OH"], ["MD"], ["DE"], ["CO"], ["WV"], ["FL"], ["WY"], ["NE"], ["IL"], ["CA"], ["IL"], ["MI"], ["MO"], ["NY"], ["KS"], ["IN"], ["LA"], ["IA"], ["MN"], ["FL"], ["CA"], ["TX"], ["OH"], ["IL"], ["AL"], ["NC"], ["LA"], ["MA"], ["CA"], ["NY"], ["MA"], ["FL"], ["WA"], ["TX"], ["CA"], ["OH"], ["UT"], ["FL"], ["RI"], ["NE"], ["GA"], ["OK"], ["MT"], ["FL"], ["CA"], ["TX"], ["MD"], ["PA"], ["MA"], ["WI"], ["CA"], ["MO"], ["OH"], ["TN"], ["CA"], ["WA"], ["TX"], ["TX"], ["VA"], ["UT"], ["OH"], ["CA"], ["MD"], ["IL"], ["TX"], ["GA"], ["GA"], ["AR"], ["AZ"], ["PA"], ["AR"], ["KY"], ["OR"], ["LA"], ["NM"], ["MN"], ["MA"], ["WA"], ["CA"], ["TX"], ["OH"], ["IA"], ["NY"], ["MI"], ["NY"], ["AZ"], ["CA"], ["VA"], ["OR"], ["NJ"], ["MO"], ["CA"], ["FL"], ["CA"], ["IA"], ["WA"], ["OH"], ["PA"], ["VA"], ["MO"], ["IN"], ["NM"], ["OK"], ["NY"], ["MI"], ["MS"], ["AZ"], ["NH"], ["SD"], ["KY"], ["NY"], ["WI"], ["NJ"], ["PA"], ["MN"], ["OH"], ["TN"], ["MI"], ["MA"], ["IL"], ["CA"], ["KS"], ["AZ"], ["CA"], ["CA"], ["CA"], ["IL"], ["NY"], ["MO"], ["IA"], ["NY"], ["CA"], ["MN"], ["MO"], ["CA"], ["MS"], ["CA"], ["GA"], ["MI"], ["TX"], ["FL"], ["ND"], ["NV"], ["VA"], ["NC"], ["GA"], ["CA"], ["IL"], ["IA"], ["TX"], ["CA"], ["WI"], ["NY"], ["PA"], ["NY"], ["CO"], ["CO"], ["PA"], ["FL"], ["TN"], ["NJ"], ["MI"], ["TX"], ["OH"], ["CA"], ["FL"], ["VA"], ["CA"], ["GA"], ["MN"], ["CA"], ["IN"], ["MS"], ["GA"], ["FL"], ["IL"], ["MA"], ["NV"], ["IL"], ["MA"], ["KS"], ["FL"], ["UT"], ["VT"], ["SC"], ["VA"], ["CA"], ["TX"], ["HI"], ["MI"], ["IN"], ["FL"], ["PA"], ["IL"], ["MO"], ["TX"], ["CA"], ["NC"], ["TX"], ["CA"], ["TX"], ["PA"], ["SC"], ["NY"], ["IL"], ["NJ"], ["FL"], ["NJ"], ["MA"], ["CA"], ["KY"], ["NJ"], ["FL"], ["SC"], ["TN"], ["AR"], ["IL"], ["PA"], ["TN"], ["TX"], ["FL"], ["MI"], ["AK"], ["NJ"], ["CA"], ["NC"], ["GA"], ["KS"], ["NY"], ["TX"], ["CA"], ["NY"], ["OK"], ["NC"], ["WI"], ["CA"], ["FL"], ["AZ"], ["TN"], ["CA"], ["TX"], ["OH"], ["TX"], ["FL"], ["MI"], ["CA"], ["CA"], ["MN"], ["FL"], ["TX"], ["NM"], ["CO"], ["OR"], ["TX"], ["NJ"], ["MO"], ["MA"], ["TX"], ["NC"], ["NC"], ["LA"], ["MI"], ["NY"], ["NY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Qtlce_305.png", "TableImg_Asdkr_4.png"], "original_data_index": 6134, "original_sql": "SELECT state FROM AREA_CODE_STATE WHERE state != \"CT\" OR \"area_code\" <= 217 UNION ALL SELECT state FROM VOTES WHERE state = \"NY\" OR \"contestant_number\" < 3 AND \"vote_id\" <= 5 AND \"phone_number\" < 6209222712"} {"question": "Which driver IDs are not equal to 9 and are in the driver table but not in the school bus table, where the school bus table driver IDs are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rsoyq_12.png", "TableImg_Q7o8j_5.png"], "original_data_index": 6139, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the aircraft IDs, excluding aircraft ID 1, that are present in both the aircraft and airport_aircraft tables, with aircraft IDs greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aoq9u_5.png", "TableImg_Vjn4t_4.png"], "original_data_index": 6142, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which staff IDs are associated with lessons where the staff ID is 12 or less, the vehicle ID isn't 1, the price is over 306.0, or the lesson time isn't \"5\"? Also, which staff IDs are from the staff table where the staff ID is 12, or the date joined isn't \"2016-06-05 22:22:23\", or the nickname is \"lsenger\", or the date of birth isn't \"2003-01-16 06:29:11\" and the date left is \"2018-03-08 04:23:14\", or the middle name is \"Maiya\", or the last name isn't \"Turner\" and the staff address ID is greater than 13?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["8"], ["14"], ["11"], ["1"], ["3"], ["4"], ["11"], ["8"], ["4"], ["5"], ["15"], ["12"], ["12"], ["11"], ["8"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Nr5j9_15.png", "TableImg_Wedc5_15.png"], "original_data_index": 6141, "original_sql": "SELECT staff_id FROM Lessons WHERE \"staff_id\" <= 12 OR \"vehicle_id\" <> 1 OR \"price\" > 306.0 OR lesson_time != \"5\" UNION ALL SELECT staff_id FROM Staff WHERE \"staff_id\" = 12 OR date_joined_staff <> \"2016-06-05 22:22:23\" OR nickname = \"lsenger\" OR date_of_birth <> \"2003-01-16 06:29:11\" AND date_left_staff = \"2018-03-08 04:23:14\" OR middle_name = \"Maiya\" OR last_name <> \"Turner\" AND \"staff_address_id\" > 13"} {"question": "What are the aircraft IDs that appear in either the aircraft table or the airport_aircraft table, and have an ID greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qrox2_5.png", "TableImg_Gfi5o_4.png"], "original_data_index": 6143, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the aircraft IDs that are less than 2 in the aircraft table, but not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Slxh0_5.png", "TableImg_J56lw_4.png"], "original_data_index": 6145, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the document IDs that are either document ID 20 or have a copy number less than 5, an employee ID not equal to 8, and a draft number greater than 17, or are document ID 12 with other details not equal to \"m\", a shipping agent code not equal to \"FE\", and a document type code not equal to \"Hard Drive\", or a document status code not equal to \"working\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["10"], ["12"], ["15"], ["17"], ["20"], ["25"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_R58x7_4.png", "TableImg_8w309_15.png"], "original_data_index": 6144, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" = 20 OR \"copy_number\" < 5 AND \"employee_id\" != 8 AND \"draft_number\" > 17 UNION SELECT document_id FROM Documents WHERE \"document_id\" = 12 AND other_details <> \"m\" AND shipping_agent_code != \"FE\" AND document_type_code <> \"Hard Drive\" OR document_status_code != \"working\""} {"question": "What are the aircraft IDs that are less than 5 in the aircraft table, combined with the aircraft IDs that are greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kdsjh_5.png", "TableImg_De1i6_4.png"], "original_data_index": 6146, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the customer IDs of customers who have address ID 1 and are not customer ID 1, or whose status is not \"Bad Customer\" and email is \"nichole59@example.com\", or whose cell phone number is \"200.830.8723\", or whose first name is not \"Sigrid\", combined with the customer IDs from lessons that are not at time \"6\" and not on \"2018-03-03 15:10:16\", or whose status is not \"Completed\", or whose price is not 199.0?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_E2a81_15.png", "TableImg_C5wac_15.png"], "original_data_index": 6147, "original_sql": "SELECT customer_id FROM Customers WHERE \"customer_address_id\" = 1 AND \"customer_id\" != 1 OR customer_status_code != \"Bad Customer\" AND email_address = \"nichole59@example.com\" OR cell_mobile_phone_number = \"200.830.8723\" OR first_name != \"Sigrid\" UNION SELECT customer_id FROM Lessons WHERE lesson_time != \"6\" AND lesson_date <> \"2018-03-03 15:10:16\" OR lesson_status_code != \"Completed\" OR \"price\" != 199.0"} {"question": "What are the phone numbers and vote IDs from the VOTES table, excluding those with phone number 7148407040 and vote ID 1, combined with the phone numbers and vote IDs where the vote ID is 5 or greater, or the phone number is less than 5112677315, the state is not NJ, the creation date is not March 9, 2018 at 7:03:36 PM, and the contestant number is 2?", "answer": {"columns": ["phone_number", "vote_id"], "index": [0, 1], "data": [["5112677315", "5"], ["6209222712", "3"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_53cr6_4.png", "TableImg_Lwn6p_4.png"], "original_data_index": 6148, "original_sql": "SELECT phone_number, vote_id FROM VOTES WHERE \"phone_number\" != 7148407040 AND \"vote_id\" != 1 UNION SELECT phone_number, vote_id FROM VOTES WHERE \"vote_id\" >= 5 OR \"phone_number\" < 5112677315 AND state != \"NJ \" AND created <> \"2018-03-09 19:03:36\" AND \"contestant_number\" = 2"} {"question": "What are the aircraft IDs, excluding ID 5, from the aircraft table, combined with aircraft IDs less than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6z4zk_5.png", "TableImg_84s3g_4.png"], "original_data_index": 6149, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are greater than or equal to 1 but not found in the school bus table with IDs less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6wkrn_12.png", "TableImg_59xtf_5.png"], "original_data_index": 6150, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs that are either less than or equal to 2, or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qp5xl_5.png", "TableImg_Eux4h_4.png"], "original_data_index": 6151, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are greater than 6 but not present in the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wz0zy_12.png", "TableImg_9y9fb_5.png"], "original_data_index": 6152, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are not 9, and which driver IDs are 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tcnow_12.png", "TableImg_317wu_5.png"], "original_data_index": 6153, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 6 from the driver table and driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mh8dd_12.png", "TableImg_F1jbt_5.png"], "original_data_index": 6140, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the smallest aircraft ID that is less than or equal to 13, but not the smallest ID of an aircraft with a distance of at least 1504, a name of \"Airbus A319\", or an ID greater than 11?", "answer": {"columns": ["MIN(aid)"], "index": [0], "data": [["14"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Kj4g0_16.png", "TableImg_Jxmlk_16.png"], "original_data_index": 6157, "original_sql": "SELECT MIN(aid) FROM aircraft WHERE \"aid\" <= 13 NOT IN (SELECT MIN(aid) FROM aircraft WHERE \"distance\" >= 1504 OR name = \"Airbus A319\" OR \"aid\" > 11)"} {"question": "What are the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs greater than 2 that are also in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lmyfg_5.png", "TableImg_Q6mq0_4.png"], "original_data_index": 6158, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which club IDs meet at least one of the following conditions: the club ID is less than or equal to 3, the start year is not 2000, or the region is France; or, the club ID is less than or equal to 5, the rank is less than 1 and the points are not 139, or the small silver count is greater than or equal to 4?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_3jpfa_6.png", "TableImg_0djm1_6.png"], "original_data_index": 6159, "original_sql": "SELECT Club_ID FROM club WHERE \"Club_ID\" <= 3 OR \"Start_year\" <> 2000 OR Region = \"France\" UNION SELECT Club_ID FROM match_result WHERE \"Club_ID\" <= 5 OR \"Rank\" < 1 AND \"Points\" != 139 OR \"Small_Silver\" >= 4"} {"question": "What are the aircraft IDs that are not equal to 1 and are present in the aircraft table but not in the airport_aircraft table with IDs greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yvcwe_5.png", "TableImg_Twn9d_4.png"], "original_data_index": 6160, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the driver IDs that are either 6 or less than 7, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ica6y_12.png", "TableImg_0jrhv_5.png"], "original_data_index": 6161, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the driver IDs that are less than or equal to 10 in the driver table, but not present in the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hkmlg_12.png", "TableImg_I36ug_5.png"], "original_data_index": 6154, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the rank, user ID, and item ID for reviews where the user ID is at least 2, the item ID is greater than 5, and the rating is 5 or higher, and also for reviews where the user ID is greater than 2 and the rating is less than 5, or the rank is not 3 and the associated ID is not 4, or the item ID is greater than 1?", "answer": {"columns": ["rank", "u_id", "i_id"], "index": [0, 1], "data": [["6", "2", "7"], ["7", "2", "7"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Kboun_7.png", "TableImg_Lo1nn_7.png"], "original_data_index": 6162, "original_sql": "SELECT rank, u_id, i_id FROM review WHERE \"u_id\" >= 2 AND \"i_id\" > 5 AND \"rating\" >= 5 INTERSECT SELECT rank, u_id, i_id FROM review WHERE \"u_id\" > 2 AND \"rating\" < 5 OR \"rank\" != 3 AND \"a_id\" <> 4 OR \"i_id\" > 1"} {"question": "What are the vehicle details for vehicles with IDs less than 2, but not including \"Truck\"?", "answer": {"columns": ["vehicle_details"], "index": [0], "data": [["Van"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_7k0cp_3.png", "TableImg_Yxvja_3.png"], "original_data_index": 6163, "original_sql": "SELECT vehicle_details FROM Vehicles WHERE \"vehicle_id\" < 2 INTERSECT SELECT vehicle_details FROM Vehicles WHERE vehicle_details != \"Truck\""} {"question": "Which driver IDs are less than or equal to 6 but not present in the school bus table with driver IDs greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Im1jy_12.png", "TableImg_Ub65g_5.png"], "original_data_index": 6164, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are less than 4 but not equal to 4, considering only those present in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mtnh8_12.png", "TableImg_D9hpc_5.png"], "original_data_index": 6165, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs that are either less than or equal to 8 in the driver table or less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hcl6h_12.png", "TableImg_Gei3z_5.png"], "original_data_index": 6166, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs, excluding driver ID 1, are present in both the driver and school bus tables, but with school bus driver IDs limited to those less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gjz5z_12.png", "TableImg_4u3tn_5.png"], "original_data_index": 6167, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the aircraft IDs that are equal to 4 but not equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L8qtf_5.png", "TableImg_1f301_4.png"], "original_data_index": 6168, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Asg03_12.png", "TableImg_Vhyqa_5.png"], "original_data_index": 6169, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are equal to 10 but not less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8882w_12.png", "TableImg_Qe8qh_5.png"], "original_data_index": 6170, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What are the aircraft IDs that appear in both the aircraft table with an ID of 2 or greater and the airport_aircraft table with an ID greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kxher_5.png", "TableImg_P7fcz_4.png"], "original_data_index": 6171, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the document IDs where the draft number isn't 1 and the employee ID is less than 2, or where the document ID is greater than 2, combined with the document IDs from draft documents that don't have \"w\" as draft details or have a draft number less than 17?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["20"], ["1"], ["10"], ["1"], ["1"], ["2"], ["2"], ["4"], ["7"], ["10"], ["12"], ["12"], ["13"], ["13"], ["14"], ["17"], ["20"], ["23"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_U1nb0_4.png", "TableImg_4cvm9_15.png"], "original_data_index": 6172, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"draft_number\" != 1 AND \"employee_id\" < 2 OR \"document_id\" > 2 UNION ALL SELECT document_id FROM Document_Drafts WHERE draft_details != \"w\" OR \"draft_number\" < 17"} {"question": "What are the counts of rankings and names, the average creation year, the department ID, and the average budget in billions for departments where the department ID is 15, the name isn't \"Interior\", or the creation year isn't \"1889\", combined with the same information for departments where the number of employees is greater than 71436, the name isn't \"Commerce\", or the budget in billions is at least 11.1?", "answer": {"columns": ["COUNT(Ranking)", "COUNT(Name)", "AVG(Creation)", "Department_ID", "AVG(Budget_in_Billions)"], "index": [0, 1], "data": [["15", "15", "1918.6666666667", "1", "99.164"], ["12", "12", "1936.5833333333", "2", "121.7166666667"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Fjv9i_15.png", "TableImg_L1a94_15.png"], "original_data_index": 6173, "original_sql": "SELECT COUNT(Ranking), COUNT(Name), AVG(Creation), Department_ID, AVG(Budget_in_Billions) FROM department WHERE \"Department_ID\" = 15 OR Name <> \"Interior\" OR Creation <> \"1889\" UNION ALL SELECT COUNT(Ranking), COUNT(Name), AVG(Creation), Department_ID, AVG(Budget_in_Billions) FROM department WHERE \"Num_Employees\" > 71436.0 AND Name <> \"Commerce\" OR \"Budget_in_Billions\" >= 11.1"} {"question": "What are the aircraft IDs that are less than 2, and also the aircraft ID that is 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2yi64_5.png", "TableImg_C5wdl_4.png"], "original_data_index": 6174, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs, excluding ID 10, are found in the 'driver' table, and also which driver IDs, excluding ID 3, are found in the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yig7r_12.png", "TableImg_Wy6v6_5.png"], "original_data_index": 6175, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs, excluding ID 10, are associated with either drivers or school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vbdlu_12.png", "TableImg_Ic8e0_5.png"], "original_data_index": 6176, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which member IDs are associated with card number LCB7 or are not level 4, but are not member IDs less than 4 in the purchase records?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_Hqs10_10.png", "TableImg_0uc6a_8.png"], "original_data_index": 6179, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number = \"LCB7\" OR \"Level\" != 4 EXCEPT SELECT Member_ID FROM purchase WHERE \"Member_ID\" < 4"} {"question": "What are the aircraft IDs greater than 2, and also what are the aircraft IDs greater than 5, considering both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N3aw5_5.png", "TableImg_Sgxg2_4.png"], "original_data_index": 6180, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the driver IDs greater than 9, and also any driver IDs from school buses that are not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qx50t_12.png", "TableImg_Qflx1_5.png"], "original_data_index": 6181, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are greater than 7, or which driver IDs are less than or equal to 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xydzf_12.png", "TableImg_Dp0ir_5.png"], "original_data_index": 6182, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What is the maximum branch ID and the card number for branches that are not in London and are on Oaks Crescent with a branch ID of 2 or higher and a level of 2 or higher, or are in Columbia, South Carolina, opened in a year other than 2013, and have a card number that is not RE95?", "answer": {"columns": ["MAX(T1.Branch_ID)", "Card_Number"], "index": [0], "data": [["", ""]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_Rmtvp_8.png", "TableImg_Ceh58_10.png"], "original_data_index": 6183, "original_sql": "SELECT MAX(T1.Branch_ID), T2.Card_Number FROM branch as T1 JOIN member as T2 ON T1.Name = T2.Name WHERE City <> \"London\" AND Address_road = \"Oaks Crescent\" AND \"Branch_ID\" >= 2 AND \"Level\" >= 2 OR Hometown = \"Columbia, South Carolina\" AND Open_year <> \"2013\" AND Card_Number <> \"RE95\""} {"question": "What are the aircraft IDs, excluding aircraft ID 4, from the aircraft table, combined with aircraft IDs less than 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9npsx_5.png", "TableImg_M22wv_4.png"], "original_data_index": 6156, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What is the minimum payment method code for direct debit payments made before a certain date and for amounts under 4032.33, excluding the minimum payment method code for payments not equal to 4610.26 and not from customer 3?", "answer": {"columns": ["MIN(payment_method_code)"], "index": [0], "data": [["Direct Debit"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_7a3qp_15.png", "TableImg_7le2t_15.png"], "original_data_index": 6185, "original_sql": "SELECT MIN(payment_method_code) FROM Customer_Payments WHERE payment_method_code = \"Direct Debit\" AND datetime_payment <> \"2018-02-27 20:08:53\" AND \"amount_payment\" < 4032.33 EXCEPT SELECT MIN(payment_method_code) FROM Customer_Payments WHERE \"amount_payment\" <> 4610.26 AND \"customer_id\" <> 3"} {"question": "What are the driver IDs, excluding driver ID 4, and also the driver IDs less than 10, from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J04jg_12.png", "TableImg_Z177r_5.png"], "original_data_index": 6186, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the driver IDs that are less than 3, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_61sq2_12.png", "TableImg_C86it_5.png"], "original_data_index": 6187, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are equal to 11 but not less than 4, considering driver IDs from the 'driver' table and excluding those from the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7hpky_12.png", "TableImg_29sja_5.png"], "original_data_index": 6188, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are equal to 2, but not equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E5xwn_12.png", "TableImg_Qis5k_5.png"], "original_data_index": 6189, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the state/province/county, city, address counts, country, maximum zip/postcode, and building number for addresses that are not in the USA or have an address ID greater than 1, are in Louisiana, and have a zip code other than 75074, excluding those with a zip code other than 08938 or an address ID not equal to 4?", "answer": {"columns": ["state_province_county", "city", "COUNT(address_id)", "country", "MAX(zip_postcode)", "line_1_number_building"], "index": [0], "data": [["Louisiana", "New Bernieceburgh", "1", "USA", "38197", "7089 Mueller Forks"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_T2mh0_15.png", "TableImg_Izkf9_15.png"], "original_data_index": 6190, "original_sql": "SELECT state_province_county, city, COUNT(address_id), country, MAX(zip_postcode), line_1_number_building FROM Addresses WHERE country <> \"USA\" OR \"address_id\" > 1 AND state_province_county = \"Louisiana\" AND zip_postcode != \"75074\" EXCEPT SELECT state_province_county, city, COUNT(address_id), country, MAX(zip_postcode), line_1_number_building FROM Addresses WHERE zip_postcode != \"08938\" OR \"address_id\" != 4"} {"question": "What is the average District ID for districts with a city area less than 12.0 and a city population greater than 328512.0, excluding District ID 12 and districts headquartered in Jhang City, combined with the average District ID for store districts where the store ID is not 1 and the District ID is 15?", "answer": {"columns": ["AVG(District_ID)"], "index": [0, 1], "data": [[""], ["15.0"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_2ztol_15.png", "TableImg_Cecra_5.png"], "original_data_index": 6177, "original_sql": "SELECT AVG(District_ID) FROM district WHERE \"City_Area\" < 12.0 AND \"City_Population\" > 328512.0 AND \"District_ID\" != 12 AND Headquartered_City != \"Jhang City\" UNION ALL SELECT AVG(District_ID) FROM store_district WHERE \"Store_ID\" <> 1 AND \"District_ID\" = 15"} {"question": "What are the aircraft IDs that appear in the aircraft table with an ID greater than 1, but not in the airport_aircraft table with an ID of 5 or more?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zeigq_5.png", "TableImg_Ore22_4.png"], "original_data_index": 6194, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are greater than or equal to 8 but not present in the school bus table with driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R7651_12.png", "TableImg_Eeevg_5.png"], "original_data_index": 6195, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What is the minimum grade and the sum of school IDs for private schools, schools not in 4th grade, schools not named Punahou School, schools with school ID 1, or schools not in Honolulu, Hawaii, combined with the minimum grade and sum of school IDs for schools not in Jakarta, Indonesia?", "answer": {"columns": ["MIN(Grade)", "SUM(School_ID)"], "index": [0, 1], "data": [["1st-3rd grade", "28"], ["5th-12th grade", "23"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Zmxf8_7.png", "TableImg_Dyuod_7.png"], "original_data_index": 6196, "original_sql": "SELECT MIN(Grade), SUM(School_ID) FROM school WHERE Type = \"Private\" OR Grade != \"4th grade\" OR School != \"Punahou School\" OR \"School_ID\" = 1 OR Location <> \"Honolulu, Hawaii\" UNION ALL SELECT MIN(Grade), SUM(School_ID) FROM school WHERE Location <> \"Jakarta, Indonesia\""} {"question": "What are the IDs of drivers who are either in the driver table or the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G3ksc_12.png", "TableImg_0t40m_5.png"], "original_data_index": 6198, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the club IDs that are either less than 3 or belong to BK H\u00e4cken and started before the year 2000, and also have a coach who is not male?", "answer": {"columns": ["Club_ID"], "index": [0], "data": [["1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Sdyjb_6.png", "TableImg_9ci41_5.png"], "original_data_index": 6192, "original_sql": "SELECT Club_ID FROM club WHERE \"Club_ID\" < 3 OR Club_name = \"BK H\u00e4cken\" AND \"Start_year\" < 2000 INTERSECT SELECT Club_ID FROM coach WHERE Gender != \"M\""} {"question": "Which district IDs have a city population that is not 89380, but are not associated with any store with an ID of 5 or higher?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Wbbgl_15.png", "TableImg_6ihxu_5.png"], "original_data_index": 6200, "original_sql": "SELECT District_ID FROM district WHERE \"City_Population\" != 89380.0 EXCEPT SELECT District_ID FROM store_district WHERE \"Store_ID\" >= 5"} {"question": "Which employee IDs are not from Bath or not named Jason Hobson (excluding employee ID 3), or were awarded in a year other than 2015?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["1"], ["10"], ["4"], ["7"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Zfp7g_10.png", "TableImg_Irzkd_6.png"], "original_data_index": 6201, "original_sql": "SELECT Employee_ID FROM employee WHERE City != \"Bath\" OR Name != \"Jason Hobson\" AND \"Employee_ID\" <> 3 UNION SELECT Employee_ID FROM evaluation WHERE Year_awarded <> \"2015\""} {"question": "What are the aircraft IDs that are less than 5, and also the aircraft ID that is equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9oo4f_5.png", "TableImg_Nob4l_4.png"], "original_data_index": 6202, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the district and store IDs for districts greater than 11, and also for districts that are not 4?", "answer": {"columns": ["District_ID", "Store_ID"], "index": [0, 1], "data": [["15", "1"], ["15", "2"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_D7mmu_5.png", "TableImg_U3x2c_5.png"], "original_data_index": 6203, "original_sql": "SELECT District_ID, Store_ID FROM store_district WHERE \"District_ID\" > 11 INTERSECT SELECT District_ID, Store_ID FROM store_district WHERE \"District_ID\" <> 4"} {"question": "How many documents have a draft number of 8 or less and a copy number that is not 10, excluding those with a copy number less than 5?", "answer": {"columns": ["COUNT(document_id)"], "index": [0], "data": [["3"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_Bb6o2_8.png", "TableImg_4vu29_8.png"], "original_data_index": 6204, "original_sql": "SELECT COUNT(document_id) FROM Draft_Copies WHERE \"draft_number\" <= 8 AND \"copy_number\" <> 10 EXCEPT SELECT COUNT(document_id) FROM Draft_Copies WHERE \"copy_number\" < 5"} {"question": "What are the album IDs of albums by artists with IDs less than 114 that are not Reggae albums?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_E05b5_347.png", "TableImg_2a8ld_25.png"], "original_data_index": 6205, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" < 114 INTERSECT SELECT id FROM genres WHERE name != \"Reggae\""} {"question": "What are the aircraft IDs, excluding aircraft ID 3, that are not present in the airport_aircraft table with aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gp0db_5.png", "TableImg_Psizc_4.png"], "original_data_index": 6206, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the aircraft IDs that are not 4, and also the aircraft IDs less than 5, considering both aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B41y1_5.png", "TableImg_Y5b6e_4.png"], "original_data_index": 6207, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the driver IDs that are either 12 or greater, or less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y9g69_12.png", "TableImg_9csqh_5.png"], "original_data_index": 6208, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are less than 6 but are not present in the school bus table with driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0zlkg_12.png", "TableImg_Q1dx9_5.png"], "original_data_index": 6199, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the IDs of players who have an ID of 10 and more than 8734 votes, or are not male and not named Judy Wasylycia-Leis? Also, what are the IDs of players who started coaching after 2011, or have a player ID greater than 14, or have a coach ID less than or equal to 2?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["10"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_Urd33_14.png", "TableImg_Dmmc2_7.png"], "original_data_index": 6212, "original_sql": "SELECT Player_ID FROM player WHERE \"Player_ID\" = 10 AND \"Votes\" > 8734 OR Gender != \"M\" AND Player_name != \"Judy Wasylycia-Leis\" UNION SELECT Player_ID FROM player_coach WHERE \"Starting_year\" > 2011 OR \"Player_ID\" > 14 OR \"Coach_ID\" <= 2"} {"question": "What are the driver IDs that are less than 7 and also appear in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kokx5_12.png", "TableImg_J9k35_5.png"], "original_data_index": 6213, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are not 12, and which driver ID is 9, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sg4w1_12.png", "TableImg_Ee32s_5.png"], "original_data_index": 6214, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the district IDs, excluding district 11, that have a store ID of 1 or less, combined with the district IDs that don't have a store ID of 3?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["15"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_Xd0ur_5.png", "TableImg_Pu5ep_5.png"], "original_data_index": 6215, "original_sql": "SELECT District_ID FROM store_district WHERE \"District_ID\" != 11 AND \"Store_ID\" <= 1 UNION SELECT District_ID FROM store_district WHERE \"Store_ID\" <> 3"} {"question": "What amenity feature types are available, excluding those with feature ID 2, descriptions other than \"Air Conditioning.\", and names other than \"Pool\", combined with all amenity feature types from the feature type reference table?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Amenity"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Oe36w_3.png", "TableImg_R3gii_2.png"], "original_data_index": 6216, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE \"feature_id\" != 2 AND feature_type_code = \"Amenity\" AND feature_description <> \"Air Conditioning.\" AND feature_name <> \"Pool\" UNION ALL SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code = \"Amenity\""} {"question": "What are the aircraft IDs greater than 2, combined with aircraft IDs from airport records that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J6z8h_5.png", "TableImg_Dazrs_4.png"], "original_data_index": 6217, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Which driver IDs are less than 12 but not equal to 9, considering only driver IDs from the driver table and excluding those from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1x1gu_12.png", "TableImg_2sd03_5.png"], "original_data_index": 6218, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are both less than or equal to 5 and present in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ia6fy_12.png", "TableImg_0luc7_5.png"], "original_data_index": 6219, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the other details and name of the employee named Haley, excluding those details and names of employees with an ID greater than 5 and a role code of PT?", "answer": {"columns": ["other_details", "employee_name"], "index": [0], "data": [["b", "Haley"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_9enpr_6.png", "TableImg_Iumdk_6.png"], "original_data_index": 6220, "original_sql": "SELECT other_details, employee_name FROM Employees WHERE employee_name = \"Haley\" EXCEPT SELECT other_details, employee_name FROM Employees WHERE \"employee_id\" > 5 AND role_code = \"PT\""} {"question": "What are the IDs of drivers, excluding driver ID 4, and also the IDs of school bus drivers with IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xdi7q_12.png", "TableImg_5unyn_5.png"], "original_data_index": 6221, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are both greater than or equal to 7 in the driver table and greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Onjnj_12.png", "TableImg_88kbb_5.png"], "original_data_index": 6222, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs, excluding driver 7, that are present in both the driver and school bus tables, excluding driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lfv59_12.png", "TableImg_7u94a_5.png"], "original_data_index": 6223, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 10 from the driver table and driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jzt5m_12.png", "TableImg_Hja3h_5.png"], "original_data_index": 6224, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the maximum copy and draft numbers for each document, considering drafts numbered 12 or higher, combined with the maximum copy and draft numbers for each document excluding document ID 2?", "answer": {"columns": ["MAX(copy_number)", "document_id", "MAX(draft_number)"], "index": [0], "data": [["15", "10", "20"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_1tuf7_8.png", "TableImg_73cay_8.png"], "original_data_index": 6225, "original_sql": "SELECT MAX(copy_number), document_id, MAX(draft_number) FROM Draft_Copies WHERE \"draft_number\" >= 12 UNION SELECT MAX(copy_number), document_id, MAX(draft_number) FROM Draft_Copies WHERE \"document_id\" <> 2"} {"question": "What are the document IDs that meet both of the following conditions? First, they were either checked out by employee 2 with a copy number less than 5 or have a draft number less than 20 and a document ID greater than 2. Second, they have a document status that isn't \"done\" and other details that aren't \"b\", or have a shipping agent code of \"SH\", or a receipt date that isn't \"2005-09-30 00:10:02\" and a receipt number that isn't \"55\" and a document ID less than or equal to 25.", "answer": {"columns": ["document_id"], "index": [0, 1], "data": [["2"], ["20"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Px973_4.png", "TableImg_1kcph_15.png"], "original_data_index": 6209, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"employee_id\" = 2 AND \"copy_number\" < 5 OR \"draft_number\" < 20 AND \"document_id\" > 2 INTERSECT SELECT document_id FROM Documents WHERE document_status_code <> \"done\" AND other_details <> \"b\" OR shipping_agent_code = \"SH\" OR receipt_date <> \"2005-09-30 00:10:02\" AND receipt_number <> \"55\" AND \"document_id\" <= 25"} {"question": "What are the aircraft IDs less than 4 from the aircraft table, combined with the aircraft IDs less than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M3x9i_5.png", "TableImg_Awper_4.png"], "original_data_index": 6211, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs greater than 11 from the driver table, combined with the driver IDs less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hcrwl_12.png", "TableImg_Ofmk2_5.png"], "original_data_index": 6229, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the IDs of books that satisfy either of these conditions: the writer is not Timothy Truman, or the number of issues is less than 5 and the book ID is less than 2 and the title is not \"The Black Lamb\"; and also satisfy at least one of these conditions: the price is not 2000000.0, or the publication date is not June 2006 and the publication ID is less than or equal to 5, or the publisher is not Pearson?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["7"], ["10"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_8d41f_10.png", "TableImg_X0evp_7.png"], "original_data_index": 6230, "original_sql": "SELECT Book_ID FROM book WHERE Writer != \"Timothy Truman\" OR \"Issues\" < 5.0 AND \"Book_ID\" < 2 AND Title <> \"The Black Lamb\" INTERSECT SELECT Book_ID FROM publication WHERE \"Price\" <> 2000000.0 OR Publication_Date <> \"June 2006\" AND \"Publication_ID\" <= 5 OR Publisher != \"Pearson\""} {"question": "Which driver IDs are equal to 5, and which driver IDs are greater than 10, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cr5qp_12.png", "TableImg_Qowoi_5.png"], "original_data_index": 6231, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which car makers are listed in the car makers table, excluding the one with ID 1, and also which makers are listed in the model list table where the maker ID is 18 or the model is not \"cadillac\"?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55], "data": [["volkswagen"], ["bmw"], ["gm"], ["ford"], ["chrysler"], ["citroen"], ["nissan"], ["fiat"], ["honda"], ["mazda"], ["daimler benz"], ["opel"], ["peugeaut"], ["renault"], ["saab"], ["subaru"], ["toyota"], ["triumph"], ["volvo"], ["kia"], ["hyundai"], ["1"], ["2"], ["3"], ["4"], ["5"], ["4"], ["6"], ["7"], ["8"], ["6"], ["9"], ["5"], ["10"], ["11"], ["12"], ["13"], ["13"], ["5"], ["8"], ["4"], ["14"], ["15"], ["6"], ["4"], ["16"], ["17"], ["18"], ["19"], ["20"], ["2"], ["21"], ["22"], ["23"], ["6"], ["19"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Js8jv_22.png", "TableImg_Oy0jo_36.png"], "original_data_index": 6232, "original_sql": "SELECT Maker FROM car_makers WHERE \"Id\" <> 1 UNION ALL SELECT Maker FROM model_list WHERE \"Maker\" = 18 OR Model <> \"cadillac\""} {"question": "Which driver IDs are less than 10 but not equal to 7, considering only the driver IDs present in the 'driver' table and excluding those in the 'school_bus' table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yckgn_12.png", "TableImg_R1ejw_5.png"], "original_data_index": 6236, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the names and IDs of features that aren't \"Burglar Alarm\" and don't have an ID of 2, combined with the names and IDs of features that don't have an ID of 4, aren't of type \"Amenity\", aren't described as \"Swimming Pool.\", and aren't named \"AirCon\"?", "answer": {"columns": ["feature_name", "feature_id"], "index": [0], "data": [["Pool", "3"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_Sp5xd_3.png", "TableImg_Ooajx_3.png"], "original_data_index": 6237, "original_sql": "SELECT feature_name, feature_id FROM Other_Available_Features WHERE feature_description <> \"Burglar Alarm\" AND \"feature_id\" <> 2 UNION SELECT feature_name, feature_id FROM Other_Available_Features WHERE \"feature_id\" != 4 AND feature_type_code != \"Amenity\" AND feature_description <> \"Swimming Pool.\" AND feature_name <> \"AirCon\""} {"question": "Which member IDs meet any of the following criteria: their card number isn't RT91 and their level is greater than 6, or their name is Trevard Lindley, or their hometown is Jacksonville, Florida; or, they have a purchase at branch 2, or their total purchase weight is less than or equal to 232.09 pounds?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["4"], ["6"], ["2"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_3jp0g_10.png", "TableImg_7y33k_8.png"], "original_data_index": 6238, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number != \"RT91\" AND \"Level\" > 6 OR Name = \"Trevard Lindley\" OR Hometown = \"Jacksonville, Florida\" UNION ALL SELECT Member_ID FROM purchase WHERE Branch_ID = \"2\" OR \"Total_pounds\" <= 232.09"} {"question": "What are the IDs of drivers who are not driver ID 8, and also the IDs of school bus drivers who are not driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z85r2_12.png", "TableImg_19hfp_5.png"], "original_data_index": 6239, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the average album titles and IDs for albums where the artist ID is not 272 and the album ID is less than 178, combined with the average album titles and IDs for employees in Calgary who are not IT Staff and whose email isn't margaret@chinookcorp.com, or who are not from Canada, or whose postal code isn't T2P 2T3, or whose phone number isn't +1 (403) 263-4423 and whose ID is less than 3, or whose fax isn't +1 (403) 262-3322, or whose last name isn't Callahan and whose address isn't 7727B 41 Ave and whose first name is Michael, or whose reports to is 2, or whose hire date isn't May 3, 2003 and whose state is AB?", "answer": {"columns": ["AVG(title)", "id"], "index": [0], "data": [["0", "1"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_S71e1_347.png", "TableImg_Vytct_8.png"], "original_data_index": 6240, "original_sql": "SELECT AVG(title), id FROM albums WHERE \"artist_id\" != 272 AND \"id\" < 178 UNION SELECT AVG(title), id FROM employees WHERE city = \"Calgary\" AND title <> \"IT Staff\" AND email <> \"margaret@chinookcorp.com\" OR country != \"Canada\" OR postal_code <> \"T2P 2T3\" AND phone != \"+1 (403) 263-4423\" AND \"id\" < 3 OR fax <> \"+1 (403) 262-3322\" OR last_name != \"Callahan\" AND address <> \"7727B 41 Ave\" AND first_name = \"Michael\" OR \"reports_to\" = 2.0 OR hire_date <> \"2003-05-03 00:00:00\" AND state = \"AB\""} {"question": "How many car makers are not \"daimler benz\" or are from country \"4\" and are named \"General Motors\", combined with the number of cars where the number of cylinders is 6 or less, the weight is 1985, the horsepower isn't \"75\", and the year is before 1982, or the ID is greater than 361?", "answer": {"columns": ["COUNT(Id)"], "index": [0, 1], "data": [["21"], ["49"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_7dr9v_22.png", "TableImg_K7pj8_406.png"], "original_data_index": 6241, "original_sql": "SELECT COUNT(Id) FROM car_makers WHERE Maker != \"daimler benz\" OR Country = \"4\" AND FullName = \"General Motors\" UNION ALL SELECT COUNT(Id) FROM cars_data WHERE \"Cylinders\" <= 6 AND \"Weight\" = 1985 AND Horsepower <> \"75\" AND \"Year\" < 1982 OR \"Id\" > 361"} {"question": "What are the aircraft IDs that are both less than 2 and also less than 5, considering only the aircraft IDs present in the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mu0qy_5.png", "TableImg_5fgqq_4.png"], "original_data_index": 6242, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the smallest document IDs from the draft documents where the draft number is greater than 9 or the document ID is less than or equal to 4, excluding the smallest document IDs from the mailed documents where the mailing date is not \"2007-01-01 22:32:11\" and the address ID is not 3?", "answer": {"columns": ["MIN(document_id)"], "index": [0], "data": [["1"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Uyq2n_15.png", "TableImg_0md80_14.png"], "original_data_index": 6243, "original_sql": "SELECT MIN(document_id) FROM Document_Drafts WHERE \"draft_number\" > 9 OR \"document_id\" <= 4 EXCEPT SELECT MIN(document_id) FROM Documents_Mailed WHERE mailing_date != \"2007-01-01 22:32:11\" AND \"mailed_to_address_id\" <> 3"} {"question": "What are the IDs of drivers, excluding driver ID 4, and the IDs of school bus drivers, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Voghq_12.png", "TableImg_9kjpp_5.png"], "original_data_index": 6244, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are less than 4, but not also aircraft IDs that are 2 or less, considering only the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rwm8s_5.png", "TableImg_S5n2l_4.png"], "original_data_index": 6245, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the names and market values of companies that either don't have a company ID of 18, are headquartered in China, don't have profits of 15.7 billion, or have a market value of 154.8 billion, or that have a market value less than 178.7 billion, profits of at least 14.2 billion, are not headquartered in the UK, are named \"Industrial and Commercial Bank of China\", or have a company ID of 16?", "answer": {"columns": ["Name", "Market_Value_in_Billion"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["Agricultural Bank of China", "154.8"], ["BP", "147.4"], ["Berkshire Hathaway", "202.2"], ["Chevron", "218.0"], ["China Construction Bank", "201.9"], ["Citigroup", "107.5"], ["ExxonMobil", "407.4"], ["Gazprom", "159.8"], ["General Electric", "213.7"], ["HSBC", "164.3"], ["Industrial and Commercial Bank of China", "237.4"], ["JPMorgan Chase", "170.1"], ["PetroChina", "294.7"], ["Petrobras", "180.0"], ["Royal Dutch Shell", "227.6"], ["Total", "132.4"], ["Volkswagen Group", "79.5"], ["Walmart", "208.4"], ["Wells Fargo", "178.7"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_J7tph_19.png", "TableImg_Wyhbf_19.png"], "original_data_index": 6246, "original_sql": "SELECT Name, Market_Value_in_Billion FROM company WHERE \"Company_ID\" != 18.0 OR Headquarters = \"China\" OR \"Profits_in_Billion\" <> 15.7 OR \"Market_Value_in_Billion\" = 154.8 UNION SELECT Name, Market_Value_in_Billion FROM company WHERE \"Market_Value_in_Billion\" < 178.7 OR \"Profits_in_Billion\" >= 14.2 OR Headquarters != \"UK\" OR Name = \"Industrial and Commercial Bank of China\" OR \"Company_ID\" = 16.0"} {"question": "What is the average employee ID from the circulation history where the draft number is less than 17, combined with the average employee ID from the employees table where the employee name is not Koby or other details are not h?", "answer": {"columns": ["AVG(employee_id)"], "index": [0, 1], "data": [["1.5"], ["5.0"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_Lb4ua_4.png", "TableImg_8gh34_6.png"], "original_data_index": 6247, "original_sql": "SELECT AVG(employee_id) FROM Circulation_History WHERE \"draft_number\" < 17 UNION ALL SELECT AVG(employee_id) FROM Employees WHERE employee_name <> \"Koby\" OR other_details <> \"h\""} {"question": "What is the total of the department names where the department ID is 1 and the number of employees is not 109832, or the budget is not 11.1, or the creation year is 1849, excluding the total of department names where the budget is 44.6 and the department ID is less than 7?", "answer": {"columns": ["SUM(Name)"], "index": [0], "data": [["0"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_5shfo_15.png", "TableImg_391ij_15.png"], "original_data_index": 6248, "original_sql": "SELECT SUM(Name) FROM department WHERE \"Department_ID\" = 1 AND \"Num_Employees\" <> 109832.0 OR \"Budget_in_Billions\" <> 11.1 OR Creation = \"1849\" EXCEPT SELECT SUM(Name) FROM department WHERE \"Budget_in_Billions\" = 44.6 AND \"Department_ID\" < 7"} {"question": "What is the average bonus for each year, excluding 2016, and what is the average bonus for 2016, excluding employee 4, based on the evaluation data?", "answer": {"columns": ["Year_awarded", "AVG(Bonus)"], "index": [0, 1], "data": [["2011", "3150"], ["2016", "3450"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_7ktoy_6.png", "TableImg_Fijbv_6.png"], "original_data_index": 6249, "original_sql": "SELECT Year_awarded, AVG(Bonus) FROM evaluation WHERE Year_awarded <> \"2016\" UNION SELECT Year_awarded, AVG(Bonus) FROM evaluation WHERE Year_awarded = \"2016\" AND Employee_ID != \"4\""} {"question": "What are the aircraft IDs that appear in both the aircraft table with an ID of 2 or greater and the airport_aircraft table with an ID of 3 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_35w7x_5.png", "TableImg_Gokub_4.png"], "original_data_index": 6250, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the aircraft IDs that are less than or equal to 3, excluding those aircraft IDs that are not equal to 3 and appear in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nnvfq_5.png", "TableImg_Gzqpo_4.png"], "original_data_index": 6254, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the driver IDs, excluding ID 11, from the driver table, combined with the driver IDs, excluding ID 7, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U5keb_12.png", "TableImg_Tdzj0_5.png"], "original_data_index": 6255, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are greater than or equal to 1, and also the aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D43b2_5.png", "TableImg_Er4jy_4.png"], "original_data_index": 6256, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are less than 12 but not equal to 9, considering only the driver IDs present in the driver table and excluding those in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mw3lw_12.png", "TableImg_Xs91w_5.png"], "original_data_index": 6257, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs, excluding ID 9, from the driver table, combined with the driver IDs, starting from ID 10, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rrkdq_12.png", "TableImg_Lf5uq_5.png"], "original_data_index": 6258, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs that are greater than or equal to 9, and also the driver IDs from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gw1eh_12.png", "TableImg_84zgm_5.png"], "original_data_index": 6259, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are greater than or equal to 4, but not driver IDs less than 3, considering driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1pnd1_12.png", "TableImg_78ji0_5.png"], "original_data_index": 6260, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the aircraft IDs that are less than 3 in the aircraft table, but not present in the airport_aircraft table with IDs greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J7jq3_5.png", "TableImg_Ihh7c_4.png"], "original_data_index": 6261, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the driver IDs that are either 2 or 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ibwyi_12.png", "TableImg_9qvq2_5.png"], "original_data_index": 6262, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the member IDs of Matt Lentz who don't have the card number SLB51, and also the member IDs of those who made a purchase with a total of 232.09 pounds?", "answer": {"columns": ["Member_ID"], "index": [0, 1], "data": [["10"], ["6"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_W81tk_10.png", "TableImg_Zodma_8.png"], "original_data_index": 6263, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number != \"SLB51\" AND Name = \"Matt Lentz\" UNION ALL SELECT Member_ID FROM purchase WHERE \"Total_pounds\" = 232.09"} {"question": "What are the driver IDs that appear in both the driver and school bus tables, where the driver ID is less than or equal to 8 in the driver table and greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Js0r1_12.png", "TableImg_Zjf3s_5.png"], "original_data_index": 6264, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are either driver ID 3 or any school bus driver ID that is not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M6mrl_12.png", "TableImg_W6v4r_5.png"], "original_data_index": 6265, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are less than 12 but not equal to 9, considering only the driver IDs present in the driver table, but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xfc6f_12.png", "TableImg_Ub1lp_5.png"], "original_data_index": 6266, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the aircraft IDs that appear in both the aircraft table and the airport_aircraft table, where the aircraft ID is greater than or equal to 2 in the aircraft table and less than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qollo_5.png", "TableImg_20x2i_4.png"], "original_data_index": 6267, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the aircraft IDs that are either less than or equal to 3 in the aircraft table, or less than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L82y3_5.png", "TableImg_Sj8ki_4.png"], "original_data_index": 6268, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What is the maximum disk loading and the ID, from the aircraft and airport aircraft tables, where the aircraft ID matches?", "answer": {"columns": ["Max_disk_Loading", "ID"], "index": [0, 1, 2, 3], "data": [["15 lb/ft\u00b2 (72 kg/m\u00b2)", "1"], ["2.6 lb/ft\u00b2 (14 kg/m\u00b2)", "2"], ["3.7 lb/ft\u00b2 (18 kg/m\u00b2)", "3"], ["8.8 lb/ft\u00b2 (43 kg/m\u00b2)", "4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Trtv6_5.png", "TableImg_9fwfy_4.png"], "original_data_index": 6270, "original_sql": "SELECT T1.Max_disk_Loading, T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the aircraft IDs, excluding ID 1, that are present in both the aircraft and airport_aircraft tables, excluding ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zryr2_5.png", "TableImg_Jcwrm_4.png"], "original_data_index": 6269, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which head IDs are both from Florida, have an ID of 8, are younger than 69, or are not named Dudley Hart, and also belong to a department other than department 2?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Syr8p_10.png", "TableImg_4n9g1_5.png"], "original_data_index": 6271, "original_sql": "SELECT head_ID FROM head WHERE born_state = \"Florida\" AND \"head_ID\" = 8 OR \"age\" < 69.0 OR name != \"Dudley Hart\" INTERSECT SELECT head_ID FROM management WHERE \"department_ID\" <> 2"} {"question": "What are the driver IDs that are both less than 10 in the driver table and less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5yhy8_12.png", "TableImg_9jotn_5.png"], "original_data_index": 6276, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which club IDs meet either of the following conditions: the club ID is greater than 1, the club description is \"Venture capital fund for student business.\", or the club name is \"Hopkins Student Enterprises\"; or, the member's position in the club is not \"Teaching Coordinator\"?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Wdm2t_4.png", "TableImg_Cavuv_4.png"], "original_data_index": 6277, "original_sql": "SELECT ClubID FROM Club WHERE \"ClubID\" > 1 OR ClubDesc = \"Venture capital fund for student business.\" OR ClubName = \"Hopkins Student Enterprises\" UNION SELECT ClubID FROM Member_of_club WHERE Position != \"Teaching Coordinator\""} {"question": "What are the driver IDs that are both greater than or equal to 1 in the driver table and less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4rr1h_12.png", "TableImg_Agg03_5.png"], "original_data_index": 6278, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the user IDs from the reviews where the article ID is 7 or less and the item ID is 1, or the rating is 10 or higher, or the rank is 6 or less, combined with the user IDs from the user accounts where the name is not \"Roxi\" and the user ID is not 2?", "answer": {"columns": ["u_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["1"], ["2"], ["2"], ["1"], ["2"], ["1"], ["3"], ["4"], ["5"], ["7"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Dcitb_7.png", "TableImg_5leqv_7.png"], "original_data_index": 6279, "original_sql": "SELECT u_id FROM review WHERE \"a_id\" <= 7 AND \"i_id\" = 1 OR \"rating\" >= 10 OR \"rank\" <= 6 UNION ALL SELECT u_id FROM useracct WHERE name != \"Roxi\" AND \"u_id\" != 2"} {"question": "Which driver IDs are not equal to 4 and are not present in the school bus table with driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U7afm_12.png", "TableImg_2p95c_5.png"], "original_data_index": 6280, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are less than 4, either from the driver table or the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qwrzs_12.png", "TableImg_X23sy_5.png"], "original_data_index": 6281, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs, excluding driver ID 3, and also the driver IDs greater than or equal to 4, considering both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8znfe_12.png", "TableImg_38v5t_5.png"], "original_data_index": 6282, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs that are less than 2, and what are the driver IDs that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6kvv2_12.png", "TableImg_S7w1s_5.png"], "original_data_index": 6283, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which aircraft IDs are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 2 from both?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ai6gv_5.png", "TableImg_Am2e2_4.png"], "original_data_index": 6284, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the aircraft IDs that are less than 4 and also appear in the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nkl0j_5.png", "TableImg_032ow_4.png"], "original_data_index": 6285, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the IDs of drivers, excluding driver 9, and the IDs of school buses, excluding bus 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ci09_12.png", "TableImg_Ik81o_5.png"], "original_data_index": 6286, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are in the driver table but not in the school bus table, excluding driver ID 2 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sw34m_12.png", "TableImg_Zeu5o_5.png"], "original_data_index": 6287, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "For each nationality, excluding Russians and those born on August 8, 1986, or with a height greater than 207.0, or named \"Roman Bragin\", show the maximum People ID, the count of names, the count of birth dates, and the sum of heights, but only if the count of names is at most 1, or the sum of heights isn't 182.0, or the maximum People ID is greater than 2. Also, for people named \"Maksim Botin\" who weren't born on January 22, 1987, or whose height is 205.0 and People ID isn't 3, show the same information grouped by nationality, but only if the maximum People ID isn't 7. Combine both sets of results.", "answer": {"columns": ["Nationality", "MAX(People_ID)", "COUNT(Name)", "COUNT(Birth_Date)", "SUM(Height)"], "index": [0, 1], "data": [["Bulgaria", "2", "1", "1", "182"], ["Russia", "3", "1", "1", "187"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_1njbx_7.png", "TableImg_Cjwvo_7.png"], "original_data_index": 6288, "original_sql": "SELECT Nationality, MAX(People_ID), COUNT(Name), COUNT(Birth_Date), SUM(Height) FROM people WHERE Nationality != \"Russia\" OR Birth_Date <> \"August 8, 1986\" AND Name = \"Roman Bragin\" OR \"Height\" > 207.0 GROUP BY Nationality HAVING COUNT(Name) <= 1 OR SUM(Height) != 182.0 AND COUNT(Birth_Date) != 1 OR MAX(People_ID) > 2 UNION SELECT Nationality, MAX(People_ID), COUNT(Name), COUNT(Birth_Date), SUM(Height) FROM people WHERE Name = \"Maksim Botin\" AND Birth_Date <> \"January 22, 1987\" OR \"Height\" = 205.0 AND \"People_ID\" != 3 GROUP BY Nationality HAVING MAX(People_ID) != 7"} {"question": "What are the draft details for documents that have a document ID other than 4 and a draft number less than 1, and also have draft details that are not \"m\" and a document ID less than 12?", "answer": {"columns": ["draft_details"], "index": [0], "data": [["e"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_2qntp_15.png", "TableImg_Hg7cw_15.png"], "original_data_index": 6289, "original_sql": "SELECT draft_details FROM Document_Drafts WHERE \"document_id\" != 4 AND \"draft_number\" < 1 INTERSECT SELECT draft_details FROM Document_Drafts WHERE draft_details != \"m\" AND \"document_id\" < 12"} {"question": "Which driver IDs are less than 4 but not equal to 4, considering only the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7q0mw_12.png", "TableImg_Edyi6_5.png"], "original_data_index": 6300, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 3, and those from the school bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_084pe_12.png", "TableImg_6j1t6_5.png"], "original_data_index": 5077, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the names of employees who either have an ID of 1 and don't live in Wasps, or are older than 29, or are not named Louis Deacon, but only if those names are also of employees named Andrew Sheridan who either live in Wasps or are not 32 years old?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Andrew Sheridan"], ["George Chuter"], ["Jason Hobson"], ["Lee Mears"], ["Louis Deacon"], ["Mark Regan"], ["Matt Stevens"], ["Phil Vickery"], ["Tim Payne"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_V2wjb_10.png", "TableImg_V1j4p_10.png"], "original_data_index": 5990, "original_sql": "SELECT Name FROM employee WHERE \"Employee_ID\" = 1 AND City <> \"Wasps\" OR \"Age\" > 29 OR Name != \"Louis Deacon\" INTERSECT SELECT Name FROM employee WHERE Name = \"Andrew Sheridan\" AND City = \"Wasps\" OR \"Age\" != 32"} {"question": "What is the highest document ID in the Document Drafts table, excluding document ID 7 and where the draft number is 10 or less, except for the highest document ID in the Documents table where the receipt date isn't September 27, 1982 at 2:52 PM, the document type code isn't \"Hard Drive\", the receipt number isn't \"114\", the shipping agent code isn't \"FE\", the other details aren't \"z\", or the document ID is less than 14?", "answer": {"columns": ["MAX(document_id)"], "index": [0], "data": [["23"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Fqlt4_15.png", "TableImg_985xw_15.png"], "original_data_index": 5991, "original_sql": "SELECT MAX(document_id) FROM Document_Drafts WHERE \"document_id\" <> 7 AND \"draft_number\" <= 10 EXCEPT SELECT MAX(document_id) FROM Documents WHERE receipt_date != \"1982-09-27 14:52:15\" AND document_type_code != \"Hard Drive\" OR receipt_number <> \"114\" AND shipping_agent_code != \"FE\" OR other_details != \"z\" OR \"document_id\" < 14"} {"question": "Can you give me the IDs of flights that either didn't originate from airport 9, or didn't have Thompson as the pilot, or had a velocity of at least 135, or occurred on May 19, 1964 and didn't have company ID 5, or had an altitude greater than 3650, but only if those IDs also belong to operate_companies that are either named Dragonair or were incorporated in Hong Kong and have an ID of 10?", "answer": {"columns": ["id"], "index": [0, 1], "data": [["4"], ["10"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_O026c_13.png", "TableImg_Kqt74_14.png"], "original_data_index": 5110, "original_sql": "SELECT id FROM flight WHERE \"airport_id\" <> 9 OR Pilot != \"Thompson\" OR \"Velocity\" >= 135.0 OR Date = \"May 19, 1964\" AND \"company_id\" <> 5 OR \"Altitude\" > 3650.0 INTERSECT SELECT id FROM operate_company WHERE name = \"Dragonair\" OR Incorporated_in = \"Hong Kong\" AND \"id\" = 10"} {"question": "Can you give me the IDs of drivers that are both less than or equal to 11 and also less than 4, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_112bv_12.png", "TableImg_Qm35a_5.png"], "original_data_index": 5992, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8 from the driver table and excluding driver ID 7 from the school_bus table, combining the results and removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Blvz6_12.png", "TableImg_W38p1_5.png"], "original_data_index": 6000, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list all the aircraft IDs, combining those from the aircraft table where the ID is not 3 with those from the airport_aircraft table where the ID is not 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_478z1_5.png", "TableImg_S43g8_4.png"], "original_data_index": 6003, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are both greater than or equal to 8 in the driver table and greater than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zuuzb_12.png", "TableImg_2j5ju_5.png"], "original_data_index": 6030, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the largest aircraft ID from the aircraft table where the aircraft is not a CH-53E Super Stallion or the total disk area is not 8,495 ft\u00b2 (789 m\u00b2), but only considering aircraft IDs that are also greater than or equal to 3 in the airport aircraft table?", "answer": {"columns": ["MAX(Aircraft_ID)"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8jgw9_5.png", "TableImg_Bhz2j_4.png"], "original_data_index": 6031, "original_sql": "SELECT MAX(Aircraft_ID) FROM aircraft WHERE Aircraft <> \"CH-53E Super Stallion\" OR Total_disk_area != \"8,495 ft\u00b2 (789 m\u00b2)\" INTERSECT SELECT MAX(Aircraft_ID) FROM airport_aircraft WHERE \"Aircraft_ID\" >= 3"} {"question": "Which driver IDs are not equal to 8 and are also not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L3p9g_12.png", "TableImg_Og5f5_5.png"], "original_data_index": 6062, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the IDs from the flight table where either the velocity isn't 135 and the ID is less than 1, or the date is March 28, 1966, or the pilot is Peterson, the vehicle flight number is M2-F1 #14, the airport ID is greater than 3, and the altitude is 0; and also give me all the IDs from the operate_company table where the group equity shareholding isn't 100 or the ID is greater than 10 and the type isn't \"Joint Venture\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["12"], ["1"], ["2"], ["3"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_O1v14_13.png", "TableImg_U0i1p_14.png"], "original_data_index": 6047, "original_sql": "SELECT id FROM flight WHERE \"Velocity\" <> 135.0 AND \"id\" < 1 OR Date = \"March 28, 1966\" OR Pilot = \"Peterson\" AND Vehicle_Flight_number = \"M2-F1 #14\" AND \"airport_id\" > 3 AND \"Altitude\" = 0.0 UNION ALL SELECT id FROM operate_company WHERE \"Group_Equity_Shareholding\" != 100.0 OR \"id\" > 10 AND Type != \"Joint Venture\""} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are also in the school bus list, except for driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_If35w_12.png", "TableImg_4icwf_5.png"], "original_data_index": 6065, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 10 and also not equal to 7, considering only unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ybrv_12.png", "TableImg_Qaabr_5.png"], "original_data_index": 6135, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are also driver IDs greater than or equal to 3, considering drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uj9a9_12.png", "TableImg_3jsvf_5.png"], "original_data_index": 6155, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list the sales in billions, assets in billions, and industry for companies that either have assets over 340.5 billion and are not headquartered in China and are not in the Banking industry, or are not named Gazprom and have a Company ID of 13, or have sales of 102 billion, combined with companies that have sales over 447 billion, or profits not equal to 21.5 billion, or are in the Banking industry, or are not named Gazprom, or have a Company ID of 10 and are headquartered in the USA and have a market value not equal to 79.5 billion?", "answer": {"columns": ["Sales_in_Billion", "Assets_in_Billion", "Industry"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["62.4", "1563.9", "Banking"], ["68.7", "1637.8", "Banking"], ["82.6", "2039.1", "Banking"], ["87.6", "1313.9", "Banking"], ["102.0", "2550.0", "Banking"], ["102.6", "1873.9", "Banking"], ["110.8", "2265.8", "Banking"], ["117.6", "302.6", "Oil and gas"], ["143.7", "392.6", "Conglomerate"], ["145.9", "319.4", "Oil and gas"], ["147.3", "717.2", "Conglomerate"], ["216.2", "213.0", "Oil and gas"], ["221.9", "328.7", "Automotive"], ["236.3", "209.5", "Oil and gas"], ["310.1", "304.7", "Oil and gas"], ["375.5", "292.5", "Oil and gas"], ["433.5", "331.1", "Oil and gas"], ["447.0", "193.4", "Retailing"], ["470.2", "340.5", "Oil and gas"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_Thsi1_19.png", "TableImg_Aaj55_19.png"], "original_data_index": 6067, "original_sql": "SELECT Sales_in_Billion, Assets_in_Billion, Industry FROM company WHERE \"Assets_in_Billion\" > 340.5 AND Headquarters <> \"China\" AND Industry <> \"Banking\" OR Name <> \"Gazprom\" AND \"Company_ID\" = 13.0 OR \"Sales_in_Billion\" = 102.0 UNION SELECT Sales_in_Billion, Assets_in_Billion, Industry FROM company WHERE \"Sales_in_Billion\" > 447.0 OR \"Profits_in_Billion\" != 21.5 OR Industry = \"Banking\" OR Name != \"Gazprom\" OR \"Company_ID\" = 10.0 AND Headquarters = \"USA\" AND \"Market_Value_in_Billion\" != 79.5"} {"question": "Which driver IDs are greater than 8 and also not equal to 3, considering only the unique driver IDs in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hqeys_12.png", "TableImg_7zn6d_5.png"], "original_data_index": 6138, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Could you list the driver IDs that are not equal to 1 and also less than or equal to 9, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_90as9_12.png", "TableImg_Agwpk_5.png"], "original_data_index": 6178, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list the other details and document IDs from the documents where the document description is \"y\" or the template ID is not 4, combined with the other details and document IDs from the paragraphs where the other details are \"None\" and the document ID is greater than 651512, or where the paragraph ID is less than or equal to 765713812 and the paragraph text is \"Fiji\"?", "answer": {"columns": ["Other_Details", "Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["", "0"], ["", "1"], ["", "3"], ["", "76"], ["", "80"], ["", "82"], ["", "2394"], ["", "3830"], ["", "33930"], ["", "50123"], ["", "651512"], ["", "3540024"], ["", "16514113"], ["", "385906526"], ["", "385906526"]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_34npa_15.png", "TableImg_We6gq_15.png"], "original_data_index": 6193, "original_sql": "SELECT Other_Details, Document_ID FROM Documents WHERE Document_Description = \"y\" OR \"Template_ID\" != 4 UNION ALL SELECT Other_Details, Document_ID FROM Paragraphs WHERE Other_Details = \"None\" AND \"Document_ID\" > 651512 OR \"Paragraph_ID\" <= 765713812 AND Paragraph_Text = \"Fiji\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10 and those from the school bus table that are greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Irr21_12.png", "TableImg_Kcime_5.png"], "original_data_index": 6191, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs that are less than 9 and also appear in the list of school bus driver IDs, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3oubx_12.png", "TableImg_Ygwm4_5.png"], "original_data_index": 6227, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs, excluding driver ID 8, are also driver ID 3 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_27n5r_12.png", "TableImg_9i7in_5.png"], "original_data_index": 6228, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uvcv0_12.png", "TableImg_Ij2s9_5.png"], "original_data_index": 6233, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me the IDs of drivers, up to ID 5, excluding the IDs of school bus drivers up to ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jnpvi_12.png", "TableImg_S6z7m_5.png"], "original_data_index": 6234, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those that are equal to 3 from the driver table, and those that are less than 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4omyl_12.png", "TableImg_Qjxqg_5.png"], "original_data_index": 6235, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me the zip code, building address, address ID, and state for all addresses where either the building address is not \"4834 Schaefer Light Suite 947\", or the city is not \"South Eugene\" and the state is not \"Georgia\", or the zip code is \"27559\" and the address ID is not 14, combined with all addresses where the country is not \"USA\"?", "answer": {"columns": ["zip_postcode", "line_1_number_building", "address_id", "state_province_county"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["5", "484 O'Hara Drive", "4", "Oregon"], ["8938", "00704 Zoe Alley", "3", "Georgia"], ["14445", "3904 Stroman Passage", "1", "Georgia"], ["22194", "053 Quigley Island", "2", "Kentucky"], ["27559", "354 Frederik Ridge", "5", "Ohio"], ["34975", "56461 Baumbach Well Suite 634", "7", "Washington"], ["38197", "7089 Mueller Forks", "12", "Louisiana"], ["43988", "9260 Streich Mountain", "15", "Kentucky"], ["61121", "4834 Schaefer Light Suite 947", "14", "Connecticut"], ["63768", "376 Kallie Tunnel Apt. 784", "6", "Connecticut"], ["75074", "43235 Jazmin Mountain Suite 251", "13", "Louisiana"], ["80376", "29085 Dejah Pine Suite 059", "8", "WestVirginia"], ["85954", "535 Ariel Brook", "9", "Maine"], ["95098", "2291 Larkin Ports", "10", "Idaho"], ["99903", "37698 Hahn Curve Apt. 572", "11", "Alabama"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Yoy5r_15.png", "TableImg_Qgq39_15.png"], "original_data_index": 6251, "original_sql": "SELECT zip_postcode, line_1_number_building, address_id, state_province_county FROM Addresses WHERE line_1_number_building != \"4834 Schaefer Light Suite 947\" OR city <> \"South Eugene\" AND state_province_county != \"Georgia\" OR zip_postcode = \"27559\" AND \"address_id\" != 14 UNION SELECT zip_postcode, line_1_number_building, address_id, state_province_county FROM Addresses WHERE country != \"USA\""} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not 12 with those from the school_bus table that are less than 7, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T8mlg_12.png", "TableImg_R8mbf_5.png"], "original_data_index": 6197, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the earliest alphabetically listed party in district 3, and what is the earliest alphabetically listed party that is not Democratic?", "answer": {"columns": ["MIN(Party)"], "index": [0, 1], "data": [["2"], ["Independence"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_K86zb_8.png", "TableImg_Cigkj_7.png"], "original_data_index": 6252, "original_sql": "SELECT MIN(Party) FROM election WHERE \"District\" = 3 UNION SELECT MIN(Party) FROM party WHERE Party <> \"Democratic\""} {"question": "Can you give me the IDs of drivers, up to ID 3, excluding the IDs of school bus drivers up to ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W5pyt_12.png", "TableImg_Lyg9h_5.png"], "original_data_index": 6253, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of People IDs from the people table, including those who graduated from a college in California but aren't from the United States, or whose People ID isn't 4, or whose age isn't 30, combined with those whose People ID isn't 5, didn't graduate from Northeastern, aren't from the United States, and aren't named Tim Naegeli?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["3"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_6y7xc_7.png", "TableImg_Rptwp_7.png"], "original_data_index": 6210, "original_sql": "SELECT People_ID FROM people WHERE Graduation_College = \"California\" AND Nationality != \"United States\" OR \"People_ID\" <> 4 OR \"Age\" <> 30 UNION ALL SELECT People_ID FROM people WHERE \"People_ID\" != 5 AND Graduation_College <> \"Northeastern\" AND Nationality != \"United States\" AND Name != \"Tim Naegeli\""} {"question": "Which driver IDs, excluding driver 11, are also school bus driver IDs, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uevpf_12.png", "TableImg_0silp_5.png"], "original_data_index": 6273, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are present in the aircraft table and also have an aircraft ID of 2 or greater in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cbot9_5.png", "TableImg_Bq550_4.png"], "original_data_index": 6272, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you list all the aircraft IDs, including those that appear with an ID of 3 in the aircraft table and those that appear with an ID of 1 or greater in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6wqr4_5.png", "TableImg_C0an3_4.png"], "original_data_index": 6274, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs are both greater than or equal to 3 and present in the driver table, and also less than 9 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iszv6_12.png", "TableImg_Gkabe_5.png"], "original_data_index": 6275, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver ID 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3gg81_12.png", "TableImg_G8mdz_5.png"], "original_data_index": 6290, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs less than 3 from the driver table, excluding any driver IDs that are equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uvr6e_12.png", "TableImg_Py8or_5.png"], "original_data_index": 6291, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, excluding driver ID 7, are not also driver IDs greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H0114_12.png", "TableImg_Hktsu_5.png"], "original_data_index": 6292, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs, excluding driver ID 9, are in the driver table but not in the school bus table if we only consider driver IDs less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hbdm3_12.png", "TableImg_Pqous_5.png"], "original_data_index": 6293, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What is the total driver ID for Democratic drivers who are 52 years old, excluding the total driver ID for school bus drivers who are not full-time, have worked for a number of years other than 3, have a driver ID of 10 or less, or have a school ID of 4 or less?", "answer": {"columns": ["SUM(Driver_ID)"], "index": [0], "data": [["18"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P0yvn_12.png", "TableImg_M3a3p_5.png"], "original_data_index": 6294, "original_sql": "SELECT SUM(Driver_ID) FROM driver WHERE Party = \"Dem\" AND \"Age\" = 52 EXCEPT SELECT SUM(Driver_ID) FROM school_bus WHERE If_full_time <> \"T\" OR \"Years_Working\" != 3 OR \"Driver_ID\" <= 10 OR \"School_ID\" <= 4"} {"question": "Can you give me a list of driver IDs that are less than 3, excluding any driver IDs that are 4 or greater, considering only the driver IDs that appear in the driver table and the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Renrw_12.png", "TableImg_40nsb_5.png"], "original_data_index": 6297, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 8 with those from the school bus table excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ft9e_12.png", "TableImg_2bfcv_5.png"], "original_data_index": 6296, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 12, and those from the school bus table where the ID is 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Egugs_12.png", "TableImg_J24sw_5.png"], "original_data_index": 6295, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are greater than 6 and also less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cuf6r_12.png", "TableImg_B2c2m_5.png"], "original_data_index": 6302, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, up to 5, that are in the driver table but not in the school bus table, where only driver IDs up to 4 are considered in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Svbfb_12.png", "TableImg_N2tws_5.png"], "original_data_index": 6303, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you tell me the locations and counties of schools that meet either of these sets of criteria: first, schools that aren't in Bremen, don't have Redskins as a mascot, are named New Prairie 1, aren't in IHSAA Football Class AAA, and have a school ID of 3; or schools where the enrollment is 316 and the county isn't 50 Marshall; or schools that aren't in IHSAA Class AAA; and also meet either of these sets of criteria: first, schools that aren't in Bourbon and are in 71 St. Joseph County; or schools where the enrollment is less than 852, aren't in IHSAA Football Class AAA, don't have a school ID of 2, and have Falcons as a mascot?", "answer": {"columns": ["Location", "County"], "index": [0], "data": [["Lakeville", "71 St. Joseph"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Vi2n7_8.png", "TableImg_95z8f_8.png"], "original_data_index": 6299, "original_sql": "SELECT Location, County FROM School WHERE Location != \"Bremen\" AND Mascot != \"Redskins\" AND School_name = \"New Prairie 1\" AND IHSAA_Football_Class <> \"AAA\" AND School_id = \"3\" OR \"Enrollment\" = 316 AND County <> \"50 Marshall\" OR IHSAA_Class <> \"AAA\" INTERSECT SELECT Location, County FROM School WHERE Location != \"Bourbon\" AND County = \"71 St. Joseph\" OR \"Enrollment\" < 852 AND IHSAA_Football_Class != \"AAA\" AND School_id != \"2\" AND Mascot = \"Falcons\""} {"question": "Which aircraft have an ID of 2, excluding any aircraft that are associated with airports and have an ID of 1 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8i50f_5.png", "TableImg_Xaex5_4.png"], "original_data_index": 6304, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of driver IDs that are less than 1 from the driver table, combined with a list of driver IDs that are 3 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Drym9_12.png", "TableImg_Nz3di_5.png"], "original_data_index": 6305, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs, excluding driver ID 11, are not also driver IDs, excluding driver ID 3, of school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Co462_12.png", "TableImg_1l05i_5.png"], "original_data_index": 6307, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 5 and not equal to 4, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gptje_12.png", "TableImg_K3ocr_5.png"], "original_data_index": 6306, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of document IDs from the Documents table where the other details are not \"x\", the receipt number is not \"61\", or the shipping agent code is not \"FE\", combined with a list of document IDs from the Documents_Mailed table where the mailing date is not January 14th, 1982 at 5:50:54 AM, the document ID is not 4, or the mailed to address ID is greater than 7?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Fszsw_15.png", "TableImg_Fxiw4_14.png"], "original_data_index": 6308, "original_sql": "SELECT document_id FROM Documents WHERE other_details <> \"x\" OR receipt_number != \"61\" OR shipping_agent_code <> \"FE\" UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date != \"1982-01-14 05:50:54\" AND \"document_id\" != 4 OR \"mailed_to_address_id\" > 7"} {"question": "Which aircraft, excluding aircraft ID 3, are also aircraft with ID 1 found at the airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1w73p_5.png", "TableImg_3bmwq_4.png"], "original_data_index": 6309, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What is the total of all contestant names excluding Kelly Clauss, combined with the total of all contestant names where the contestant number is 3 or greater, or the contestant name is not Allie Rogalski?", "answer": {"columns": ["SUM(contestant_name)"], "index": [0], "data": [["0"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_K9ras_11.png", "TableImg_Xaqh8_11.png"], "original_data_index": 6311, "original_sql": "SELECT SUM(contestant_name) FROM CONTESTANTS WHERE contestant_name != \"Kelly Clauss\" UNION SELECT SUM(contestant_name) FROM CONTESTANTS WHERE \"contestant_number\" >= 3 OR contestant_name <> \"Allie Rogalski\""} {"question": "Which schools that teach 1st to 3rd grade do not have a school bus driver with an ID other than 7 who has worked a number of years other than 3?", "answer": {"columns": ["School_ID"], "index": [0], "data": [["2"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_35x6u_7.png", "TableImg_3c6er_5.png"], "original_data_index": 6310, "original_sql": "SELECT School_ID FROM school WHERE Grade = \"1st-3rd grade\" EXCEPT SELECT School_ID FROM school_bus WHERE \"Driver_ID\" <> 7 AND \"Years_Working\" != 3"} {"question": "What are the aircraft IDs, greater than or equal to 5, that are present in the aircraft table but not in the airport_aircraft table, considering each aircraft ID only once in each table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K1tev_5.png", "TableImg_S039e_4.png"], "original_data_index": 6312, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 2, excluding those driver IDs that are also less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bs4j6_12.png", "TableImg_Oexy5_5.png"], "original_data_index": 6313, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the IDs of aircraft that either have a maximum gross weight of 1,370 lb (635 kg), or are not a Mil Mi-26 and also don't have a description of \"Tandem rotor helicopter\", or don't have a maximum disk loading of 2.6 lb/ft\u00b2 (14 kg/m\u00b2) or a total disk area of 497 ft\u00b2 (46.2 m\u00b2), but only if their Aircraft ID is not 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E2y4u_5.png", "TableImg_4cbj7_4.png"], "original_data_index": 6301, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Max_Gross_Weight = \"1,370 lb (635 kg)\" OR Aircraft <> \"Mil Mi-26\" AND Description != \"Tandem rotor helicopter\" OR Max_disk_Loading != \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" OR Total_disk_area != \"497 ft\u00b2 (46.2 m\u00b2)\" INTERSECT SELECT Aircraft_ID FROM airport_aircraft WHERE \"Aircraft_ID\" != 1"} {"question": "Can you give me a list of Store IDs for stores that are either named \"Neguac\" or have a ranking of 2 or higher, excluding \"Village Stores\", combined with a list of Store IDs from the store district table where the District ID is not 15?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Whoel_5.png", "TableImg_Lsixp_5.png"], "original_data_index": 6317, "original_sql": "SELECT Store_ID FROM store WHERE Type != \"Village Store\" AND Store_Name = \"Neguac\" OR \"Ranking\" >= 2 UNION SELECT Store_ID FROM store_district WHERE \"District_ID\" <> 15"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 7 and also not equal to 7, considering drivers from the driver table and the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2s2t2_12.png", "TableImg_Uhvx3_5.png"], "original_data_index": 6318, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are 11 or greater from the driver table, excluding any driver IDs greater than 9 that are in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wtlk7_12.png", "TableImg_Xv7gt_5.png"], "original_data_index": 6319, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you list all driver IDs that are less than 9 from the driver table, and combine that with the driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sa8t0_12.png", "TableImg_E7o54_5.png"], "original_data_index": 6320, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs, including those greater than 8 from the driver list and those equal to 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fcmcq_12.png", "TableImg_N5n4m_5.png"], "original_data_index": 6321, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What is the average document type code for overdue documents, or documents with a receipt number other than 37, a shipping agent code other than FE, a document type code other than Paper, and other details equal to \"r\", but only considering the average document type code that is also found in the reference document types where the description is not \"f\" and the code is not \"Hard Drive\"?", "answer": {"columns": ["AVG(document_type_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_5m84p_15.png", "TableImg_Unmj9_3.png"], "original_data_index": 6314, "original_sql": "SELECT AVG(document_type_code) FROM Documents WHERE document_status_code = \"overdue\" OR receipt_number != \"37\" AND shipping_agent_code <> \"FE\" AND document_type_code <> \"Paper\" AND other_details = \"r\" INTERSECT SELECT AVG(document_type_code) FROM Ref_Document_Types WHERE document_type_description != \"f\" AND document_type_code != \"Hard Drive\""} {"question": "Can you give me a list of driver IDs that are greater than or equal to 7, excluding any driver IDs less than or equal to 7 that are also in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4nkfz_12.png", "TableImg_Cvyvd_5.png"], "original_data_index": 6316, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 9, and those from the school bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6xkth_12.png", "TableImg_5vvmk_5.png"], "original_data_index": 6325, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list the aircraft IDs, first from the aircraft table where the ID is not equal to 1, and then from the airport_aircraft table where the ID is greater than 5, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bxzt1_5.png", "TableImg_Qvoqm_4.png"], "original_data_index": 6326, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you give me a list of driver IDs less than 12 that appear in the driver table, excluding those driver IDs less than 4 that are found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dk4op_12.png", "TableImg_52d36_5.png"], "original_data_index": 6327, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are both greater than 9 and not equal to 4, considering only the driver IDs that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mjm08_12.png", "TableImg_K9fqr_5.png"], "original_data_index": 6328, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are less than 2 from the driver table, combined with a list of driver IDs that are less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ywq5h_12.png", "TableImg_06nhh_5.png"], "original_data_index": 6329, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are both greater than 2 and also greater than or equal to 10 and appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mg8ag_12.png", "TableImg_Tbve3_5.png"], "original_data_index": 6330, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list all the copy numbers from the draft copies table where the document ID is less than or equal to 23, or the draft number is 17, and also include any copy numbers that are equal to 5?", "answer": {"columns": ["copy_number"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["5"], ["6"], ["10"], ["15"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_Pdiwg_8.png", "TableImg_Rp8md_8.png"], "original_data_index": 6331, "original_sql": "SELECT copy_number FROM Draft_Copies WHERE \"document_id\" <= 23 OR \"draft_number\" = 17 UNION SELECT copy_number FROM Draft_Copies WHERE \"copy_number\" = 5"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 5, that are present in the aircraft table but not in the airport_aircraft table where the aircraft ID is less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fhdc5_5.png", "TableImg_Hfw7k_4.png"], "original_data_index": 6322, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me the Club ID, Club name, and Start year for all clubs that are either in the UK, started in 2011 with a Club ID of 2 or greater, or have a name that is not AIK, combined with the Club ID, Club name, and Start year for all clubs not in France?", "answer": {"columns": ["Club_ID", "Club_name", "Start_year"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "AIK", "2009"], ["2", "BK H\u00e4cken", "1998"], ["3", "Djurg\u00e5rdens IF", "2005"], ["4", "Gefle IF", "2001"], ["5", "Halmstads BK", "2000"], ["6", "Helsingborgs IF", "2011"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Yj4xq_6.png", "TableImg_Rxdko_6.png"], "original_data_index": 6323, "original_sql": "SELECT Club_ID, Club_name, Start_year FROM club WHERE Region = \"UK\" OR \"Start_year\" = 2011 AND \"Club_ID\" >= 2 OR Club_name <> \"AIK\" UNION SELECT Club_ID, Club_name, Start_year FROM club WHERE Region <> \"France\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pxvg4_12.png", "TableImg_8mqit_5.png"], "original_data_index": 6332, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list the aircraft IDs, including aircraft ID 1 from the aircraft table and all aircraft IDs except 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rw22z_5.png", "TableImg_6cscf_4.png"], "original_data_index": 6334, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What is the difference between the number of available features that are not amenities or have a feature ID less than 3, and the number of property features for properties that are not property ID 12 and do not have the description \"quo\"?", "answer": {"columns": ["COUNT(feature_id)"], "index": [0], "data": [["2"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_E9b6g_3.png", "TableImg_Vc27m_15.png"], "original_data_index": 6333, "original_sql": "SELECT COUNT(feature_id) FROM Other_Available_Features WHERE feature_type_code <> \"Amenity\" OR \"feature_id\" < 3 EXCEPT SELECT COUNT(feature_id) FROM Other_Property_Features WHERE \"property_id\" != 12 AND property_feature_description != \"quo\""} {"question": "Can you give me a list of driver IDs that are greater than 9, excluding any driver IDs less than 7 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J14bm_12.png", "TableImg_R7hlv_5.png"], "original_data_index": 6335, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of aircraft IDs, including those that are equal to 3 from the aircraft table, and those that are less than or equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ryowq_5.png", "TableImg_5i9sl_4.png"], "original_data_index": 6336, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 12, and those from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V8fk9_12.png", "TableImg_Gu0zn_5.png"], "original_data_index": 6337, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you show me the Branch ID and Register Year from the membership register branch table, including entries where the Register Year is not 2017 or the Member ID is 8 or greater, combined with entries where the Member ID is greater than 5 or the Branch ID is not 4?", "answer": {"columns": ["Branch_ID", "Register_Year"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "2016"], ["1", "2017"], ["2", "2016"], ["4", "2016"], ["5", "2016"], ["6", "2017"], ["8", "2016"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Ooq9f_8.png", "TableImg_C79k9_8.png"], "original_data_index": 6338, "original_sql": "SELECT Branch_ID, Register_Year FROM membership_register_branch WHERE Register_Year <> \"2017\" OR \"Member_ID\" >= 8 UNION SELECT Branch_ID, Register_Year FROM membership_register_branch WHERE \"Member_ID\" > 5 OR Branch_ID <> \"4\""} {"question": "Can you list the aircraft IDs that appear more than once in the aircraft table, where the ID is greater than 1, combined with the aircraft IDs that appear more than once in the airport_aircraft table, where the ID is at least 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xxa4g_5.png", "TableImg_Ggvcn_4.png"], "original_data_index": 6339, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me the city, age, employee ID, and name of employees who are both not from Wasps and are 23 or younger, and also either have an employee ID of 8 or less, or are named Louis Deacon?", "answer": {"columns": ["City", "Age", "Employee_ID", "Name"], "index": [0], "data": [["Bristol", "23", "1", "George Chuter"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_4pil9_10.png", "TableImg_Dmp2j_10.png"], "original_data_index": 6341, "original_sql": "SELECT City, Age, Employee_ID, Name FROM employee WHERE City <> \"Wasps\" AND \"Age\" <= 23 INTERSECT SELECT City, Age, Employee_ID, Name FROM employee WHERE \"Employee_ID\" <= 8 OR Name = \"Louis Deacon\""} {"question": "Could you list the document IDs from the circulation history where the document ID is at least 1, the employee ID is at least 8, the copy number is not 4, and the draft number is 17, along with the document IDs from the documents mailed table where the mailing date is not April 1st, 1977 at 5:03 PM?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["20"], ["4"], ["4"], ["7"], ["10"], ["12"], ["12"], ["12"], ["13"], ["14"], ["20"], ["20"], ["23"], ["24"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Dxr7x_4.png", "TableImg_Pb4zb_14.png"], "original_data_index": 6343, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" >= 1 AND \"employee_id\" >= 8 AND \"copy_number\" <> 4 AND \"draft_number\" = 17 UNION ALL SELECT document_id FROM Documents_Mailed WHERE mailing_date != \"1977-04-01 17:03:50\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs, excluding driver ID 4, in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_66prv_12.png", "TableImg_Xjlp0_5.png"], "original_data_index": 6340, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the contestant number for Nita Coster, along with the contestant numbers of anyone who voted from a state other than California using the phone number 7148407040?", "answer": {"columns": ["contestant_number"], "index": [0, 1], "data": [["8"], ["3"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_4ycpq_11.png", "TableImg_Kfuj2_4.png"], "original_data_index": 6345, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = \"Nita Coster\" UNION ALL SELECT contestant_number FROM VOTES WHERE \"phone_number\" = 7148407040 AND state <> \"CA\""} {"question": "Can you give me a list of aircraft IDs that are less than 3, excluding any aircraft IDs that also appear in the airport aircraft list, except for aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7k5e1_5.png", "TableImg_7bx1z_4.png"], "original_data_index": 6347, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What is the smallest document ID from document drafts excluding those with draft number 12, combined with the smallest document ID from documents excluding those with a \"working\" status, or a receipt date other than \"1983-09-26 09:32:56\", or a document type other than \"Paper\" when the receipt number is not \"93\"?", "answer": {"columns": ["MIN(document_id)"], "index": [0], "data": [["1"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Qfj3m_15.png", "TableImg_7uv9o_15.png"], "original_data_index": 6342, "original_sql": "SELECT MIN(document_id) FROM Document_Drafts WHERE \"draft_number\" != 12 UNION SELECT MIN(document_id) FROM Documents WHERE document_status_code != \"working\" OR receipt_date != \"1983-09-26 09:32:56\" OR document_type_code <> \"Paper\" AND receipt_number != \"93\""} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 1, but also excluding any driver IDs that appear in the school_bus table and are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_51lpd_12.png", "TableImg_56zcn_5.png"], "original_data_index": 6348, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me the continent IDs and their corresponding continent names, excluding Australia, but also excluding the continent IDs and names where the continent ID is not 4?", "answer": {"columns": ["ContId", "MIN(Continent)"], "index": [0], "data": [["4", "africa"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_Oudge_5.png", "TableImg_0uz3w_5.png"], "original_data_index": 6350, "original_sql": "SELECT ContId, MIN(Continent) FROM continents WHERE Continent <> \"australia\" EXCEPT SELECT ContId, MIN(Continent) FROM continents WHERE \"ContId\" != 4"} {"question": "Can you list the car makers that are either \"ford\" and not from country \"3\" with an ID of 12, or are named \"Toyota\", and also list the makers from the model list where the model isn't \"renault\" and the maker is less than or equal to 17, or the model ID is greater than or equal to 23?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["toyota"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_C2d63_22.png", "TableImg_Zon28_36.png"], "original_data_index": 6349, "original_sql": "SELECT Maker FROM car_makers WHERE Country != \"3\" AND Maker = \"ford\" AND \"Id\" = 12 OR FullName = \"Toyota\" UNION SELECT Maker FROM model_list WHERE Model != \"renault\" AND \"Maker\" <= 17 OR \"ModelId\" >= 23"} {"question": "Can you give me a list of driver IDs from the driver table, where each ID is greater than 1, excluding any driver IDs that are also in the school_bus table and equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Swanu_12.png", "TableImg_B2vqs_5.png"], "original_data_index": 6351, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the first names of students who either don't have advisor 1121, or aren't student ID 1028, or aren't female, or have a major less than 600, but exclude the first names of students who either have an advisor less than or equal to 2311 and aren't male, or are not 27 years old, or are student ID 1010 or higher and named Dinesh?", "answer": {"columns": ["Fname"], "index": [0], "data": [["Bruce"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_2tisl_34.png", "TableImg_Vgsr1_34.png"], "original_data_index": 6352, "original_sql": "SELECT Fname FROM Student WHERE \"Advisor\" <> 1121 OR \"StuID\" <> 1028 OR Sex != \"F\" OR \"Major\" < 600 EXCEPT SELECT Fname FROM Student WHERE \"Advisor\" <= 2311 AND Sex <> \"M\" OR \"Age\" != 27 OR \"StuID\" >= 1010 AND Fname = \"Dinesh\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 2, and those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqz7c_12.png", "TableImg_Bhjk1_5.png"], "original_data_index": 6353, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Could you give me a list of member IDs that are both not equal to 3 in the membership register branch and also appear in the purchase table where either the total pounds is less than or equal to 232.09 and the member ID is less than or equal to 6, or the year is not 2018?", "answer": {"columns": ["Member_ID"], "index": [0, 1], "data": [["4"], ["6"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Aolyx_8.png", "TableImg_X1xum_8.png"], "original_data_index": 6355, "original_sql": "SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" <> 3 INTERSECT SELECT Member_ID FROM purchase WHERE \"Total_pounds\" <= 232.09 AND \"Member_ID\" <= 6 OR Year != \"2018\""} {"question": "Could you list the names of employees who are not 30 years old and have an employee ID less than 5, combined with the names of shops that are not in the Arto Tolsa Areena district, or don't have the name HJK, or aren't located in Kuopio, or have 3516 or more products, or have a shop ID less than 7 and are managed by Pekka Lyyski?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["FC Haka"], ["FC Honka"], ["FC Inter"], ["FC KooTeePee"], ["FC Lahti"], ["FF Jaro"], ["George Chuter"], ["HJK"], ["IFK Mariehamn"], ["KuPS"], ["Lee Mears"], ["Mark Regan"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_0g1wu_10.png", "TableImg_2xtim_9.png"], "original_data_index": 6354, "original_sql": "SELECT Name FROM employee WHERE \"Age\" != 30 AND \"Employee_ID\" < 5 UNION SELECT Name FROM shop WHERE District <> \"Arto Tolsa Areena\" OR Name != \"HJK\" OR Location <> \"Kuopio\" OR \"Number_products\" >= 3516 OR \"Shop_ID\" < 7 AND Manager_name = \"Pekka Lyyski\""} {"question": "Which driver IDs are equal to 5 in the driver table, but not less than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8ssvy_12.png", "TableImg_Z9pq7_5.png"], "original_data_index": 6356, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are less than 12, and also include driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nb27p_12.png", "TableImg_Egv0i_5.png"], "original_data_index": 6357, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are 12 or greater, excluding those driver IDs that are greater than 4 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tampj_12.png", "TableImg_Wzyzq_5.png"], "original_data_index": 6359, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me the school ID, average percentage of total budget budgeted, budgeted amount, maximum percentage of budget invested, and invested amount from the budget table, excluding the results where the year is 2006 or the invested amount is greater than 85249 and both the percentage of total budget budgeted and invested are greater than 2.0, but including only those entries where either the percentage of total budget invested is greater than 2.2, or the budgeted amount is not 6803 and the school ID is greater than or equal to 1, or the percentage of total budget budgeted is greater than or equal to 2.4 and the budget invested percentage is not 146.9?", "answer": {"columns": ["School_id", "AVG(total_budget_percent_budgeted)", "Budgeted", "MAX(Budget_invested_percent)", "Invested"], "index": [0], "data": [["1", "1.9500000000000002", "119527", "71.3", "85249"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Dgrh3_8.png", "TableImg_Ctbr6_8.png"], "original_data_index": 6358, "original_sql": "SELECT School_id, AVG(total_budget_percent_budgeted), Budgeted, MAX(Budget_invested_percent), Invested FROM budget WHERE \"total_budget_percent_invested\" > 2.2 OR \"Budgeted\" <> 6803 AND \"School_id\" >= 1 OR \"total_budget_percent_budgeted\" >= 2.4 AND Budget_invested_percent <> \"146.9\" EXCEPT SELECT School_id, AVG(total_budget_percent_budgeted), Budgeted, MAX(Budget_invested_percent), Invested FROM budget WHERE \"Year\" = 2006 OR \"Invested\" > 85249 AND \"total_budget_percent_budgeted\" > 2.0 AND \"total_budget_percent_invested\" > 2.0"} {"question": "Can you give me a list of driver IDs less than or equal to 9, excluding any driver IDs that appear on the school bus list, unless that driver ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G8r58_12.png", "TableImg_815ix_5.png"], "original_data_index": 6360, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the aircraft IDs that are greater than 1, and also list the aircraft IDs from the airport aircraft that are less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sib85_5.png", "TableImg_Dsheo_4.png"], "original_data_index": 6346, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 10, and those from the school bus table with driver IDs of 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I5dzv_12.png", "TableImg_O4c69_5.png"], "original_data_index": 6364, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 9, and those from the school bus table with driver IDs up to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Laddd_12.png", "TableImg_Obscj_5.png"], "original_data_index": 6365, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are both less than or equal to 5 in the driver table and less than 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1imh8_12.png", "TableImg_4lask_5.png"], "original_data_index": 6366, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the aircraft IDs that are less than or equal to 1 from the aircraft table, and also include the aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4v05j_5.png", "TableImg_4r0kf_4.png"], "original_data_index": 6367, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 12, and those from the school bus table that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nr0xs_12.png", "TableImg_Iuzy6_5.png"], "original_data_index": 6368, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are less than 5 and also not equal to 4, considering all driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ggtwe_12.png", "TableImg_Y3f96_5.png"], "original_data_index": 6369, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of customer IDs who didn't pay with direct debit, combined with a list of customer IDs from lessons taught by staff with an ID less than 8, for lesson ID 6, that didn't cost 199 dollars?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["5"], ["12"], ["13"], ["14"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_660sx_15.png", "TableImg_82zve_15.png"], "original_data_index": 6370, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE payment_method_code != \"Direct Debit\" UNION SELECT customer_id FROM Lessons WHERE \"staff_id\" < 8 AND \"lesson_id\" = 6 AND \"price\" != 199.0"} {"question": "What aircraft IDs, excluding ID 3, are present in the aircraft table and also have an ID of 2 or greater in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hdokg_5.png", "TableImg_Pa6hx_4.png"], "original_data_index": 6371, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What is the highest property ID from the Other_Property_Features table, excluding entries where the property feature description is \"hic\" and the property ID is 14, combined with the highest property ID from the Properties table where the first apartment feature is not \"aut\" and the date on the market is \"1993-08-04 10:49:04\", or the second house feature is \"None\", or the first shop feature is not \"None\" and the third field feature is \"None\"?", "answer": {"columns": ["MAX(property_id)"], "index": [0, 1], "data": [["14.0"], [""]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_3uxne_15.png", "TableImg_Bgswa_15.png"], "original_data_index": 6372, "original_sql": "SELECT MAX(property_id) FROM Other_Property_Features WHERE property_feature_description <> \"hic\" AND \"property_id\" = 14 UNION ALL SELECT MAX(property_id) FROM Properties WHERE apt_feature_1 <> \"aut\" AND date_on_market = \"1993-08-04 10:49:04\" OR hse_feature_2 = \"None\" OR shp_feature_1 != \"None\" AND fld_feature_3 = \"None\""} {"question": "Can you list all feature type names and codes, excluding those named \"Amenity, eg Pool.\" with the code \"Amenity\", and also excluding those with the code \"Amenity\" and named \"Securiyt, eg Burglar Alarm.\"?", "answer": {"columns": ["feature_type_name", "feature_type_code"], "index": [0], "data": [["Securiyt, eg Burglar Alarm.", "Security"]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Tdr56_2.png", "TableImg_Ml2as_2.png"], "original_data_index": 6373, "original_sql": "SELECT feature_type_name, feature_type_code FROM Ref_Feature_Types WHERE feature_type_name != \"Amenity, eg Pool.\" AND feature_type_code <> \"Amenity\" UNION ALL SELECT feature_type_name, feature_type_code FROM Ref_Feature_Types WHERE feature_type_code != \"Amenity\" AND feature_type_name <> \"Securiyt, eg Burglar Alarm.\""} {"question": "What are the average role codes and role descriptions for Proof Managers, excluding those with the role code \"PT\", combined with the average role codes and role descriptions for all other roles?", "answer": {"columns": ["AVG(role_code)", "role_description"], "index": [0, 1], "data": [["0", "Editor"], ["0", "Proof Manager"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Jwx2i_4.png", "TableImg_Mte06_4.png"], "original_data_index": 6374, "original_sql": "SELECT AVG(role_code), role_description FROM Roles WHERE role_code != \"PT\" AND role_description = \"Proof Manager\" UNION SELECT AVG(role_code), role_description FROM Roles WHERE role_description != \"Proof Manager\""} {"question": "Which driver IDs are both greater than 4 and also equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zu18e_12.png", "TableImg_Ndm41_5.png"], "original_data_index": 6375, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, excluding driver ID 9, are not also driver IDs of school buses where the school bus driver ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8qaxo_12.png", "TableImg_12cs9_5.png"], "original_data_index": 6376, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of all the driver IDs, excluding driver ID 3 from the driver table and excluding driver ID 4 from the school bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6azm9_12.png", "TableImg_5nneg_5.png"], "original_data_index": 6377, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list the names and codes of all shipping agents, excluding those with the description \"k\", and also excluding those named \"Fedex\"?", "answer": {"columns": ["shipping_agent_name", "shipping_agent_code"], "index": [0, 1, 2, 3], "data": [["Airline", "AL"], ["Ship", "SH"], ["UPS", "UP"], ["USPS", "US"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_P39f5_5.png", "TableImg_V1cfj_5.png"], "original_data_index": 6361, "original_sql": "SELECT shipping_agent_name, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description <> \"k\" UNION SELECT shipping_agent_name, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name != \"Fedex\""} {"question": "Can you give me the average RoomId, the sum of bedType, the maximum occupancy, the count of basePrice, and the number of beds for rooms that are not Queen bed type or have the name \"Mendicant with cryptic\" and have a base price that's not 100 or a RoomId that's not \"HBB\" or have 2 beds, but only if these results also include the average RoomId, the sum of bedType, the maximum occupancy, the count of basePrice, and the number of beds for rooms where the RoomId is not \"CAS\"?", "answer": {"columns": ["AVG(RoomId)", "SUM(bedType)", "maxOccupancy", "COUNT(basePrice)", "beds"], "index": [0], "data": [["0", "0", "2", "9", "1"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_Pd39a_10.png", "TableImg_Nguth_10.png"], "original_data_index": 6380, "original_sql": "SELECT AVG(RoomId), SUM(bedType), maxOccupancy, COUNT(basePrice), beds FROM Rooms WHERE bedType <> \"Queen\" OR roomName = \"Mendicant with cryptic\" AND \"basePrice\" <> 100 OR RoomId <> \"HBB\" OR \"beds\" = 2 INTERSECT SELECT AVG(RoomId), SUM(bedType), maxOccupancy, COUNT(basePrice), beds FROM Rooms WHERE RoomId <> \"CAS\""} {"question": "Can you give me a list of all driver IDs, excluding driver ID 7 from the driver table and excluding driver ID 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0e1dv_12.png", "TableImg_6lggo_5.png"], "original_data_index": 6382, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of Club IDs from clubs that are not named \"Bootup Baltimore\" and don't have a Club ID of 3, or have a description that isn't \"Venture capital fund for student business\", combined with a list of Club IDs from the Member_of_club table where the student ID is less than 1001?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Xwxm1_4.png", "TableImg_N2s07_4.png"], "original_data_index": 6381, "original_sql": "SELECT ClubID FROM Club WHERE ClubName != \"Bootup Baltimore\" AND \"ClubID\" != 3 OR ClubDesc != \"Venture capital fund for student business.\" UNION ALL SELECT ClubID FROM Member_of_club WHERE \"StuID\" < 1001"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 2, with those from the school bus table that are less than 4, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zd7kn_12.png", "TableImg_Ilbay_5.png"], "original_data_index": 6378, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs less than or equal to 9, excluding any driver IDs that are not equal to 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_75cjh_12.png", "TableImg_29sml_5.png"], "original_data_index": 6379, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the total of all document IDs mailed to addresses with an ID greater than 5, combined with the total of all document IDs for draft copies where the document ID is greater than 20 and the copy number is greater than 15?", "answer": {"columns": ["SUM(document_id)"], "index": [0, 1], "data": [[""], ["73.0"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_98qkv_14.png", "TableImg_Pvh4b_8.png"], "original_data_index": 6383, "original_sql": "SELECT SUM(document_id) FROM Documents_Mailed WHERE \"mailed_to_address_id\" > 5 UNION SELECT SUM(document_id) FROM Draft_Copies WHERE \"document_id\" > 20 AND \"copy_number\" > 15"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 8, combined with a list of driver IDs from the school_bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W6i1g_12.png", "TableImg_U9yaz_5.png"], "original_data_index": 6385, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of branch IDs, including those from branches located on Valleys Place or with a name other than Saint Amant, as well as branch IDs from the membership register branch table that are not equal to 4 and have a register year other than 2016?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["1"], ["6"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_36oc8_8.png", "TableImg_Oakz4_8.png"], "original_data_index": 6384, "original_sql": "SELECT Branch_ID FROM branch WHERE Address_road = \"Valleys Place\" OR Name <> \"Saint Amant\" UNION ALL SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID != \"4\" AND Register_Year <> \"2016\""} {"question": "Can you give me a list of driver IDs that are not equal to 4, excluding any driver IDs that are also greater than 4 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J1zld_12.png", "TableImg_2jbjf_5.png"], "original_data_index": 6386, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 8 and are not equal to 7, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fns6z_12.png", "TableImg_Aey9k_5.png"], "original_data_index": 6387, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 7, but only if they are not also driver IDs in the school bus table that are greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lovin_12.png", "TableImg_84v3a_5.png"], "original_data_index": 6388, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list all the continents, excluding Asia, where the continent ID is 1 or greater, but without including America?", "answer": {"columns": ["Continent"], "index": [0, 1, 2], "data": [["africa"], ["australia"], ["europe"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_S8xmf_5.png", "TableImg_34ptw_5.png"], "original_data_index": 6389, "original_sql": "SELECT Continent FROM continents WHERE Continent != \"asia\" AND \"ContId\" >= 1 EXCEPT SELECT Continent FROM continents WHERE Continent = \"america\""} {"question": "Which driver IDs appear in both the driver table, excluding driver ID 3, and the school_bus table, including only driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yqtfo_12.png", "TableImg_Odt5o_5.png"], "original_data_index": 6390, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of company names that are \"PetroChina\", along with a list of names from the people table where the People_ID is not 2 or the Nationality is not \"United States\"?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["PetroChina"], ["Reggie Lewis"], ["Tom Sheehey"], ["Darryl Kennedy"], ["David Butler"], ["Tim Naegeli"], ["Jerry Corcoran"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_Hfizr_19.png", "TableImg_6dogr_7.png"], "original_data_index": 6391, "original_sql": "SELECT Name FROM company WHERE Name = \"PetroChina\" UNION ALL SELECT Name FROM people WHERE \"People_ID\" != 2 OR Nationality <> \"United States\""} {"question": "Can you give me a list of student IDs who have a ragweed allergy, excluding student ID 1007, combined with a list of student IDs whose major is not 600?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["1010"], ["1011"], ["1012"], ["1013"], ["1024"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_7txfm_59.png", "TableImg_6g68t_34.png"], "original_data_index": 6392, "original_sql": "SELECT StuID FROM Has_Allergy WHERE Allergy = \"Ragweed\" AND \"StuID\" <> 1007 UNION ALL SELECT StuID FROM Student WHERE \"Major\" <> 600"} {"question": "What is the highest item ID for blue hoodies, excluding item ID 3, and what is the highest item ID for items that are not cups, excluding item ID 5?", "answer": {"columns": ["MAX(i_id)"], "index": [0], "data": [["6"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_W06vu_8.png", "TableImg_F2eo8_8.png"], "original_data_index": 6393, "original_sql": "SELECT MAX(i_id) FROM item WHERE \"i_id\" != 3 AND title = \"blue hoodie\" UNION SELECT MAX(i_id) FROM item WHERE \"i_id\" <> 5 AND title <> \"cup\""} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 3, combined with a list of driver IDs from the school_bus table where the ID is exactly 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_33hn0_12.png", "TableImg_Sq7v0_5.png"], "original_data_index": 6394, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are not 11 from the driver table, but only include those driver IDs that are also less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zfwzn_12.png", "TableImg_Toc1o_5.png"], "original_data_index": 6397, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me the names, birth dates, and heights of all people, including those who are not person number 2, or whose name is not Semen Poltavskiy and nationality is not Russia, or whose height is greater than 207, along with everyone else whose height is 207 or less?", "answer": {"columns": ["Name", "Birth_Date", "Height"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Aleksey Ostapenko", "May 26, 1986", "207"], ["Maksim Botin", "July 14, 1983", "194"], ["Roman Bragin", "April 17, 1987", "187"], ["Semen Poltavskiy", "February 8, 1981", "205"], ["Sergey Grankin", "January 22, 1987", "193"], ["Teodor Salparov", "August 16, 1982", "182"], ["Yevgeni Sivozhelez", "August 8, 1986", "196"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_2z4v5_7.png", "TableImg_Ijn6e_7.png"], "original_data_index": 6398, "original_sql": "SELECT Name, Birth_Date, Height FROM people WHERE \"People_ID\" != 2 OR Name != \"Semen Poltavskiy\" AND Nationality != \"Russia\" OR \"Height\" > 207.0 UNION SELECT Name, Birth_Date, Height FROM people WHERE \"Height\" <= 207.0"} {"question": "Can you list all aircraft IDs that are greater than 3, and also list all aircraft IDs from the airport aircraft that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tas3x_5.png", "TableImg_4ex9m_4.png"], "original_data_index": 6400, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you tell me the aircraft ID, the lowest maximum disk loading, the maximum gross weight, the total disk area, the description, and the average aircraft value for aircraft where either the maximum gross weight isn't 73,500 lb, the aircraft ID is 1, the maximum disk loading isn't 2.6 lb/ft\u00b2, the description is \"Tandem rotor helicopter\", the total disk area is 5,655 ft\u00b2, or the aircraft isn't a Robinson R-22, combined with the same information for aircraft where the total disk area isn't 4,900 ft\u00b2 and the description isn't \"Heavy-lift helicopter\"?", "answer": {"columns": ["Aircraft_ID", "MIN(Max_disk_Loading)", "Max_Gross_Weight", "Total_disk_area", "Description", "AVG(Aircraft)"], "index": [0, 1], "data": [["1", "2.6 lb/ft\u00b2 (14 kg/m\u00b2)", "1,370 lb (635 kg)", "497 ft\u00b2 (46.2 m\u00b2)", "Light utility helicopter", "0"], ["4", "14.5 lb/ft\u00b2 (71 kg/m\u00b2)", "123,500 lb (56,000 kg)", "8,495 ft\u00b2 (789 m\u00b2)", "Heavy-lift helicopter", "0"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Z5cie_5.png", "TableImg_0pvqw_5.png"], "original_data_index": 6399, "original_sql": "SELECT Aircraft_ID, MIN(Max_disk_Loading), Max_Gross_Weight, Total_disk_area, Description, AVG(Aircraft) FROM aircraft WHERE Max_Gross_Weight != \"73,500 lb (33,300 kg)\" AND \"Aircraft_ID\" = 1 OR Max_disk_Loading != \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" OR Description = \"Tandem rotor helicopter\" OR Total_disk_area = \"5,655 ft\u00b2 (526 m\u00b2)\" OR Aircraft != \"Robinson R-22\" UNION SELECT Aircraft_ID, MIN(Max_disk_Loading), Max_Gross_Weight, Total_disk_area, Description, AVG(Aircraft) FROM aircraft WHERE Total_disk_area != \"4,900 ft\u00b2 (460 m\u00b2)\" AND Description <> \"Heavy-lift helicopter\""} {"question": "Can you list all the driver IDs that are greater than or equal to 8 from the driver table, combined with all the driver IDs that are greater than or equal to 7 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wib7t_12.png", "TableImg_9s6bz_5.png"], "original_data_index": 6401, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What is the smallest school ID from the budget table where the school ID is 3, the year is 2004, or the invested amount is less than or equal to 95542, combined with the smallest school ID from the endowment table where the endowment ID is 2 and the amount is greater than 9.83, or the donator name is not Valverde, or the school ID is less than or equal to 2?", "answer": {"columns": ["MIN(School_id)"], "index": [0], "data": [["1"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_V303d_8.png", "TableImg_Yp30b_11.png"], "original_data_index": 6402, "original_sql": "SELECT MIN(School_id) FROM budget WHERE \"School_id\" = 3 OR \"Year\" = 2004 OR \"Invested\" <= 95542 UNION SELECT MIN(School_id) FROM endowment WHERE \"endowment_id\" = 2 AND \"amount\" > 9.83 OR donator_name <> \"Valverde\" OR \"School_id\" <= 2"} {"question": "Could you list the driver IDs that are less than 1 from the driver table, and combine that with a list of driver IDs that are 4 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W39ws_12.png", "TableImg_6gi5k_5.png"], "original_data_index": 6403, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 2, excluding those drivers whose IDs are also less than 7 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8dhc3_12.png", "TableImg_F58kh_5.png"], "original_data_index": 6404, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 6, combined with a list of driver IDs from the school_bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4be49_12.png", "TableImg_Nc2ze_5.png"], "original_data_index": 6405, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs from the driver table that are 11 or higher, excluding any driver IDs from the school_bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hxyoi_12.png", "TableImg_5edvh_5.png"], "original_data_index": 6407, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the aircraft IDs that are less than 4 from the aircraft table, combined with the aircraft IDs that are greater than 1 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xxtb4_5.png", "TableImg_Ls9ku_4.png"], "original_data_index": 6408, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you list the address IDs and document IDs from the Documents_Mailed table where either the document ID is 24 or greater and the mailing date is March 20, 2007 at 5:22 AM and the address ID is less than 8, or the mailing date is not May 16, 1986 at 6:25 AM and the document ID is not 10 and the address ID is 0?", "answer": {"columns": ["mailed_to_address_id", "document_id"], "index": [0, 1], "data": [["0", "12"], ["0", "24"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_Yb11y_14.png", "TableImg_Amjns_14.png"], "original_data_index": 6406, "original_sql": "SELECT mailed_to_address_id, document_id FROM Documents_Mailed WHERE \"document_id\" >= 24 AND mailing_date = \"2007-03-20 05:22:01\" AND \"mailed_to_address_id\" < 8 UNION ALL SELECT mailed_to_address_id, document_id FROM Documents_Mailed WHERE mailing_date != \"1986-05-16 06:25:33\" AND \"document_id\" != 10 AND \"mailed_to_address_id\" = 0"} {"question": "Could you give me a list of all Store IDs, including those from the store table that are not of type \"City Mall\" or are not named \"Blackville\", or have a Store ID of 4, along with all Store IDs from the store_district table that are not 4?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["1"], ["2"], ["3"], ["5"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_6of6g_5.png", "TableImg_Ohcn9_5.png"], "original_data_index": 6409, "original_sql": "SELECT Store_ID FROM store WHERE Type <> \"City Mall\" OR Store_Name <> \"Blackville\" OR \"Store_ID\" = 4 UNION ALL SELECT Store_ID FROM store_district WHERE \"Store_ID\" <> 4"} {"question": "Which aircraft IDs are both less than or equal to 5 when considering all aircraft, and equal to 1 when considering aircraft at airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S4cuw_5.png", "TableImg_Dkvi7_4.png"], "original_data_index": 6410, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that appear in the driver table but not in the school_bus table, also excluding driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ijd1g_12.png", "TableImg_Lh1ky_5.png"], "original_data_index": 6411, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are present in both the list of drivers excluding driver 7, and the list of school bus drivers including driver 7 and above?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uyqq9_12.png", "TableImg_1w1qs_5.png"], "original_data_index": 6396, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are also greater than 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9hr8q_12.png", "TableImg_Kg470_5.png"], "original_data_index": 6413, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 5, and also a list of aircraft IDs from the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7dktw_5.png", "TableImg_Kkms7_4.png"], "original_data_index": 6415, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs where the ID is 8 from the driver table, combined with a list of driver IDs greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uo6ty_12.png", "TableImg_Qk8vm_5.png"], "original_data_index": 6412, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are not 5, and are also not driver IDs greater than 3 that are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lyf6r_12.png", "TableImg_Ik1hd_5.png"], "original_data_index": 6414, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me the date they left, the latest first name, nickname, and birthdate for staff members who meet both of these conditions: either their middle name is Duane, their joining date isn't August 30, 2017 at 3:08 PM, or their address ID is less than or equal to 1, their staff ID is greater than 15, and their first name is Queenie; and also either their address ID is 2, their joining date is August 27, 2017 at 7:19:44 PM, their birthdate is May 19, 2004 at 2:11:13 PM, or their middle name isn't Mayra?", "answer": {"columns": ["date_left_staff", "MAX(first_name)", "nickname", "date_of_birth"], "index": [0], "data": [["2018-03-09 05:08:35", "Winnifred", "nicholaus92", "2000-06-13 18:09:11"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_9nfvh_15.png", "TableImg_Rlypp_15.png"], "original_data_index": 6416, "original_sql": "SELECT date_left_staff, MAX(first_name), nickname, date_of_birth FROM Staff WHERE middle_name = \"Duane\" OR date_joined_staff <> \"2017-08-30 15:08:37\" OR \"staff_address_id\" <= 1 AND \"staff_id\" > 15 AND first_name = \"Queenie\" INTERSECT SELECT date_left_staff, MAX(first_name), nickname, date_of_birth FROM Staff WHERE \"staff_address_id\" = 2 OR date_joined_staff = \"2017-08-27 19:19:44\" OR date_of_birth = \"2004-05-19 14:11:13\" OR middle_name <> \"Mayra\""} {"question": "Which driver IDs are both not equal to 9 and greater than 4, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ttxv0_12.png", "TableImg_Cqzww_5.png"], "original_data_index": 6417, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 2, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xvja7_12.png", "TableImg_0p8yl_5.png"], "original_data_index": 6420, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 6, and those from the school bus table that are 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V460w_12.png", "TableImg_Q4bta_5.png"], "original_data_index": 6419, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8 from the driver table and driver ID 3 from the school_bus table, making sure to list each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jy85z_12.png", "TableImg_Jkfwd_5.png"], "original_data_index": 6418, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are both greater than 2 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wxlkp_12.png", "TableImg_O6gyr_5.png"], "original_data_index": 6422, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs less than or equal to 8, excluding any driver IDs greater than 4 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ymgdp_12.png", "TableImg_1n0uy_5.png"], "original_data_index": 6423, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 8 and not equal to 10, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N1ev6_12.png", "TableImg_K3fmf_5.png"], "original_data_index": 6424, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me the total of all city codes for students where the city code is ROC, or where the student is not male, the advisor is not 8721, the first name is not Tracy, the major is 50 or higher, or the last name is not Woods, or the age is 20 or younger, combined with the total of all city codes for students where the student ID is not 1034, the first name is not Michael, and the age is 19?", "answer": {"columns": ["SUM(city_code)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Inbij_34.png", "TableImg_J8wt7_34.png"], "original_data_index": 6421, "original_sql": "SELECT SUM(city_code) FROM Student WHERE city_code = \"ROC\" OR Sex <> \"M\" AND \"Advisor\" != 8721 AND Fname != \"Tracy\" AND \"Major\" >= 50 AND LName <> \"Woods\" OR \"Age\" <= 20 UNION ALL SELECT SUM(city_code) FROM Student WHERE \"StuID\" != 1034 AND Fname <> \"Michael\" AND \"Age\" = 19"} {"question": "What is the highest Aircraft ID and corresponding ID from the aircraft and airport aircraft tables, matching on Aircraft ID?", "answer": {"columns": ["MAX(T1.Aircraft_ID)", "ID"], "index": [0], "data": [["5", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q3u13_5.png", "TableImg_Daf8q_4.png"], "original_data_index": 6425, "original_sql": "SELECT MAX(T1.Aircraft_ID), T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Could you give me a list of all Store IDs, including those from districts that aren't district 15 and those that sell products with a product ID of 6 or higher?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["5"], ["1"], ["2"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_G1qqv_5.png", "TableImg_6py8t_15.png"], "original_data_index": 6426, "original_sql": "SELECT Store_ID FROM store_district WHERE \"District_ID\" <> 15 UNION ALL SELECT Store_ID FROM store_product WHERE \"Product_ID\" >= 6"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 4, and those from the school bus table that are 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A4117_12.png", "TableImg_X05a7_5.png"], "original_data_index": 6428, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 12 or greater, and those from the school bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gto8a_12.png", "TableImg_35ztl_5.png"], "original_data_index": 6429, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me the Club IDs that meet these two conditions: first, they either started in a year other than 2001 and have a Club ID other than 1, or they are located in the USA and are not named Helsingborgs IF; and second, they have at least 139 points in the match results?", "answer": {"columns": ["Club_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_I2q0v_6.png", "TableImg_Ftolv_6.png"], "original_data_index": 6427, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" != 2001 AND \"Club_ID\" != 1 OR Region = \"USA\" AND Club_name != \"Helsingborgs IF\" INTERSECT SELECT Club_ID FROM match_result WHERE \"Points\" >= 139"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is 4 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oml3k_12.png", "TableImg_8lp2r_5.png"], "original_data_index": 6430, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 12 or less, combined with a list of driver IDs from the school_bus table where the ID is exactly 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ql6k_12.png", "TableImg_J6riu_5.png"], "original_data_index": 6433, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 11, and those from the school bus table excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z3hbf_12.png", "TableImg_Iemvq_5.png"], "original_data_index": 6432, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the age, smallest head ID, name, and smallest born state for people named anyone other than Sergio Garc\u00eda with a head ID greater than 1 who were born in Connecticut, but exclude anyone named anyone other than Franklin Langham or with a head ID greater than 4 who weren't born in California?", "answer": {"columns": ["age", "MIN(head_ID)", "name", "MIN(born_state)"], "index": [0], "data": [["43", "9", "P\u00e1draig Harrington", "Connecticut"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_0qfrg_10.png", "TableImg_1md19_10.png"], "original_data_index": 6434, "original_sql": "SELECT age, MIN(head_ID), name, MIN(born_state) FROM head WHERE name != \"Sergio Garc\u00eda\" AND \"head_ID\" > 1 AND born_state = \"Connecticut\" EXCEPT SELECT age, MIN(head_ID), name, MIN(born_state) FROM head WHERE name != \"Franklin Langham\" OR \"head_ID\" > 4 AND born_state != \"California\""} {"question": "Which driver IDs, excluding driver ID 2, are not also driver IDs, excluding driver ID 9, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dd7ld_12.png", "TableImg_7ye58_5.png"], "original_data_index": 6435, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are greater than or equal to 6, but not less than or equal to 10 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5qwls_12.png", "TableImg_0y0xs_5.png"], "original_data_index": 6436, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are not equal to 3 from the driver table, excluding any driver IDs greater than 10 that appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9m45h_12.png", "TableImg_29vip_5.png"], "original_data_index": 6437, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which aircraft IDs, excluding ID 1, are present in the aircraft table and also present in the airport_aircraft table, excluding ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_09ib5_5.png", "TableImg_4n9i4_4.png"], "original_data_index": 6438, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, from the driver table, but only those driver IDs that are not also in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ngye_12.png", "TableImg_49p0n_5.png"], "original_data_index": 6439, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you list the driver IDs that are less than 6 from the driver table, combined with the driver IDs that are greater than 3 from the school_bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xfq32_12.png", "TableImg_5mrqz_5.png"], "original_data_index": 6440, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are both not equal to 6 and also greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mw1sk_12.png", "TableImg_Cek7z_5.png"], "original_data_index": 6442, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding ID 3, and then from the airport_aircraft table including only those less than 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bpdhc_5.png", "TableImg_O8ctv_4.png"], "original_data_index": 6443, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you give me the student IDs that are both in the club membership list (excluding members of club 4 and student 1001, or those who aren't presidents) and also meet certain student criteria (like having a major code of 600 or less and a student ID of 1029, or an advisor code greater than 8722 and a city code of YYZ, or being male, or being over 18 with a last name other than Goldman and a first name of David)?", "answer": {"columns": ["StuID"], "index": [0], "data": [["1010"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_M80pz_4.png", "TableImg_Twixx_34.png"], "original_data_index": 6441, "original_sql": "SELECT StuID FROM Member_of_club WHERE \"ClubID\" != 4 AND \"StuID\" != 1001 OR Position != \"President\" INTERSECT SELECT StuID FROM Student WHERE \"Major\" <= 600 AND \"StuID\" = 1029 OR \"Advisor\" > 8722 AND city_code = \"YYZ\" OR Sex = \"M\" OR \"Age\" > 18 AND LName != \"Goldman\" AND Fname = \"David\""} {"question": "Which aircraft IDs, excluding ID 5, are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_853ur_5.png", "TableImg_Hnhzi_4.png"], "original_data_index": 6444, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs that are less than or equal to 10 from the driver table, combined with a list of driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iff48_12.png", "TableImg_E40gb_5.png"], "original_data_index": 6445, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are equal to 10, but not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P3x3p_12.png", "TableImg_Q3f57_5.png"], "original_data_index": 6446, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the aircraft IDs that are greater than 3, excluding those aircraft IDs from the airport aircraft table that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9cmw6_5.png", "TableImg_T42z5_4.png"], "original_data_index": 6447, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you find the smallest ID and corresponding company ID from the airport and flight information, but only for entries where the IATA code isn't \"BLL\", the date is January 29, 1964, or the altitude is 3650 or less, the ICAO code isn't \"EBBR\", the airport ID is greater than 2, and the airport name is \"Billund Airport\"?", "answer": {"columns": ["MIN(T1.id)", "company_id"], "index": [0], "data": [["1", "2"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_C2vk4_9.png", "TableImg_0celu_13.png"], "original_data_index": 6451, "original_sql": "SELECT MIN(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA <> \"BLL\" OR Date = \"January 29, 1964\" OR \"Altitude\" <= 3650.0 AND ICAO <> \"EBBR\" AND \"airport_id\" > 2 AND name = \"Billund Airport\""} {"question": "Can you list the aircraft IDs that are less than or equal to 2, excluding any aircraft IDs that are also equal to 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ubmx8_5.png", "TableImg_K91ch_4.png"], "original_data_index": 6452, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 10 and also greater than 4, considering only the driver IDs that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kvuwl_12.png", "TableImg_2sywj_5.png"], "original_data_index": 6453, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "How many books titled \"The Dome: Ground Zero\" were published, excluding those published in August 2008, and what are the prices of books where either the price is not 2,000,000 or the writer is not Garth Ennis, given that the average publication ID is greater than 5?", "answer": {"columns": ["COUNT(T1.Book_ID)", "Price"], "index": [0], "data": [["7", "15000000"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_42abu_10.png", "TableImg_X6etj_7.png"], "original_data_index": 6454, "original_sql": "SELECT COUNT(T1.Book_ID), T2.Price FROM book as T1 JOIN publication as T2 ON T1.Book_ID = T2.Book_ID WHERE Title = \"The Dome: Ground Zero\" AND Publication_Date <> \"August 2008\" OR Price <> 2000000.0 AND Writer <> \"Garth Ennis\" AND AVG(Publication_ID) > 5"} {"question": "Could you give me a list of employee names that meet these conditions: they either don't have an employee ID of 8 or aren't 30 years old, and their name isn't Phil Vickery, but exclude any names that also appear in a list of shop managers where the shop ID is greater than 4, the number of products isn't 4780, or the location isn't Turku and the manager's name isn't Job Dragtsma?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Andrew Sheridan"], ["George Chuter"], ["Jason Hobson"], ["Lee Mears"], ["Louis Deacon"], ["Mark Regan"], ["Matt Stevens"], ["Steve Borthwick"], ["Tim Payne"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_Ai5ou_10.png", "TableImg_7kh15_9.png"], "original_data_index": 6455, "original_sql": "SELECT Name FROM employee WHERE \"Employee_ID\" != 8 OR \"Age\" != 30 AND Name <> \"Phil Vickery\" EXCEPT SELECT Name FROM shop WHERE \"Shop_ID\" > 4 OR \"Number_products\" <> 4780 OR Location != \"Turku\" AND Manager_name <> \"Job Dragtsma\""} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 9, and those from the school bus table where the ID is greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dpbpo_12.png", "TableImg_7fe4z_5.png"], "original_data_index": 6456, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 9, and those from the school_bus table that are 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nsc7d_12.png", "TableImg_Lp6xh_5.png"], "original_data_index": 6457, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs greater than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X71v0_12.png", "TableImg_84ttd_5.png"], "original_data_index": 6458, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are both less than or equal to 3 and present in the driver table, and also less than or equal to 10 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1bzua_12.png", "TableImg_Mr4vq_5.png"], "original_data_index": 6459, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, from the driver table, but then remove any driver IDs that are also driver ID 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cw8en_12.png", "TableImg_Gg4uq_5.png"], "original_data_index": 6460, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "How many products are there for each manager, excluding those managers who work at the FF Jaro shop in Jakobstad and have more than 10,000 products, considering only shops with at least 4780 products, or managers other than Mika Lehkosuo, or shops with an ID other than 1, or shops not in the Veritas Stadion district?", "answer": {"columns": ["COUNT(Number_products)", "Manager_name"], "index": [0], "data": [["9", "Olli Huttunen"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_7v25u_9.png", "TableImg_1ut61_9.png"], "original_data_index": 6461, "original_sql": "SELECT COUNT(Number_products), Manager_name FROM shop WHERE \"Number_products\" >= 4780 OR Manager_name != \"Mika Lehkosuo\" OR \"Shop_ID\" != 1 OR District <> \"Veritas Stadion\" EXCEPT SELECT COUNT(Number_products), Manager_name FROM shop WHERE Location = \"Jakobstad\" AND Name = \"FF Jaro\" AND \"Number_products\" > 10000"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table and any driver IDs greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ta7p5_12.png", "TableImg_5rpmi_5.png"], "original_data_index": 6462, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, from the driver table, but only those driver IDs that are not also in the school bus table with driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A7q6z_12.png", "TableImg_Bfjcw_5.png"], "original_data_index": 6463, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me the lowest market value, lowest company ID, profits, and the number of companies in each industry, grouped by profits, excluding \"Industrial and Commercial Bank of China\" and including companies with a company ID greater than 9, assets greater than or equal to 302.6 billion, or in the Banking industry, only showing groups with at least one company or a minimum market value of at least 170.1 billion and a minimum company ID less than 15; then remove from that result the lowest market value, lowest company ID, profits, and the number of companies in each industry, grouped by profits, including companies with a market value less than or equal to 180 billion, or not named \"General Electric\", or in the Retailing industry with a company ID greater than 17, or with profits of 20.1 billion and sales greater than 447 billion, or assets greater than or equal to 319.4 billion, only showing groups with a minimum market value not equal to 154.8 billion?", "answer": {"columns": ["MIN(Market_Value_in_Billion)", "MIN(Company_ID)", "Profits_in_Billion", "COUNT(Industry)"], "index": [0], "data": [["154.8", "19", "14.4", "1"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_5u28k_19.png", "TableImg_Zepgq_19.png"], "original_data_index": 6464, "original_sql": "SELECT MIN(Market_Value_in_Billion), MIN(Company_ID), Profits_in_Billion, COUNT(Industry) FROM company WHERE Name <> \"Industrial and Commercial Bank of China\" AND \"Company_ID\" > 9.0 OR \"Assets_in_Billion\" >= 302.6 OR Industry = \"Banking\" GROUP BY Profits_in_Billion HAVING COUNT(Industry) >= 1 OR MIN(Market_Value_in_Billion) >= 170.1 AND MIN(Company_ID) < 15.0 EXCEPT SELECT MIN(Market_Value_in_Billion), MIN(Company_ID), Profits_in_Billion, COUNT(Industry) FROM company WHERE \"Market_Value_in_Billion\" <= 180.0 OR Name <> \"General Electric\" OR Industry = \"Retailing\" AND \"Company_ID\" > 17.0 OR \"Profits_in_Billion\" = 20.1 AND \"Sales_in_Billion\" > 447.0 OR \"Assets_in_Billion\" >= 319.4 GROUP BY Profits_in_Billion HAVING MIN(Market_Value_in_Billion) <> 154.8"} {"question": "What is the average aircraft ID and corresponding ID from the airport aircraft table, matching aircraft IDs between the aircraft and airport aircraft tables?", "answer": {"columns": ["AVG(T1.Aircraft_ID)", "ID"], "index": [0], "data": [["2.75", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1yt7e_5.png", "TableImg_R7eoz_4.png"], "original_data_index": 6450, "original_sql": "SELECT AVG(T1.Aircraft_ID), T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Which driver has an ID of 9 and is also associated with a school bus having a driver ID of 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lz005_12.png", "TableImg_Wcctm_5.png"], "original_data_index": 6448, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of item IDs, including those where the title isn't \"comb\" and the ID is 3 or less, combined with those where the ID is 5 or more, or the title isn't \"avocado\"?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["0"], ["1"], ["2"], ["3"], ["0"], ["1"], ["2"], ["3"], ["5"], ["6"], ["7"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_Qg1g1_8.png", "TableImg_Vud7s_8.png"], "original_data_index": 6449, "original_sql": "SELECT i_id FROM item WHERE title != \"comb\" AND \"i_id\" <= 3 UNION ALL SELECT i_id FROM item WHERE \"i_id\" >= 5 OR title <> \"avocado\""} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 10, with those from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wnlry_12.png", "TableImg_Izij6_5.png"], "original_data_index": 6468, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 2, combined with a list of driver IDs from the school_bus table where each ID is not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ksbmd_12.png", "TableImg_G55qd_5.png"], "original_data_index": 6469, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are greater than or equal to 1, combined with all driver IDs from the school bus table that are exactly 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oq390_12.png", "TableImg_Wbhqt_5.png"], "original_data_index": 6470, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What is the average album ID for albums where the ID is 74 and the title is not \"Mozart Gala: Famous Arias\", or the artist ID is greater than or equal to 22, combined with the average employee ID for employees where the fax number is not \"+1 (403) 262-3322\" and the ID is greater than 5, or the city is not \"Edmonton\", or the country is not \"Canada\", or the reports_to value is greater than 1?", "answer": {"columns": ["AVG(id)"], "index": [0, 1], "data": [["5.0"], ["190.1214057508"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_Nlnop_347.png", "TableImg_82eia_8.png"], "original_data_index": 6471, "original_sql": "SELECT AVG(id) FROM albums WHERE \"id\" = 74 AND title != \"Mozart Gala: Famous Arias\" OR \"artist_id\" >= 22 UNION SELECT AVG(id) FROM employees WHERE fax != \"+1 (403) 262-3322\" AND \"id\" > 5 OR city != \"Edmonton\" OR country != \"Canada\" OR \"reports_to\" > 1.0"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table and any driver IDs greater than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T8vv1_12.png", "TableImg_R6n7s_5.png"], "original_data_index": 6472, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs that are greater than 6 and also not equal to 10, considering only the unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_87be5_12.png", "TableImg_Z2vpu_5.png"], "original_data_index": 6473, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 4, combined with a list of driver IDs from the school_bus table where the ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Innfv_12.png", "TableImg_N9ddc_5.png"], "original_data_index": 6467, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of employee IDs from Bristol who are not 36 years old and have an ID less than 4, or whose name isn't Matt Stevens, combined with a list of employee IDs from the hiring table that are less than or equal to 5, started in 2003, and are full-time?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_D4net_10.png", "TableImg_Fr7ow_7.png"], "original_data_index": 6465, "original_sql": "SELECT Employee_ID FROM employee WHERE City = \"Bristol\" AND \"Age\" <> 36 AND \"Employee_ID\" < 4 OR Name <> \"Matt Stevens\" UNION SELECT Employee_ID FROM hiring WHERE \"Employee_ID\" <= 5 AND Start_from = \"2003\" AND Is_full_time = \"T\""} {"question": "What are the total passengers at each airport and the corresponding aircraft ID?", "answer": {"columns": ["Total_Passengers", "ID"], "index": [0, 1, 2, 3], "data": [["9627589", "1"], ["34205887", "2"], ["67054745", "3"], ["6267114", "4"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Rw04t_10.png", "TableImg_E19lv_4.png"], "original_data_index": 6475, "original_sql": "SELECT T1.Total_Passengers, T2.ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Can you give me a list of aircraft names where the aircraft ID is less than 2, combined with a list of employee names who are not Robert Brown and have a salary greater than 212156?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3], "data": [["Boeing 747-400"], ["Lisa Walker"], ["Betty Adams"], ["George Wright"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_4tqlw_16.png", "TableImg_125to_31.png"], "original_data_index": 6466, "original_sql": "SELECT name FROM aircraft WHERE \"aid\" < 2 UNION ALL SELECT name FROM employee WHERE name <> \"Robert Brown\" AND \"salary\" > 212156"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 8, but excluding any driver IDs that are also less than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_76ro9_12.png", "TableImg_Baynf_5.png"], "original_data_index": 6476, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school_bus table that only include driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P9xvx_12.png", "TableImg_J94ak_5.png"], "original_data_index": 6477, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of property type codes from the Properties table where any of these conditions are true: shp_feature_3 is not \"None\" and apt_feature_3 is not \"None\", or property_id is not 10, or property_type_code is not \"Apartment\", or fld_feature_1 is \"None\" and date_on_market is not \"1981-08-23 05:40:38\" and hse_feature_1 is not \"None\", or oth_feature_3 is not \"None\" and apt_feature_1 is not \"qui\" and shp_feature_1 is \"None\", or fld_feature_2 is not \"None\", or property_address is not \"1474 Dibbert Fields Suite 055 South Renee, IN 58286-3097\", or hse_feature_2 is not \"None\", or other_property_details is not \"None\" and apt_feature_2 is not \"est\", or date_sold is \"1979-05-13 16:58:06\", or shp_feature_2 is not \"None\" and hse_feature_3 is \"None\" and fld_feature_3 is not \"None\", and also include the property type code \"Shop\" from the Ref_Property_Types table?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3, 4], "data": [["Apartment"], ["Field"], ["House"], ["Other"], ["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_7i2lk_15.png", "TableImg_Cjrge_5.png"], "original_data_index": 6474, "original_sql": "SELECT property_type_code FROM Properties WHERE shp_feature_3 != \"None\" AND apt_feature_3 <> \"None\" OR \"property_id\" != 10 OR property_type_code <> \"Apartment\" OR fld_feature_1 = \"None\" AND date_on_market != \"1981-08-23 05:40:38\" AND hse_feature_1 <> \"None\" OR oth_feature_3 <> \"None\" AND apt_feature_1 <> \"qui\" AND shp_feature_1 = \"None\" OR fld_feature_2 <> \"None\" OR property_address != \"1474 Dibbert Fields Suite 055 South Renee, IN 58286-3097\" OR hse_feature_2 != \"None\" OR other_property_details <> \"None\" AND apt_feature_2 <> \"est\" OR date_sold = \"1979-05-13 16:58:06\" OR shp_feature_2 <> \"None\" AND hse_feature_3 = \"None\" AND fld_feature_3 != \"None\" UNION SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code = \"Shop\""} {"question": "Can you give me a list of driver IDs that are equal to 9, considering both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zowpk_12.png", "TableImg_N04dl_5.png"], "original_data_index": 6479, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of staff IDs from lessons where the lesson ID is greater than 2, the vehicle ID is greater than or equal to 2, or the lesson status is not cancelled, combined with a list of staff IDs from the staff table where the date they left is not 2018-03-08 04:23:14, their staff address ID is 2 and their last name isn't Jast and their date of birth isn't 2015-08-01 13:22:43 and their staff ID isn't 10 and their join date is 2016-05-16 20:56:53, or their nickname isn't santos45, or their middle name is Maiya, or their first name isn't Ernestina?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["8"], ["14"], ["11"], ["1"], ["3"], ["4"], ["11"], ["8"], ["4"], ["5"], ["15"], ["12"], ["12"], ["11"], ["8"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Gjd23_15.png", "TableImg_4h8wi_15.png"], "original_data_index": 6478, "original_sql": "SELECT staff_id FROM Lessons WHERE \"lesson_id\" > 2 OR \"vehicle_id\" >= 2 OR lesson_status_code != \"Cancelled\" UNION ALL SELECT staff_id FROM Staff WHERE date_left_staff != \"2018-03-08 04:23:14\" OR \"staff_address_id\" = 2 AND last_name <> \"Jast\" AND date_of_birth <> \"2015-08-01 13:22:43\" AND \"staff_id\" <> 10 AND date_joined_staff = \"2016-05-16 20:56:53\" OR nickname != \"santos45\" OR middle_name = \"Maiya\" OR first_name != \"Ernestina\""} {"question": "Can you give me a list of driver IDs that are greater than 9 from the driver table, combined with a list of driver IDs that are greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lcmh7_12.png", "TableImg_Q8w8u_5.png"], "original_data_index": 6480, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 3, but only if they are not also aircraft IDs in the airport_aircraft table that are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Npisb_5.png", "TableImg_Dqzgv_4.png"], "original_data_index": 6481, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 10 with those from the school bus table that are less than 4, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jl4sk_12.png", "TableImg_Y05ga_5.png"], "original_data_index": 6484, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list all the source user IDs from the trust table where the trust value is at least 4 and the target user ID is at least 2, and also include all source user IDs from the trust table where the source user ID is at least 1?", "answer": {"columns": ["source_u_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["1"], ["7"], ["2"], ["1"], ["3"], ["1"], ["1"], ["1"], ["2"], ["3"], ["6"], ["7"], ["7"], ["7"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_Blnne_9.png", "TableImg_Jnu7u_9.png"], "original_data_index": 6485, "original_sql": "SELECT source_u_id FROM trust WHERE \"trust\" >= 4 AND \"target_u_id\" >= 2 UNION ALL SELECT source_u_id FROM trust WHERE \"source_u_id\" >= 1"} {"question": "Which aircraft have an ID of 2 and are also associated with airports, but not with an airport having an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7xq6d_5.png", "TableImg_He19c_4.png"], "original_data_index": 6486, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you list the feature ID, description, and type for all amenities, and also include any features with an ID less than 3, or that are amenities, or are described as a \"Burglar Alarm\" but are not named \"AirCon\"?", "answer": {"columns": ["feature_id", "feature_description", "feature_type_code"], "index": [0, 1, 2], "data": [["2", "Air Conditioning.", "Amenity"], ["3", "Swimming Pool.", "Amenity"], ["4", "Burglar Alarm", "Security"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_Ifdng_3.png", "TableImg_Igmwd_3.png"], "original_data_index": 6487, "original_sql": "SELECT feature_id, feature_description, feature_type_code FROM Other_Available_Features WHERE feature_type_code = \"Amenity\" UNION SELECT feature_id, feature_description, feature_type_code FROM Other_Available_Features WHERE \"feature_id\" < 3 OR feature_type_code = \"Amenity\" OR feature_description = \"Burglar Alarm\" AND feature_name != \"AirCon\""} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 4, that are in the aircraft table but not in the airport_aircraft table, where aircraft ID 3 is also excluded from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vbfz7_5.png", "TableImg_L7blo_4.png"], "original_data_index": 6489, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 11, with those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hhhc9_12.png", "TableImg_S6ky2_5.png"], "original_data_index": 6488, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Could you list the creation date, budget in billions, number of employees, and name for departments that either have a ranking of 5, a department ID less than 9, a number of employees not equal to 67000, or were created in 1789, but only if they also have a department ID greater than or equal to 10?", "answer": {"columns": ["Creation", "Budget_in_Billions", "Num_Employees", "Name"], "index": [0, 1, 2, 3, 4, 5], "data": [["1965", "46.2", "10600", "Housing and Urban Development"], ["1966", "58.0", "58622", "Transportation"], ["1977", "21.5", "116100", "Energy"], ["1979", "62.8", "4487", "Education"], ["1989", "73.2", "235000", "Veterans Affairs"], ["2002", "44.6", "208000", "Homeland Security"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Lvvod_15.png", "TableImg_Q1kdy_15.png"], "original_data_index": 6490, "original_sql": "SELECT Creation, Budget_in_Billions, Num_Employees, Name FROM department WHERE \"Ranking\" = 5 OR \"Department_ID\" < 9 OR \"Num_Employees\" != 67000.0 OR Creation = \"1789\" INTERSECT SELECT Creation, Budget_in_Billions, Num_Employees, Name FROM department WHERE \"Department_ID\" >= 10"} {"question": "Can you list the aircraft IDs that are not equal to 2, excluding those aircraft IDs from the airport aircraft table that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8ts9w_5.png", "TableImg_E7hzp_4.png"], "original_data_index": 6491, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 12, and those from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Safg4_12.png", "TableImg_N9i12_5.png"], "original_data_index": 6492, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of Branch IDs for branches named \"Popert\" that are not in London on Abbey Rise, or have a Branch ID of 8 or higher, combined with the Branch ID \"6\" from the membership register?", "answer": {"columns": ["Branch_ID"], "index": [0, 1], "data": [["8"], ["6"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Chvot_8.png", "TableImg_95mxg_8.png"], "original_data_index": 6493, "original_sql": "SELECT Branch_ID FROM branch WHERE City <> \"London\" AND Address_road <> \"Abbey Rise\" AND Name = \"Popert\" OR \"Branch_ID\" >= 8 UNION SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID = \"6\""} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 10 and appear in the driver table, and also greater than 4 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ev94b_12.png", "TableImg_3k5h6_5.png"], "original_data_index": 6494, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is the smallest aircraft ID associated with each airport ID, excluding airport ID 9?", "answer": {"columns": ["MIN(T1.Aircraft_ID)", "Airport_ID"], "index": [0], "data": [["1", "2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vn78h_5.png", "TableImg_1sxh0_4.png"], "original_data_index": 6495, "original_sql": "SELECT MIN(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID WHERE Airport_ID <> 9"} {"question": "Which aircraft IDs are both less than or equal to 5 when considering only aircraft and less than 5 when considering only airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nhxpp_5.png", "TableImg_Wxt2d_4.png"], "original_data_index": 6496, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, including driver ID 5 from the driver table and all driver IDs except 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lbtth_12.png", "TableImg_2p96v_5.png"], "original_data_index": 6497, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are equal to 1 in the driver table, but not equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9srpg_12.png", "TableImg_16i1h_5.png"], "original_data_index": 6483, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is less than 3, making sure to avoid any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J1kj7_12.png", "TableImg_Za4ys_5.png"], "original_data_index": 6482, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list the aircraft IDs that are equal to 4 from the aircraft table, and also list the aircraft IDs that are less than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mepxz_5.png", "TableImg_9qvmy_4.png"], "original_data_index": 6499, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pryvh_12.png", "TableImg_52dwy_5.png"], "original_data_index": 6501, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 8, combined with a list of driver IDs from the school_bus table where each ID is less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X11f9_12.png", "TableImg_Qds3l_5.png"], "original_data_index": 6500, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me the driver ID that appears exactly once as driver ID 8 in the driver table but not in the school bus table where the driver ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xfnv3_12.png", "TableImg_N1b7f_5.png"], "original_data_index": 6498, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 1 or greater, and those from the school bus table where the ID is less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P02k7_12.png", "TableImg_H7rsw_5.png"], "original_data_index": 6502, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3om9w_12.png", "TableImg_K5spj_5.png"], "original_data_index": 6503, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 9 and those from the school bus table where the ID is greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ueu3f_12.png", "TableImg_Qyxp9_5.png"], "original_data_index": 6505, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than 10, excluding any driver IDs that are not equal to 3 and are also in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pmxvp_12.png", "TableImg_Wyo24_5.png"], "original_data_index": 6504, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver IDs less than or equal to 3 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tu3y2_12.png", "TableImg_19uax_5.png"], "original_data_index": 6506, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What is the largest template ID that appears both in documents that are not customer reviews and in templates that either expired on a date other than May 12, 1998, are of type BK, have empty details, have a version number greater than 5, started being effective on February 20, 2005, or have an ID of 19?", "answer": {"columns": ["MAX(Template_ID)"], "index": [0], "data": [["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_7frs9_15.png", "TableImg_Uiqhh_20.png"], "original_data_index": 6507, "original_sql": "SELECT MAX(Template_ID) FROM Documents WHERE Document_Name <> \"Customer reviews\" INTERSECT SELECT MAX(Template_ID) FROM Templates WHERE Date_Effective_To <> \"1998-05-12 12:51:29\" OR Template_Type_Code = \"BK\" OR Template_Details = \"\" OR \"Version_Number\" > 5 OR Date_Effective_From = \"2005-02-20 00:31:34\" OR \"Template_ID\" = 19"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table, and any driver IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oeebs_12.png", "TableImg_Fr541_5.png"], "original_data_index": 6509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me the IDs of drivers, up to ID 4, who are drivers but not school bus drivers with IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dmwc3_12.png", "TableImg_Cnge9_5.png"], "original_data_index": 6508, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list all Aircraft IDs from the aircraft table that are greater than 3, and combine that with a list of Aircraft IDs from the airport_aircraft table that are equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3d2hv_5.png", "TableImg_83pl1_4.png"], "original_data_index": 6513, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1 from the driver table and driver ID 3 from the school_bus table, showing each distinct driver ID from both tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ipdfm_12.png", "TableImg_Xhgiv_5.png"], "original_data_index": 6512, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me the zip codes from the county table where the county ID is less than or equal to 5, or the zip code is not \"D21\" and the population is less than or equal to 13300, or the county name is not \"Mansfield\" and is also a zip code that's not \"D09\"?", "answer": {"columns": ["Zip_code"], "index": [0, 1, 2, 3, 4], "data": [["D21"], ["D08"], ["D02"], ["D09"], ["D11"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_4alvw_5.png", "TableImg_6qr0y_5.png"], "original_data_index": 6511, "original_sql": "SELECT Zip_code FROM county WHERE \"County_Id\" <= 5 OR Zip_code != \"D21\" AND \"Population\" <= 13300.0 OR County_name <> \"Mansfield\" IN (SELECT Zip_code FROM county WHERE Zip_code != \"D09\")"} {"question": "Can you give me the store name, type, number of product categories, area size, and store ID for stores that meet these two sets of criteria: first, stores that aren't village stores, have a store ID of 1 or less, and aren't named Miramichi, or have at least 990 product categories and a ranking that isn't 10; and second, stores with a store ID of 2 or greater, or an area size of 179.84, or that aren't village stores with a ranking greater than 1 and aren't named Blackville, or have less than 990 product categories?", "answer": {"columns": ["Store_Name", "Type", "Number_of_product_category", "Area_size", "Store_ID"], "index": [0, 1, 2], "data": [["Miramichi", "City Mall", "17811", "179.84", "1"], ["Neguac", "Village Store", "1678", "26.69", "2"], ["Rogersville", "Village Store", "1170", "7.23", "3"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_5vo8a_5.png", "TableImg_Ds59f_5.png"], "original_data_index": 6510, "original_sql": "SELECT Store_Name, Type, Number_of_product_category, Area_size, Store_ID FROM store WHERE Type != \"Village Store\" AND \"Store_ID\" <= 1 AND Store_Name <> \"Miramichi\" OR \"Number_of_product_category\" >= 990.0 AND \"Ranking\" != 10 INTERSECT SELECT Store_Name, Type, Number_of_product_category, Area_size, Store_ID FROM store WHERE \"Store_ID\" >= 2 OR \"Area_size\" = 179.84 OR Type != \"Village Store\" AND \"Ranking\" > 1 AND Store_Name != \"Blackville\" OR \"Number_of_product_category\" < 990.0"} {"question": "Can you give me the Store ID and Product ID combinations that are both either from store 1 or not product 2, and also have a product ID of 6 or higher?", "answer": {"columns": ["Store_ID", "Product_ID"], "index": [0, 1, 2], "data": [["1", "6"], ["2", "6"], ["5", "6"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_K3cxn_15.png", "TableImg_1qqby_15.png"], "original_data_index": 6514, "original_sql": "SELECT Store_ID, Product_ID FROM store_product WHERE \"Store_ID\" = 1 OR \"Product_ID\" != 2 INTERSECT SELECT Store_ID, Product_ID FROM store_product WHERE \"Product_ID\" >= 6"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 3, and those from the school bus table that are exactly 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W4rb5_12.png", "TableImg_N814u_5.png"], "original_data_index": 6515, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver has an ID of 4 and also drives a school bus, but not school bus number 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dq4fs_12.png", "TableImg_Tmj5w_5.png"], "original_data_index": 6517, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 7 from the driver table and driver ID 4 from the school_bus table, making sure there are no duplicates in the combined list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dzcb3_12.png", "TableImg_Hceal_5.png"], "original_data_index": 6516, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are both greater than or equal to 6 and present in the driver table, and also less than 9 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jm7g2_12.png", "TableImg_Q5zv3_5.png"], "original_data_index": 6518, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list the coach's name, ID, gender, rank, and club ID for all coaches with an ID of 2 or less, combined with the same information for coaches who are male and have a club ID of 1 or less, or have a rank of 5 or more and are not named Jameson Tomas?", "answer": {"columns": ["Coach_name", "Coach_ID", "Gender", "Rank", "Club_ID"], "index": [0, 1, 2], "data": [["Jameson Tomas", "1", "M", "1", "1"], ["Joe Fabbri", "2", "F", "2", "1"], ["Smith Brown", "5", "M", "5", "1"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_7nxb8_5.png", "TableImg_X79bx_5.png"], "original_data_index": 6519, "original_sql": "SELECT Coach_name, Coach_ID, Gender, Rank, Club_ID FROM coach WHERE \"Coach_ID\" <= 2 UNION SELECT Coach_name, Coach_ID, Gender, Rank, Club_ID FROM coach WHERE \"Club_ID\" <= 1 AND Gender = \"M\" OR \"Rank\" >= 5 AND Coach_name <> \"Jameson Tomas\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nsnym_12.png", "TableImg_K549a_5.png"], "original_data_index": 6520, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me the Aircraft IDs that are greater than 2 when grouped in the aircraft table, but also not equal to 1 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_12apw_5.png", "TableImg_2uexi_4.png"], "original_data_index": 6522, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Could you please provide the document type code, shipping agent code, document status code, and receipt date from the Documents table, combining results from two sets of criteria: first, where the document ID is 10, the document type is not \"Hard Drive\", the receipt date is not \"1986-12-14 14:18:59\", the other details are \"u\", and the document status is \"done\", or the shipping agent code is not \"FE\", or the receipt number is \"79\"; and second, where the other details are not \"h\" or the document type is \"Paper\"?", "answer": {"columns": ["document_type_code", "shipping_agent_code", "document_status_code", "receipt_date"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["CD", "FE", "working", "2017-07-02 17:39:09"], ["CD", "SH", "working", "1982-09-27 14:52:15"], ["CD", "UP", "overdue", "1986-12-14 14:18:59"], ["CD", "UP", "working", "2008-04-21 20:42:25"], ["CD", "UP", "working", "2015-04-03 09:36:19"], ["Hard Drive", "AL", "overdue", "1985-11-05 17:59:34"], ["Hard Drive", "FE", "working", "1999-04-17 14:19:32"], ["Hard Drive", "FE", "working", "2005-09-30 00:10:02"], ["Hard Drive", "US", "overdue", "1996-05-31 06:51:58"], ["Paper", "FE", "done", "1983-09-26 09:32:56"], ["Paper", "UP", "done", "2014-12-25 17:22:44"], ["Paper", "UP", "overdue", "1976-09-15 19:24:17"], ["Paper", "UP", "working", "1996-07-27 03:30:40"], ["Paper", "US", "done", "1973-11-05 21:48:53"], ["Paper", "US", "done", "1974-05-08 00:00:46"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_42ftl_15.png", "TableImg_Ahif0_15.png"], "original_data_index": 6521, "original_sql": "SELECT document_type_code, shipping_agent_code, document_status_code, receipt_date FROM Documents WHERE \"document_id\" = 10 AND document_type_code != \"Hard Drive\" AND receipt_date <> \"1986-12-14 14:18:59\" AND other_details = \"u\" AND document_status_code = \"done\" OR shipping_agent_code != \"FE\" OR receipt_number = \"79\" UNION SELECT document_type_code, shipping_agent_code, document_status_code, receipt_date FROM Documents WHERE other_details != \"h\" OR document_type_code = \"Paper\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 5, from the driver table, but then remove any driver IDs from that list that are also in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zz43s_12.png", "TableImg_9a9go_5.png"], "original_data_index": 6523, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, greater than 7, that appear in the driver table but not in the school_bus table where the driver ID is 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rxuda_12.png", "TableImg_Zx0x2_5.png"], "original_data_index": 6527, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are both not equal to 8 and also less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sjgcj_12.png", "TableImg_Zv29e_5.png"], "original_data_index": 6524, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are both not equal to 4 and also greater than or equal to 7, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K0mt6_12.png", "TableImg_Ok6s4_5.png"], "original_data_index": 6526, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list the driver IDs that are greater than 3 from the driver table, combined with the driver IDs that are less than or equal to 10 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P1zg7_12.png", "TableImg_T0ryr_5.png"], "original_data_index": 6528, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 5, combined with a list of driver IDs from the school_bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ee30u_12.png", "TableImg_A9va7_5.png"], "original_data_index": 6529, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which aircraft have an ID of 2 or greater, excluding those aircraft that are also associated with airports and have an ID not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2q53b_5.png", "TableImg_1c34c_4.png"], "original_data_index": 6531, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Could you give me the template type codes and descriptions that satisfy both of the following conditions: first, the description is not \"CV\" or the code is \"BK\", and second, the code is \"CV\" or the description is not \"Advertisement\"?", "answer": {"columns": ["Template_Type_Code", "Template_Type_Description"], "index": [0, 1, 2], "data": [["BK", "Book"], ["PP", "Paper"], ["PPT", "Presentation"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Dt4uu_5.png", "TableImg_05av3_5.png"], "original_data_index": 6530, "original_sql": "SELECT Template_Type_Code, Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Description != \"CV\" OR Template_Type_Code = \"BK\" INTERSECT SELECT Template_Type_Code, Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Code = \"CV\" OR Template_Type_Description != \"Advertisement\""} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 8 or higher, combined with a list of driver IDs from the school_bus table where the ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ec0kq_12.png", "TableImg_Jmlux_5.png"], "original_data_index": 6532, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Could you give me a list of album IDs for albums by artists with an artist ID of 245 or higher, combined with a list of playlist IDs for playlists that aren't named \"90\u2019s Music\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51], "data": [["310"], ["312"], ["313"], ["314"], ["316"], ["320"], ["336"], ["317"], ["318"], ["319"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["344"], ["345"], ["346"], ["347"], ["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_S5qj1_347.png", "TableImg_Qbhta_18.png"], "original_data_index": 6533, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" >= 245 UNION ALL SELECT id FROM playlists WHERE name <> \"90\u2019s Music\""} {"question": "Can you give me a list of driver IDs that are greater than 8, excluding those driver IDs that are also greater than 3 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C9j3y_12.png", "TableImg_Wso9e_5.png"], "original_data_index": 6534, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 6 or greater, and those from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jo5rt_12.png", "TableImg_Jqnae_5.png"], "original_data_index": 6537, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of customer IDs from the customer payments table, excluding customer ID 12, combined with a list of customer IDs from the lessons table where either the staff ID is not 4 and the price is no more than 295, or the lesson time is 6 and the lesson date is not March 7th, 2018 at 4:12 PM, or the lesson ID is not 14?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["1"], ["2"], ["2"], ["3"], ["4"], ["6"], ["6"], ["7"], ["10"], ["11"], ["13"], ["14"], ["14"], ["14"], ["6"], ["8"], ["6"], ["8"], ["10"], ["5"], ["9"], ["3"], ["2"], ["2"], ["10"], ["11"], ["13"], ["3"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_Gragp_15.png", "TableImg_Uq7le_15.png"], "original_data_index": 6535, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"customer_id\" != 12 UNION ALL SELECT customer_id FROM Lessons WHERE \"staff_id\" <> 4 AND \"price\" <= 295.0 OR lesson_time = \"6\" AND lesson_date != \"2018-03-07 16:12:36\" OR \"lesson_id\" != 14"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 7, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Obzvy_12.png", "TableImg_Bjp3p_5.png"], "original_data_index": 6536, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list all the aircraft IDs from both the aircraft and airport_aircraft tables, excluding aircraft ID 2, and making sure to list each unique aircraft ID only once?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P0m4h_5.png", "TableImg_7jhep_4.png"], "original_data_index": 6538, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of user IDs from the user accounts table, including those named Nancy or with a user ID greater than 4, and also those with a user ID of 6 or higher or named Rosie?", "answer": {"columns": ["u_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["5"], ["6"], ["7"], ["5"], ["6"], ["7"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_Kw87g_7.png", "TableImg_Z4gow_7.png"], "original_data_index": 6539, "original_sql": "SELECT u_id FROM useracct WHERE name = \"Nancy\" OR \"u_id\" > 4 UNION ALL SELECT u_id FROM useracct WHERE \"u_id\" >= 6 OR name = \"Rosie\""} {"question": "Can you list all the driver IDs from the driver table that are less than 8, and combine that with a list of all driver IDs from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mgdwx_12.png", "TableImg_Bbm1i_5.png"], "original_data_index": 6541, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me the birth dates of customers who either don't have the cell phone number (630)964-2426 and have a customer address ID less than 13, or don't have the email karina.carroll@example.net, or don't have the phone number 206-054-0689x05861, aren't named Omer, and have an amount outstanding of at least 3751, or don't have a customer status of 'Bad Customer', or have a customer ID of 5 or less and are named Ortiz, or don't have the birth date 1991-02-10 00:42:17, along with the birth dates of staff members who either don't have the birth date 2003-01-16 06:29:11, aren't named Turner, and don't have the nickname 'ymiller', or joined on 2016-05-16 20:56:53, aren't named Tre, have a staff address ID greater than 2, and have a staff ID of 4 or less, or left on 2018-03-14 07:14:37?", "answer": {"columns": ["date_of_birth"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "data": [["1998-12-15 13:24:40"], ["1995-07-17 12:13:16"], ["1994-06-21 01:34:56"], ["1993-02-07 05:40:26"], ["1991-02-10 00:42:17"], ["1993-03-08 08:48:42"], ["1996-11-07 05:30:55"], ["1998-09-18 04:45:01"], ["1991-12-05 02:50:15"], ["1996-08-29 00:03:08"], ["1994-05-07 01:32:16"], ["1993-07-09 11:11:36"], ["1988-09-19 14:45:56"], ["1996-05-23 01:21:54"], ["1996-08-30 06:17:50"], ["2010-12-08 16:55:14"], ["2015-08-01 13:22:43"], ["1994-05-17 05:32:11"], ["2015-08-10 11:37:39"], ["1998-04-27 12:55:05"], ["2007-06-11 20:03:28"], ["2005-05-02 06:23:36"], ["1996-09-24 09:51:42"], ["2000-06-13 18:09:11"], ["1996-03-09 08:19:49"], ["2004-05-19 14:11:13"], ["2000-11-16 06:55:12"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_Coqwq_15.png", "TableImg_8rfus_15.png"], "original_data_index": 6540, "original_sql": "SELECT date_of_birth FROM Customers WHERE cell_mobile_phone_number <> \"(630)964-2426\" AND \"customer_address_id\" < 13 OR email_address <> \"karina.carroll@example.net\" OR phone_number <> \"206-054-0689x05861\" AND first_name <> \"Omer\" AND \"amount_outstanding\" >= 3751.0 OR customer_status_code <> \"Bad Customer\" OR \"customer_id\" <= 5 AND last_name = \"Ortiz\" OR date_of_birth != \"1991-02-10 00:42:17\" UNION ALL SELECT date_of_birth FROM Staff WHERE date_of_birth <> \"2003-01-16 06:29:11\" AND last_name <> \"Turner\" AND nickname != \"ymiller\" OR date_joined_staff = \"2016-05-16 20:56:53\" AND middle_name <> \"Tre\" AND \"staff_address_id\" > 2 AND \"staff_id\" <= 4 OR date_left_staff = \"2018-03-14 07:14:37\""} {"question": "Can you give me a list of driver IDs that are less than 11, excluding those driver IDs that are also in the school bus list and are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1cbpc_12.png", "TableImg_Cum9o_5.png"], "original_data_index": 6545, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs, excluding driver ID 5, are not also driver ID 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Seg3b_12.png", "TableImg_Pry4h_5.png"], "original_data_index": 6544, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 1, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U4xbq_5.png", "TableImg_Bhn4n_4.png"], "original_data_index": 6543, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Could you list the feature type codes that are both from available features with the name \"AirCon\" where the feature type is not \"Security\" or the feature ID is greater than 3, and from reference feature types where the name is not \"Amenity, eg Pool.\" or the feature type code is \"Security\"?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_4f4hj_3.png", "TableImg_2zngc_2.png"], "original_data_index": 6542, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE feature_name = \"AirCon\" AND feature_type_code <> \"Security\" OR \"feature_id\" > 3 INTERSECT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\" OR feature_type_code = \"Security\""} {"question": "Can you give me the school name, average mascot value, location, number of enrollments, and county for schools, excluding those that are not in class AAA, don't have 379 enrollments, are not in football class AAA, are in Lakeville, or are not named LaVille, or have the mascot Falcons, but including only those schools that are not in County 50 Marshall, or have the mascot Trojans, or don't have the school ID 6, or are not in football class AAA?", "answer": {"columns": ["School_name", "AVG(Mascot)", "Location", "COUNT(Enrollment)", "County"], "index": [0], "data": [["Bremen", "0", "Bremen", "8", "50 Marshall"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_8a2k0_8.png", "TableImg_Dam3f_8.png"], "original_data_index": 6546, "original_sql": "SELECT School_name, AVG(Mascot), Location, COUNT(Enrollment), County FROM School WHERE County != \"50 Marshall\" OR Mascot = \"Trojans\" OR School_id <> \"6\" OR IHSAA_Football_Class != \"AAA\" EXCEPT SELECT School_name, AVG(Mascot), Location, COUNT(Enrollment), County FROM School WHERE IHSAA_Class != \"AAA\" AND \"Enrollment\" <> 379 AND IHSAA_Football_Class != \"AAA\" AND Location = \"Lakeville\" AND School_name != \"LaVille\" OR Mascot = \"Falcons\""} {"question": "Can you give me a list of driver IDs, including those that are not 10 from the driver table, and also those that are exactly 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dmwjv_12.png", "TableImg_031ck_5.png"], "original_data_index": 6549, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the aircraft IDs that are less than 1 from the aircraft table, and also list the aircraft IDs that are less than or equal to 2 from the airport_aircraft table, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ddrdw_5.png", "TableImg_5pyee_4.png"], "original_data_index": 6547, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs that are less than 10 from the driver table, combined with a list of driver IDs that are less than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jnt13_12.png", "TableImg_Bvsaz_5.png"], "original_data_index": 6550, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me all the dates staff left, considering staff who either have a staff address ID of 7 or less, or a nickname other than norma73, or a last name other than Rogahn, or a first name other than Ernestina who left on 2018-03-04 17:13:53 and have a staff ID of 12, or joined on 2017-10-21 17:20:57, were born on 2010-12-08 16:55:14, and have a middle name of Ulices, along with staff who have a first name other than Winnifred and left on 2018-03-01 17:10:03, or have a staff ID of 15 or less, or a middle name other than Mayra, or were not born on 2000-06-13 18:09:11 and have a last name other than Turner, or have a staff address ID other than 3, or a nickname other than bkunze, or did not join on 2017-04-27 03:21:26?", "answer": {"columns": ["date_left_staff"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["2018-02-26 17:56:31"], ["2018-02-28 08:26:10"], ["2018-03-01 17:10:03"], ["2018-03-02 01:48:15"], ["2018-03-04 17:13:53"], ["2018-03-05 18:30:12"], ["2018-03-06 23:17:41"], ["2018-03-08 04:23:14"], ["2018-03-08 05:16:29"], ["2018-03-08 12:31:16"], ["2018-03-09 05:08:35"], ["2018-03-10 15:25:00"], ["2018-03-14 07:14:37"], ["2018-03-23 22:53:12"], ["2018-03-24 10:11:08"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_4a8sl_15.png", "TableImg_Rhuc7_15.png"], "original_data_index": 6548, "original_sql": "SELECT date_left_staff FROM Staff WHERE \"staff_address_id\" <= 7 OR nickname != \"norma73\" OR last_name <> \"Rogahn\" OR first_name <> \"Ernestina\" AND date_left_staff = \"2018-03-04 17:13:53\" AND \"staff_id\" = 12 OR date_joined_staff = \"2017-10-21 17:20:57\" AND date_of_birth = \"2010-12-08 16:55:14\" AND middle_name = \"Ulices\" UNION SELECT date_left_staff FROM Staff WHERE first_name <> \"Winnifred\" AND date_left_staff = \"2018-03-01 17:10:03\" OR \"staff_id\" <= 15 OR middle_name <> \"Mayra\" OR date_of_birth != \"2000-06-13 18:09:11\" AND last_name != \"Turner\" OR \"staff_address_id\" != 3 OR nickname <> \"bkunze\" OR date_joined_staff != \"2017-04-27 03:21:26\""} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 7, and those from the school_bus table excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Brhhq_12.png", "TableImg_Ure2j_5.png"], "original_data_index": 6552, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What is the total customer ID for payments of $5475.26, combined with the total customer ID for lessons where the customer ID is 3 or greater and the lesson date is not March 16, 2018 at 7:08:52 AM, and the vehicle ID is 1 or greater and the lesson status is not cancelled, or the lesson ID is less than 7 and the staff ID is less than 1?", "answer": {"columns": ["SUM(customer_id)"], "index": [0, 1], "data": [["6"], ["39"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_2ar80_15.png", "TableImg_Je2p0_15.png"], "original_data_index": 6551, "original_sql": "SELECT SUM(customer_id) FROM Customer_Payments WHERE \"amount_payment\" = 5475.26 UNION SELECT SUM(customer_id) FROM Lessons WHERE \"customer_id\" >= 3 AND lesson_date != \"2018-03-16 07:08:52\" AND \"vehicle_id\" >= 1 AND lesson_status_code != \"Cancelled\" OR \"lesson_id\" < 7 AND \"staff_id\" < 1"} {"question": "Can you show me the rank, club ID, bronze, big silver, gold, points, and small silver for all match results where either gold is at least 13, small silver is greater than 4, big silver is less than 12, bronze is at least 9, and the club ID is not 6, or where the points are exactly 102; and also show me the rank, club ID, bronze, big silver, gold, points, and small silver for all match results where bronze is not 6 and the club ID is not 2, or small silver is at most 4, or gold is at most 12, the rank is less than 1, big silver is greater than 14, or the points are at least 84?", "answer": {"columns": ["Rank", "Club_ID", "Bronze", "Big_Silver", "Gold", "Points", "Small_Silver"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2", "2", "9", "11", "13", "139", "16"], ["3", "3", "7", "9", "12", "102", "4"], ["1", "1", "8", "14", "20", "168", "9"], ["2", "2", "9", "11", "13", "139", "16"], ["3", "3", "7", "9", "12", "102", "4"], ["4", "4", "8", "12", "5", "89", "10"], ["5", "5", "10", "7", "7", "84", "9"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_F087k_6.png", "TableImg_Ewoo3_6.png"], "original_data_index": 6553, "original_sql": "SELECT Rank, Club_ID, Bronze, Big_Silver, Gold, Points, Small_Silver FROM match_result WHERE \"Gold\" >= 13 AND \"Small_Silver\" > 4 AND \"Big_Silver\" < 12 AND \"Bronze\" >= 9 AND \"Club_ID\" <> 6 OR \"Points\" = 102 UNION ALL SELECT Rank, Club_ID, Bronze, Big_Silver, Gold, Points, Small_Silver FROM match_result WHERE \"Bronze\" != 6 AND \"Club_ID\" != 2 OR \"Small_Silver\" <= 4 OR \"Gold\" <= 12 AND \"Rank\" < 1 AND \"Big_Silver\" > 14 OR \"Points\" >= 84"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver IDs greater than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bbl6u_12.png", "TableImg_Qad3c_5.png"], "original_data_index": 6555, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 3 or greater, and also those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mg2f3_12.png", "TableImg_71422_5.png"], "original_data_index": 6554, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver ID 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Liarx_12.png", "TableImg_H8ind_5.png"], "original_data_index": 6556, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the average group equity shareholding, type, principal activities, name, average ID, and incorporation location for companies, combining two sets of results: first, companies not incorporated in China, or whose principal activity is cargo airline, or are not joint ventures, or are not named CLS Catering Services Limited, or have an ID greater than or equal to 1 and group equity shareholding less than 18.77; and second, companies that are joint ventures, with group equity shareholding not equal to 100.0, and not incorporated in Hong Kong, or are named Vogue Laundry Service Limited?", "answer": {"columns": ["AVG(Group_Equity_Shareholding)", "Type", "Principal_activities", "name", "AVG(id)", "Incorporated_in"], "index": [0, 1], "data": [["74.4835714286", "Corporate", "Airline", "Air China", "7.5", "China"], ["52.8", "Joint Venture", "Cargo airline", "Air China Cargo", "10.4", "China"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Jl951_14.png", "TableImg_A9klz_14.png"], "original_data_index": 6557, "original_sql": "SELECT AVG(Group_Equity_Shareholding), Type, Principal_activities, name, AVG(id), Incorporated_in FROM operate_company WHERE Incorporated_in != \"China\" OR Principal_activities = \"Cargo airline\" OR Type <> \"Joint Venture\" OR name != \"CLS Catering Services Limited\" OR \"id\" >= 1 AND \"Group_Equity_Shareholding\" < 18.77 UNION ALL SELECT AVG(Group_Equity_Shareholding), Type, Principal_activities, name, AVG(id), Incorporated_in FROM operate_company WHERE Type = \"Joint Venture\" AND \"Group_Equity_Shareholding\" != 100.0 AND Incorporated_in <> \"Hong Kong\" OR name = \"Vogue Laundry Service Limited\""} {"question": "What are the total copy numbers and document IDs from the circulation history for employees with IDs greater than 2, combined with the total copy numbers and document IDs from draft copies where the document ID is not 23, the draft number is less than 9, or the copy number is less than 10?", "answer": {"columns": ["SUM(copy_number)", "document_id"], "index": [0, 1], "data": [["15", "20"], ["55", "2"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_Spo26_4.png", "TableImg_U2p9i_8.png"], "original_data_index": 6559, "original_sql": "SELECT SUM(copy_number), document_id FROM Circulation_History WHERE \"employee_id\" > 2 UNION SELECT SUM(copy_number), document_id FROM Draft_Copies WHERE \"document_id\" <> 23 OR \"draft_number\" < 9 OR \"copy_number\" < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yj0y7_12.png", "TableImg_Mzi27_5.png"], "original_data_index": 6558, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me the IDs of drivers that are less than 4, and also greater than or equal to 3, considering only unique driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K2zt6_12.png", "TableImg_7vxla_5.png"], "original_data_index": 6562, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list the driver IDs that appear in the driver table, excluding driver ID 4, but only include those that do not appear in the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wvkq1_12.png", "TableImg_F7ze6_5.png"], "original_data_index": 6563, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list all the continents from the continents table, excluding Asia or where the Continent ID is 5 or greater, and also list all the continents from the countries table, but only for countries that aren't Germany and have a Country ID greater than 6?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["america"], ["europe"], ["africa"], ["australia"], ["2"], ["3"], ["2"], ["4"], ["5"], ["5"], ["4"], ["1"], ["1"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_Eytfe_5.png", "TableImg_Ipw4j_15.png"], "original_data_index": 6560, "original_sql": "SELECT Continent FROM continents WHERE Continent <> \"asia\" OR \"ContId\" >= 5 UNION ALL SELECT Continent FROM countries WHERE CountryName != \"germany\" AND \"CountryId\" > 6"} {"question": "Can you give me a list of aircraft IDs and their distances, excluding aircraft ID 10, combined with a list of aircraft IDs and distances from flights that are not flight number 33 and either don't arrive on \"04/12/2005 12:02\" or have a distance that isn't 2551?", "answer": {"columns": ["aid", "distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["1", "2308"], ["1", "8430"], ["2", "1251"], ["2", "3383"], ["3", "1749"], ["3", "7120"], ["3", "7487"], ["4", "1502"], ["5", "1530"], ["5", "2551"], ["6", "2128"], ["6", "2606"], ["7", "520"], ["8", "4103"], ["9", "1749"], ["9", "5478"], ["9", "6900"], ["10", "802"], ["11", "6441"], ["12", "6475"], ["13", "2605"], ["14", "1805"], ["15", "1504"], ["16", "30"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_Ijflg_16.png", "TableImg_Iouv1_10.png"], "original_data_index": 6561, "original_sql": "SELECT aid, distance FROM aircraft WHERE \"aid\" <> 10 UNION SELECT aid, distance FROM flight WHERE \"flno\" != 33 AND arrival_date != \"04/12/2005 12:02\" OR \"distance\" <> 2551"} {"question": "Which driver IDs are both less than or equal to 12 and also greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mygdh_12.png", "TableImg_Iee66_5.png"], "original_data_index": 6564, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 7, that appear in the driver table but not in the school_bus table for driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bq9up_12.png", "TableImg_Nvu8l_5.png"], "original_data_index": 6568, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Could you give me the IDs of documents that are in both the draft documents list with draft details not equal to \"b\", and in the documents list where the document type is not \"Hard Drive\", the shipping agent is not \"FE\", and the document status is not \"overdue\", or where other details are \"z\" and the receipt date is not \"2014-12-25 17:22:44\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["7"], ["13"], ["20"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Yep88_15.png", "TableImg_U6u9v_15.png"], "original_data_index": 6566, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details <> \"b\" INTERSECT SELECT document_id FROM Documents WHERE document_type_code <> \"Hard Drive\" AND shipping_agent_code != \"FE\" AND document_status_code != \"overdue\" OR other_details = \"z\" AND receipt_date <> \"2014-12-25 17:22:44\""} {"question": "Can you give me the Election ID, Counties Represented, First Elected year, Delegate, Party, and District for all elections, excluding those where the Delegate is James E. Malone Jr. and the Party isn't 1 and the Committee isn't Ways and Means, or the District isn't 3, or the Election ID isn't 3 and the Counties Represented isn't 13, but including those where the First Elected year is 2006 or the Committee isn't Health and Government Operations and the Delegate isn't Shane E. Pendergrass, or the Party isn't 1, or the District is at least 2?", "answer": {"columns": ["Election_ID", "Counties_Represented", "First_Elected", "Delegate", "Party", "District"], "index": [0], "data": [["8", "13", "1994", "Turner, Frank S. Frank S. Turner", "7", "3"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Luy4d_8.png", "TableImg_827y7_8.png"], "original_data_index": 6565, "original_sql": "SELECT Election_ID, Counties_Represented, First_Elected, Delegate, Party, District FROM election WHERE \"First_Elected\" = 2006.0 OR Committee <> \"Health and Government Operations\" AND Delegate != \"Pendergrass, Shane E. Shane Pendergrass\" OR \"Party\" <> 1 OR \"District\" >= 2 EXCEPT SELECT Election_ID, Counties_Represented, First_Elected, Delegate, Party, District FROM election WHERE Delegate = \"Malone, James E. Jr. James E. Malone, Jr.\" AND \"Party\" <> 1 AND Committee != \"Ways and Means\" OR \"District\" <> 3 OR \"Election_ID\" <> 3 AND Counties_Represented <> \"13\""} {"question": "Could you list the arrival date, airline ID, flight number, distance, origin, destination, price, and departure date for all flights where the distance is not 7487, and also include flights where the distance is at least 2308 and the arrival date is December 4th, 2005 at 12:02 PM and the flight number is 99 or less, or the departure date is December 4th, 2005 at 9:30 AM, or the destination is Tokyo?", "answer": {"columns": ["arrival_date", "aid", "flno", "distance", "origin", "destination", "price", "departure_date"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["04/12/2005 09:40", "1", "99", "2308", "Los Angeles", "Washington D.C.", "235.98", "04/12/2005 09:30"], ["04/12/2005 08:45", "3", "13", "1749", "Los Angeles", "Chicago", "220.98", "04/12/2005 08:45"], ["04/12/2005 07:05", "2", "346", "1251", "Los Angeles", "Dallas", "182.0", "04/12/2005 11:50"], ["04/12/2005 05:03", "6", "387", "2606", "Los Angeles", "Boston", "261.56", "04/12/2005 07:03"], ["04/12/2005 03:55", "9", "2", "5478", "Los Angeles", "Tokyo", "780.99", "04/12/2005 06:30"], ["04/12/2005 11:15", "7", "33", "2551", "Los Angeles", "Honolulu", "375.23", "04/12/2005 09:15"], ["04/12/2005 03:18", "5", "34", "2551", "Los Angeles", "Honolulu", "425.98", "04/12/2005 12:45"], ["04/12/2005 10:03", "9", "76", "1749", "Chicago", "Los Angeles", "220.98", "04/12/2005 08:32"], ["04/12/2005 12:02", "10", "68", "802", "Chicago", "New York", "202.45", "04/12/2005 09:00"], ["04/12/2005 09:40", "1", "99", "2308", "Los Angeles", "Washington D.C.", "235.98", "04/12/2005 09:30"], ["04/12/2005 03:55", "9", "2", "5478", "Los Angeles", "Tokyo", "780.99", "04/12/2005 06:30"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_551um_10.png", "TableImg_Ww8v3_10.png"], "original_data_index": 6567, "original_sql": "SELECT arrival_date, aid, flno, distance, origin, destination, price, departure_date FROM flight WHERE \"distance\" != 7487 UNION ALL SELECT arrival_date, aid, flno, distance, origin, destination, price, departure_date FROM flight WHERE \"distance\" >= 2308 AND arrival_date = \"04/12/2005 12:02\" AND \"flno\" <= 99 OR departure_date = \"04/12/2005 09:30\" OR destination = \"Tokyo\""} {"question": "Can you give me a list of store IDs that either aren't store ID 3 or aren't in district 11, combined with a list of store IDs that have a product ID greater than 4 or a store ID greater than 3?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_W87mg_5.png", "TableImg_Te3r7_15.png"], "original_data_index": 6570, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" != 3 OR \"District_ID\" != 11 UNION SELECT Store_ID FROM store_product WHERE \"Product_ID\" > 4 OR \"Store_ID\" > 3"} {"question": "Can you give me a list of employee IDs, including those of employees who either don't live in Bristol and are 29 years old, or those from the hiring table who work at a shop with an ID less than 1, are full-time, started in 2010, or have an employee ID of 7?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Fn4mq_10.png", "TableImg_Ju75k_7.png"], "original_data_index": 6569, "original_sql": "SELECT Employee_ID FROM employee WHERE City <> \"Bristol\" AND \"Age\" = 29 UNION SELECT Employee_ID FROM hiring WHERE \"Shop_ID\" < 1 OR Is_full_time = \"T\" OR Start_from = \"2010\" OR \"Employee_ID\" = 7"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding those driver IDs that are also in the school bus list and are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K5ky2_12.png", "TableImg_S3a6y_5.png"], "original_data_index": 6571, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list all aircraft IDs from the aircraft table that are greater than 3, and combine that with a list of all aircraft IDs from the airport_aircraft table that are greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_01rtb_5.png", "TableImg_A9jmx_4.png"], "original_data_index": 6572, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs are both less than or equal to 6 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9byja_12.png", "TableImg_Mkupm_5.png"], "original_data_index": 6574, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What is the difference between the total People IDs of people named Sergey Grankin, or whose People ID is not 4, or who are not Russian, or whose height is not more than 187 and were not born on August 16, 1982, and the total People IDs of poker players who have made fewer than or equal to 42 final tables, or whose best finish is less than 2, and whose Poker Player ID is 5, People ID is less than 1, and earnings are less than 476090?", "answer": {"columns": ["SUM(People_ID)"], "index": [0], "data": [["28"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Wmx5d_7.png", "TableImg_Atlov_5.png"], "original_data_index": 6573, "original_sql": "SELECT SUM(People_ID) FROM people WHERE Name = \"Sergey Grankin\" OR \"People_ID\" <> 4 OR Nationality <> \"Russia\" OR \"Height\" <= 187.0 AND Birth_Date != \"August 16, 1982\" EXCEPT SELECT SUM(People_ID) FROM poker_player WHERE \"Final_Table_Made\" <= 42.0 OR \"Best_Finish\" < 2.0 AND \"Poker_Player_ID\" = 5 AND \"People_ID\" < 1 AND \"Earnings\" < 476090.0"} {"question": "Can you give me the Party IDs and years that appear in both of these scenarios: first, when the year is after 1998, or the party isn't Working Families, the governor isn't Eliot Spitzer, there's no US Senate election, the comptroller isn't Carl McCall, the lieutenant governor is Dennis Mehiel, or the attorney general is Eliot Spitzer and the Party ID isn't 3; and second, when the attorney general is Andrew Cuomo, or there is a US Senate election and the party isn't Working Families and the lieutenant governor isn't David Paterson and the Party ID is greater than 7, or the year is after 2002, or the comptroller isn't Carl McCall?", "answer": {"columns": ["Party_ID", "Year"], "index": [0, 1, 2, 3, 4], "data": [["3", "2002"], ["4", "2002"], ["5", "2006"], ["6", "2006"], ["7", "2006"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Odznb_7.png", "TableImg_Uw8c8_7.png"], "original_data_index": 6575, "original_sql": "SELECT Party_ID, Year FROM party WHERE \"Year\" > 1998.0 OR Party != \"Working Families\" AND Governor != \"Eliot Spitzer\" AND US_Senate = \"(no election)\" AND Comptroller <> \"Carl McCall\" OR Lieutenant_Governor = \"Dennis Mehiel\" OR Attorney_General = \"Eliot Spitzer\" AND \"Party_ID\" <> 3 INTERSECT SELECT Party_ID, Year FROM party WHERE Attorney_General = \"Andrew Cuomo\" OR US_Senate != \"(no election)\" AND Party != \"Working Families\" AND Lieutenant_Governor <> \"David Paterson\" AND \"Party_ID\" > 7 OR \"Year\" > 2002.0 OR Comptroller <> \"Carl McCall\""} {"question": "Could you list the document ID, status code, receipt date, type code, other details, and shipping agent code for all documents that either aren't of type \"Paper\" and have a document ID less than or equal to 1, or have other details that aren't \"x\", a status code that isn't \"done\", and a receipt date that isn't \"2017-07-02 17:39:09\", combined with all documents that are \"overdue\" or have a document ID greater than or equal to 4, or have a receipt date that isn't \"1999-04-17 14:19:32\"?", "answer": {"columns": ["document_id", "document_status_code", "receipt_date", "document_type_code", "other_details", "shipping_agent_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "working", "2008-04-21 20:42:25", "CD", "z", "UP"], ["2", "done", "1974-05-08 00:00:46", "Paper", "h", "US"], ["3", "done", "2014-12-25 17:22:44", "Paper", "h", "UP"], ["4", "done", "1973-11-05 21:48:53", "Paper", "q", "US"], ["7", "working", "1982-09-27 14:52:15", "CD", "w", "SH"], ["10", "overdue", "1976-09-15 19:24:17", "Paper", "m", "UP"], ["12", "overdue", "1996-05-31 06:51:58", "Hard Drive", "n", "US"], ["13", "working", "2015-04-03 09:36:19", "CD", "y", "UP"], ["14", "working", "2017-07-02 17:39:09", "CD", "u", "FE"], ["15", "overdue", "1986-12-14 14:18:59", "CD", "r", "UP"], ["17", "done", "1983-09-26 09:32:56", "Paper", "p", "FE"], ["20", "working", "1996-07-27 03:30:40", "Paper", "x", "UP"], ["23", "working", "1999-04-17 14:19:32", "Hard Drive", "b", "FE"], ["24", "working", "2005-09-30 00:10:02", "Hard Drive", "j", "FE"], ["25", "overdue", "1985-11-05 17:59:34", "Hard Drive", "u", "AL"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_J2ieu_15.png", "TableImg_Hzch5_15.png"], "original_data_index": 6576, "original_sql": "SELECT document_id, document_status_code, receipt_date, document_type_code, other_details, shipping_agent_code FROM Documents WHERE document_type_code <> \"Paper\" AND \"document_id\" <= 1 OR other_details <> \"x\" AND document_status_code != \"done\" AND receipt_date != \"2017-07-02 17:39:09\" UNION SELECT document_id, document_status_code, receipt_date, document_type_code, other_details, shipping_agent_code FROM Documents WHERE document_status_code = \"overdue\" OR \"document_id\" >= 4 OR receipt_date != \"1999-04-17 14:19:32\""} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs that are equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z7ies_12.png", "TableImg_Wytk6_5.png"], "original_data_index": 6577, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the aircraft IDs that appear at least twice in the aircraft table, along with the aircraft IDs that appear more than five times in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fv9t4_5.png", "TableImg_Duuuo_4.png"], "original_data_index": 6580, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you list the aircraft IDs that are less than 3 from the aircraft table, and also include the aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Czuk9_5.png", "TableImg_Itswi_4.png"], "original_data_index": 6579, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs that are less than 11, and combine that with a list of driver IDs from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xtuxj_12.png", "TableImg_Qtr8c_5.png"], "original_data_index": 6578, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are both greater than or equal to 5 in the driver table and greater than or equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nhac4_12.png", "TableImg_Y1f6o_5.png"], "original_data_index": 6582, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me the IDs of drivers who are both: either 37 years old and from East Hartford, or have an ID of 8, a name other than Douglas McCrory, and are not affiliated with the Rep party; and also either work at a school with an ID less than 3, or are not full-time, have an ID other than 7, and have worked for 6 years?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mip35_12.png", "TableImg_Om355_5.png"], "original_data_index": 6581, "original_sql": "SELECT Driver_ID FROM driver WHERE \"Age\" = 37 AND Home_city = \"East Hartford\" OR \"Driver_ID\" = 8 AND Name != \"Douglas McCrory\" AND Party <> \"Rep\" INTERSECT SELECT Driver_ID FROM school_bus WHERE \"School_ID\" < 3 OR If_full_time <> \"T\" AND \"Driver_ID\" != 7 AND \"Years_Working\" = 6"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 3, and those from the school bus table that are exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A89cy_12.png", "TableImg_4gyr0_5.png"], "original_data_index": 6583, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are greater than 5 from the driver table, excluding any driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6yldb_12.png", "TableImg_6kine_5.png"], "original_data_index": 6584, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are both greater than or equal to 2 and also less than or equal to 7, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P9hky_12.png", "TableImg_1t1c6_5.png"], "original_data_index": 6586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the aircraft IDs that are greater than 2 when grouped in the aircraft table, and also list aircraft IDs that are greater than or equal to 2 when grouped in the airport_aircraft table, combining the results into a single list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nbrtn_5.png", "TableImg_W261b_4.png"], "original_data_index": 6588, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs less than 10 from the driver table, excluding any driver IDs from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Osohg_12.png", "TableImg_Lt3ec_5.png"], "original_data_index": 6587, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the total number of counties represented by members of the \"Environmental Matters\" committee elected in 1994 or later with an Election ID of 7 or greater, combined with the total number of counties represented by all members who either are not from District 3 and are not Delegate \"Guzzone, Guy Guy Guzzone\", or have an Election ID of 3 or less, or are not from Party 1, or are not on the \"Economic Matters\" committee, or do not represent \"12.2 12B\" counties, or were first elected after 1994?", "answer": {"columns": ["SUM(Counties_Represented)"], "index": [0, 1], "data": [[""], ["93.6"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_D7gcq_8.png", "TableImg_A7t6h_8.png"], "original_data_index": 6585, "original_sql": "SELECT SUM(Counties_Represented) FROM election WHERE Committee = \"Environmental Matters\" AND \"Election_ID\" >= 7 AND \"First_Elected\" >= 1994.0 UNION ALL SELECT SUM(Counties_Represented) FROM election WHERE \"District\" <> 3 AND Delegate <> \"Guzzone, Guy Guy Guzzone\" OR \"Election_ID\" <= 3 OR \"Party\" != 1 OR Committee != \"Economic Matters\" OR Counties_Represented <> \"12.2 12B\" OR \"First_Elected\" > 1994.0"} {"question": "Can you give me a list of driver IDs that are less than 4 and also less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D64fc_12.png", "TableImg_Addqy_5.png"], "original_data_index": 6591, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 3 and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ayaw1_12.png", "TableImg_Fjxcd_5.png"], "original_data_index": 6590, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "How many aircraft have an ID of 7 or greater and are not Boeing 727s, and how many employees have an ID greater than 486512566 and are not named Milo Brooks?", "answer": {"columns": ["COUNT(name)"], "index": [0, 1], "data": [["9"], ["11"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_A3kye_16.png", "TableImg_Oe6tp_31.png"], "original_data_index": 6589, "original_sql": "SELECT COUNT(name) FROM aircraft WHERE \"aid\" >= 7 AND name != \"Boeing 727\" UNION ALL SELECT COUNT(name) FROM employee WHERE \"eid\" > 486512566 AND name <> \"Milo Brooks\""} {"question": "Can you list all the property feature descriptions where the feature ID is not 3 and the property ID is at least 6, or the description is \"cumque\", and also include all descriptions where the description is \"doloribus\" or the feature ID is not 2?", "answer": {"columns": ["property_feature_description"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["earum"], ["illo"], ["hic"], ["quo"], ["vitae"], ["autem"], ["cumque"], ["modi"], ["dolorem"], ["earum"], ["et"], ["quo"], ["odio"], ["vitae"], ["quo"], ["corrupti"], ["doloribus"], ["modi"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Dbrsa_15.png", "TableImg_Emug2_15.png"], "original_data_index": 6592, "original_sql": "SELECT property_feature_description FROM Other_Property_Features WHERE \"feature_id\" != 3 AND \"property_id\" >= 6 OR property_feature_description = \"cumque\" UNION ALL SELECT property_feature_description FROM Other_Property_Features WHERE property_feature_description = \"doloribus\" OR \"feature_id\" <> 2"} {"question": "Can you give me a list of album IDs for albums titled \"Strauss: Waltzes\" or with an ID greater than 30, combined with a list of genre IDs that are not \"Easy Listening\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340], "data": [["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Sd2b1_347.png", "TableImg_Fvwq8_25.png"], "original_data_index": 6593, "original_sql": "SELECT id FROM albums WHERE title = \"Strauss: Waltzes\" OR \"id\" > 30 UNION ALL SELECT id FROM genres WHERE name <> \"Easy Listening\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 9 and not equal to 3, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7f4s0_12.png", "TableImg_Gwec1_5.png"], "original_data_index": 6596, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bj16u_12.png", "TableImg_Llka4_5.png"], "original_data_index": 6595, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list the aircraft IDs that are less than 3 when grouped, excluding those aircraft IDs from a separate list of airport aircraft that are greater than or equal to 2 when grouped?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nxnh6_5.png", "TableImg_Q92p4_4.png"], "original_data_index": 6600, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 2, and those from the school_bus table that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1opxj_12.png", "TableImg_Bjwju_5.png"], "original_data_index": 6601, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you show me the School ID, total budget percent invested, budget invested percent, total budget percent budgeted, invested amount, and budgeted amount from the budget table for entries where either the total budget percent budgeted is at least 2.0, or the invested amount is not 146102 and the School ID is 1, or the budgeted amount is no more than 4979, the year is 2006, and the budget invested percent is not 228.8, combined with entries where either the budgeted amount is at least 3666, or the School ID is no more than 3, or the total budget percent budgeted is not 1.3, the total budget percent invested is at least 2.7, and the invested amount is no more than 2134?", "answer": {"columns": ["School_id", "total_budget_percent_invested", "Budget_invested_percent", "total_budget_percent_budgeted", "Invested", "Budgeted"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["2", "2.0", "42.9", "2.0", "2134", "4979"], ["2", "2.0", "159.3", "2.0", "5840", "3666"], ["2", "2.0", "122.5", "2.0", "8335", "6803"], ["3", "2.0", "146.9", "2.0", "8335", "6803"], ["1", "2.2", "71.3", "2.4", "85249", "119527"], ["4", "2.2", "127.6", "2.0", "95542", "74849"], ["5", "2.7", "228.6", "2.0", "146102", "113531"], ["2", "2.0", "42.9", "2.0", "2134", "4979"], ["2", "2.0", "159.3", "2.0", "5840", "3666"], ["2", "2.0", "122.5", "2.0", "8335", "6803"], ["3", "2.0", "146.9", "2.0", "8335", "6803"], ["1", "2.2", "71.3", "2.4", "85249", "119527"], ["4", "2.2", "127.6", "2.0", "95542", "74849"], ["5", "2.7", "228.8", "1.3", "140102", "61283"], ["5", "2.7", "228.6", "2.0", "146102", "113531"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_187y3_8.png", "TableImg_2vch8_8.png"], "original_data_index": 6602, "original_sql": "SELECT School_id, total_budget_percent_invested, Budget_invested_percent, total_budget_percent_budgeted, Invested, Budgeted FROM budget WHERE \"total_budget_percent_budgeted\" >= 2.0 OR \"Invested\" != 146102 AND \"School_id\" = 1 OR \"Budgeted\" <= 4979 AND \"Year\" = 2006 AND Budget_invested_percent != \"228.8\" UNION ALL SELECT School_id, total_budget_percent_invested, Budget_invested_percent, total_budget_percent_budgeted, Invested, Budgeted FROM budget WHERE \"Budgeted\" >= 3666 OR \"School_id\" <= 3 OR \"total_budget_percent_budgeted\" != 1.3 AND \"total_budget_percent_invested\" >= 2.7 AND \"Invested\" <= 2134"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 5, and those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hc9bw_12.png", "TableImg_Anwul_5.png"], "original_data_index": 6603, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the aircraft IDs that are less than 5 from the aircraft table, and combine that with a list of aircraft IDs that are less than or equal to 1 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tj8y4_5.png", "TableImg_Plv0l_4.png"], "original_data_index": 6604, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that aren't 10 with those from the school bus table that are less than 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_17a76_12.png", "TableImg_Ppzns_5.png"], "original_data_index": 6597, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me the school IDs for schools with ID 7 that are not in New Carlisle and not in Elkhart County, along with the school IDs from the endowment table where the donator is \"Com. Dom. En Estados Unidos\" or the \"School_id\" is greater than 7 or where \"endowment_id\" is less than or equal to 3 and the \"amount\" is greater than 9.05?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["6"], ["8"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_Bqfj7_8.png", "TableImg_Jfb6i_11.png"], "original_data_index": 6598, "original_sql": "SELECT School_id FROM School WHERE School_id = \"7\" AND Location != \"New Carlisle\" AND County != \"20 Elkhart\" UNION ALL SELECT School_id FROM endowment WHERE donator_name = \"Com. Dom. En Estados Unidos\" OR \"School_id\" > 7 OR \"endowment_id\" <= 3 AND \"amount\" > 9.05"} {"question": "Can you give me a list of driver IDs that are greater than 6, but not including those driver IDs that are also greater than or equal to 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cvt5o_12.png", "TableImg_Z44tx_5.png"], "original_data_index": 6605, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs that are less than or equal to 7 from the driver table, excluding any driver IDs from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ds2li_12.png", "TableImg_Dx5sr_5.png"], "original_data_index": 6606, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver has an ID of 5, but is not a driver with an ID other than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ut1fz_12.png", "TableImg_31upk_5.png"], "original_data_index": 6607, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are greater than 5, excluding any driver IDs less than 9 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H3gbq_12.png", "TableImg_4amen_5.png"], "original_data_index": 6608, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 1, but then remove any aircraft IDs from that list that also appear in the airport_aircraft table with an ID of 2 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ibype_5.png", "TableImg_Ewpbl_4.png"], "original_data_index": 6609, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs are not 11 and appear in the driver table, and are also not 10 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Csi0s_12.png", "TableImg_Bez98_5.png"], "original_data_index": 6611, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Could you give me the sum of the 'eid' values from the 'certificate' table where 'aid' is less than 12 and 'eid' is less than 142519864, combined with the sum of the 'eid' values from the 'employee' table where 'eid' is less than or equal to 489456522 and 'salary' is less than 212156, or where the name is not \"Haywood Kelly\"?", "answer": {"columns": ["SUM(eid)"], "index": [0, 1], "data": [["397168445"], ["11345165836"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_M04ey_69.png", "TableImg_Vthu8_31.png"], "original_data_index": 6610, "original_sql": "SELECT SUM(eid) FROM certificate WHERE \"aid\" < 12 AND \"eid\" < 142519864 UNION ALL SELECT SUM(eid) FROM employee WHERE \"eid\" <= 489456522 AND \"salary\" < 212156 OR name != \"Haywood Kelly\""} {"question": "Can you give me a list of driver IDs that are less than 2 from the driver table, combined with a list of driver IDs that are less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_337lu_12.png", "TableImg_Jg4o0_5.png"], "original_data_index": 6612, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, first from the driver table excluding driver ID 5, and then combined with a list of driver IDs from the school bus table that are 4 or greater, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3hezy_12.png", "TableImg_Ew4ia_5.png"], "original_data_index": 6613, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver ID 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9esq2_12.png", "TableImg_Opiml_5.png"], "original_data_index": 6614, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Could you give me a list of staff IDs from the Lessons table, including those where the staff ID is not 12 and the vehicle ID is greater than 1, or where the lesson date is not March 16, 2018 at 7:08:52 AM and the customer ID is greater than or equal to 6, combined with a list of staff IDs from the Staff table where the staff address ID is less than 5 and the staff ID is greater than 9 and the date of birth is August 1, 2015 at 1:22:43 PM, or the nickname is not santos45, or the last name is not Maggio and the first name is not Simeon, or the date left staff is not March 8, 2018 at 5:16:29 AM, or the middle name is not Stephania?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["8"], ["14"], ["11"], ["1"], ["3"], ["4"], ["11"], ["8"], ["4"], ["5"], ["15"], ["12"], ["11"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Jl0ae_15.png", "TableImg_9zqaw_15.png"], "original_data_index": 6618, "original_sql": "SELECT staff_id FROM Lessons WHERE \"staff_id\" != 12 AND \"vehicle_id\" > 1 OR lesson_date != \"2018-03-16 07:08:52\" AND \"customer_id\" >= 6 UNION ALL SELECT staff_id FROM Staff WHERE \"staff_address_id\" < 5 AND \"staff_id\" > 9 AND date_of_birth = \"2015-08-01 13:22:43\" OR nickname <> \"santos45\" OR last_name != \"Maggio\" AND first_name != \"Simeon\" OR date_left_staff <> \"2018-03-08 05:16:29\" OR middle_name != \"Stephania\""} {"question": "Can you give me a list of driver IDs, including driver ID 11 from the driver table and all driver IDs except 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4a9d0_12.png", "TableImg_Kytpu_5.png"], "original_data_index": 6615, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs, excluding driver 8, are also driver IDs less than or equal to 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X0b6o_12.png", "TableImg_Hxv82_5.png"], "original_data_index": 6620, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me the total grade points, school name, earliest type, and location for all schools, combining those not in New York City with those in Honolulu, Hawaii that either aren't colleges or have a school ID other than 3?", "answer": {"columns": ["SUM(Grade)", "School", "MIN(Type)", "Location"], "index": [0, 1], "data": [["6", "Punahou School", "Private", "Honolulu, Hawaii"], ["10", "Punahou School", "Private", "Honolulu, Hawaii"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_2zl64_7.png", "TableImg_S3nkf_7.png"], "original_data_index": 6616, "original_sql": "SELECT SUM(Grade), School, MIN(Type), Location FROM school WHERE Location <> \"New York City\" UNION SELECT SUM(Grade), School, MIN(Type), Location FROM school WHERE Location = \"Honolulu, Hawaii\" AND Grade != \"College\" OR \"School_ID\" <> 3"} {"question": "What aircraft IDs are greater than or equal to 4, excluding those aircraft IDs that are not equal to 3 and are found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cn514_5.png", "TableImg_Yqe4n_4.png"], "original_data_index": 6619, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of driver IDs that are less than 3, excluding any driver IDs that are also greater than 3 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D14x4_12.png", "TableImg_Ugmus_5.png"], "original_data_index": 6621, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, excluding those equal to 7, that are greater than 7 and appear in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3j8c9_12.png", "TableImg_Qi8xi_5.png"], "original_data_index": 6622, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Could you give me the coach IDs for male coaches with a rank of 3 or better, as well as the coach IDs from the player_coach table where the starting year is 2013 or later, or the coach ID is less than 1?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_634cb_5.png", "TableImg_Rq0i2_7.png"], "original_data_index": 6623, "original_sql": "SELECT Coach_ID FROM coach WHERE \"Rank\" <= 3 AND Gender = \"M\" UNION SELECT Coach_ID FROM player_coach WHERE \"Starting_year\" >= 2013 OR \"Coach_ID\" < 1"} {"question": "What template type codes are not associated with advertisement template types and also not associated with template ID 22?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3], "data": [["BK"], ["CV"], ["PP"], ["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_Jkfw4_5.png", "TableImg_8v7f9_20.png"], "original_data_index": 6624, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description <> \"Advertisement\" INTERSECT SELECT Template_Type_Code FROM Templates WHERE \"Template_ID\" != 22"} {"question": "Which driver IDs are both greater than or equal to 6 in the driver table and less than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nh2e9_12.png", "TableImg_Vr86o_5.png"], "original_data_index": 6625, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What aircraft IDs are not equal to 3 and are also not equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fgpoq_5.png", "TableImg_Wjcmn_4.png"], "original_data_index": 6627, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 6 or higher, and those from the school bus table that are 4 or lower?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aqgx6_12.png", "TableImg_Db194_5.png"], "original_data_index": 6626, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are 10 or greater from the driver table, combined with a list of driver IDs that are 3 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Unkyt_12.png", "TableImg_A92wb_5.png"], "original_data_index": 6628, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the interfaces, dimensions, and DPIs of products with a USB 2.0 interface, excluding those that have any other type of interface?", "answer": {"columns": ["interface", "dimensions", "dpi"], "index": [0, 1, 2, 3, 4, 5], "data": [["USB 2.0", "280 x 95 x 40", "600"], ["USB 2.0", "289 x 51 x 38", "600"], ["USB 2.0", "298 x 209 x 99", "600"], ["USB 2.0", "300 x 50 x 45", "600"], ["USB 2.0", "301 x 160 x 158", "600"], ["USB 2.0", "303 x 94 x 60", "600"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Ra30l_6.png", "TableImg_Tpd43_6.png"], "original_data_index": 6631, "original_sql": "SELECT interface, dimensions, dpi FROM product WHERE interface = \"USB 2.0\" EXCEPT SELECT interface, dimensions, dpi FROM product WHERE interface != \"USB 2.0\""} {"question": "Can you list the payment amount, payment method, payment date and time, and customer ID for all payments where either the customer ID is less than 11 and the payment amount is no more than 3073.98, or the payment method is Direct Debit, but exclude any payments where the payment amount is exactly 9886.62?", "answer": {"columns": ["amount_payment", "payment_method_code", "datetime_payment", "customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["787.12", "Credit Card", "2018-02-06 13:35:58", "3"], ["1708.18", "Direct Debit", "2018-03-20 21:38:41", "2"], ["4032.33", "Direct Debit", "2018-03-12 08:41:47", "6"], ["4610.26", "Direct Debit", "2018-02-27 20:08:53", "14"], ["4773.16", "Direct Debit", "2018-02-15 16:38:49", "7"], ["5475.26", "Direct Debit", "2018-02-19 09:06:29", "6"], ["6311.37", "Direct Debit", "2018-02-03 15:04:36", "4"], ["6782.84", "Direct Debit", "2018-02-01 06:15:31", "10"], ["8180.26", "Direct Debit", "2018-02-24 10:07:05", "2"], ["9570.93", "Direct Debit", "2018-02-05 18:44:46", "11"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_K8ho8_15.png", "TableImg_5wc0n_15.png"], "original_data_index": 6630, "original_sql": "SELECT amount_payment, payment_method_code, datetime_payment, customer_id FROM Customer_Payments WHERE \"customer_id\" < 11 AND \"amount_payment\" <= 3073.98 OR payment_method_code = \"Direct Debit\" EXCEPT SELECT amount_payment, payment_method_code, datetime_payment, customer_id FROM Customer_Payments WHERE \"amount_payment\" = 9886.62"} {"question": "Can you give me the minimum vehicle ID, customer ID, maximum lesson status code, lesson date, staff ID, and total lesson time for lessons on March 5, 2018 at 8:05 PM, or where the lesson time is not 2, the vehicle ID is at least 1, the price is at least 446, the lesson status is cancelled, the staff ID is less than 1, and the customer ID is at most 10, or the lesson ID is not 1, excluding the same information for lessons where the lesson status is not cancelled, the staff ID is at most 11, and the price is at most 199, or where the lesson time is not 9, the lesson ID is less than 12, and the vehicle ID is 1?", "answer": {"columns": ["MIN(vehicle_id)", "customer_id", "MAX(lesson_status_code)", "lesson_date", "staff_id", "SUM(lesson_time)"], "index": [0], "data": [["1", "8", "Completed", "2018-03-17 19:02:07", "1", "80"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Ots98_15.png", "TableImg_Yutyy_15.png"], "original_data_index": 6629, "original_sql": "SELECT MIN(vehicle_id), customer_id, MAX(lesson_status_code), lesson_date, staff_id, SUM(lesson_time) FROM Lessons WHERE lesson_date = \"2018-03-05 20:05:33\" OR lesson_time <> \"2\" AND \"vehicle_id\" >= 1 AND \"price\" >= 446.0 AND lesson_status_code = \"Cancelled\" AND \"staff_id\" < 1 AND \"customer_id\" <= 10 OR \"lesson_id\" <> 1 EXCEPT SELECT MIN(vehicle_id), customer_id, MAX(lesson_status_code), lesson_date, staff_id, SUM(lesson_time) FROM Lessons WHERE lesson_status_code != \"Cancelled\" AND \"staff_id\" <= 11 AND \"price\" <= 199.0 OR lesson_time != \"9\" AND \"lesson_id\" < 12 AND \"vehicle_id\" = 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 7, that are not also driver IDs less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jvwpk_12.png", "TableImg_5pbdb_5.png"], "original_data_index": 6632, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs less than 5 that are present in both the driver table and the school_bus table, considering only driver IDs less than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cvjg4_12.png", "TableImg_Do9hh_5.png"], "original_data_index": 6634, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me the maximum first name, average major, city code, sum of advisor values, age, sex, and maximum student ID for students named Eric who don't live in NYC, or are not male, or whose major is not 520, or whose last name is Pang and student ID is less than 1019, excluding those who don't live in Atlanta, are not female, whose last name is not Lee, and whose student ID is greater than 1022 and advisor is 7792, or are 17 or younger, or whose major is 600 or greater?", "answer": {"columns": ["MAX(Fname)", "AVG(Major)", "city_code", "SUM(Advisor)", "Age", "Sex", "MAX(StuID)"], "index": [0], "data": [["Tracy", "504", "WAS", "93635", "26", "F", "1035"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Aye8l_34.png", "TableImg_Fek83_34.png"], "original_data_index": 6633, "original_sql": "SELECT MAX(Fname), AVG(Major), city_code, SUM(Advisor), Age, Sex, MAX(StuID) FROM Student WHERE Fname = \"Eric\" AND city_code != \"NYC\" OR Sex != \"M\" AND \"Major\" != 520 OR LName = \"Pang\" AND \"StuID\" < 1019 EXCEPT SELECT MAX(Fname), AVG(Major), city_code, SUM(Advisor), Age, Sex, MAX(StuID) FROM Student WHERE city_code <> \"ATL\" AND Sex != \"F\" AND LName != \"Lee\" AND \"StuID\" > 1022 AND \"Advisor\" = 7792 OR \"Age\" <= 17 OR \"Major\" >= 600"} {"question": "Can you give me a list of driver IDs, where each ID is 11 or greater, but excluding any driver IDs that are not equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X09uk_12.png", "TableImg_Jjcz1_5.png"], "original_data_index": 6638, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which aircraft IDs appear in the aircraft table, excluding aircraft ID 1, and also appear in the airport_aircraft table with aircraft IDs of 2 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jgqzx_5.png", "TableImg_Sd1dz_4.png"], "original_data_index": 6635, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Could you list the names and codes of all shipping agents, including those whose code is not \"FE\", combined with those whose name is not \"UPS\" or whose description is \"t\"?", "answer": {"columns": ["shipping_agent_name", "shipping_agent_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["UPS", "UP"], ["USPS", "US"], ["Airline", "AL"], ["Ship", "SH"], ["USPS", "US"], ["Airline", "AL"], ["Fedex", "FE"], ["Ship", "SH"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Hzg5t_5.png", "TableImg_Mtddg_5.png"], "original_data_index": 6636, "original_sql": "SELECT shipping_agent_name, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code <> \"FE\" UNION ALL SELECT shipping_agent_name, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_name <> \"UPS\" OR shipping_agent_description = \"t\""} {"question": "What is the lowest contestant number for Nita Coster with a number less than or equal to 6, combined with the lowest contestant number from all votes that were not created at \"2018-03-09 19:03:39\", or are not for contestant number 5, or do not have a vote ID of 2?", "answer": {"columns": ["MIN(contestant_number)"], "index": [0, 1], "data": [[""], ["2.0"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_03h1x_11.png", "TableImg_Xkekc_4.png"], "original_data_index": 6637, "original_sql": "SELECT MIN(contestant_number) FROM CONTESTANTS WHERE \"contestant_number\" <= 6 AND contestant_name = \"Nita Coster\" UNION SELECT MIN(contestant_number) FROM VOTES WHERE created <> \"2018-03-09 19:03:39\" OR \"contestant_number\" != 5 OR \"vote_id\" <> 2"} {"question": "Can you give me a list of driver IDs that are 6 or higher from the driver table, combined with a list of driver IDs that are 4 or higher from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4nexs_12.png", "TableImg_Dyeur_5.png"], "original_data_index": 6641, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Could you give me a list of driver IDs that are not equal to 1, and are also greater than 7, based on the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0ahrp_12.png", "TableImg_Qmapd_5.png"], "original_data_index": 6640, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 1 and not equal to 3, considering only the unique driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_560dg_12.png", "TableImg_Raero_5.png"], "original_data_index": 6642, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Could you give me a list of document IDs, including those from documents with other details not equal to \"h\" or with a shipping agent code of \"US\", as well as those from mailed documents with a mailing date not equal to \"1982-01-14 05:50:54\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Nu5wf_15.png", "TableImg_Q1sog_14.png"], "original_data_index": 6639, "original_sql": "SELECT document_id FROM Documents WHERE other_details != \"h\" OR shipping_agent_code = \"US\" UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date != \"1982-01-14 05:50:54\""} {"question": "Can you give me a list of driver IDs where the ID is 12, combined with a list of driver IDs from the school bus table where the ID is not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9q2eq_12.png", "TableImg_Rnfke_5.png"], "original_data_index": 6645, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs less than or equal to 11, excluding those driver IDs that are also less than 3 and are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eux1p_12.png", "TableImg_Qa8lz_5.png"], "original_data_index": 6644, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What is the sum of Template Type Codes that are \"AD\", excluding those with a Template Type Description of \"CV\", combined with the sum of Template Type Codes that are \"CV\"?", "answer": {"columns": ["SUM(Template_Type_Code)"], "index": [0], "data": [["0"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Fx04x_5.png", "TableImg_Qgsxl_5.png"], "original_data_index": 6643, "original_sql": "SELECT SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Code = \"AD\" AND Template_Type_Description != \"CV\" UNION SELECT SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Code = \"CV\""} {"question": "What is the highest number of issues for each publisher, excluding Pearson, but only showing results where the publisher is not Bertelsmann or the price is less than or equal to 2,000,000?", "answer": {"columns": ["MAX(T1.Issues)", "Publisher"], "index": [0, 1, 2, 3, 4], "data": [["1", "Springer Nature"], ["4", "Thomson Reuters"], ["5", "Bertelsmann"], ["6", "Wiley"], ["12", "Wiley"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_Rsac3_10.png", "TableImg_7d935_7.png"], "original_data_index": 6646, "original_sql": "SELECT MAX(T1.Issues), T2.Publisher FROM book as T1 JOIN publication as T2 ON T1.Book_ID = T2.Book_ID WHERE Publisher <> \"Pearson\" GROUP BY Issues HAVING Publisher <> \"Bertelsmann\" OR Price <= 2000000.0"} {"question": "Which driver IDs are both greater than or equal to 7 in the driver table and less than or equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eshc3_12.png", "TableImg_F7n8v_5.png"], "original_data_index": 6648, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are greater than or equal to 7, excluding those driver IDs that are also greater than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Konna_12.png", "TableImg_De5s2_5.png"], "original_data_index": 6649, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 2, excluding any driver IDs that are not equal to 10 and are found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D9niu_12.png", "TableImg_E1etx_5.png"], "original_data_index": 6650, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are equal to 8, but not less than or equal to 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pw2bb_12.png", "TableImg_Mbput_5.png"], "original_data_index": 6647, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fxzyc_12.png", "TableImg_Id6ne_5.png"], "original_data_index": 6654, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are not equal to 9 and are also not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nlqbf_12.png", "TableImg_Wqa8x_5.png"], "original_data_index": 6651, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list the driver IDs from the driver table that are less than 3, and combine that with a list of driver IDs from the school_bus table that are 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Htr0j_12.png", "TableImg_Ynwmi_5.png"], "original_data_index": 6655, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the IDs of car makers that are either from country code 3 or are not named Fiat, excluding the IDs of cars that have 4 cylinders and were made after 1976, or have an engine displacement of 85.0?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Tokin_22.png", "TableImg_I3pl1_406.png"], "original_data_index": 6652, "original_sql": "SELECT Id FROM car_makers WHERE Country = \"3\" OR FullName <> \"Fiat\" EXCEPT SELECT Id FROM cars_data WHERE \"Cylinders\" = 4 AND \"Year\" > 1976 OR \"Edispl\" = 85.0"} {"question": "Can you list all the driver IDs from the driver table where the ID is 8 or higher, combined with all the driver IDs from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bh5b2_12.png", "TableImg_6sxam_5.png"], "original_data_index": 6656, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are greater than 2 and also not equal to 3, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dgumf_12.png", "TableImg_C78ku_5.png"], "original_data_index": 6659, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the aircraft IDs that are greater than 3 when grouped in the aircraft table, and also include the aircraft ID that equals 5 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_98cb6_5.png", "TableImg_Kr576_4.png"], "original_data_index": 6660, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of aircraft IDs for Lockheed L1011 planes that have a distance of 4010 or less, combined with a list of aircraft IDs from certificates where the eid is less than 356187925?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38], "data": [["2"], ["10"], ["6"], ["2"], ["10"], ["12"], ["1"], ["2"], ["3"], ["7"], ["10"], ["11"], ["12"], ["13"], ["5"], ["7"], ["2"], ["10"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["10"], ["12"], ["8"], ["9"], ["8"], ["9"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Nh1z5_16.png", "TableImg_2mgt9_69.png"], "original_data_index": 6658, "original_sql": "SELECT aid FROM aircraft WHERE name = \"Lockheed L1011\" AND \"distance\" <= 4010 UNION ALL SELECT aid FROM certificate WHERE \"eid\" < 356187925"} {"question": "Which driver has an ID of 10 and also drives a school bus, but not school bus number 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I2tf9_12.png", "TableImg_H349u_5.png"], "original_data_index": 6657, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs, greater than 7, appear in the driver table but not in the school_bus table where driver IDs are greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iu7r9_12.png", "TableImg_Dhrup_5.png"], "original_data_index": 6661, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs less than 3 that appear in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ntmsl_12.png", "TableImg_02mez_5.png"], "original_data_index": 6663, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 3, and then from the airport_aircraft table including only those greater than 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3i1ff_5.png", "TableImg_Obsdw_4.png"], "original_data_index": 6662, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you list the continent, country name, and country ID for all countries where the continent is less than or equal to 2, and also list the continent, country name, and country ID for all countries where the country ID is not 9?", "answer": {"columns": ["Continent", "CountryName", "CountryId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], "data": [["1", "usa", "1"], ["2", "germany", "2"], ["2", "france", "3"], ["2", "italy", "5"], ["2", "sweden", "6"], ["2", "uk", "7"], ["2", "russia", "9"], ["1", "mexico", "14"], ["1", "brazil", "15"], ["1", "usa", "1"], ["2", "germany", "2"], ["2", "france", "3"], ["3", "japan", "4"], ["2", "italy", "5"], ["2", "sweden", "6"], ["2", "uk", "7"], ["3", "korea", "8"], ["4", "nigeria", "10"], ["5", "australia", "11"], ["5", "new zealand", "12"], ["4", "egypt", "13"], ["1", "mexico", "14"], ["1", "brazil", "15"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_C7evh_15.png", "TableImg_R92m0_15.png"], "original_data_index": 6665, "original_sql": "SELECT Continent, CountryName, CountryId FROM countries WHERE \"Continent\" <= 2 UNION ALL SELECT Continent, CountryName, CountryId FROM countries WHERE \"CountryId\" <> 9"} {"question": "Which driver IDs are both greater than 8 and also less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fee8h_12.png", "TableImg_E36xp_5.png"], "original_data_index": 6667, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me the address ID and the shortest address detail for addresses with IDs less than 5 and details that aren't \"MX\", but only for those that also have address IDs greater than 1?", "answer": {"columns": ["address_id", "MIN(address_details)"], "index": [0], "data": [["2", "DE"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Yxihm_10.png", "TableImg_U8vj0_10.png"], "original_data_index": 6666, "original_sql": "SELECT address_id, MIN(address_details) FROM Addresses WHERE address_details != \"MX\" AND \"address_id\" < 5 INTERSECT SELECT address_id, MIN(address_details) FROM Addresses WHERE \"address_id\" > 1"} {"question": "Can you give me a list of driver IDs, up to and including 6, that are in the driver table but not in the school bus table, excluding driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tskh2_12.png", "TableImg_Dsk8g_5.png"], "original_data_index": 6664, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you list the aircraft IDs that are less than 4 from the aircraft table, combined with the aircraft IDs that are less than 2 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lwvs2_5.png", "TableImg_Wh9g2_4.png"], "original_data_index": 6668, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 9, but excluding any driver IDs greater than 4 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zg3w1_12.png", "TableImg_R1cft_5.png"], "original_data_index": 6672, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are both not equal to 8 and less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kooy6_12.png", "TableImg_I67cv_5.png"], "original_data_index": 6673, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 12, and those from the school bus table where the ID is 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xuf67_12.png", "TableImg_B56ah_5.png"], "original_data_index": 6674, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the ranks and the earliest gender of coaches, excluding those from club 3 or with coach ID 2, that are not also the ranks and earliest gender of players who are ranked \"1st\" and have a player ID greater than 4?", "answer": {"columns": ["Rank", "MIN(Gender)"], "index": [0], "data": [["2", "F"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_I3hta_5.png", "TableImg_4y7e4_14.png"], "original_data_index": 6675, "original_sql": "SELECT Rank, MIN(Gender) FROM coach WHERE \"Club_ID\" <> 3 OR \"Coach_ID\" != 2 EXCEPT SELECT Rank, MIN(Gender) FROM player WHERE Rank = \"1st\" AND \"Player_ID\" > 4"} {"question": "Which aircraft IDs are greater than or equal to 6, excluding those that also appear as aircraft IDs in the certificate table where the aircraft ID is 14?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["15"], ["16"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_3yavj_16.png", "TableImg_9jaaf_69.png"], "original_data_index": 6676, "original_sql": "SELECT aid FROM aircraft WHERE \"aid\" >= 6 EXCEPT SELECT aid FROM certificate WHERE \"aid\" = 14"} {"question": "What is the minimum number of years worked by school bus employees at schools with an ID of 7 or less, and also the minimum number of years worked by full-time school bus employees who have not worked for exactly 3 years?", "answer": {"columns": ["MIN(Years_Working)"], "index": [0, 1], "data": [["2"], ["2"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_1lski_5.png", "TableImg_6uyj5_5.png"], "original_data_index": 6677, "original_sql": "SELECT MIN(Years_Working) FROM school_bus WHERE \"School_ID\" <= 7 UNION ALL SELECT MIN(Years_Working) FROM school_bus WHERE If_full_time = \"T\" AND \"Years_Working\" <> 3"} {"question": "Can you give me a list of driver IDs, where each ID is less than 8, excluding any driver IDs that are also less than or equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5wiw9_12.png", "TableImg_H7p7j_5.png"], "original_data_index": 6678, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 12, and also those from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H76fq_12.png", "TableImg_Q4lrr_5.png"], "original_data_index": 6679, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 12 with those from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jtymv_12.png", "TableImg_F0lid_5.png"], "original_data_index": 6680, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are both less than or equal to 8 in the driver table and less than or equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_197gt_12.png", "TableImg_Vr5wr_5.png"], "original_data_index": 6681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which names are both \"Terry\" and also belong to users with a u_id of 3, excluding \"Emily\"?", "answer": {"columns": ["name"], "index": [0], "data": [["Terry"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_8pxvv_7.png", "TableImg_5gdzr_7.png"], "original_data_index": 6682, "original_sql": "SELECT name FROM useracct WHERE \"u_id\" = 3 AND name != \"Emily\" INTERSECT SELECT name FROM useracct WHERE name = \"Terry\""} {"question": "Can you give me a list of driver IDs that are greater than or equal to 3, excluding those driver IDs greater than 3 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2kox3_12.png", "TableImg_7uqt3_5.png"], "original_data_index": 6683, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of head IDs that either belong to someone born in Alabama, named Jeff Maggert, or have a head ID greater than 3, along with head IDs from the management table where the temporary acting status is not \"No\", the head ID is 6, and the department ID is 2 or greater?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["6"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_2rmzq_10.png", "TableImg_Rv8mx_5.png"], "original_data_index": 6684, "original_sql": "SELECT head_ID FROM head WHERE born_state = \"Alabama\" OR name = \"Jeff Maggert\" OR \"head_ID\" > 3 UNION ALL SELECT head_ID FROM management WHERE temporary_acting != \"No\" AND \"head_ID\" = 6 AND \"department_ID\" >= 2"} {"question": "Can you list the aircraft IDs that are greater than 2, and also list the aircraft IDs from the airport aircraft table that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5zla9_5.png", "TableImg_U7ozd_4.png"], "original_data_index": 6685, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which driver IDs are both greater than or equal to 7 and also less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qomnn_12.png", "TableImg_Yi20y_5.png"], "original_data_index": 6669, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of aircraft IDs that are both greater than or equal to 2 in the aircraft table and less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9zewj_5.png", "TableImg_Qisqm_4.png"], "original_data_index": 6670, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 8, and those from the school bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R08qc_12.png", "TableImg_5imym_5.png"], "original_data_index": 6671, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you list the document IDs from the circulation history where either the document ID is not 2 and the draft number is 2 or greater, or the employee ID is 8 or greater and the copy number is 10, combined with document IDs from the documents mailed table where the mailed-to address ID is 0 or less, the document ID is not 20, and the mailing date is not January 1st, 2007 at 10:32 PM?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4], "data": [["20"], ["1"], ["10"], ["12"], ["24"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Dqe2t_4.png", "TableImg_0rqov_14.png"], "original_data_index": 6689, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" <> 2 AND \"draft_number\" >= 2 OR \"employee_id\" >= 8 AND \"copy_number\" = 10 UNION ALL SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <= 0 AND \"document_id\" != 20 AND mailing_date <> \"2007-01-01 22:32:11\""} {"question": "What are the aircraft IDs that are not equal to 1 and are also not equal to 3 in the airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vh1lx_5.png", "TableImg_Aij99_4.png"], "original_data_index": 6690, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What is the difference between the number of items and the average article ID for reviews with a rating less than 7 or an item ID less than 7 or an article ID not equal to 3, and the number of items and average article ID for reviews with a rating not equal to 5 and a user ID less than 2?", "answer": {"columns": ["COUNT(i_id)", "AVG(a_id)"], "index": [0], "data": [["6", "4.1666666667"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Leuyg_7.png", "TableImg_K6ljv_7.png"], "original_data_index": 6691, "original_sql": "SELECT COUNT(i_id), AVG(a_id) FROM review WHERE \"rating\" < 7 AND \"i_id\" < 7 OR \"a_id\" <> 3 EXCEPT SELECT COUNT(i_id), AVG(a_id) FROM review WHERE \"rating\" != 5 AND \"u_id\" < 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4t2sd_12.png", "TableImg_8j69g_5.png"], "original_data_index": 6692, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What is the smallest employee ID from the Circulation History table where the copy number is 15 or less and the employee ID is less than 1, combined with the smallest employee ID from the Employees table where the employee name is not Koby, the other details are not 'b', and either the role code is not 'ED' or the employee ID is not 3?", "answer": {"columns": ["MIN(employee_id)"], "index": [0, 1], "data": [[""], ["1.0"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_3ci9c_4.png", "TableImg_B5pmi_6.png"], "original_data_index": 6693, "original_sql": "SELECT MIN(employee_id) FROM Circulation_History WHERE \"copy_number\" <= 15 AND \"employee_id\" < 1 UNION SELECT MIN(employee_id) FROM Employees WHERE employee_name != \"Koby\" AND other_details != \"b\" AND role_code <> \"ED\" OR \"employee_id\" <> 3"} {"question": "Can you give me the IDs of drivers that are less than or equal to 2, excluding the IDs of school bus drivers that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dlkai_12.png", "TableImg_Wm9nd_5.png"], "original_data_index": 6688, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than or equal to 7, excluding those driver IDs that are also less than or equal to 3 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_My8os_12.png", "TableImg_Wvsei_5.png"], "original_data_index": 6687, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What is the largest album ID that is less than or equal to 139 and has an artist ID less than 10, and what is the largest media type ID that is greater than or equal to 5?", "answer": {"columns": ["MAX(id)"], "index": [0, 1], "data": [["5"], ["34"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_Godet_347.png", "TableImg_T7ovl_5.png"], "original_data_index": 6694, "original_sql": "SELECT MAX(id) FROM albums WHERE \"id\" <= 139 AND \"artist_id\" < 10 UNION SELECT MAX(id) FROM media_types WHERE \"id\" >= 5"} {"question": "What continents, excluding Africa and those with a ContId of 1 or less, are not also continents associated with countries other than the UK and with a continent value of 5 or greater?", "answer": {"columns": ["Continent"], "index": [0, 1, 2], "data": [["asia"], ["australia"], ["europe"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_Fpgwj_5.png", "TableImg_Qmiky_15.png"], "original_data_index": 6695, "original_sql": "SELECT Continent FROM continents WHERE Continent <> \"africa\" AND \"ContId\" > 1 EXCEPT SELECT Continent FROM countries WHERE CountryName != \"uk\" AND \"Continent\" >= 5"} {"question": "Can you give me the Comptroller, average US Senate result, Party ID, minimum Lieutenant Governor, and Attorney General from the party table, first where the US Senate result is \"(no election)\", or the Lieutenant Governor is \"Dennis Mehiel\", or the Attorney General is not \"Eliot Spitzer\", or the Party is not \"Independence\" and the Year is not 1998 and the Comptroller is not \"Alan Hevesi\", and also where the Year is greater than 2006?", "answer": {"columns": ["Comptroller", "AVG(US_Senate)", "Party_ID", "MIN(Lieutenant_Governor)", "Attorney_General"], "index": [0, 1], "data": [["", "", "", "", ""], ["Alan Hevesi", "0.0", "5.0", "David Paterson", "Andrew Cuomo"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Bmpoz_7.png", "TableImg_Xm7k4_7.png"], "original_data_index": 6686, "original_sql": "SELECT Comptroller, AVG(US_Senate), Party_ID, MIN(Lieutenant_Governor), Attorney_General FROM party WHERE US_Senate = \"(no election)\" OR Lieutenant_Governor = \"Dennis Mehiel\" OR Attorney_General <> \"Eliot Spitzer\" OR Party != \"Independence\" AND \"Year\" <> 1998.0 AND Comptroller != \"Alan Hevesi\" UNION SELECT Comptroller, AVG(US_Senate), Party_ID, MIN(Lieutenant_Governor), Attorney_General FROM party WHERE \"Year\" > 2006.0"} {"question": "What are the number of employees in departments that either have a ranking of 13 or more than 30266 employees, excluding the number of employees in departments named \"Interior\" with a budget of 62.8 billion or less and a creation date not equal to 1789?", "answer": {"columns": ["Num_Employees"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["4487"], ["36000"], ["58622"], ["67000"], ["109832"], ["112557"], ["115897"], ["116100"], ["208000"], ["235000"], ["3000000"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Lfo1p_15.png", "TableImg_0z9f6_15.png"], "original_data_index": 6696, "original_sql": "SELECT Num_Employees FROM department WHERE \"Ranking\" = 13 OR \"Num_Employees\" > 30266.0 EXCEPT SELECT Num_Employees FROM department WHERE Name = \"Interior\" AND \"Budget_in_Billions\" <= 62.8 AND Creation != \"1789\""} {"question": "Can you give me a list of aircraft IDs, including those from the aircraft table that are not equal to 5, and those from the airport_aircraft table that are equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1by2p_5.png", "TableImg_Ngvbj_4.png"], "original_data_index": 6697, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs that are greater than 8, excluding any driver IDs from the school bus list that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0dz3d_12.png", "TableImg_Gmsx3_5.png"], "original_data_index": 6698, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list all driver IDs that are less than 5 from the driver table, and combine that with a list of all driver IDs that are less than 10 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cpyj2_12.png", "TableImg_Yrzcd_5.png"], "original_data_index": 6699, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the driver IDs that are less than 7 from the driver table, and combine that with a list of driver IDs that are greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_50nbk_12.png", "TableImg_8wqe5_5.png"], "original_data_index": 6700, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the maker and ID for all car makers that are either \"subaru\" or from country \"5\", but not named \"Opel\" and have an ID less than or equal to 23, combined with a list of the maker and ID for all car makers not from country \"4\"?", "answer": {"columns": ["Maker", "Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["amc", "1"], ["bmw", "3"], ["chrysler", "6"], ["citroen", "7"], ["daimler benz", "13"], ["fiat", "9"], ["ford", "5"], ["gm", "4"], ["hyundai", "23"], ["kia", "22"], ["opel", "14"], ["peugeaut", "15"], ["renault", "16"], ["saab", "17"], ["subaru", "18"], ["triumph", "20"], ["volkswagen", "2"], ["volvo", "21"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_Kzxnf_22.png", "TableImg_Hr3rn_22.png"], "original_data_index": 6701, "original_sql": "SELECT Maker, Id FROM car_makers WHERE Maker = \"subaru\" OR Country = \"5\" AND FullName <> \"Opel\" AND \"Id\" <= 23 UNION SELECT Maker, Id FROM car_makers WHERE Country <> \"4\""} {"question": "Can you give me a list of driver IDs that are greater than 6 and also not equal to 3, considering only the unique driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2copq_12.png", "TableImg_Me6c2_5.png"], "original_data_index": 6702, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 5 and appears more than once in the driver table, excluding those driver IDs that are not equal to 9 and appear more than once in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_38qfg_12.png", "TableImg_Ijhy5_5.png"], "original_data_index": 6706, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the aircraft IDs that are less than 5 from the aircraft table, and combine that with a list of aircraft IDs that are less than or equal to 1 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Auw48_5.png", "TableImg_F7gu5_4.png"], "original_data_index": 6707, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of ranks and their corresponding total club IDs, combining results from two separate searches: one where the coach ID is 1 or greater, and another where the rank is 2 or greater, or the gold is greater than 13, or the club ID is 6 and the bronze is less than or equal to 7?", "answer": {"columns": ["Rank", "SUM(Club_ID)"], "index": [0, 1], "data": [["1", "9"], ["1", "21"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_O0l9n_5.png", "TableImg_482lr_6.png"], "original_data_index": 6708, "original_sql": "SELECT Rank, SUM(Club_ID) FROM coach WHERE \"Coach_ID\" >= 1 UNION SELECT Rank, SUM(Club_ID) FROM match_result WHERE \"Rank\" >= 2 OR \"Gold\" > 13 OR \"Club_ID\" = 6 AND \"Bronze\" <= 7"} {"question": "Can you list the driver IDs from the driver table that are less than or equal to 6, and combine that with a list of driver IDs from the school_bus table that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O5kkk_12.png", "TableImg_Yq99s_5.png"], "original_data_index": 6709, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table and any driver IDs greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wc1t9_12.png", "TableImg_Mseie_5.png"], "original_data_index": 6710, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Could you list the document IDs for all documents that were circulated by employees other than employee number 2, combined with the document IDs of all documents that are not CDs and either were not received on September 30, 2005 at 12:10:02 AM or do not have receipt number 79?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_A0uql_4.png", "TableImg_Ojpqt_15.png"], "original_data_index": 6711, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"employee_id\" != 2 UNION SELECT document_id FROM Documents WHERE document_type_code <> \"CD\" AND receipt_date != \"2005-09-30 00:10:02\" OR receipt_number <> \"79\""} {"question": "Can you give me a list of driver IDs that are 10 or greater from the driver table, excluding any driver IDs that are 9 or greater from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I5vcm_12.png", "TableImg_2axpt_5.png"], "original_data_index": 6712, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of heights of people, excluding those who are no taller than 182 cm, where the people are either not named Semen Poltavskiy, or are not 205 cm tall and were born on May 26, 1986, or are not Russian?", "answer": {"columns": ["Height"], "index": [0, 1, 2, 3, 4], "data": [["187"], ["193"], ["194"], ["196"], ["207"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_P53l7_7.png", "TableImg_R3sdk_7.png"], "original_data_index": 6713, "original_sql": "SELECT Height FROM people WHERE Name != \"Semen Poltavskiy\" OR \"Height\" <> 205.0 AND Birth_Date = \"May 26, 1986\" OR Nationality <> \"Russia\" EXCEPT SELECT Height FROM people WHERE \"Height\" <= 182.0"} {"question": "Which aircraft IDs are not equal to 1 in the aircraft table and also not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9z9ok_5.png", "TableImg_C860y_4.png"], "original_data_index": 6714, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding aircraft ID 1, and then from the airport_aircraft table including only aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X63ce_5.png", "TableImg_Ogz7j_4.png"], "original_data_index": 6715, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, from the driver table, but only those IDs that are not also in the school bus table where the driver ID is less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Io5w8_12.png", "TableImg_Pkutz_5.png"], "original_data_index": 6716, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 6, combined with a list of driver IDs from the school_bus table where each ID is not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7zucy_12.png", "TableImg_Z3dni_5.png"], "original_data_index": 6717, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver IDs, excluding driver ID 9, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Muony_12.png", "TableImg_G7zr3_5.png"], "original_data_index": 6718, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Could you give me the name, continent, and ID of countries that are not Australia or have a continent value greater than 1 and an ID not equal to 6, but only if they are also not the USA or have an ID less than 1 or a continent not equal to 3?", "answer": {"columns": ["CountryName", "Continent", "CountryId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["australia", "5", "11"], ["brazil", "1", "15"], ["egypt", "4", "13"], ["france", "2", "3"], ["germany", "2", "2"], ["italy", "2", "5"], ["japan", "3", "4"], ["korea", "3", "8"], ["mexico", "1", "14"], ["new zealand", "5", "12"], ["nigeria", "4", "10"], ["russia", "2", "9"], ["sweden", "2", "6"], ["uk", "2", "7"], ["usa", "1", "1"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_Mb7fk_15.png", "TableImg_Qmzt4_15.png"], "original_data_index": 6719, "original_sql": "SELECT CountryName, Continent, CountryId FROM countries WHERE CountryName <> \"australia\" OR \"Continent\" > 1 AND \"CountryId\" <> 6 INTERSECT SELECT CountryName, Continent, CountryId FROM countries WHERE CountryName <> \"usa\" OR \"CountryId\" < 1 OR \"Continent\" <> 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs greater than 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tf5im_12.png", "TableImg_0wxph_5.png"], "original_data_index": 6704, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of company IDs, including those where people worked for 4 years, as well as those where the company ID is not 7 and the person's ID is greater than 3?", "answer": {"columns": ["Company_ID"], "index": [0, 1], "data": [["17"], ["17"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_Gwt0v_5.png", "TableImg_85f9o_5.png"], "original_data_index": 6703, "original_sql": "SELECT Company_ID FROM employment WHERE \"Year_working\" = 4 UNION ALL SELECT Company_ID FROM employment WHERE \"Company_ID\" <> 7 AND \"People_ID\" > 3"} {"question": "Can you list all driver IDs, including those from the driver table that are 11 or greater, and those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ehnak_12.png", "TableImg_F5ovh_5.png"], "original_data_index": 6705, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which aircraft IDs are both equal to 3 in the aircraft table and greater than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tpgel_5.png", "TableImg_Sonjj_4.png"], "original_data_index": 6723, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me the Paragraph ID, Other Details, Document ID, and Paragraph Text for all paragraphs that either have a Document ID of 2394 and contain the text \"Korea\", or have a Document ID less than or equal to 3540024, Other Details listed as \"None\", and a Paragraph ID less than 7?", "answer": {"columns": ["Paragraph_ID", "Other_Details", "Document_ID", "Paragraph_Text"], "index": [0, 1], "data": [["7", "", "2394", "Korea"], ["510442723", "", "2394", "Korea"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_6uswe_15.png", "TableImg_X8t6x_15.png"], "original_data_index": 6724, "original_sql": "SELECT Paragraph_ID, Other_Details, Document_ID, Paragraph_Text FROM Paragraphs WHERE \"Document_ID\" = 2394 AND Paragraph_Text = \"Korea\" UNION SELECT Paragraph_ID, Other_Details, Document_ID, Paragraph_Text FROM Paragraphs WHERE \"Document_ID\" <= 3540024 AND Other_Details = \"None\" AND \"Paragraph_ID\" < 7"} {"question": "Can you give me the School ID, School name, and Type for all schools that are either Columbia University and not Kindergarten, or are Private, or have a School ID of 4, or are not located in Jakarta, Indonesia, combined with all schools that have a School ID greater than 3?", "answer": {"columns": ["School_ID", "School", "Type"], "index": [0, 1, 2, 3, 4], "data": [["1", "Noelani Elementary School", "Public"], ["4", "Punahou School", "Private"], ["5", "Occidental College", "Private"], ["6", "Columbia University", "Private"], ["7", "Harvard Law School", "Private"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Az0j4_7.png", "TableImg_6ajxy_7.png"], "original_data_index": 6725, "original_sql": "SELECT School_ID, School, Type FROM school WHERE School = \"Columbia University\" AND Grade != \"Kindergarten\" OR Type = \"Private\" OR \"School_ID\" = 4 OR Location <> \"Jakarta, Indonesia\" UNION SELECT School_ID, School, Type FROM school WHERE \"School_ID\" > 3"} {"question": "Can you list the aircraft IDs that appear more than once in the aircraft table and are greater than 1, combined with the aircraft IDs that appear more than once in the airport_aircraft table and are greater than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bnhm3_5.png", "TableImg_O6x1m_4.png"], "original_data_index": 6726, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me the sum of cities and the state/province/county from the Addresses table where the country isn't USA, the zip code isn't 00005, the address ID is less than 13, and the building number isn't 00704 Zoe Alley, or where the state/province/county isn't Louisiana and the city isn't New Bernieceburgh, but only if these results also match records where the zip code isn't 22194, the address ID is at least 11, the country isn't USA, or the city isn't South Eugene and the building number is 4834 Schaefer Light Suite 947 and the state/province/county is Washington?", "answer": {"columns": ["SUM(city)", "state_province_county"], "index": [0], "data": [["0", "Georgia"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_4l9y3_15.png", "TableImg_Qe7k3_15.png"], "original_data_index": 6727, "original_sql": "SELECT SUM(city), state_province_county FROM Addresses WHERE country <> \"USA\" AND zip_postcode <> \"00005\" AND \"address_id\" < 13 AND line_1_number_building <> \"00704 Zoe Alley\" OR state_province_county != \"Louisiana\" AND city != \"New Bernieceburgh\" INTERSECT SELECT SUM(city), state_province_county FROM Addresses WHERE zip_postcode != \"22194\" OR \"address_id\" >= 11 OR country != \"USA\" OR city != \"South Eugene\" AND line_1_number_building = \"4834 Schaefer Light Suite 947\" AND state_province_county = \"Washington\""} {"question": "Could you give me the PetID and StuID combinations where the StuID is 1002, but exclude any combinations where the PetID is less than or equal to 2002 and the StuID is greater than or equal to 1002?", "answer": {"columns": ["PetID", "StuID"], "index": [0], "data": [["2003", "1002"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_V9iyq_3.png", "TableImg_Snatu_3.png"], "original_data_index": 6728, "original_sql": "SELECT PetID, StuID FROM Has_Pet WHERE \"StuID\" = 1002 EXCEPT SELECT PetID, StuID FROM Has_Pet WHERE \"PetID\" <= 2002 AND \"StuID\" >= 1002"} {"question": "What is the highest Club ID from the club table where the Club ID is less than or equal to 5, the start year is not 2005, the region is not USA, or the club name is Helsingborgs IF, combined with the highest Club ID from the match result table where Big Silver is less than 14 and Small Silver is 9?", "answer": {"columns": ["MAX(Club_ID)"], "index": [0, 1], "data": [["6"], ["5"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_N4qvk_6.png", "TableImg_Qpxbc_6.png"], "original_data_index": 6729, "original_sql": "SELECT MAX(Club_ID) FROM club WHERE \"Club_ID\" <= 5 AND \"Start_year\" != 2005 OR Region <> \"USA\" OR Club_name = \"Helsingborgs IF\" UNION ALL SELECT MAX(Club_ID) FROM match_result WHERE \"Big_Silver\" < 14 AND \"Small_Silver\" = 9"} {"question": "Which aircraft IDs, excluding aircraft ID 2, are also aircraft ID 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Agoj3_5.png", "TableImg_Qj5pf_4.png"], "original_data_index": 6721, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs that are both greater than 7 and also not equal to 9, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9b2dx_12.png", "TableImg_449ik_5.png"], "original_data_index": 6722, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 7 and appear in the driver table, and also less than 7 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qo0ao_12.png", "TableImg_6xc80_5.png"], "original_data_index": 6720, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are greater than 3 from the driver table, combined with a list of driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cpg4t_12.png", "TableImg_Phnrq_5.png"], "original_data_index": 6730, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list all the driver IDs that are less than 1 from the driver table, and combine that with a list of all driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yjqg6_12.png", "TableImg_675p2_5.png"], "original_data_index": 6731, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Could you give me the IDs of the addresses that documents were mailed to, where the address ID is 5, or the document ID is greater than 12, or the mailing date was January 1st, 2007 at 10:32 PM, but only if the address ID is also less than 8?", "answer": {"columns": ["mailed_to_address_id"], "index": [0, 1, 2, 3, 4], "data": [["0"], ["2"], ["4"], ["5"], ["7"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_Rwwpc_14.png", "TableImg_Byqo6_14.png"], "original_data_index": 6732, "original_sql": "SELECT mailed_to_address_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" = 5 OR \"document_id\" > 12 OR mailing_date = \"2007-01-01 22:32:11\" INTERSECT SELECT mailed_to_address_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" < 8"} {"question": "Which driver IDs are equal to 6, but are not driver IDs less than or equal to 4 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zounm_12.png", "TableImg_Gzl9r_5.png"], "original_data_index": 6733, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs appear in both the driver table where the ID is 10, and the school_bus table where the ID is 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cox0l_12.png", "TableImg_St9ff_5.png"], "original_data_index": 6735, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Could you list the document IDs from the Documents table where the shipping agent code isn't \"UP\", or the receipt date is September 27, 1982 at 2:52 PM and the document type code is \"Hard Drive\", or the receipt number isn't \"93\" and the document ID is greater than 17 and the document status code isn't \"working\", or the other details aren't \"w\", and also include the document IDs from the Documents_Mailed table where the mailed to address ID is less than 2?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Nv0jz_15.png", "TableImg_Jnck6_14.png"], "original_data_index": 6734, "original_sql": "SELECT document_id FROM Documents WHERE shipping_agent_code != \"UP\" OR receipt_date = \"1982-09-27 14:52:15\" AND document_type_code = \"Hard Drive\" OR receipt_number <> \"93\" AND \"document_id\" > 17 AND document_status_code != \"working\" OR other_details != \"w\" UNION SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" < 2"} {"question": "Which driver IDs, that are 6 or greater, are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M7frf_12.png", "TableImg_Wzgoy_5.png"], "original_data_index": 6736, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the state of birth, oldest age, head ID, and name for everyone in the head table, combining two lists: one excluding people born in Delaware, and another including everyone except Franklin Langham or those older than 68?", "answer": {"columns": ["born_state", "MAX(age)", "head_ID", "name"], "index": [0, 1], "data": [["Alabama", "69", "3", "K. J. Choi"], ["Alabama", "69", "3", "K. J. Choi"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Dxsyp_10.png", "TableImg_S2pu2_10.png"], "original_data_index": 6740, "original_sql": "SELECT born_state, MAX(age), head_ID, name FROM head WHERE born_state != \"Delaware\" UNION ALL SELECT born_state, MAX(age), head_ID, name FROM head WHERE name != \"Franklin Langham\" OR \"age\" > 68.0"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs, excluding driver ID 4, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M101b_12.png", "TableImg_Y5ua6_5.png"], "original_data_index": 6741, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or greater, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U8cyg_12.png", "TableImg_Vc64b_5.png"], "original_data_index": 6742, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list the price, publication ID, publication date, book ID, and publisher for all publications, including those not published by Pearson and those published in March 2007, or with a price of 3,000,000 and book ID of 5, or with a publication ID greater than 7, or where the publisher is not Pearson?", "answer": {"columns": ["Price", "Publication_ID", "Publication_Date", "Book_ID", "Publisher"], "index": [0, 1, 2, 3, 4, 5], "data": [["2000000", "6", "March 2007", "9", "Pearson"], ["2000000", "7", "April 2007", "10", "Bertelsmann"], ["3000000", "4", "October 2005", "5", "Wiley"], ["3000000", "5", "August 2008", "7", "Springer Nature"], ["4100000", "3", "June 2006", "4", "Wiley"], ["6000000", "2", "March 2008", "3", "Thomson Reuters"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_V52dl_7.png", "TableImg_Ysb1i_7.png"], "original_data_index": 6743, "original_sql": "SELECT Price, Publication_ID, Publication_Date, Book_ID, Publisher FROM publication WHERE Publisher != \"Pearson\" UNION SELECT Price, Publication_ID, Publication_Date, Book_ID, Publisher FROM publication WHERE Publication_Date = \"March 2007\" OR \"Price\" = 3000000.0 AND \"Book_ID\" = 5 OR \"Publication_ID\" > 7 OR Publisher <> \"Pearson\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 6, excluding those driver IDs that are less than 3 and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L4cga_12.png", "TableImg_3w8oj_5.png"], "original_data_index": 6744, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 3, and those from the school bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Imecd_12.png", "TableImg_Bqht1_5.png"], "original_data_index": 6745, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 7 and also not equal to 4, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Egveh_12.png", "TableImg_Ec99z_5.png"], "original_data_index": 6746, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are greater than 1 and also not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ogfd_12.png", "TableImg_6gk71_5.png"], "original_data_index": 6747, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are less than or equal to 7, excluding any driver IDs greater than 3 that are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gkxpi_12.png", "TableImg_U3jok_5.png"], "original_data_index": 6748, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than 7 and also not equal to 3, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7u32r_12.png", "TableImg_Wpqw6_5.png"], "original_data_index": 6749, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of aircraft IDs that are less than 5, excluding those aircraft IDs greater than 3 that are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aatym_5.png", "TableImg_H9kck_4.png"], "original_data_index": 6750, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of aircraft IDs that are not equal to 5, excluding any aircraft IDs from the airport aircraft list that are less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V7sqm_5.png", "TableImg_Ykrz0_4.png"], "original_data_index": 6751, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 1, excluding any driver IDs that are not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oxgtw_12.png", "TableImg_Omm1c_5.png"], "original_data_index": 6752, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Could you give me the document and paragraph IDs from the Paragraphs table where either the other details are not \"None\" or the paragraph ID is not 65 and the document ID is at least 16514113, combined with the document and paragraph IDs where the paragraph text is \"Palestinian Territory\", the document ID is at least 2394, the paragraph ID is greater than 608931827, and the other details are not \"None\"?", "answer": {"columns": ["Document_ID", "Paragraph_ID"], "index": [0, 1, 2], "data": [["385906526", "9946"], ["16514113", "571212310"], ["16514113", "765713812"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_C9s2d_15.png", "TableImg_6oo0j_15.png"], "original_data_index": 6753, "original_sql": "SELECT Document_ID, Paragraph_ID FROM Paragraphs WHERE Other_Details != \"None\" OR \"Paragraph_ID\" <> 65 AND \"Document_ID\" >= 16514113 UNION ALL SELECT Document_ID, Paragraph_ID FROM Paragraphs WHERE Paragraph_Text = \"Palestinian Territory\" AND \"Document_ID\" >= 2394 AND \"Paragraph_ID\" > 608931827 AND Other_Details != \"None\""} {"question": "Can you give me a list of driver IDs that are less than 10 and also not equal to 3, considering all drivers and school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7wai2_12.png", "TableImg_2bgyg_5.png"], "original_data_index": 6737, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list the aircraft IDs that are both less than or equal to 5 in the aircraft table and greater than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nze4c_5.png", "TableImg_K67s8_4.png"], "original_data_index": 6738, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you list the countries of car makers, excluding Citroen, but including those with country code 7 or the full name Honda, or those with an ID less than 3, but only if those countries are not also associated with makers having an ID less than 16 and not Renault, or a country code not equal to 1 and not Ford Motor Company?", "answer": {"columns": ["Country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["2"], ["1"], ["1"], ["1"], ["3"], ["4"], ["5"], ["4"], ["4"], ["2"], ["2"], ["3"], ["3"], ["6"], ["4"], ["4"], ["7"], ["6"], ["8"], ["8"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_1jfm1_22.png", "TableImg_Vkvnb_22.png"], "original_data_index": 6739, "original_sql": "SELECT Country FROM car_makers WHERE Maker != \"citroen\" AND Country = \"7\" OR FullName = \"Honda\" OR \"Id\" < 3 NOT IN (SELECT Country FROM car_makers WHERE \"Id\" < 16 AND Maker <> \"renault\" OR Country <> \"1\" AND FullName != \"Ford Motor Company\")"} {"question": "Can you give me a list of driver IDs from the driver table that are 12 or greater, excluding any driver IDs from the school_bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vj2i3_12.png", "TableImg_Ng9ed_5.png"], "original_data_index": 6757, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of aircraft IDs, including aircraft ID 4 from the aircraft table, and all aircraft IDs except 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ju5ur_5.png", "TableImg_M64rh_4.png"], "original_data_index": 6758, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of employee names who are 28 or older, combined with a list of shop names that are either not \"FC KooTeePee\" and not located in \"Espoo\" and don't have 5000 products, or have \"Mika Laurikainen\" as the manager?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["Lee Mears"], ["Mark Regan"], ["Jason Hobson"], ["Tim Payne"], ["Andrew Sheridan"], ["Matt Stevens"], ["Phil Vickery"], ["Steve Borthwick"], ["Louis Deacon"], ["FC Haka"], ["HJK"], ["FC Inter"], ["FF Jaro"], ["KuPS"], ["FC Lahti"], ["IFK Mariehamn"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_6ruzk_10.png", "TableImg_Lwvu1_9.png"], "original_data_index": 6759, "original_sql": "SELECT Name FROM employee WHERE \"Age\" >= 28 UNION ALL SELECT Name FROM shop WHERE Name <> \"FC KooTeePee\" AND Location <> \"Espoo\" AND \"Number_products\" <> 5000 OR Manager_name = \"Mika Laurikainen\""} {"question": "Could you list the aircraft IDs that are greater than 2 when grouped in the aircraft table, and also less than or equal to 5 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A6d92_5.png", "TableImg_9bt68_4.png"], "original_data_index": 6760, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 12 from the driver table and not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yj8xv_12.png", "TableImg_Hc7aa_5.png"], "original_data_index": 6761, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list all driver IDs less than or equal to 10, combining the unique IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kigx8_12.png", "TableImg_Wo8nx_5.png"], "original_data_index": 6762, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list all aircraft IDs, including those from the aircraft table that are greater than or equal to 5 and those from the airport_aircraft table that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bqhbd_5.png", "TableImg_Q2nfg_4.png"], "original_data_index": 6763, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you list all the salaries from the employee table, including those of employees with an ID less than 552455348 who are not named John Williams, as well as those salaries that are not equal to 84476?", "answer": {"columns": ["salary"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["20"], ["18050"], ["23980"], ["24450"], ["27984"], ["32021"], ["32899"], ["33546"], ["43001"], ["43723"], ["44740"], ["48090"], ["48250"], ["54921"], ["84476"], ["99890"], ["101745"], ["105743"], ["114323"], ["120433"], ["152013"], ["153972"], ["178345"], ["205187"], ["212156"], ["227489"], ["256481"], ["289950"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_4jwqb_31.png", "TableImg_S01as_31.png"], "original_data_index": 6764, "original_sql": "SELECT salary FROM employee WHERE \"eid\" < 552455348 AND name <> \"John Williams\" UNION SELECT salary FROM employee WHERE \"salary\" != 84476"} {"question": "What is the count of full-time employees and the highest shop ID for shops that started in a year other than 2008 or have a shop ID less than 5, excluding the count of full-time employees and the highest shop ID for shops where the employee ID is greater than 1, the shop ID is not 2, or the start year is not 2013?", "answer": {"columns": ["COUNT(Is_full_time)", "MAX(Shop_ID)"], "index": [0], "data": [["6", "8"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_8fuz3_7.png", "TableImg_Weitq_7.png"], "original_data_index": 6765, "original_sql": "SELECT COUNT(Is_full_time), MAX(Shop_ID) FROM hiring WHERE Start_from <> \"2008\" OR \"Shop_ID\" < 5 EXCEPT SELECT COUNT(Is_full_time), MAX(Shop_ID) FROM hiring WHERE \"Employee_ID\" > 1 OR \"Shop_ID\" <> 2 OR Start_from != \"2013\""} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those driver IDs that are also less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ikf7_12.png", "TableImg_Klnam_5.png"], "original_data_index": 6755, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fojcu_12.png", "TableImg_9lpdt_5.png"], "original_data_index": 6754, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of car models, excluding \"chevrolet chevelle malibu classic\", but then remove any models that are also in a list where the ModelId is less than 13, the Maker is greater than or equal to 4, or the model is not \"amc\"?", "answer": {"columns": ["Model"], "index": [0], "data": [[" volkswagen"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_Uhhtx_406.png", "TableImg_1nf7l_36.png"], "original_data_index": 6756, "original_sql": "SELECT Model FROM car_names WHERE Make != \"chevrolet chevelle malibu classic\" EXCEPT SELECT Model FROM model_list WHERE \"ModelId\" < 13 OR \"Maker\" >= 4 OR Model <> \"amc\""} {"question": "Can you give me a list of driver IDs that are not 10 and are also less than or equal to 7, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6l9jf_12.png", "TableImg_4126y_5.png"], "original_data_index": 6766, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 8 and appear in the driver table, and also less than 9 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cb4cv_12.png", "TableImg_Ykpvx_5.png"], "original_data_index": 6768, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of template type codes that are either not \"BK\" or have a description other than \"Advertisement\", combined with template type codes from templates that have a date effective from not equal to \"1986-11-14 12:20:18\", or a template type code not equal to \"PPT\", or have template details that are not empty, or a template ID not equal to 7, or a version number not equal to 8 and a date effective to not equal to \"2008-01-05 14:19:28\"?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3, 4], "data": [["AD"], ["BK"], ["CV"], ["PP"], ["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_Kwp5u_5.png", "TableImg_Edily_20.png"], "original_data_index": 6767, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code <> \"BK\" OR Template_Type_Description != \"Advertisement\" UNION SELECT Template_Type_Code FROM Templates WHERE Date_Effective_From <> \"1986-11-14 12:20:18\" OR Template_Type_Code <> \"PPT\" OR Template_Details != \"\" OR \"Template_ID\" != 7 OR \"Version_Number\" <> 8 AND Date_Effective_To <> \"2008-01-05 14:19:28\""} {"question": "Can you give me a list of student IDs from the Member_of_club table where their position isn't President, or their student ID is greater than 1007, or their club ID is greater than or equal to 2, combined with a list of student IDs from the Student table where their advisor is 8722, their major is greater than 600, and their sex is male?", "answer": {"columns": ["StuID"], "index": [0, 1, 2], "data": [["1007"], ["1008"], ["1010"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_Itm03_4.png", "TableImg_6hvdi_34.png"], "original_data_index": 6769, "original_sql": "SELECT StuID FROM Member_of_club WHERE Position != \"President\" OR \"StuID\" > 1007 OR \"ClubID\" >= 2 UNION SELECT StuID FROM Student WHERE \"Advisor\" = 8722 AND \"Major\" > 600 AND Sex = \"M\""} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 3, but only if they don't appear in the school bus table with an ID of 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rh8t5_12.png", "TableImg_Ku1rs_5.png"], "original_data_index": 6770, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are in the driver table but not in the school bus table, also excluding driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vrdjl_12.png", "TableImg_5h7wk_5.png"], "original_data_index": 6774, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of all driver IDs, excluding driver ID 10 from the driver table and excluding driver ID 4 from the school_bus table, making sure there are no duplicates in the final list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ls4g3_12.png", "TableImg_Liyud_5.png"], "original_data_index": 6775, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are both greater than 3 and also less than 10, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Arekt_12.png", "TableImg_Ygnb2_5.png"], "original_data_index": 6776, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 7, and exclude any driver IDs from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fkzvx_12.png", "TableImg_L1x1a_5.png"], "original_data_index": 6777, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Could you give me the payment dates and amounts that appear in both of these lists: one where the payment amount isn't exactly 6970.98 or the payment method is Direct Debit, and another where the payment date is March 6, 2018 at 9:36:41 PM, or the customer ID is 14 or higher, or the payment method is not Direct Debit?", "answer": {"columns": ["datetime_payment", "amount_payment"], "index": [0, 1, 2, 3, 4], "data": [["2018-02-06 13:35:58", "787.12"], ["2018-02-19 01:49:59", "3073.98"], ["2018-02-21 05:28:49", "7440.34"], ["2018-02-27 20:08:53", "4610.26"], ["2018-03-06 21:36:41", "9414.74"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Gwfxu_15.png", "TableImg_8ca2s_15.png"], "original_data_index": 6778, "original_sql": "SELECT datetime_payment, amount_payment FROM Customer_Payments WHERE \"amount_payment\" != 6970.98 OR payment_method_code = \"Direct Debit\" INTERSECT SELECT datetime_payment, amount_payment FROM Customer_Payments WHERE datetime_payment = \"2018-03-06 21:36:41\" OR \"customer_id\" >= 14 OR payment_method_code != \"Direct Debit\""} {"question": "How many payments were made using methods other than direct debit on February 6, 2018, at 1:35 PM by good customers, excluding those with the phone number (662)490-3108, or where the payment amount was 1708.18 and they became a customer on October 5, 2017, at 2:15 PM with a birthdate of September 18, 1998, at 4:45 AM, or where the outstanding amount is at least 9332.0, or where the email address is kroberts@example.org, and what are the mobile phone numbers of those customers?", "answer": {"columns": ["COUNT(T1.amount_payment)", "cell_mobile_phone_number"], "index": [0], "data": [["2", "577-584-4864"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_S2atz_15.png", "TableImg_Qr0v3_15.png"], "original_data_index": 6779, "original_sql": "SELECT COUNT(T1.amount_payment), T2.cell_mobile_phone_number FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code <> \"Direct Debit\" AND datetime_payment = \"2018-02-06 13:35:58\" AND customer_status_code = \"Good Customer\" AND phone_number <> \"(662)490-3108\" OR \"amount_payment\" = 1708.18 AND date_became_customer = \"2017-10-05 14:15:46\" AND date_of_birth = \"1998-09-18 04:45:01\" OR \"amount_outstanding\" >= 9332.0 OR email_address = \"kroberts@example.org\""} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 7, combined with a list of driver IDs from the school_bus table where each ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ppjat_12.png", "TableImg_F4dxb_5.png"], "original_data_index": 6780, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of school IDs, including those from schools with either 287 students enrolled or the mascot \"Falcons\", as well as those from the budget table where the invested amount is not 8335 and the percentage of the total budget invested is not 2.7?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["3"], ["2"], ["2"], ["1"], ["4"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_2q60q_8.png", "TableImg_B9goq_8.png"], "original_data_index": 6781, "original_sql": "SELECT School_id FROM School WHERE \"Enrollment\" = 287 OR Mascot = \"Falcons\" UNION ALL SELECT School_id FROM budget WHERE \"Invested\" <> 8335 AND \"total_budget_percent_invested\" != 2.7"} {"question": "Can you give me a list of driver IDs less than or equal to 6, excluding any driver IDs that are not equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cwcjb_12.png", "TableImg_Msrwi_5.png"], "original_data_index": 6782, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you show me the delegate, election ID, committee, counties represented, party, year first elected, and district for all elections where the party is at least 1 or the counties represented are \"09.1 9A\", along with the same information for all elections where the counties represented are not \"13\"?", "answer": {"columns": ["Delegate", "Election_ID", "Committee", "Counties_Represented", "Party", "First_Elected", "District"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Bates, Gail H. Gail H. Bates", "1", "Appropriations", "09.1 9A", "1", "2002", "1"], ["Bobo, Elizabeth Elizabeth Bobo", "5", "Environmental Matters", "12.2 12B", "3", "1994", "2"], ["DeBoy, Steven J. Sr. Steven J. DeBoy, Sr.", "3", "Appropriations", "12.1 12A", "2", "2002", "2"], ["Guzzone, Guy Guy Guzzone", "7", "Appropriations", "13", "1", "2006", "4"], ["Malone, James E. Jr. James E. Malone, Jr.", "4", "Environmental Matters (Vice-Chair)", "12.1 12A", "2", "1994", "3"], ["Miller, Warren E. Warren E. Miller", "2", "Economic Matters", "09.1 9A", "1", "2003", "1"], ["Pendergrass, Shane E. Shane Pendergrass", "6", "Health and Government Operations", "13", "4", "1994", "1"], ["Turner, Frank S. Frank S. Turner", "8", "Ways and Means", "13", "7", "1994", "3"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Eh8ma_8.png", "TableImg_Tb1mu_8.png"], "original_data_index": 6783, "original_sql": "SELECT Delegate, Election_ID, Committee, Counties_Represented, Party, First_Elected, District FROM election WHERE \"Party\" >= 1 OR Counties_Represented = \"09.1 9A\" UNION SELECT Delegate, Election_ID, Committee, Counties_Represented, Party, First_Elected, District FROM election WHERE Counties_Represented <> \"13\""} {"question": "What is the average staff ID from lessons where the staff ID is 4 or greater, or the customer ID is 10 or greater and the lesson status is not cancelled, or the vehicle ID is greater than 1 and the lesson date is February 28, 2018 at 10:55:36, or the lesson time is not 9, or the price is 277 or greater, or the lesson ID is 1 or less, combined with the average staff ID from staff members where the staff ID is not 3 and the date they joined is June 6, 2016 at 8:54:28, or their nickname is thompson.constantin and their last name is Mertz, or their date of birth is not April 27, 1998 at 12:55:05?", "answer": {"columns": ["AVG(staff_id)"], "index": [0, 1], "data": [["8.4666666667"], ["8.1428571429"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Xtity_15.png", "TableImg_V77la_15.png"], "original_data_index": 6784, "original_sql": "SELECT AVG(staff_id) FROM Lessons WHERE \"staff_id\" >= 4 OR \"customer_id\" >= 10 AND lesson_status_code <> \"Cancelled\" OR \"vehicle_id\" > 1 AND lesson_date = \"2018-02-28 10:55:36\" OR lesson_time <> \"9\" OR \"price\" >= 277.0 OR \"lesson_id\" <= 1 UNION ALL SELECT AVG(staff_id) FROM Staff WHERE \"staff_id\" <> 3 AND date_joined_staff = \"2016-06-06 08:54:28\" OR nickname = \"thompson.constantin\" AND last_name = \"Mertz\" OR date_of_birth <> \"1998-04-27 12:55:05\""} {"question": "Can you give me a list of driver IDs that are not equal to 2, but also are not driver IDs less than 9 that are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gammc_12.png", "TableImg_3g21j_5.png"], "original_data_index": 6785, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are greater than 2 and also greater than 7, considering driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qensj_12.png", "TableImg_Hfeuj_5.png"], "original_data_index": 6786, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the Pet ID, age, and weight for all pets where the Pet ID is 2003 or higher and the age is greater than 1, combined with the Pet ID, age, and weight for all pets where the Pet ID is greater than 2001 and the weight is not 13.4?", "answer": {"columns": ["PetID", "pet_age", "weight"], "index": [0], "data": [["2003", "1", "9.3"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_Fhpe7_3.png", "TableImg_4esih_3.png"], "original_data_index": 6787, "original_sql": "SELECT PetID, pet_age, weight FROM Pets WHERE \"PetID\" >= 2003 AND \"pet_age\" > 1 UNION SELECT PetID, pet_age, weight FROM Pets WHERE \"PetID\" > 2001 AND \"weight\" <> 13.4"} {"question": "What are the average employee ID, city, youngest name, and oldest age for employees 30 or older, excluding those results where the city is not Bath?", "answer": {"columns": ["AVG(Employee_ID)", "City", "MIN(Name)", "MAX(Age)"], "index": [0], "data": [["6.8", "Bristol", "Jason Hobson", "43"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_F5svy_10.png", "TableImg_Pp4vi_10.png"], "original_data_index": 6771, "original_sql": "SELECT AVG(Employee_ID), City, MIN(Name), MAX(Age) FROM employee WHERE \"Age\" >= 30 EXCEPT SELECT AVG(Employee_ID), City, MIN(Name), MAX(Age) FROM employee WHERE City != \"Bath\""} {"question": "What amenity feature types are available, excluding those that are either not \"Amenity\" or have a name other than \"Amenity, eg Pool.\" in the feature types reference?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Amenity"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Ljqj0_3.png", "TableImg_Oickk_2.png"], "original_data_index": 6773, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE feature_type_code = \"Amenity\" AND feature_name <> \"AirCon\" EXCEPT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\" OR feature_type_code <> \"Amenity\""} {"question": "Can you list the aircraft IDs that are greater than 1, and also list the aircraft IDs from the airport aircraft that are less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wqbr6_5.png", "TableImg_42fk6_4.png"], "original_data_index": 6772, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 7, excluding any driver IDs from the school_bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E6ak9_12.png", "TableImg_8waqa_5.png"], "original_data_index": 6791, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you show me the product ID, color pages per minute, product name, DPI, and interface for all products where either the color pages per minute is less than 30, or the product ID is not 3, or the dimensions are 298 x 209 x 99 and the product is \"Fujitsu fi-6130 A4 Series Scanner\", or the DPI is less than 600, or the maximum page size is not A4, along with all products where the maximum page size is not A4?", "answer": {"columns": ["product_id", "pages_per_minute_color", "product", "dpi", "interface"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1", "30", "Fujitsu fi-6130 A4 Series Scanner", "600", "USB 2.0"], ["2", "28", "Plustek MobileOffice D28 Corporate", "600", "USB 2.0"], ["3", "4", "Xerox Travel Scanner 100", "600", "USB 2.0"], ["4", "3", "ScanShell 3000DN", "600", "USB 2.0"], ["5", "10", "Canon imageFORMULA P-150", "600", "USB 2.0"], ["6", "36", "Canon DR-2080C", "600", "USB 2.0"], ["5", "10", "Canon imageFORMULA P-150", "600", "USB 2.0"], ["6", "36", "Canon DR-2080C", "600", "USB 2.0"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Qakz4_6.png", "TableImg_Vt4d7_6.png"], "original_data_index": 6792, "original_sql": "SELECT product_id, pages_per_minute_color, product, dpi, interface FROM product WHERE \"pages_per_minute_color\" < 30.0 OR \"product_id\" <> 3 OR dimensions = \"298 x 209 x 99\" AND product = \"Fujitsu fi-6130 A4 Series Scanner\" OR \"dpi\" < 600.0 OR max_page_size <> \"A4\" UNION ALL SELECT product_id, pages_per_minute_color, product, dpi, interface FROM product WHERE max_page_size <> \"A4\""} {"question": "Which driver IDs, excluding driver ID 3, are also driver IDs less than or equal to 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Plfjk_12.png", "TableImg_8rte9_5.png"], "original_data_index": 6793, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list the aircraft IDs, excluding ID 4, that appear in the aircraft table, but are not aircraft IDs greater than or equal to 5 that appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7olr6_5.png", "TableImg_7tugf_4.png"], "original_data_index": 6794, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you show me the budget in billions and the highest department ID for each budget, but only if the highest department ID is less than or equal to 9, and also show me the budget in billions and the highest department ID for each budget where the highest department ID is less than 3?", "answer": {"columns": ["Budget_in_Billions", "MAX(Department_ID)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["6.2", "7"], ["9.96", "1"], ["10.7", "5"], ["11.1", "2"], ["23.4", "4"], ["59.7", "8"], ["77.6", "6"], ["439.3", "3"], ["543.2", "9"], ["9.96", "1"], ["11.1", "2"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Kcq0d_15.png", "TableImg_Kywad_15.png"], "original_data_index": 6795, "original_sql": "SELECT Budget_in_Billions, MAX(Department_ID) FROM department GROUP BY Budget_in_Billions HAVING MAX(Department_ID) <= 9 UNION ALL SELECT Budget_in_Billions, MAX(Department_ID) FROM department GROUP BY Budget_in_Billions HAVING MAX(Department_ID) < 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver IDs less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8smy1_12.png", "TableImg_Gsvcb_5.png"], "original_data_index": 6796, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are exactly 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Styvt_12.png", "TableImg_Sra09_5.png"], "original_data_index": 6797, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are both greater than or equal to 3 in the driver table and greater than 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jkehc_12.png", "TableImg_83ibr_5.png"], "original_data_index": 6798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 8, and those from the school bus table where the ID is 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M16n2_12.png", "TableImg_B5h30_5.png"], "original_data_index": 6799, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs, excluding driver ID 9, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xsf9g_12.png", "TableImg_Jhswz_5.png"], "original_data_index": 6800, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs, excluding 9, are also driver IDs greater than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sq765_12.png", "TableImg_Me9ev_5.png"], "original_data_index": 6789, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which aircraft IDs, excluding aircraft ID 5, are also aircraft IDs in the airport aircraft list, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Br9u4_5.png", "TableImg_Iaxnb_4.png"], "original_data_index": 6788, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Which driver IDs are greater than 1 and also not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U9vy0_12.png", "TableImg_7p217_5.png"], "original_data_index": 6801, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are both not equal to 4 and greater than 3, considering the drivers from the driver table and the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y4eb4_12.png", "TableImg_Cnxx8_5.png"], "original_data_index": 6790, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs, excluding driver ID 12, are not also driver IDs in the school bus table, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yngy2_12.png", "TableImg_Ee7re_5.png"], "original_data_index": 6803, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the ages and IDs of people who meet both of these conditions: first, they either have an ID of 5 or greater, or are not from the United States and graduated from college in California; and second, they don't have an ID of 2, didn't graduate from college in Virginia, are younger than 37, are not named Jerry Corcoran, and are not from the United States?", "answer": {"columns": ["Age", "People_ID"], "index": [0], "data": [["34", "5"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_3i1bx_7.png", "TableImg_Tjg8e_7.png"], "original_data_index": 6804, "original_sql": "SELECT Age, People_ID FROM people WHERE \"People_ID\" >= 5 OR Nationality <> \"United States\" AND Graduation_College = \"California\" INTERSECT SELECT Age, People_ID FROM people WHERE \"People_ID\" != 2 AND Graduation_College <> \"Virginia\" AND \"Age\" < 37 AND Name != \"Jerry Corcoran\" AND Nationality <> \"United States\""} {"question": "What are the average document ID, the count of copy numbers, and the average draft number for draft copies where either the draft number is 20 or greater and the document ID is greater than 1, or the copy number is 10, combined with the same averages and count for draft copies where either the copy number is not 4 and the draft number is less than 8, or the document ID is 23?", "answer": {"columns": ["AVG(document_id)", "COUNT(copy_number)", "AVG(draft_number)"], "index": [0, 1], "data": [["11", "2", "16.0"], ["12", "2", "5.5"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_Avfiv_8.png", "TableImg_2yovo_8.png"], "original_data_index": 6802, "original_sql": "SELECT AVG(document_id), COUNT(copy_number), AVG(draft_number) FROM Draft_Copies WHERE \"draft_number\" >= 20 AND \"document_id\" > 1 OR \"copy_number\" = 10 UNION ALL SELECT AVG(document_id), COUNT(copy_number), AVG(draft_number) FROM Draft_Copies WHERE \"copy_number\" <> 4 AND \"draft_number\" < 8 OR \"document_id\" = 23"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 7, combined with a list of driver IDs from the school_bus table where the ID is greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8is7f_12.png", "TableImg_4dgrl_5.png"], "original_data_index": 6808, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you find the smallest employee ID for employees in Wasps who are not 29 years old, or whose name isn't Steve Borthwick and whose employee ID is 5, and also find the smallest employee ID from hiring records where the employee is not full-time?", "answer": {"columns": ["MIN(Employee_ID)"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Gnlv2_10.png", "TableImg_Sdt18_7.png"], "original_data_index": 6809, "original_sql": "SELECT MIN(Employee_ID) FROM employee WHERE City = \"Wasps\" AND \"Age\" <> 29 OR Name <> \"Steve Borthwick\" AND \"Employee_ID\" = 5 UNION SELECT MIN(Employee_ID) FROM hiring WHERE Is_full_time != \"T\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 8 or higher, and those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1e3lh_12.png", "TableImg_P44ep_5.png"], "original_data_index": 6810, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Could you give me the color pages per minute, dpi, product name, maximum dimensions, and product ID from the product table, but only for entries that meet these two sets of criteria: first, where the dimensions are \"300 x 50 x 45\", the maximum page size isn't \"A4\", the product name isn't \"Canon imageFORMULA P-150\" and the color pages per minute is greater than 10, or the product ID is less than 2; and second, where the dpi is 600 or the interface isn't \"USB 2.0\" and the color pages per minute isn't 28?", "answer": {"columns": ["pages_per_minute_color", "dpi", "product", "MAX(dimensions)", "product_id"], "index": [0], "data": [["28", "600", "Plustek MobileOffice D28 Corporate", "303 x 94 x 60", "2"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_8twsy_6.png", "TableImg_Mb6sm_6.png"], "original_data_index": 6811, "original_sql": "SELECT pages_per_minute_color, dpi, product, MAX(dimensions), product_id FROM product WHERE dimensions = \"300 x 50 x 45\" OR max_page_size <> \"A4\" OR product <> \"Canon imageFORMULA P-150\" AND \"pages_per_minute_color\" > 10.0 OR \"product_id\" < 2 INTERSECT SELECT pages_per_minute_color, dpi, product, MAX(dimensions), product_id FROM product WHERE \"dpi\" = 600.0 OR interface <> \"USB 2.0\" AND \"pages_per_minute_color\" <> 28.0"} {"question": "Can you list all aircraft IDs, including those from the aircraft table that are greater than or equal to 4, and those from the airport_aircraft table that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dcw2e_5.png", "TableImg_1kzui_4.png"], "original_data_index": 6812, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What is the total number of aircraft IDs associated with each airport ID?", "answer": {"columns": ["SUM(T1.Aircraft_ID)", "Airport_ID"], "index": [0], "data": [["11", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Beznb_5.png", "TableImg_L5zvq_4.png"], "original_data_index": 6813, "original_sql": "SELECT SUM(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 4, and those from the school bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zjs7u_12.png", "TableImg_5glxu_5.png"], "original_data_index": 6814, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs from the driver table that are 8 or greater, excluding any driver IDs from the school_bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bz1il_12.png", "TableImg_9qj54_5.png"], "original_data_index": 6815, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7, and those from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4z7cv_12.png", "TableImg_Y2l1r_5.png"], "original_data_index": 6816, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 7, and those from the school bus table that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pn9pt_12.png", "TableImg_S366d_5.png"], "original_data_index": 6817, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of employee IDs from the evaluation table, excluding those awarded in 2011 and employee ID 1, or where the bonus isn't 3000, but then remove any employee IDs that are less than 3 from the hiring table?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["10"], ["2"], ["4"], ["7"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Cdr7t_6.png", "TableImg_V4vsp_7.png"], "original_data_index": 6818, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Year_awarded != \"2011\" AND Employee_ID <> \"1\" OR \"Bonus\" != 3000.0 EXCEPT SELECT Employee_ID FROM hiring WHERE \"Employee_ID\" < 3"} {"question": "Which driver IDs are both greater than 2 and present in the driver table, and also greater than 3 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gjhnh_12.png", "TableImg_Ot1dd_5.png"], "original_data_index": 6819, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_54nmb_12.png", "TableImg_Llimx_5.png"], "original_data_index": 6820, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 4 and appears more than once in the driver table, but does not appear in the school_bus table with an ID greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tj3ph_12.png", "TableImg_Tao6o_5.png"], "original_data_index": 6821, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, up to and including 9, that are present in the driver table but not present in the school_bus table where the driver ID is 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S1ix4_12.png", "TableImg_1g78a_5.png"], "original_data_index": 6805, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you list all the driver IDs that are greater than or equal to 6 from the driver table, and combine that with a list of all driver IDs that are greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uop6d_12.png", "TableImg_Ioqa4_5.png"], "original_data_index": 6806, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me the employee ID and other details for all employees who don't have the role code \"PR\", excluding those employees whose employee ID is not 5?", "answer": {"columns": ["employee_id", "other_details"], "index": [0], "data": [["5", "b"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_Vzopr_6.png", "TableImg_Ama83_6.png"], "original_data_index": 6824, "original_sql": "SELECT employee_id, other_details FROM Employees WHERE role_code <> \"PR\" EXCEPT SELECT employee_id, other_details FROM Employees WHERE \"employee_id\" <> 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 3, and those from the school bus table with driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L1egj_12.png", "TableImg_Le5og_5.png"], "original_data_index": 6825, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of branch and member IDs from the membership register for years other than 2016, excluding any branch and member IDs associated with member ID 3 in the purchase table?", "answer": {"columns": ["Branch_ID", "Member_ID"], "index": [0], "data": [["6", "6"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Att1o_8.png", "TableImg_Ohfln_8.png"], "original_data_index": 6827, "original_sql": "SELECT Branch_ID, Member_ID FROM membership_register_branch WHERE Register_Year != \"2016\" EXCEPT SELECT Branch_ID, Member_ID FROM purchase WHERE \"Member_ID\" = 3"} {"question": "Can you give me a list of document IDs from the Documents_Mailed table where the document ID is greater than 12 or the mailing date is January 1, 2007 at 10:32 PM, combined with a list of document IDs from the Draft_Copies table where the draft number is 2, the document ID is 20 or greater, or the copy number is greater than 10?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["12"], ["13"], ["14"], ["20"], ["20"], ["23"], ["24"], ["23"], ["1"], ["20"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Pkqmy_14.png", "TableImg_Nhthx_8.png"], "original_data_index": 6826, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"document_id\" > 12 OR mailing_date = \"2007-01-01 22:32:11\" UNION ALL SELECT document_id FROM Draft_Copies WHERE \"draft_number\" = 2 OR \"document_id\" >= 20 OR \"copy_number\" > 10"} {"question": "Can you give me a list of Template IDs from the Documents table where the Document Description isn't \"w\" and Other Details isn't \"None\", or where the Template ID is greater than 4, combined with a list of Template IDs from the Templates table where Template Details isn't empty, or the Version Number is less than or equal to 7, or the Template Type Code is \"PP\" and the Template ID is greater than 8, or the Date Effective To isn't \"1980-05-07 12:15:47\"?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["0"], ["1"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["14"], ["15"], ["16"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Njuxq_15.png", "TableImg_Lp3zv_20.png"], "original_data_index": 6829, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Description <> \"w\" AND Other_Details <> \"None\" OR \"Template_ID\" > 4 UNION SELECT Template_ID FROM Templates WHERE Template_Details <> \"\" OR \"Version_Number\" <= 7 OR Template_Type_Code = \"PP\" AND \"Template_ID\" > 8 OR Date_Effective_To <> \"1980-05-07 12:15:47\""} {"question": "Can you give me the date sold, property name, vendor's requested price, and all the feature columns, agreed selling price, property ID, and other property details for properties that either had an agreed selling price not equal to 170766.472 and no second house feature or were put on the market on \"1981-08-23 05:40:38\" and do not have no second shop feature and have a property ID of 6 or less and are not named \"riverside\", along with the same information for properties that either do not have \"adipisci\" as their second apartment feature and have other property details that are not \"None\", or were put on the market on \"1978-05-15 10:53:37\", or do not have \"None\" as their second other feature and do not have \"None\" as their third apartment feature and have \"enim\" as their first apartment feature, or do not have a property ID of 3, or had a buyer offered price less than 15.17, or are not named \"murray hill\", or do not have the address \"60845 Else Highway Apt. 826 South Dougfort, CO 43200-4258\", or have less than 9 rooms, or do not have \"None\" as their first other feature and do not have \"None\" as their first field feature, or do not have \"None\" as their third field feature and do not have \"None\" as their second shop feature and do not have a second house feature, or do not have a third house feature and do not have \"None\" as their first shop feature, or do not have \"None\" as their first house feature, or were not sold on \"1984-02-01 19:54:54\" and are not an apartment, or do not have \"None\" as their second field feature and had a vendor requested price of 2573.0, or had an agreed selling price greater than 4201.8?", "answer": {"columns": ["date_sold", "property_name", "vendor_requested_price", "fld_feature_1", "apt_feature_3", "oth_feature_3", "agreed_selling_price", "oth_feature_1", "apt_feature_1", "property_id", "fld_feature_3", "apt_feature_2", "other_property_details", "hse_feature_3"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1979-05-13 16:58:06", "park", "372652.2909", "", "", "", "4201.8", "", "aut", "1", "", "suscipit", "", ""], ["1990-11-14 19:16:38", "the cole", "661536468.4429", "", "", "", "21769471.8328", "", "est", "2", "", "est", "", ""], ["1981-06-26 21:28:28", "prism", "1337.0", "", "", "", "5.0", "", "ut", "3", "", "et", "", ""], ["2003-02-27 18:17:11", "riverside", "192374065.8", "", "", "", "4514.807", "", "nesciunt", "4", "", "adipisci", "", ""], ["2012-08-19 07:36:57", "parc east", "983.8596", "", "", "", "1.0012", "", "quo", "5", "", "sequi", "", ""], ["1995-01-31 11:18:42", "high line", "2573.0", "", "", "", "476919.3", "", "sed", "6", "", "culpa", "", ""], ["1998-09-15 05:26:22", "avalon", "150045.7568", "", "", "", "2794972.2495", "", "quos", "7", "", "est", "", ""], ["2001-11-09 04:37:33", "vogue", "13.4715", "", "", "", "0.0", "", "fuga", "8", "", "odio", "", ""], ["1971-04-14 03:23:49", "longacre", "2219.6778", "", "", "", "3344706.5755", "", "enim", "9", "", "sit", "", ""], ["1997-01-07 19:52:45", "renoir", "77172926.3", "", "", "", "244353758.1824", "", "consequatur", "10", "", "vero", "", ""], ["1997-11-07 20:22:05", "murray hill", "6713620.9", "", "", "", "170766.472", "", "et", "11", "", "est", "", ""], ["1980-07-08 16:13:17", "ten tower", "305.0", "", "", "", "456840888.16", "", "qui", "12", "", "autem", "", ""], ["1973-02-24 02:56:06", "chelsea", "2198735.095", "", "", "", "44132.4621", "", "fuga", "13", "", "aut", "", ""], ["1987-12-07 07:41:27", "wall street", "78.7208", "", "", "", "0.0", "", "et", "14", "", "eos", "", ""], ["1984-02-01 19:54:54", "parc coliseum", "331.0", "", "", "", "2574.0", "", "aut", "15", "", "iusto", "", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Jpcjx_15.png", "TableImg_Kr38w_15.png"], "original_data_index": 6828, "original_sql": "SELECT date_sold, property_name, vendor_requested_price, fld_feature_1, apt_feature_3, oth_feature_3, agreed_selling_price, oth_feature_1, apt_feature_1, property_id, fld_feature_3, apt_feature_2, other_property_details, hse_feature_3 FROM Properties WHERE \"agreed_selling_price\" != 170766.472 AND hse_feature_2 = \"None\" OR date_on_market = \"1981-08-23 05:40:38\" AND shp_feature_2 != \"None\" AND \"property_id\" <= 6 AND property_name <> \"riverside\" UNION ALL SELECT date_sold, property_name, vendor_requested_price, fld_feature_1, apt_feature_3, oth_feature_3, agreed_selling_price, oth_feature_1, apt_feature_1, property_id, fld_feature_3, apt_feature_2, other_property_details, hse_feature_3 FROM Properties WHERE apt_feature_2 <> \"adipisci\" AND other_property_details != \"None\" OR date_on_market = \"1978-05-15 10:53:37\" OR oth_feature_2 != \"None\" AND apt_feature_3 != \"None\" AND apt_feature_1 = \"enim\" OR \"property_id\" <> 3 OR \"buyer_offered_price\" < 15.17 OR property_name <> \"murray hill\" OR property_address <> \"60845 Else Highway Apt. 826 South Dougfort, CO 43200-4258\" OR \"room_count\" < 9 OR oth_feature_1 != \"None\" AND fld_feature_1 <> \"None\" OR fld_feature_3 <> \"None\" AND shp_feature_2 <> \"None\" AND hse_feature_2 = \"None\" OR hse_feature_3 = \"None\" AND shp_feature_1 = \"None\" OR hse_feature_1 != \"None\" OR date_sold <> \"1984-02-01 19:54:54\" AND property_type_code != \"Apartment\" OR fld_feature_2 != \"None\" AND \"vendor_requested_price\" = 2573.0 OR \"agreed_selling_price\" > 4201.8"} {"question": "Can you give me a list of branch names that either didn't open in 2009, aren't named \"Brooke Greville\", or are located on Cecilia Avenue, combined with a list of member names where the member ID isn't 5 and their hometown isn't Fort Campbell, Kentucky?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Alexandre"], ["Cochrane"], ["Corey Peters"], ["David Jones"], ["Jeremy Jarmon"], ["Johnny Williams"], ["Matt Lentz"], ["Myron Pryor"], ["Popert"], ["Saint Amant"], ["Stanley"], ["Taverner"], ["Trevard Lindley"], ["Ventrell Jenkins"], ["Zytogorski"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_Xl7zn_8.png", "TableImg_Rxhe9_10.png"], "original_data_index": 6830, "original_sql": "SELECT Name FROM branch WHERE Open_year <> \"2009\" OR Name != \"Brooke Greville\" OR Address_road = \"Cecilia Avenue\" UNION SELECT Name FROM member WHERE \"Member_ID\" != 5 AND Hometown != \"Fort Campbell, Kentucky\""} {"question": "Can you list the ranks from match results where the \"Small_Silver\" value is at least 6 and the \"Club_ID\" is at least 4, combined with the ranks of female players who aren't player ID 2 and are ranked \"3rd\", or whose sponsor isn't \"Charleswood\u2014St. James\u2014Assiniboia\"?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["4"], ["5"], ["6"], ["2nd"], ["1st"], ["2nd"], ["1st"], ["2nd"], ["4th"], ["2nd"], ["3rd"], ["2nd"], ["1st"], ["1st"], ["3rd"], ["3rd"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Idmb7_6.png", "TableImg_1slxs_14.png"], "original_data_index": 6831, "original_sql": "SELECT Rank FROM match_result WHERE \"Small_Silver\" >= 6 AND \"Club_ID\" >= 4 UNION ALL SELECT Rank FROM player WHERE \"Player_ID\" <> 2 AND Gender = \"F\" AND Rank = \"3rd\" OR Sponsor_name <> \"Charleswood\u2014St. James\u2014Assiniboia\""} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but are also greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_64r9z_12.png", "TableImg_2tgcg_5.png"], "original_data_index": 6832, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and all driver IDs except 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_691rv_12.png", "TableImg_Unsp2_5.png"], "original_data_index": 6833, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list the aircraft IDs that are both less than or equal to 4 and also not equal to 2, considering the aircraft and airport_aircraft datasets?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ga9bt_5.png", "TableImg_T3jql_4.png"], "original_data_index": 6834, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me the average district, location, and shop ID, along with the number of products, shop name, and the earliest manager name for shops, combining two sets of results: first, for shops not in Turku or in the Tehtaan kentt\u00e4 district with a shop ID of 9 or greater, and second, for shops with a shop ID greater than 7 or a name other than FC KooTeePee?", "answer": {"columns": ["AVG(District)", "AVG(Location)", "AVG(Shop_ID)", "COUNT(Number_products)", "Name", "MIN(Manager_name)"], "index": [0, 1], "data": [["0", "0", "5.125", "8", "HJK", "Antti Muurinen"], ["0", "0", "4.875", "8", "HJK", "Antti Muurinen"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_Nqawl_9.png", "TableImg_Sealq_9.png"], "original_data_index": 6835, "original_sql": "SELECT AVG(District), AVG(Location), AVG(Shop_ID), COUNT(Number_products), Name, MIN(Manager_name) FROM shop WHERE Location != \"Turku\" OR District = \"Tehtaan kentt\u00e4\" AND \"Shop_ID\" >= 9 UNION ALL SELECT AVG(District), AVG(Location), AVG(Shop_ID), COUNT(Number_products), Name, MIN(Manager_name) FROM shop WHERE \"Shop_ID\" > 7 OR Name <> \"FC KooTeePee\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, from the driver table, but only those driver IDs that are not in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7i7mx_12.png", "TableImg_9nmy1_5.png"], "original_data_index": 6836, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of all the driver IDs, excluding driver ID 4 from the driver table, combined with a list of all driver IDs, excluding driver ID 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uf928_12.png", "TableImg_3wmor_5.png"], "original_data_index": 6837, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you find the smallest student ID from the Has_Pet table, excluding those with PetID 2001 and Student ID 1001, and combine that with the smallest student ID from the Student table where the major is less than 520, the student ID is greater than or equal to 1024, the last name is Kumar, or the first name isn't Jun, or the city code isn't BAL and the sex is male, or the age isn't 20?", "answer": {"columns": ["MIN(StuID)"], "index": [0, 1], "data": [["1002"], ["1001"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_Jryq0_3.png", "TableImg_6e90a_34.png"], "original_data_index": 6838, "original_sql": "SELECT MIN(StuID) FROM Has_Pet WHERE \"PetID\" <> 2001 AND \"StuID\" != 1001 UNION ALL SELECT MIN(StuID) FROM Student WHERE \"Major\" < 520 AND \"StuID\" >= 1024 AND LName = \"Kumar\" OR Fname != \"Jun\" OR city_code != \"BAL\" AND Sex = \"M\" OR \"Age\" <> 20"} {"question": "Can you give me a list of driver IDs, excluding driver 9 from the driver list and excluding driver 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I4ftx_12.png", "TableImg_Hvzzs_5.png"], "original_data_index": 6822, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs less than or equal to 9, excluding those driver IDs that are not equal to 9 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E2v6p_12.png", "TableImg_Zy38b_5.png"], "original_data_index": 6842, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 3, that are present in the aircraft table but not in the airport_aircraft table, where the aircraft IDs in the airport_aircraft table are less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dsyw1_5.png", "TableImg_Ngnaa_4.png"], "original_data_index": 6843, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me the driver ID that appears exactly once, where the driver ID is 8 in the driver table, but is not a driver ID other than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ftbv1_12.png", "TableImg_402mo_5.png"], "original_data_index": 6844, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver IDs in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_90to0_12.png", "TableImg_2m91g_5.png"], "original_data_index": 6845, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "For each aircraft, what is the total number of aircraft IDs associated with it in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID", "SUM(T2.Aircraft_ID)"], "index": [0], "data": [["2", "11"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gt48l_5.png", "TableImg_5zfzd_4.png"], "original_data_index": 6846, "original_sql": "SELECT T1.Aircraft_ID, SUM(T2.Aircraft_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of student IDs for those who have a pet with an ID greater than 2002 and whose own ID is 1002, along with a list of student IDs for those whose major is less than 520?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3], "data": [["1002"], ["1029"], ["1034"], ["1035"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_Yvort_3.png", "TableImg_0c9zc_34.png"], "original_data_index": 6847, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" = 1002 AND \"PetID\" > 2002 UNION ALL SELECT StuID FROM Student WHERE \"Major\" < 520"} {"question": "Can you give me a list of student IDs, including those who have any allergy other than soy, and also those who are students with a major code less than or equal to 550, or whose first name isn't Sarah, advisor isn't 8722, student ID is less than or equal to 1029, are male, have the last name Gompers, or have a city code that isn't NYC?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88], "data": [["1001"], ["1002"], ["1002"], ["1003"], ["1004"], ["1005"], ["1005"], ["1006"], ["1007"], ["1007"], ["1007"], ["1007"], ["1007"], ["1007"], ["1007"], ["1007"], ["1007"], ["1009"], ["1010"], ["1010"], ["1010"], ["1010"], ["1010"], ["1010"], ["1010"], ["1010"], ["1010"], ["1011"], ["1012"], ["1013"], ["1014"], ["1015"], ["1016"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1022"], ["1023"], ["1023"], ["1023"], ["1024"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1029"], ["1030"], ["1031"], ["1031"], ["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Pydr3_59.png", "TableImg_Rmgbj_34.png"], "original_data_index": 6848, "original_sql": "SELECT StuID FROM Has_Allergy WHERE Allergy != \"Soy\" UNION ALL SELECT StuID FROM Student WHERE \"Major\" <= 550 OR Fname <> \"Sarah\" AND \"Advisor\" <> 8722 AND \"StuID\" <= 1029 AND Sex = \"M\" AND LName = \"Gompers\" OR city_code != \"NYC\""} {"question": "Can you list the aircraft IDs that are both less than or equal to 2 in the aircraft table and greater than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M7328_5.png", "TableImg_O30c5_4.png"], "original_data_index": 6849, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs are greater than 8 and also not equal to 7, considering only unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_05jh0_12.png", "TableImg_X8w0x_5.png"], "original_data_index": 6850, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Could you list all the aircraft IDs from the certificate table where the event ID is greater than 573284895 and the aircraft ID is not 4, combined with a list of aircraft IDs from the flight table where the price is not 220.98, or the flight number is not 2, or the origin is Los Angeles and the departure date is not April 12, 2005 at 5:30 AM, or the arrival date is not April 12, 2005 at 5:03 AM, or the aircraft ID is 1, or the destination is Washington D.C., or the distance is less than or equal to 5478?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Oixi2_69.png", "TableImg_18ut8_10.png"], "original_data_index": 6851, "original_sql": "SELECT aid FROM certificate WHERE \"eid\" > 573284895 AND \"aid\" != 4 UNION SELECT aid FROM flight WHERE \"price\" <> 220.98 OR \"flno\" != 2 OR origin = \"Los Angeles\" AND departure_date <> \"04/12/2005 05:30\" OR arrival_date != \"04/12/2005 05:03\" OR \"aid\" = 1 OR destination = \"Washington D.C.\" OR \"distance\" <= 5478"} {"question": "What are the total document IDs, earliest other details, and document descriptions for documents where the description is \"w\" or the other details are \"None\", excluding those where the template ID is not 21 and the document name is not \"Understanding DB\"?", "answer": {"columns": ["SUM(Document_ID)", "MIN(Other_Details)", "Document_Description"], "index": [0], "data": [["801883", "", "w"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Mfbcf_15.png", "TableImg_29i5x_15.png"], "original_data_index": 6852, "original_sql": "SELECT SUM(Document_ID), MIN(Other_Details), Document_Description FROM Documents WHERE Document_Description = \"w\" OR Other_Details = \"None\" EXCEPT SELECT SUM(Document_ID), MIN(Other_Details), Document_Description FROM Documents WHERE \"Template_ID\" <> 21 AND Document_Name <> \"Understanding DB\""} {"question": "Can you list all the store IDs from the store district table, including those where the district ID is not 11 and the store ID is not 2, along with store IDs that are greater than 3?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["5"], ["4"], ["5"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_X5s6t_5.png", "TableImg_0t58z_5.png"], "original_data_index": 6853, "original_sql": "SELECT Store_ID FROM store_district WHERE \"District_ID\" != 11 AND \"Store_ID\" != 2 UNION ALL SELECT Store_ID FROM store_district WHERE \"Store_ID\" > 3"} {"question": "Which driver has an ID of 3, but is not a driver with an ID of 4 who drives a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7kbml_12.png", "TableImg_2j2o7_5.png"], "original_data_index": 6854, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are greater than 9 and also not equal to 3, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rj5md_12.png", "TableImg_V3n03_5.png"], "original_data_index": 6855, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs, excluding driver ID 7, are also driver ID 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N0mq8_12.png", "TableImg_A0r12_5.png"], "original_data_index": 6856, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What is the sum of CountryId for countries with a CountryId of 10 and a Continent value less than or equal to 5, excluding Sweden, after subtracting the sum of CountryId for countries with a CountryId less than or equal to 2?", "answer": {"columns": ["SUM(CountryId)"], "index": [0], "data": [["10"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_Jtjyk_15.png", "TableImg_9ayv3_15.png"], "original_data_index": 6839, "original_sql": "SELECT SUM(CountryId) FROM countries WHERE \"CountryId\" = 10 AND \"Continent\" <= 5 AND CountryName <> \"sweden\" EXCEPT SELECT SUM(CountryId) FROM countries WHERE \"CountryId\" <= 2"} {"question": "Can you give me a list of all driver IDs, combining those from the driver table, excluding driver ID 5, with those from the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F7wsa_12.png", "TableImg_E44uc_5.png"], "original_data_index": 6840, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me the document type codes that appear both in documents received on a date other than July 2nd, 2017 with receipt number 83, or with a document type code other than CD, or with a shipping agent code other than AL, or with a document ID greater than 14 and other details not equal to \"u\", and also in the reference document types with document type code CD or a document type description other than \"b\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2], "data": [["CD"], ["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Maapa_15.png", "TableImg_Xylzh_3.png"], "original_data_index": 6841, "original_sql": "SELECT document_type_code FROM Documents WHERE receipt_date != \"2017-07-02 17:39:09\" AND receipt_number = \"83\" OR document_type_code != \"CD\" OR shipping_agent_code != \"AL\" OR \"document_id\" > 14 AND other_details != \"u\" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code = \"CD\" OR document_type_description != \"b\""} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 2, and also those from the school bus table where the ID is 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2kulu_12.png", "TableImg_5zpto_5.png"], "original_data_index": 6858, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of Driver IDs, including Driver ID 11 from the driver table and Driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kf226_12.png", "TableImg_J03pw_5.png"], "original_data_index": 6857, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 7, combined with a list of driver IDs from the school_bus table where the ID is not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wztmd_12.png", "TableImg_Bejnp_5.png"], "original_data_index": 6859, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list the Store ID and Store Name for stores that either have a Store ID of 5 or less and at least 17811 product categories, or have a Store Name that is not Neguac, combined with the Store ID and Store Name for stores that have 793 or fewer product categories, or have a Store ID of 2, an area size of at least 21.73, are a City Mall, and have a ranking of 9 or higher?", "answer": {"columns": ["Store_ID", "Store_Name"], "index": [0, 1, 2, 3], "data": [["1", "Miramichi"], ["3", "Rogersville"], ["4", "Blackville"], ["5", "Doaktown"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_Yw46x_5.png", "TableImg_V52w6_5.png"], "original_data_index": 6860, "original_sql": "SELECT Store_ID, Store_Name FROM store WHERE \"Store_ID\" <= 5 AND \"Number_of_product_category\" >= 17811.0 OR Store_Name <> \"Neguac\" UNION SELECT Store_ID, Store_Name FROM store WHERE \"Number_of_product_category\" <= 793.0 OR \"Store_ID\" = 2 AND \"Area_size\" >= 21.73 AND Type = \"City Mall\" AND \"Ranking\" >= 9"} {"question": "Which driver has an ID of 4 and also drives a school bus, but not school bus number 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ojrl_12.png", "TableImg_Y9g7i_5.png"], "original_data_index": 6861, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me the genders and ranks of coaches who either have a rank of 3, aren't named James Wong, and are associated with club ID 3, or have a coach ID that isn't 4, but exclude the genders and ranks of players who either have a vote count not equal to 14355 or reside in Winnipeg?", "answer": {"columns": ["Gender", "Rank"], "index": [0, 1, 2, 3], "data": [["F", "2"], ["M", "1"], ["M", "3"], ["M", "5"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_Gce7v_5.png", "TableImg_Df9ad_14.png"], "original_data_index": 6863, "original_sql": "SELECT Gender, Rank FROM coach WHERE \"Rank\" = 3 AND Coach_name <> \"James Wong\" AND \"Club_ID\" = 3 OR \"Coach_ID\" != 4 EXCEPT SELECT Gender, Rank FROM player WHERE \"Votes\" != 14355 OR Residence = \"Winnipeg\""} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 10 and not equal to 7, considering driver IDs from both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ppirb_12.png", "TableImg_Tdveo_5.png"], "original_data_index": 6864, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list the county name, population, and county ID for all counties where the county ID is 3 and the population is not 87200, or where the county name is not Mansfield, combined with all counties where the county ID is not 3 or the zip code is not D21?", "answer": {"columns": ["County_name", "Population", "County_Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Howard", "21000", "1"], ["Baltimore County", "90000", "2"], ["Colony", "79000", "3"], ["Manning", "13300", "5"], ["Howard", "21000", "1"], ["Baltimore County", "90000", "2"], ["Colony", "79000", "3"], ["Mansfield", "87200", "4"], ["Manning", "13300", "5"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_9e0hw_5.png", "TableImg_2zfov_5.png"], "original_data_index": 6862, "original_sql": "SELECT County_name, Population, County_Id FROM county WHERE \"County_Id\" = 3 AND \"Population\" <> 87200.0 OR County_name != \"Mansfield\" UNION ALL SELECT County_name, Population, County_Id FROM county WHERE \"County_Id\" != 3 OR Zip_code != \"D21\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 5, and also include the aircraft ID from the airport_aircraft table that is equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7cwxs_5.png", "TableImg_R6rm3_4.png"], "original_data_index": 6866, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me the document IDs that were mailed on a date other than November 3rd, 1971, and have a document ID of 24 or less, and are also draft copies with a copy number of 10 or less and a document ID of 2?", "answer": {"columns": ["document_id"], "index": [0], "data": [["2"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Hs1xb_14.png", "TableImg_4s3ko_8.png"], "original_data_index": 6865, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE mailing_date != \"1971-11-03 12:32:14\" AND \"document_id\" <= 24 INTERSECT SELECT document_id FROM Draft_Copies WHERE \"copy_number\" <= 10 AND \"document_id\" = 2"} {"question": "Can you give me a list of driver IDs that are not equal to 6 from the driver table, excluding any driver IDs less than 10 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3nb1h_12.png", "TableImg_Txp6v_5.png"], "original_data_index": 6867, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the aircraft IDs that are greater than 5, and also list the aircraft IDs from the airport aircraft list that are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0wksq_5.png", "TableImg_Fggki_4.png"], "original_data_index": 6868, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the number of beds, bed types, and total maximum occupancy for modern rooms, excluding those that are traditional and either have more than 2 beds, a RoomId that isn't \"RND\", or a maximum occupancy of 4 or more?", "answer": {"columns": ["beds", "bedType", "SUM(maxOccupancy)"], "index": [0], "data": [["1", "King", "10"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_3hdcq_10.png", "TableImg_240fu_10.png"], "original_data_index": 6869, "original_sql": "SELECT beds, bedType, SUM(maxOccupancy) FROM Rooms WHERE decor = \"modern\" EXCEPT SELECT beds, bedType, SUM(maxOccupancy) FROM Rooms WHERE decor = \"traditional\" AND \"beds\" > 2 OR RoomId <> \"RND\" OR \"maxOccupancy\" >= 4"} {"question": "Could you list all the district IDs from districts located in city areas of 25 or less, along with all the district IDs associated with stores that are not store number 5?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["10"], ["11"], ["13"], ["14"], ["15"], ["15"], ["15"], ["11"], ["4"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Vvtu6_15.png", "TableImg_2w6tv_5.png"], "original_data_index": 6871, "original_sql": "SELECT District_ID FROM district WHERE \"City_Area\" <= 25.0 UNION ALL SELECT District_ID FROM store_district WHERE \"Store_ID\" <> 5"} {"question": "Can you give me a list of driver IDs that are less than 10 from the driver table, combined with a list of driver IDs that are less than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sdd1c_12.png", "TableImg_Jdglc_5.png"], "original_data_index": 6873, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of document IDs from the circulation history where the document ID is 20 or the employee ID is not equal to any value, combined with a list of document IDs from the documents table where the document status is \"working\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["7"], ["13"], ["14"], ["20"], ["23"], ["24"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Ydh1e_4.png", "TableImg_Egux2_15.png"], "original_data_index": 6872, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" = 20 OR \"employee_id\" != 2 UNION SELECT document_id FROM Documents WHERE document_status_code = \"working\""} {"question": "Can you show me the lowest title and the number of issues for books where the book ID is at least 1, or the number of issues isn't 12, or the writer isn't Christopher Hinz and the title isn't Bloody Mary, combined with the lowest title and number of issues for books where the writer isn't Garth Ennis and the book ID is at least 8?", "answer": {"columns": ["MIN(Title)", "Issues"], "index": [0, 1], "data": [["Bloody Mary", "4"], ["Gemini Blood", "9"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_0nldc_10.png", "TableImg_23rh0_10.png"], "original_data_index": 6870, "original_sql": "SELECT MIN(Title), Issues FROM book WHERE \"Book_ID\" >= 1 OR \"Issues\" <> 12.0 OR Writer <> \"Christopher Hinz\" AND Title <> \"Bloody Mary\" UNION SELECT MIN(Title), Issues FROM book WHERE Writer != \"Garth Ennis\" AND \"Book_ID\" >= 8"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 9 or higher, combined with a list of driver IDs from the school_bus table where the ID is 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eqw7n_12.png", "TableImg_Guk3f_5.png"], "original_data_index": 6874, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me the IDs of aircraft that are less than 5, excluding those that are also less than or equal to 2 and associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S08ho_5.png", "TableImg_Hp6ql_4.png"], "original_data_index": 6877, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs are present in both the driver list (excluding driver ID 5) and the school bus list (excluding driver ID 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pmdam_12.png", "TableImg_X8jir_5.png"], "original_data_index": 6875, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you list the aircraft IDs that are greater than 4 from the aircraft table, and also list the aircraft IDs that are greater than or equal to 1 from the airport_aircraft table, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0syb3_5.png", "TableImg_Ndrs7_4.png"], "original_data_index": 6876, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of driver IDs, including driver ID 7 from the driver table and all driver IDs except 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7iyhn_12.png", "TableImg_S2foc_5.png"], "original_data_index": 6878, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of aircraft IDs that are either equal to 5 in the aircraft table or greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H0mf8_5.png", "TableImg_75g6w_4.png"], "original_data_index": 6879, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 6, that are not also driver IDs, excluding driver ID 9, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1liwu_12.png", "TableImg_Rh9fc_5.png"], "original_data_index": 6184, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are less than or equal to 1, excluding any driver IDs less than 7 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3o7qv_12.png", "TableImg_Beftc_5.png"], "original_data_index": 6315, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs, excluding driver ID 4, in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ftwo8_12.png", "TableImg_Cxoks_5.png"], "original_data_index": 6298, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is greater than or equal to 2, combined with a list of driver IDs from the school_bus table where each ID is greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8zpd2_12.png", "TableImg_1t54g_5.png"], "original_data_index": 6226, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, but only if they are not also present in the airport_aircraft table, excluding aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_61mtf_5.png", "TableImg_Fwjhq_4.png"], "original_data_index": 6324, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What aircraft IDs, excluding ID 5, are present in the aircraft table but not in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B3vtk_5.png", "TableImg_Jzr77_4.png"], "original_data_index": 6363, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What aircraft IDs appear exactly once in the aircraft table with an ID of 2, but do not appear in the airport_aircraft table with an ID greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zo8yy_5.png", "TableImg_5pl1m_4.png"], "original_data_index": 6344, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or greater, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wkuvi_12.png", "TableImg_X68u9_5.png"], "original_data_index": 6395, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you list the maker, full name, country, and ID of car makers where the ID is 7 or higher, or the full name is not \"Ford Motor Company\" and the maker is not \"hyundai\", or the country is \"4\", combined with a list of car makers where the full name is \"American Motor Company\" or the ID is less than 12?", "answer": {"columns": ["Maker", "FullName", "Country", "Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["amc", "American Motor Company", "1", "1"], ["bmw", "BMW", "2", "3"], ["chrysler", "Chrysler", "1", "6"], ["citroen", "Citroen", "3", "7"], ["daimler benz", "Daimler Benz", "2", "13"], ["fiat", "Fiat", "5", "9"], ["ford", "Ford Motor Company", "1", "5"], ["gm", "General Motors", "1", "4"], ["honda", "Honda", "4", "11"], ["hyundai", "Hyundai", "8", "23"], ["kia", "Kia Motors", "8", "22"], ["mazda", "Mazda", "4", "12"], ["nissan", "Nissan Motors", "4", "8"], ["opel", "Opel", "2", "14"], ["peugeaut", "Peugeaut", "3", "15"], ["renault", "Renault", "3", "16"], ["saab", "Saab", "6", "17"], ["subaru", "Subaru", "4", "18"], ["toyota", "Toyota", "4", "19"], ["triumph", "Triumph", "7", "20"], ["volkswagen", "Volkswagen", "2", "2"], ["volvo", "Volvo", "6", "21"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_H6isy_22.png", "TableImg_L6xzt_22.png"], "original_data_index": 6362, "original_sql": "SELECT Maker, FullName, Country, Id FROM car_makers WHERE \"Id\" >= 7 OR FullName != \"Ford Motor Company\" AND Maker <> \"hyundai\" OR Country = \"4\" UNION SELECT Maker, FullName, Country, Id FROM car_makers WHERE FullName = \"American Motor Company\" OR \"Id\" < 12"} {"question": "What is the difference between the number of coaches and their average name length who have a rank of 3 or less and are not named Jameson Tomas, and the number of coaches and their average name length who are not named James Wong or belong to club ID 1?", "answer": {"columns": ["COUNT(Coach_ID)", "AVG(Coach_name)"], "index": [0], "data": [["2", "0"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Z60vo_5.png", "TableImg_Lka8z_5.png"], "original_data_index": 6431, "original_sql": "SELECT COUNT(Coach_ID), AVG(Coach_name) FROM coach WHERE \"Rank\" <= 3 AND Coach_name <> \"Jameson Tomas\" EXCEPT SELECT COUNT(Coach_ID), AVG(Coach_name) FROM coach WHERE Coach_name != \"James Wong\" OR \"Club_ID\" = 1"} {"question": "Can you give me a list of driver IDs that are less than 5 from the driver table, combined with a list of driver IDs that are exactly 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pl0gc_12.png", "TableImg_Ebcp7_5.png"], "original_data_index": 6525, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs less than 6 that appear in the driver table, excluding any driver IDs less than 9 that appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nh97r_12.png", "TableImg_5jrs3_5.png"], "original_data_index": 6599, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me the ID, name, type, principal activities, and group equity shareholding of companies, excluding those that are airlines, have an ID of 14 or greater, or are subsidiaries, but including companies with an ID of 2, those whose principal activities are not airline-related, those named \"Cathay Pacific Catering Services (HK) Limited\" and not incorporated in Canada, those with group equity shareholding less than 100, or those that are not subsidiaries?", "answer": {"columns": ["id", "name", "Type", "Principal_activities", "Group_Equity_Shareholding"], "index": [0, 1, 2, 3], "data": [["2", "Air China Cargo", "Joint Venture", "Cargo airline", "49"], ["3", "Air Hong Kong", "Joint Venture", "Cargo airline", "60"], ["12", "China Pacific Laundry Services", "Joint Venture", "Laundry", "45"], ["13", "VN/CX Catering Services Limited", "Joint Venture", "Catering services", "40"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Z7fsi_14.png", "TableImg_4xjyz_14.png"], "original_data_index": 6594, "original_sql": "SELECT id, name, Type, Principal_activities, Group_Equity_Shareholding FROM operate_company WHERE \"id\" = 2 OR Principal_activities != \"Airline\" OR name = \"Cathay Pacific Catering Services (HK) Limited\" AND Incorporated_in <> \"Canada\" OR \"Group_Equity_Shareholding\" < 100.0 OR Type != \"Subsidiary\" EXCEPT SELECT id, name, Type, Principal_activities, Group_Equity_Shareholding FROM operate_company WHERE Principal_activities = \"Airline\" OR \"id\" >= 14 OR Type = \"Subsidiary\""} {"question": "Could you give me the student IDs that are both from the Has_Pet table where the student ID is less than 1002 or the pet ID is less than or equal to 2001, and also from the Student table where the last name is Smith, or the city code isn't PHL, or the major is less than or equal to 520, or the age is greater than 18 and the advisor is 1148?", "answer": {"columns": ["StuID"], "index": [0], "data": [["1001"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_6cfgb_3.png", "TableImg_Uk6wv_34.png"], "original_data_index": 6617, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" < 1002 OR \"PetID\" <= 2001 INTERSECT SELECT StuID FROM Student WHERE LName = \"Smith\" OR city_code != \"PHL\" OR \"Major\" <= 520 OR \"Age\" > 18 AND \"Advisor\" = 1148"} {"question": "Can you list the aircraft IDs and distances for Airbus A340-300 planes, excluding aircraft ID 6, that have a distance of at least 8430, combined with the aircraft IDs and distances for flights, excluding flight ID 5, that either don't go to Washington D.C. and didn't arrive on 04/12/2005 at 11:15, or have a price that is not 220.98?", "answer": {"columns": ["aid", "distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1", "2308"], ["3", "1749"], ["2", "1251"], ["6", "2606"], ["3", "7487"], ["9", "5478"], ["7", "2551"], ["5", "2551"], ["9", "1749"], ["10", "802"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_08x1a_16.png", "TableImg_Re9h0_10.png"], "original_data_index": 6653, "original_sql": "SELECT aid, distance FROM aircraft WHERE name = \"Airbus A340-300\" AND \"aid\" != 6 AND \"distance\" >= 8430 UNION ALL SELECT aid, distance FROM flight WHERE \"aid\" != 5 AND destination <> \"Washington D.C.\" AND arrival_date <> \"04/12/2005 11:15\" OR \"price\" <> 220.98"} {"question": "What aircraft IDs are both greater than 3 in the aircraft table and not equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ku7ou_5.png", "TableImg_Mgyjg_4.png"], "original_data_index": 6807, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 12, and those from the school bus table that are greater than or equal to 9, with no duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8ibs6_12.png", "TableImg_N9o0q_5.png"], "original_data_index": 6823, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs that are not equal to 7, excluding any driver IDs from the school bus table that are greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0kfcp_12.png", "TableImg_Pkv5v_5.png"], "original_data_index": 6882, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What driver IDs are greater than 1 and also appear in the school bus records with a driver ID of 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P93at_12.png", "TableImg_Czzjq_5.png"], "original_data_index": 6880, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which aircraft IDs are less than 3 and appear in the aircraft table, and are also less than 2 and appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ahj45_5.png", "TableImg_T09y7_4.png"], "original_data_index": 6881, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs that are 12 or greater, excluding any driver IDs less than 10 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fz9nz_12.png", "TableImg_5yo7i_5.png"], "original_data_index": 6885, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "How many people from Bulgaria, with some exceptions based on their final table appearances, best finish, money rank, birth date, maximum poker player ID, and total height, are linked to each poker player ID?", "answer": {"columns": ["COUNT(T1.People_ID)", "Poker_Player_ID"], "index": [0], "data": [["5", "1"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_9uf59_7.png", "TableImg_R039k_5.png"], "original_data_index": 6884, "original_sql": "SELECT COUNT(T1.People_ID), T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID = T2.People_ID WHERE Nationality = \"Bulgaria\" AND Final_Table_Made <> 26.0 AND Best_Finish = 1.0 OR Money_Rank <> 68.0 OR Birth_Date <> \"April 17, 1987\" AND MAX(Poker_Player_ID) = 1 AND SUM(Height) < 196.0"} {"question": "Can you give me a list of document IDs from the drafts table where the ID is greater than 2 and the draft number is less than 19, or where the draft details are not \"l\", combined with a list of document IDs from the documents table where the other details are \"q\", the ID is greater than or equal to 7, the document type code is not \"Hard Drive\", or the document status code is \"done\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["1"], ["1"], ["2"], ["2"], ["4"], ["7"], ["10"], ["12"], ["12"], ["13"], ["13"], ["14"], ["17"], ["20"], ["23"], ["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Qaboj_15.png", "TableImg_Pi3im_15.png"], "original_data_index": 6883, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" > 2 AND \"draft_number\" < 19 OR draft_details != \"l\" UNION ALL SELECT document_id FROM Documents WHERE other_details = \"q\" OR \"document_id\" >= 7 OR document_type_code != \"Hard Drive\" OR document_status_code = \"done\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 4 and not equal to 9, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qk7yi_12.png", "TableImg_Sxejw_5.png"], "original_data_index": 6886, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 4, excluding any driver IDs from the school_bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wvwdy_12.png", "TableImg_Go0f8_5.png"], "original_data_index": 6888, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 9 or greater, combined with driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mnj8m_12.png", "TableImg_1his4_5.png"], "original_data_index": 6887, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you find the smallest employee ID for employees who are either 36 years old or not from Bristol and named Tim Payne, and also find the smallest employee ID from the hiring table for shop IDs greater than 5 or start dates not equal to 2012, and then combine those two results?", "answer": {"columns": ["MIN(Employee_ID)"], "index": [0, 1], "data": [["5"], ["1"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_5l9t9_10.png", "TableImg_O5fn3_7.png"], "original_data_index": 6889, "original_sql": "SELECT MIN(Employee_ID) FROM employee WHERE \"Age\" = 36 OR City <> \"Bristol\" AND Name = \"Tim Payne\" UNION ALL SELECT MIN(Employee_ID) FROM hiring WHERE \"Shop_ID\" > 5 OR Start_from != \"2012\""} {"question": "Which driver IDs are both not equal to 4 and also greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I89ow_12.png", "TableImg_Fjq3h_5.png"], "original_data_index": 6890, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 5, and also list all the aircraft IDs from the airport aircraft table, excluding aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ibpml_5.png", "TableImg_P68eu_4.png"], "original_data_index": 6891, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of customer IDs from the payment records where the payment amount was $4773.16 and the customer ID is not 10, combined with a list of customer IDs from the customer records where either their birthdate isn't September 18, 1998, at 4:45 AM, their customer status isn't \"Bad Customer\", their last name is \"Trantow\" and their customer address ID is less than 1 and their email is mayert.judy@example.com, their customer ID is greater than or equal to 2, their phone number isn't 417.136.2900x672 and they became a customer on March 18, 2016, at 6:14 AM, or their first name isn't Dianna?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_1q9i7_15.png", "TableImg_Cigg8_15.png"], "original_data_index": 6892, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"amount_payment\" = 4773.16 AND \"customer_id\" <> 10 UNION SELECT customer_id FROM Customers WHERE date_of_birth != \"1998-09-18 04:45:01\" OR customer_status_code != \"Bad Customer\" OR last_name = \"Trantow\" AND \"customer_address_id\" < 1 AND email_address = \"mayert.judy@example.com\" OR \"customer_id\" >= 2 OR phone_number != \"417.136.2900x672\" AND date_became_customer = \"2016-03-18 06:14:18\" OR first_name != \"Dianna\""} {"question": "Can you give me the creation date, contestant number, state, phone number, and vote ID for all votes, excluding those created on \"2018-03-09 19:03:21\" with a phone number greater than 5112677315, but including votes where the creation date is not \"2018-03-09 19:03:36\", the contestant number is 3 or greater, the vote ID is 3 or less, the state is NY, or the phone number is 6209222712 or greater?", "answer": {"columns": ["created", "contestant_number", "state", "phone_number", "vote_id"], "index": [0, 1, 2], "data": [["2018-03-09 19:03:36", "3", "NY", "7148407040", "2"], ["2018-03-09 19:03:39", "3", "CA", "6209222712", "3"], ["2018-03-09 19:03:40", "5", "NJ\n", "5112677315", "5"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_D34h8_4.png", "TableImg_Id20t_4.png"], "original_data_index": 6893, "original_sql": "SELECT created, contestant_number, state, phone_number, vote_id FROM VOTES WHERE created <> \"2018-03-09 19:03:36\" AND \"contestant_number\" >= 3 OR \"vote_id\" <= 3 OR state = \"NY\" OR \"phone_number\" >= 6209222712 EXCEPT SELECT created, contestant_number, state, phone_number, vote_id FROM VOTES WHERE created = \"2018-03-09 19:03:21\" AND \"phone_number\" > 5112677315"} {"question": "Could you list the cities that appear in both of these sets: first, the cities of branches that are not named \"Brooke Greville\" and either didn't open in 2015 or don't have a membership amount of 1418; and second, the cities of branches that either have a Branch ID of 1, a membership amount of 1418, are named \"Alexandre\", or didn't open in 2014?", "answer": {"columns": ["City"], "index": [0, 1], "data": [["London"], ["Oxford"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_4rpna_8.png", "TableImg_Dvetw_8.png"], "original_data_index": 6895, "original_sql": "SELECT City FROM branch WHERE Name != \"Brooke Greville\" AND Open_year != \"2015\" OR membership_amount <> \"1418\" INTERSECT SELECT City FROM branch WHERE \"Branch_ID\" = 1 OR membership_amount = \"1418\" OR Name = \"Alexandre\" OR Open_year <> \"2014\""} {"question": "Can you list the description and the smallest aircraft ID for each type of aircraft, but only if the smallest aircraft ID is 4 or greater, considering only aircraft where the total disk area is not \"4,900 ft\u00b2 (460 m\u00b2)\", or the maximum gross weight is \"123,500 lb (56,000 kg)\", or the description is \"Turboshaft utility helicopter\", or the maximum disk loading is not \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\", and also list the description and the smallest aircraft ID for each type of aircraft where the total disk area is not \"4,900 ft\u00b2 (460 m\u00b2)\", but only if the smallest aircraft ID is not 1?", "answer": {"columns": ["MIN(Aircraft_ID)", "Description"], "index": [0, 1, 2], "data": [["2", "Turboshaft utility helicopter"], ["3", "Tandem rotor helicopter"], ["4", "Heavy-lift helicopter"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_G0etb_5.png", "TableImg_6ypc1_5.png"], "original_data_index": 6894, "original_sql": "SELECT MIN(Aircraft_ID), Description FROM aircraft WHERE Total_disk_area != \"4,900 ft\u00b2 (460 m\u00b2)\" OR Max_Gross_Weight = \"123,500 lb (56,000 kg)\" OR Description = \"Turboshaft utility helicopter\" OR Max_disk_Loading != \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\" GROUP BY Description HAVING MIN(Aircraft_ID) >= 4 UNION SELECT MIN(Aircraft_ID), Description FROM aircraft WHERE Total_disk_area <> \"4,900 ft\u00b2 (460 m\u00b2)\" GROUP BY Description HAVING MIN(Aircraft_ID) <> 1"} {"question": "Can you give me a list of driver IDs that are less than or equal to 7 from the driver table, combined with a list of driver IDs that are less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L8ay8_12.png", "TableImg_Ilo79_5.png"], "original_data_index": 6896, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the IDs of drivers with an ID of 8 or less, excluding the IDs of school bus drivers with an ID of 3 or more?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hgp6v_12.png", "TableImg_Aehw8_5.png"], "original_data_index": 6897, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are greater than 10, excluding those driver IDs that are less than 4 and are also present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y1gbj_12.png", "TableImg_Cir4e_5.png"], "original_data_index": 6898, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you give me the total number of drivers and the school ID for drivers who either live in Hartford, are named Edwin Vargas, have a school ID less than 5 and are not full-time, are younger than 42, or have worked for a number of years other than 6?", "answer": {"columns": ["SUM(T1.Driver_ID)", "School_ID"], "index": [0], "data": [["33", "1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tfhb4_12.png", "TableImg_834xa_5.png"], "original_data_index": 6901, "original_sql": "SELECT SUM(T1.Driver_ID), T2.School_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city = \"Hartford\" OR Name = \"Edwin Vargas\" OR \"School_ID\" < 5 AND If_full_time <> \"T\" OR \"Age\" < 42 OR \"Years_Working\" <> 6"} {"question": "Could you give me the number of products and shop IDs for shops that meet these two sets of criteria: first, they're not in Helsinki, or their shop ID is greater than 7, or they're in the Lahden Stadion district, and their number of products isn't 15000, their name isn't FC Honka, and their manager isn't Tommi Kautonen; second, their number of products is less than 10000, their name isn't FC Inter, and they're in Valkeakoski, or their district isn't Magnum Areena, or their manager isn't Antti Muurinen?", "answer": {"columns": ["Number_products", "Shop_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1600", "9"], ["3500", "7"], ["3516", "1"], ["4780", "6"], ["5000", "5"], ["6000", "3"], ["10000", "4"], ["10770", "2"], ["15000", "8"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_Sjneq_9.png", "TableImg_G2cc6_9.png"], "original_data_index": 6899, "original_sql": "SELECT Number_products, Shop_ID FROM shop WHERE Location != \"Helsinki\" OR \"Shop_ID\" > 7 OR District = \"Lahden Stadion\" OR \"Number_products\" != 15000 AND Name <> \"FC Honka\" AND Manager_name != \"Tommi Kautonen\" INTERSECT SELECT Number_products, Shop_ID FROM shop WHERE \"Number_products\" < 10000 AND Name <> \"FC Inter\" AND Location = \"Valkeakoski\" OR District <> \"Magnum Areena\" OR Manager_name <> \"Antti Muurinen\""} {"question": "Can you give me a list of driver IDs that are less than 8 from the driver table, combined with a list of driver IDs that are not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ztqdv_12.png", "TableImg_M2fng_5.png"], "original_data_index": 6900, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of aircraft IDs that are less than 4, but exclude any aircraft IDs that also appear in the airport aircraft list, unless that ID is 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_24ue4_5.png", "TableImg_Ndwru_4.png"], "original_data_index": 6902, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of driver IDs, including driver ID 5 from the driver table and all driver IDs except 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X323x_12.png", "TableImg_Ctjeo_5.png"], "original_data_index": 6903, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 1, and those from the school bus table with driver IDs of 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1u3x7_12.png", "TableImg_21z5q_5.png"], "original_data_index": 6904, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs from the driver table that are 3 or greater, combined with a list of driver IDs from the school_bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Omqj4_12.png", "TableImg_B1zzr_5.png"], "original_data_index": 6906, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, and combine it with a list of school bus driver IDs, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tix8k_12.png", "TableImg_Kdnjb_5.png"], "original_data_index": 6907, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the number of templates, their effective dates, template types, and average template details, first for templates with version number 2 and an effective end date not equal to \"1992-05-02 20:06:11\", and then again for templates that are of type \"PP\" and not template ID 11, or have an effective end date not equal to \"1994-12-07 13:26:23\", or have a version number not equal to 5, an effective start date of \"2002-08-25 13:26:23\", and empty template details?", "answer": {"columns": ["COUNT(Template_ID)", "Date_Effective_From", "Template_Type_Code", "AVG(Template_Details)"], "index": [0, 1], "data": [["2", "1997-04-17 08:29:44", "BK", "0"], ["19", "2005-11-12 07:09:48", "PP", "0"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_Swd1n_20.png", "TableImg_O7yuu_20.png"], "original_data_index": 6905, "original_sql": "SELECT COUNT(Template_ID), Date_Effective_From, Template_Type_Code, AVG(Template_Details) FROM Templates WHERE \"Version_Number\" = 2 AND Date_Effective_To <> \"1992-05-02 20:06:11\" UNION SELECT COUNT(Template_ID), Date_Effective_From, Template_Type_Code, AVG(Template_Details) FROM Templates WHERE Template_Type_Code = \"PP\" AND \"Template_ID\" != 11 OR Date_Effective_To <> \"1994-12-07 13:26:23\" OR \"Version_Number\" != 5 AND Date_Effective_From = \"2002-08-25 13:26:23\" AND Template_Details = \"\""} {"question": "Can you give me a list of aircraft IDs that are less than 2, but also not equal to 3 when considering aircraft at airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_49a9c_5.png", "TableImg_I95pi_4.png"], "original_data_index": 6908, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Could you list the parties from the election table, excluding those where the delegate is Gail H. Bates or the first elected year is not before 2003, and then remove any parties that have a Party ID of 4 or less?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Vljgl_8.png", "TableImg_1i714_7.png"], "original_data_index": 6910, "original_sql": "SELECT Party FROM election WHERE Delegate <> \"Bates, Gail H. Gail H. Bates\" OR \"First_Elected\" <= 2003.0 EXCEPT SELECT Party FROM party WHERE \"Party_ID\" <= 4"} {"question": "Which driver IDs appear in the driver table, excluding ID 11, and also appear as driver IDs in the school bus table, but only including ID 7 from that table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qpmzu_12.png", "TableImg_Gbpbb_5.png"], "original_data_index": 6909, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 10, and those from the school bus table where the ID is 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8mwya_12.png", "TableImg_0f0qa_5.png"], "original_data_index": 6914, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Could you give me a list of driver IDs that are both less than or equal to 10 and appear in the driver table, and also less than 9 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Or8xt_12.png", "TableImg_B4cms_5.png"], "original_data_index": 6912, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 1, that are not also aircraft IDs from a separate list where aircraft ID 5 is excluded?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yp01u_5.png", "TableImg_N5coc_4.png"], "original_data_index": 6913, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 3 and not equal to 10, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G1soi_12.png", "TableImg_T52tv_5.png"], "original_data_index": 6911, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which aircraft have an ID of 5 and are also associated with airports that don't have an aircraft ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K2pe1_5.png", "TableImg_Eoih0_4.png"], "original_data_index": 6915, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs, excluding 7, appear in both the driver list and the school bus list, where only driver IDs greater than 4 are considered in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_38rns_12.png", "TableImg_Ab50x_5.png"], "original_data_index": 6918, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs, excluding driver ID 12, are present in the driver table but not in the school_bus table, also excluding driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V60xt_12.png", "TableImg_3rpkd_5.png"], "original_data_index": 6916, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you tell me the earliest payment time, payment amount, payment method, and average customer ID for all payments, first excluding payments made at \"2018-02-24 10:07:05\", and then separately for payments where the amount is less than or equal to 8180.26?", "answer": {"columns": ["MIN(datetime_payment)", "amount_payment", "payment_method_code", "AVG(customer_id)"], "index": [0, 1], "data": [["2018-02-01 06:15:31", "6782.84", "Direct Debit", "8.3571428571"], ["2018-02-01 06:15:31", "6782.84", "Direct Debit", "7.9166666667"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_8sbnx_15.png", "TableImg_T5hiq_15.png"], "original_data_index": 6919, "original_sql": "SELECT MIN(datetime_payment), amount_payment, payment_method_code, AVG(customer_id) FROM Customer_Payments WHERE datetime_payment != \"2018-02-24 10:07:05\" UNION ALL SELECT MIN(datetime_payment), amount_payment, payment_method_code, AVG(customer_id) FROM Customer_Payments WHERE \"amount_payment\" <= 8180.26"} {"question": "What is the smallest bed type for rooms with a base price of at least 175, and also the smallest bed type for rooms that either have fewer than 2 beds, or a room name that isn't \"Harbinger but bequest\" along with a decor that isn't \"traditional\" and a RoomId of \"AOB\" and a base price of 175, or a bed type that is \"Double\"?", "answer": {"columns": ["MIN(bedType)"], "index": [0, 1], "data": [["King"], ["Double"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_8se9t_10.png", "TableImg_Nih69_10.png"], "original_data_index": 6917, "original_sql": "SELECT MIN(bedType) FROM Rooms WHERE \"basePrice\" >= 175 UNION ALL SELECT MIN(bedType) FROM Rooms WHERE \"beds\" < 2 OR roomName <> \"Harbinger but bequest\" AND decor <> \"traditional\" AND RoomId = \"AOB\" AND \"basePrice\" = 175 OR bedType = \"Double\""} {"question": "Which driver IDs, that are 9 or less, are also driver IDs of school buses, specifically driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cvka1_12.png", "TableImg_Aayv2_5.png"], "original_data_index": 6920, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding those driver IDs that are 3 or less and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9neeu_12.png", "TableImg_O9tf6_5.png"], "original_data_index": 6921, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs, excluding driver ID 5, are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4fnew_12.png", "TableImg_W4nl2_5.png"], "original_data_index": 6922, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 9 from the driver table, combined with a list of driver IDs that are greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dpess_12.png", "TableImg_Cogyd_5.png"], "original_data_index": 6924, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me the Big Silver, Gold, Club ID, Bronze, Rank, and Small Silver values from the match results that satisfy both of these conditions: first, the Rank is not 1, or the Small Silver is 16, or the Gold is not 20, or the Big Silver is less than or equal to 12, or the Points are 139; and second, the Small Silver is not 10 and the Club ID is greater than 4, or the Big Silver is greater than 11 and the Gold is 13?", "answer": {"columns": ["Big_Silver", "Gold", "Club_ID", "Bronze", "Rank", "Small_Silver"], "index": [0, 1], "data": [["6", "6", "6", "6", "6", "6"], ["7", "7", "5", "10", "5", "9"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Zhz1a_6.png", "TableImg_S3kaz_6.png"], "original_data_index": 6923, "original_sql": "SELECT Big_Silver, Gold, Club_ID, Bronze, Rank, Small_Silver FROM match_result WHERE \"Rank\" != 1 OR \"Small_Silver\" = 16 OR \"Gold\" <> 20 OR \"Big_Silver\" <= 12 OR \"Points\" = 139 INTERSECT SELECT Big_Silver, Gold, Club_ID, Bronze, Rank, Small_Silver FROM match_result WHERE \"Small_Silver\" != 10 AND \"Club_ID\" > 4 OR \"Big_Silver\" > 11 AND \"Gold\" = 13"} {"question": "Which aircraft IDs are both greater than or equal to 5 in the aircraft table and greater than or equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lqge1_5.png", "TableImg_V0ocw_4.png"], "original_data_index": 6927, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are also among the aircraft IDs that are less than or equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M8600_5.png", "TableImg_67vrd_4.png"], "original_data_index": 6926, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs that are less than or equal to 2, excluding any driver IDs greater than 4 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pfolg_12.png", "TableImg_P1t4f_5.png"], "original_data_index": 6928, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me the IDs of aircraft with IDs less than or equal to 3, excluding those aircraft IDs that are not equal to 3 and are also present in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S4a6n_5.png", "TableImg_Gy1tk_4.png"], "original_data_index": 6925, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which continents, excluding Africa, have a ContId of 1 or greater?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3], "data": [["america"], ["asia"], ["australia"], ["europe"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_W6z2s_5.png", "TableImg_5640h_5.png"], "original_data_index": 6932, "original_sql": "SELECT Continent FROM continents WHERE Continent <> \"africa\" INTERSECT SELECT Continent FROM continents WHERE \"ContId\" >= 1"} {"question": "Can you list the names and numbers of all contestants, excluding those with number 6, and then remove from that list anyone with a number greater than 1 or named \"Loraine NygrenTania Mattioli\"?", "answer": {"columns": ["contestant_name", "contestant_number"], "index": [0], "data": [["Edwina Burnam", "1"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_L181h_11.png", "TableImg_Sr5qu_11.png"], "original_data_index": 6929, "original_sql": "SELECT contestant_name, contestant_number FROM CONTESTANTS WHERE \"contestant_number\" <> 6 EXCEPT SELECT contestant_name, contestant_number FROM CONTESTANTS WHERE \"contestant_number\" > 1 OR contestant_name = \"Loraine NygrenTania Mattioli\""} {"question": "What is the difference between the total driver ID of drivers who are either younger than 42 or live in Hartford and are not named Matthew Ritter and don't have a driver ID of 11, and the total driver ID of school bus drivers who have worked for more than 2 years, or don't have a driver ID of 9, or don't have a school ID of 7?", "answer": {"columns": ["SUM(Driver_ID)"], "index": [0], "data": [["66"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E7r0u_12.png", "TableImg_C2isi_5.png"], "original_data_index": 6930, "original_sql": "SELECT SUM(Driver_ID) FROM driver WHERE \"Age\" < 42 OR Home_city = \"Hartford\" AND Name <> \"Matthew Ritter\" AND \"Driver_ID\" <> 11 EXCEPT SELECT SUM(Driver_ID) FROM school_bus WHERE \"Years_Working\" > 2 OR \"Driver_ID\" <> 9 OR \"School_ID\" <> 7"} {"question": "Can you give me the total ID and company ID from the airportflight database, grouped by altitude, considering only flights with a velocity of at least 240, and excluding groups where the pilot is Thompson, the company ID is less than 5, the city is Brussels, the date is August 4, 1966, the ICAO is ENBR, the country is not Spain, the altitude is not 3650, the airport ID is greater than 2, the velocity is not less than 240, and the IATA is AMS?", "answer": {"columns": ["SUM(T1.id)", "company_id"], "index": [0], "data": [["44", "3"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_0gubh_9.png", "TableImg_Nhm4l_13.png"], "original_data_index": 6931, "original_sql": "SELECT SUM(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE \"Velocity\" >= 240.0 GROUP BY Altitude HAVING Pilot <> \"Thompson\" AND company_id >= 5 AND City <> \"Brussels\" OR Date <> \"August 4, 1966\" AND ICAO <> \"ENBR\" OR Country = \"Spain\" AND Altitude = 3650.0 OR airport_id <= 2 AND Velocity < 240.0 OR IATA <> \"AMS\""} {"question": "Can you give me a list of driver IDs, including driver ID 1 from the driver table and any driver IDs greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wpk7i_12.png", "TableImg_Cwp9v_5.png"], "original_data_index": 6933, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are 7 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3t4t9_12.png", "TableImg_Ub9t1_5.png"], "original_data_index": 6935, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs, excluding driver ID 10, are also school bus driver IDs, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqi1k_12.png", "TableImg_00uj6_5.png"], "original_data_index": 6936, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are not 12 and also greater than 3, considering drivers from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C8rn5_12.png", "TableImg_Oftut_5.png"], "original_data_index": 6934, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me the total number of people of each nationality, their birth dates, and the first name alphabetically, excluding those with People ID 2 and those born on May 26, 1986, and those from Russia, but including Yevgeni Sivozhelez and anyone shorter than or equal to 205 cm, then remove from that list the total number of people of each nationality, their birth dates, and the first name alphabetically, where the people are not from Russia, are named Semen Poltavskiy, are shorter than 194 cm, and have a People ID greater than 2?", "answer": {"columns": ["SUM(Nationality)", "Birth_Date", "MIN(Name)"], "index": [0], "data": [["0", "July 14, 1983", "Maksim Botin"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Lt0ee_7.png", "TableImg_I3bp5_7.png"], "original_data_index": 6937, "original_sql": "SELECT SUM(Nationality), Birth_Date, MIN(Name) FROM people WHERE \"People_ID\" != 2 AND Birth_Date <> \"May 26, 1986\" AND Nationality != \"Russia\" OR Name = \"Yevgeni Sivozhelez\" OR \"Height\" <= 205.0 EXCEPT SELECT SUM(Nationality), Birth_Date, MIN(Name) FROM people WHERE Nationality != \"Russia\" AND Name = \"Semen Poltavskiy\" AND \"Height\" < 194.0 AND \"People_ID\" > 2"} {"question": "Can you list all the aircraft IDs that are less than 5 from the aircraft table, combined with all the aircraft IDs that are less than or equal to 5 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A2gbw_5.png", "TableImg_Brq94_4.png"], "original_data_index": 6939, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 1, and also those from the school bus table where the ID is exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1tgj5_12.png", "TableImg_8ffw3_5.png"], "original_data_index": 6941, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver IDs less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ivb3_12.png", "TableImg_Bhmk2_5.png"], "original_data_index": 6940, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me the ICAO codes and IDs of airports that are either in Baltimore, have an ID of 6 or higher, are in the United States and named \"El Prat Airport\", or have an ICAO code that isn't \"PANC\", but exclude those with an ICAO code of \"EBBR\"?", "answer": {"columns": ["ICAO", "id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["BIAR", "1"], ["EHAM", "2"], ["EKBI", "7"], ["ENBR", "6"], ["KBOS", "8"], ["KBWI", "4"], ["LEBL", "5"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Lf16n_9.png", "TableImg_Gvilx_9.png"], "original_data_index": 6938, "original_sql": "SELECT ICAO, id FROM airport WHERE City = \"Baltimore\" OR \"id\" >= 6 OR Country = \"United States\" AND name = \"El Prat Airport\" OR ICAO <> \"PANC\" EXCEPT SELECT ICAO, id FROM airport WHERE ICAO = \"EBBR\""} {"question": "Can you give me the driver IDs that are less than or equal to 1, excluding those driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V8jsc_12.png", "TableImg_5a87y_5.png"], "original_data_index": 6942, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs from the driver table that are 8 or greater, excluding any driver IDs from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Opti8_12.png", "TableImg_6wkxr_5.png"], "original_data_index": 6945, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are 10 or greater from the driver table, combined with a list of driver IDs that are 4 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pczyt_12.png", "TableImg_Vd63j_5.png"], "original_data_index": 6943, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table, and all driver IDs except 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M89dh_12.png", "TableImg_5fwf2_5.png"], "original_data_index": 6944, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the average profits, assets, sales, and company ID for companies with a market value of 202.2 billion, or those in the oil and gas industry, or those named HSBC with profits of 41.1 billion and sales over 102.6 billion, but exclude any results for companies named JPMorgan Chase that don't have profits of 14.4 billion?", "answer": {"columns": ["AVG(Profits_in_Billion)", "Assets_in_Billion", "Sales_in_Billion", "Company_ID"], "index": [0], "data": [["24.8", "331.1", "433.5", "1"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_45fjx_19.png", "TableImg_Xgkbn_19.png"], "original_data_index": 6946, "original_sql": "SELECT AVG(Profits_in_Billion), Assets_in_Billion, Sales_in_Billion, Company_ID FROM company WHERE \"Market_Value_in_Billion\" = 202.2 OR Industry = \"Oil and gas\" OR Name = \"HSBC\" AND \"Profits_in_Billion\" = 41.1 AND \"Sales_in_Billion\" > 102.6 EXCEPT SELECT AVG(Profits_in_Billion), Assets_in_Billion, Sales_in_Billion, Company_ID FROM company WHERE \"Profits_in_Billion\" <> 14.4 AND Name = \"JPMorgan Chase\""} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 5, combined with a list of driver IDs from the school_bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_49wyp_12.png", "TableImg_Szbm2_5.png"], "original_data_index": 6947, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Could you give me a list of club IDs for clubs that either started after 2011 and have an ID less than 5, or are not named \"AIK\" and are located in the UK, excluding any club IDs that belong to coaches with a rank less than 2 or who are not male?", "answer": {"columns": ["Club_ID"], "index": [0], "data": [["2"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Em26q_6.png", "TableImg_Nxhfm_5.png"], "original_data_index": 6949, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" > 2011 AND \"Club_ID\" < 5 OR Club_name != \"AIK\" AND Region = \"UK\" EXCEPT SELECT Club_ID FROM coach WHERE \"Rank\" < 2 OR Gender <> \"M\""} {"question": "Can you show me the grade, school name, average location, type, and school ID for all schools that are not private or not named St. Francis Assisi, or are located in Honolulu, Hawaii, but exclude any schools located in Los Angeles, California, or any schools with grades 5th through 12th that are not Columbia University?", "answer": {"columns": ["Grade", "School", "AVG(Location)", "Type", "School_ID"], "index": [0], "data": [["Kindergarten", "Noelani Elementary School", "0", "Public", "1"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Wvll4_7.png", "TableImg_6kmn5_7.png"], "original_data_index": 6948, "original_sql": "SELECT Grade, School, AVG(Location), Type, School_ID FROM school WHERE Type <> \"Private\" AND School != \"St. Francis Assisi\" OR Location = \"Honolulu, Hawaii\" EXCEPT SELECT Grade, School, AVG(Location), Type, School_ID FROM school WHERE Location = \"Los Angeles, California\" OR Grade = \"5th-12th grade\" AND School <> \"Columbia University\""} {"question": "Which driver IDs appear only once as driver IDs equal to 4 in the driver table, but not as driver IDs equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mpmd9_12.png", "TableImg_2qumm_5.png"], "original_data_index": 6952, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 3 and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8lkuj_12.png", "TableImg_Low7x_5.png"], "original_data_index": 6951, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list the aircraft IDs, combining those from the aircraft table that are greater than or equal to 2 with those from the airport_aircraft table that are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gbeon_5.png", "TableImg_E6zua_4.png"], "original_data_index": 6950, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of aircraft IDs that are greater than 1, excluding those aircraft IDs that are less than 3 and are associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ue0o2_5.png", "TableImg_K36i5_4.png"], "original_data_index": 6953, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L854v_12.png", "TableImg_L5cc8_5.png"], "original_data_index": 6954, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of aircraft IDs that are less than 5 and appear in both the aircraft and airport_aircraft tables, considering only the aircraft IDs less than or equal to 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9agng_5.png", "TableImg_P74dd_4.png"], "original_data_index": 6956, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not equal to 2 with those from the school_bus table that are greater than 7, making sure to only list each ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I6gp9_12.png", "TableImg_Kmr16_5.png"], "original_data_index": 6955, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of aircraft IDs, including aircraft ID 1 from the aircraft table, and any aircraft IDs greater than or equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mlkae_5.png", "TableImg_01hge_4.png"], "original_data_index": 6958, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What is the earliest contestant name and the number of contestants, excluding contestant number 8, and also, separately, what is the earliest contestant name and the number of contestants named Jessie Eichman, excluding contestant number 11?", "answer": {"columns": ["MIN(contestant_name)", "COUNT(contestant_number)"], "index": [0, 1], "data": [["Alana Bregman", "10"], ["Jessie Eichman", "1"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_2niu0_11.png", "TableImg_Hrk9l_11.png"], "original_data_index": 6960, "original_sql": "SELECT MIN(contestant_name), COUNT(contestant_number) FROM CONTESTANTS WHERE \"contestant_number\" <> 8 UNION ALL SELECT MIN(contestant_name), COUNT(contestant_number) FROM CONTESTANTS WHERE contestant_name = \"Jessie Eichman\" AND \"contestant_number\" != 11"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 7 from the driver table, combined with a list of driver IDs that are exactly 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P383g_12.png", "TableImg_Ibots_5.png"], "original_data_index": 6959, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the IDs of players who are not named Jim Maloway and who also appear in the player-coach table with either a Player ID greater than 1, a starting year after 2012, or a Coach ID of 5 or higher?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["3"], ["4"], ["6"], ["10"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_Stqlp_14.png", "TableImg_Xuif6_7.png"], "original_data_index": 6957, "original_sql": "SELECT Player_ID FROM player WHERE Player_name <> \"Jim Maloway\" INTERSECT SELECT Player_ID FROM player_coach WHERE \"Player_ID\" > 1 OR \"Starting_year\" > 2012 OR \"Coach_ID\" >= 5"} {"question": "What continents, excluding Asia and those with a ContId of 4 or less, are not listed as countries with a CountryId other than 12?", "answer": {"columns": ["Continent"], "index": [0], "data": [["australia"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_18h2t_5.png", "TableImg_Dq5cw_15.png"], "original_data_index": 6964, "original_sql": "SELECT Continent FROM continents WHERE Continent <> \"asia\" AND \"ContId\" > 4 EXCEPT SELECT Continent FROM countries WHERE \"CountryId\" <> 12"} {"question": "Can you list the driver IDs that are less than 12, and also list the driver IDs from the school bus table that are 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0mvs3_12.png", "TableImg_Bszjx_5.png"], "original_data_index": 6961, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are not equal to 2 and are also less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7xuuh_12.png", "TableImg_5f85n_5.png"], "original_data_index": 6962, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me the IDs of airports that are either in Iceland, or have an ICAO code that isn't LEBL and a name that isn't El Prat Airport, or have an ID of 9 and an IATA code that isn't BRU, or are not in Boston, excluding any IDs that are also associated with the operate company Air China?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Sildm_9.png", "TableImg_4g9f9_14.png"], "original_data_index": 6963, "original_sql": "SELECT id FROM airport WHERE Country = \"Iceland\" OR ICAO != \"LEBL\" AND name != \"El Prat Airport\" OR \"id\" = 9 AND IATA != \"BRU\" OR City <> \"Boston\" EXCEPT SELECT id FROM operate_company WHERE name = \"Air China\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pnzto_12.png", "TableImg_Ksblu_5.png"], "original_data_index": 6968, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "How many template type descriptions are there for the template type code \"AD\" or for descriptions that are not \"Advertisement\", and how many template type descriptions are there for the template type code \"PPT\"?", "answer": {"columns": ["Template_Type_Code", "COUNT(Template_Type_Description)"], "index": [0, 1], "data": [["PPT", "5"], ["PPT", "1"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_5snkg_5.png", "TableImg_T69du_5.png"], "original_data_index": 6966, "original_sql": "SELECT Template_Type_Code, COUNT(Template_Type_Description) FROM Ref_Template_Types WHERE Template_Type_Code = \"AD\" OR Template_Type_Description <> \"Advertisement\" UNION ALL SELECT Template_Type_Code, COUNT(Template_Type_Description) FROM Ref_Template_Types WHERE Template_Type_Code = \"PPT\""} {"question": "Can you give me a list of driver IDs, including driver ID 8 from the driver table and any driver IDs greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5zv3w_12.png", "TableImg_5ezz1_5.png"], "original_data_index": 6965, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me the school name, location, grade, and school ID for schools in Jakarta, Indonesia that are not Noelani Elementary School and either not private or not kindergarten, along with the school name, location, grade, and school ID for schools not in Jakarta, Indonesia that are not St. Francis Assisi and not public?", "answer": {"columns": ["School", "Location", "Grade", "School_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Columbia University", "New York City", "Junior\u2013Senior year", "6"], ["Harvard Law School", "Cambridge, Massachusetts", "College", "7"], ["Noelani Elementary School", "Honolulu, Hawaii", "Kindergarten", "1"], ["Occidental College", "Los Angeles, California", "Freshman\u2013Sophomore year", "5"], ["Punahou School", "Honolulu, Hawaii", "5th-12th grade", "4"], ["St. Francis Assisi", "Jakarta, Indonesia", "1st-3rd grade", "2"], ["State Elementary School Menteng 01", "Jakarta, Indonesia", "4th grade", "3"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Ih3g6_7.png", "TableImg_2okca_7.png"], "original_data_index": 6967, "original_sql": "SELECT School, Location, Grade, School_ID FROM school WHERE Type != \"Private\" OR Grade <> \"Kindergarten\" AND School != \"Noelani Elementary School\" AND Location = \"Jakarta, Indonesia\" UNION SELECT School, Location, Grade, School_ID FROM school WHERE Location <> \"Jakarta, Indonesia\" AND School != \"St. Francis Assisi\" AND Type != \"Public\""} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 6, combined with a list of driver IDs from the school_bus table where each ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qxfcf_12.png", "TableImg_26vob_5.png"], "original_data_index": 6972, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of car models, excluding those made by Honda where the maker ID is 19, but including any model where the Model ID is greater than 12, or the model isn't a Buick, or the maker ID is less than 5?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["amc"], ["audi"], ["bmw"], ["buick"], ["cadillac"], ["capri"], ["chevrolet"], ["chrysler"], ["citroen"], ["datsun"], ["dodge"], ["fiat"], ["ford"], ["hi"], ["honda"], ["hyundai"], ["jeep"], ["kia"], ["mazda"], ["mercedes"], ["mercedes-benz"], ["mercury"], ["nissan"], ["oldsmobile"], ["opel"], ["peugeot"], ["plymouth"], ["pontiac"], ["renault"], ["saab"], ["subaru"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Erp1r_36.png", "TableImg_Yxk9f_36.png"], "original_data_index": 6973, "original_sql": "SELECT Model FROM model_list WHERE \"ModelId\" > 12 OR Model != \"buick\" OR \"Maker\" < 5 EXCEPT SELECT Model FROM model_list WHERE \"Maker\" = 19 AND Model <> \"honda\""} {"question": "Which driver IDs are both less than 12 and also greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ethe_12.png", "TableImg_Rra36_5.png"], "original_data_index": 6974, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which store IDs are found both among stores with an ID less than 3 or in district 15, and among stores in a district greater than 11 or with an ID less than 1?", "answer": {"columns": ["Store_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_Vjzpp_5.png", "TableImg_Kxhqi_5.png"], "original_data_index": 6975, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" < 3 OR \"District_ID\" = 15 INTERSECT SELECT Store_ID FROM store_district WHERE \"District_ID\" > 11 OR \"Store_ID\" < 1"} {"question": "Can you give me a list of aircraft IDs that are not 3, and are also greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hnlnn_5.png", "TableImg_4s3h9_4.png"], "original_data_index": 6976, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of driver IDs, including driver ID 6 from the driver table and driver ID 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qwlaa_12.png", "TableImg_Wlyq3_5.png"], "original_data_index": 6977, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs that are 5 or greater, excluding those driver IDs that are less than 4 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N8ons_12.png", "TableImg_X99c4_5.png"], "original_data_index": 6978, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are not equal to 1 and appear in the driver table, and are also not equal to 4 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F5twf_12.png", "TableImg_0fbua_5.png"], "original_data_index": 6979, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of Club IDs, positions, and student IDs for all club members who are not CTOs, excluding those who are presidents of club number 1?", "answer": {"columns": ["ClubID", "Position", "StuID"], "index": [0, 1], "data": [["1", "Teaching Coordinator", "1010"], ["4", "Vice-President", "1007"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_8yrzo_4.png", "TableImg_82wt0_4.png"], "original_data_index": 6980, "original_sql": "SELECT ClubID, Position, StuID FROM Member_of_club WHERE Position != \"CTO\" EXCEPT SELECT ClubID, Position, StuID FROM Member_of_club WHERE \"ClubID\" = 1 AND Position = \"President\""} {"question": "Can you give me the driver ID that appears exactly once with the value 12 in the driver table, but only if that same driver ID doesn't appear in the school bus table with a value of 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qidga_12.png", "TableImg_V298y_5.png"], "original_data_index": 6970, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me the IDs of drivers that are less than 5, excluding those that are also bus drivers with an ID of 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wmvb0_12.png", "TableImg_Qxhw7_5.png"], "original_data_index": 6971, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are less than 7 and also appear in the list of school bus driver IDs, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7wjwe_12.png", "TableImg_5s9t0_5.png"], "original_data_index": 6969, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of all Driver IDs from the driver table, excluding Driver ID 10, combined with a list of Driver ID 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5vkao_12.png", "TableImg_1qrnd_5.png"], "original_data_index": 6982, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me all the endowment amounts where either the endowment ID is not 8 and the donator's name is Santiago, or the school ID is not 3, or the amount is 8.85, combined with all the endowment amounts where the school ID is less than or equal to 3, or the endowment ID is not 3?", "answer": {"columns": ["amount"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["8.33"], ["8.43"], ["8.53"], ["8.82"], ["8.85"], ["8.99"], ["9.05"], ["9.51"], ["9.55"], ["9.73"], ["9.83"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_Wrh1v_11.png", "TableImg_7nxp6_11.png"], "original_data_index": 6984, "original_sql": "SELECT amount FROM endowment WHERE \"endowment_id\" <> 8 AND donator_name = \"Santiago\" OR \"School_id\" <> 3 OR \"amount\" = 8.85 UNION SELECT amount FROM endowment WHERE \"School_id\" <= 3 OR \"endowment_id\" <> 3"} {"question": "Can you give me the IDs from the airport table where the IATA code isn't ANC, the city isn't Boston, and the country isn't Belgium, or where the name is Ted Stevens Airport and the ICAO code isn't BIAR, or where the ID is greater than or equal to 1, combined with the IDs from the operate_company table where the ID is less than 11?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Ghuhr_9.png", "TableImg_B0vbh_14.png"], "original_data_index": 6983, "original_sql": "SELECT id FROM airport WHERE IATA != \"ANC\" AND City != \"Boston\" AND Country != \"Belgium\" OR name = \"Ted Stevens Airport\" AND ICAO != \"BIAR\" OR \"id\" >= 1 UNION SELECT id FROM operate_company WHERE \"id\" < 11"} {"question": "Can you list the ranking and store name for all stores that are not a City Mall or don't have an area size of 21.73, combined with the ranking and store name for stores that either have an area size of 26.69 or greater and fewer than 17811 product categories, or have a store ID greater than 2, are not a City Mall, have a ranking less than 10, and are not named Neguac?", "answer": {"columns": ["Ranking", "Store_Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2", "Miramichi"], ["3", "Neguac"], ["1", "Rogersville"], ["10", "Blackville"], ["9", "Doaktown"], ["3", "Neguac"], ["1", "Rogersville"], ["10", "Blackville"], ["9", "Doaktown"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_K98sk_5.png", "TableImg_8hw72_5.png"], "original_data_index": 6981, "original_sql": "SELECT Ranking, Store_Name FROM store WHERE Type <> \"City Mall\" OR \"Area_size\" != 21.73 UNION ALL SELECT Ranking, Store_Name FROM store WHERE \"Area_size\" >= 26.69 AND \"Number_of_product_category\" < 17811.0 OR \"Store_ID\" > 2 OR Type <> \"City Mall\" AND \"Ranking\" < 10 AND Store_Name != \"Neguac\""} {"question": "Can you list the driver IDs that are less than 3 from the driver table, and also list the driver IDs that are greater than 7 from the school bus table, combining both lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0wnmu_12.png", "TableImg_58ano_5.png"], "original_data_index": 6988, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 9, that are not also driver IDs of school buses where the school bus driver ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ct1v9_12.png", "TableImg_Ekhlf_5.png"], "original_data_index": 6986, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs, excluding driver ID 3, in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qnyna_12.png", "TableImg_Q0ajz_5.png"], "original_data_index": 6985, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are 11 or greater, excluding any driver IDs that are 7 or less and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7xwt8_12.png", "TableImg_5jjtx_5.png"], "original_data_index": 6987, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 6 and not equal to 9, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Il2bw_12.png", "TableImg_Lze3e_5.png"], "original_data_index": 6989, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of album IDs where the ID is 121 and the title isn't \"Powerslave\", or the artist ID isn't 223, combined with a list of media type IDs that are greater than 1 and the name isn't \"Purchased AAC audio file\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["2"], ["3"], ["5"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_Qo0q0_347.png", "TableImg_Qfup1_5.png"], "original_data_index": 6990, "original_sql": "SELECT id FROM albums WHERE \"id\" = 121 AND title != \"Powerslave\" OR \"artist_id\" != 223 UNION ALL SELECT id FROM media_types WHERE \"id\" > 1 AND name <> \"Purchased AAC audio file\""} {"question": "Can you give me the Club ID and Start Year for all clubs, including those with a Club ID of 1 or less, those located in Korea, those named \"Halmstads BK\" that started after 2011, and also including all clubs that didn't start in 2011?", "answer": {"columns": ["Club_ID", "Start_year"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "2009"], ["4", "2001"], ["1", "2009"], ["2", "1998"], ["3", "2005"], ["4", "2001"], ["5", "2000"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Iwt4w_6.png", "TableImg_4w7au_6.png"], "original_data_index": 6992, "original_sql": "SELECT Club_ID, Start_year FROM club WHERE \"Club_ID\" <= 1 OR Region = \"Korea\" OR \"Start_year\" > 2011 AND Club_name = \"Halmstads BK\" UNION ALL SELECT Club_ID, Start_year FROM club WHERE \"Start_year\" <> 2011"} {"question": "Can you give me a list of contestant numbers, including those from contestants who are not named Jessie Alloway and are not contestant number 7, as well as those from votes that were not created on March 9, 2018 at 7:03:40 PM, or have a contestant number less than 3, or have a vote ID of 2 or less?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_A4zqy_11.png", "TableImg_Wyp9a_4.png"], "original_data_index": 6991, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name != \"Jessie Alloway\" AND \"contestant_number\" != 7 UNION SELECT contestant_number FROM VOTES WHERE created <> \"2018-03-09 19:03:40\" OR \"contestant_number\" < 3 OR \"vote_id\" <= 2"} {"question": "Which driver IDs are both greater than or equal to 3 in the driver table and greater than 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qvvei_12.png", "TableImg_Mk7ea_5.png"], "original_data_index": 6993, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than 6, excluding those driver IDs that are also greater than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hf4tp_12.png", "TableImg_Hgi30_5.png"], "original_data_index": 6995, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list the aircraft IDs that are greater than or equal to 3, excluding those aircraft IDs that are less than 5 and are present in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Is7tn_5.png", "TableImg_Y73wb_4.png"], "original_data_index": 6998, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are both equal to 10 and less than or equal to 10 in the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wdbpo_12.png", "TableImg_Mzbsq_5.png"], "original_data_index": 7001, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 10, excluding any driver IDs from the school bus list that are 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zd3oh_12.png", "TableImg_Srjmh_5.png"], "original_data_index": 7002, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the aircraft IDs from the aircraft table that are greater than or equal to 5, excluding any aircraft IDs from the airport_aircraft table that are less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K18ue_5.png", "TableImg_7i95m_4.png"], "original_data_index": 7000, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me the IDs of drivers, up to ID 2, that are not also the IDs of school bus drivers up to ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gbh6w_12.png", "TableImg_Fffzf_5.png"], "original_data_index": 7004, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are less than 6, and also a list of driver IDs from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kr0ll_12.png", "TableImg_Eild8_5.png"], "original_data_index": 7005, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, and also excluding any aircraft IDs that appear in the airport_aircraft table with an ID of 1 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R311x_5.png", "TableImg_57zuk_4.png"], "original_data_index": 7003, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What is the total student ID for club members who are not presidents or whose student ID is 1007 or higher, combined with the total student ID for students who don't have a major of 600 and whose first name isn't Paul, or whose advisor number is 1148 or less and are not male, or who don't live in PIT?", "answer": {"columns": ["SUM(StuID)"], "index": [0, 1], "data": [["3025"], ["31580"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_Vybw5_4.png", "TableImg_Jk9we_34.png"], "original_data_index": 6999, "original_sql": "SELECT SUM(StuID) FROM Member_of_club WHERE Position != \"President\" OR \"StuID\" >= 1007 UNION ALL SELECT SUM(StuID) FROM Student WHERE \"Major\" != 600 AND Fname != \"Paul\" OR \"Advisor\" <= 1148 AND Sex != \"M\" OR city_code != \"PIT\""} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 3, and combine that with a list of all aircraft IDs from the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eh3c4_5.png", "TableImg_Rc690_4.png"], "original_data_index": 7006, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me the driver IDs that are less than 5 and also less than 9, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gj0cu_12.png", "TableImg_Llfds_5.png"], "original_data_index": 7009, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of aircraft IDs that are not equal to 1, excluding any aircraft IDs from the airport aircraft list that are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ftcfl_5.png", "TableImg_Hdp72_4.png"], "original_data_index": 7008, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding the driver ID 9, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_456bf_12.png", "TableImg_W9is1_5.png"], "original_data_index": 7007, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver IDs less than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Abrqb_12.png", "TableImg_78gve_5.png"], "original_data_index": 7010, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are not 8, where each ID appears at least once in the driver table, excluding any driver IDs that appear at least once in the school bus table and are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I6vfk_12.png", "TableImg_Z9lja_5.png"], "original_data_index": 7011, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the highest address details and their corresponding address IDs for addresses with an ID of 9 or greater, excluding those where the address details are \"MX\"?", "answer": {"columns": ["MAX(address_details)", "address_id"], "index": [0], "data": [["MX", "9"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_H91m4_10.png", "TableImg_4zyno_10.png"], "original_data_index": 7013, "original_sql": "SELECT MAX(address_details), address_id FROM Addresses WHERE \"address_id\" >= 9 EXCEPT SELECT MAX(address_details), address_id FROM Addresses WHERE address_details != \"MX\""} {"question": "Can you list the aircraft IDs that are greater than 3 when grouped in the aircraft table, and also include the aircraft IDs that are equal to 2 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6mt3s_5.png", "TableImg_7jrmt_4.png"], "original_data_index": 7015, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs that are 12 or greater from the driver table, excluding any driver IDs that appear in the school bus table where the driver ID is not 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jionv_12.png", "TableImg_Q56pj_5.png"], "original_data_index": 7014, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Could you give me a list of customer IDs from the payments table, excluding those customer IDs that are also in the customer table where the customer's birth date isn't August 30, 1996, their last name is Koelpin, their customer status isn't \"Bad Customer\", their first name isn't Estelle, their phone number isn't (662)490-3108, their outstanding amount isn't 9443.0, and their mobile phone number is +45(6)4872981083, or their customer ID is 5, or their email address isn't wehner.harold@example.com, and where the payment time isn't March 12, 2018 at 13:31:36, or the customer ID isn't 7, or the payment method isn't Direct Debit, or the payment amount is greater than 6782.84?", "answer": {"columns": ["customer_id"], "index": [0], "data": [["13"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Absic_15.png", "TableImg_7oxhb_15.png"], "original_data_index": 7012, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment != \"2018-03-12 13:31:36\" OR \"customer_id\" != 7 OR payment_method_code != \"Direct Debit\" OR \"amount_payment\" > 6782.84 EXCEPT SELECT customer_id FROM Customers WHERE date_of_birth <> \"1996-08-30 06:17:50\" AND last_name = \"Koelpin\" AND customer_status_code != \"Bad Customer\" AND first_name <> \"Estelle\" AND phone_number != \"(662)490-3108\" AND \"amount_outstanding\" <> 9443.0 AND cell_mobile_phone_number = \"+45(6)4872981083\" OR \"customer_id\" = 5 OR email_address <> \"wehner.harold@example.com\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 2, excluding any driver IDs that are equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hx7o5_12.png", "TableImg_Cnggv_5.png"], "original_data_index": 7016, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What aircraft IDs are both less than or equal to 1 when grouped in the aircraft table and less than or equal to 2 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gxtu1_5.png", "TableImg_Ivgxu_4.png"], "original_data_index": 7019, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What car models are both not made by \"fiat x1.9\" and are not \"plymouth\", and also are either not made by maker ID 19 or are not \"bmw\"?", "answer": {"columns": ["Model"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "data": [["amc"], ["audi"], ["bmw"], ["buick"], ["cadillac"], ["capri"], ["chevrolet"], ["chrysler"], ["citroen"], ["datsun"], ["dodge"], ["fiat"], ["ford"], ["hi"], ["honda"], ["mazda"], ["mercedes"], ["mercedes-benz"], ["mercury"], ["nissan"], ["oldsmobile"], ["opel"], ["peugeot"], ["pontiac"], ["renault"], ["saab"], ["subaru"], ["toyota"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_8xcfm_406.png", "TableImg_69vih_36.png"], "original_data_index": 7018, "original_sql": "SELECT Model FROM car_names WHERE Make != \"fiat x1.9\" AND Model <> \"plymouth\" INTERSECT SELECT Model FROM model_list WHERE \"Maker\" <> 19 OR Model != \"bmw\""} {"question": "Can you list the Party ID, Party name, Comptroller, Lieutenant Governor, and US Senate representative for all parties where either the Party ID is greater than 2 and the Party is not Democratic and the year is not 2006, or the Governor is Tom Golisano, or the Comptroller is not Alan Hevesi and the Attorney General is Eliot Spitzer; combined with the Party ID, Party name, Comptroller, Lieutenant Governor, and US Senate representative for all parties where either the Lieutenant Governor is not David Paterson, or the US Senator is Hillary Rodham Clinton and the Attorney General is not Eliot Spitzer, or the Governor is not Eliot Spitzer, or the Comptroller is Alan Hevesi and the Party is Independence and the Party ID is not 3?", "answer": {"columns": ["Party_ID", "Party", "Comptroller", "Lieutenant_Governor", "US_Senate"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "Democratic", "Carl McCall", "Sandra Frankel", "Charles Schumer"], ["2", "Liberal", "Carl McCall", "Jonathan Reiter", "Charles Schumer"], ["3", "Democratic", "Alan Hevesi", "Dennis Mehiel", "(no election)"], ["4", "Independence", "John Faso", "Mary Donohue", "(no election)"], ["5", "Democratic", "Alan Hevesi", "David Paterson", "Hillary Rodham Clinton"], ["6", "Independence", "Alan Hevesi", "David Paterson", "Hillary Rodham Clinton"], ["7", "Working Families", "Alan Hevesi", "David Paterson", "Hillary Rodham Clinton"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Wd4a0_7.png", "TableImg_R68rl_7.png"], "original_data_index": 7017, "original_sql": "SELECT Party_ID, Party, Comptroller, Lieutenant_Governor, US_Senate FROM party WHERE \"Party_ID\" > 2 AND Party <> \"Democratic\" AND \"Year\" != 2006.0 OR Governor = \"Tom Golisano\" OR Comptroller <> \"Alan Hevesi\" AND Attorney_General = \"Eliot Spitzer\" UNION SELECT Party_ID, Party, Comptroller, Lieutenant_Governor, US_Senate FROM party WHERE Lieutenant_Governor != \"David Paterson\" OR US_Senate = \"Hillary Rodham Clinton\" AND Attorney_General <> \"Eliot Spitzer\" OR Governor <> \"Eliot Spitzer\" OR Comptroller = \"Alan Hevesi\" AND Party = \"Independence\" AND \"Party_ID\" <> 3"} {"question": "Can you give me the vehicle details that are \"Truck\" or have a vehicle ID of 2 or greater, but only if they also have a vehicle ID greater than 2?", "answer": {"columns": ["vehicle_details"], "index": [0], "data": [["Car"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Lj792_3.png", "TableImg_8nb2i_3.png"], "original_data_index": 7021, "original_sql": "SELECT vehicle_details FROM Vehicles WHERE vehicle_details = \"Truck\" OR \"vehicle_id\" >= 2 INTERSECT SELECT vehicle_details FROM Vehicles WHERE \"vehicle_id\" > 2"} {"question": "Can you give me a list of driver IDs that are less than or equal to 4, excluding any driver IDs that are equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6iu9m_12.png", "TableImg_75f02_5.png"], "original_data_index": 7022, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the aircraft IDs that are greater than or equal to 2, and also list the aircraft IDs from the airport aircraft table that are equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9085y_5.png", "TableImg_Wobw3_4.png"], "original_data_index": 7023, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me the department and head IDs for temporary acting managers with a head ID greater than 5, excluding those with a head ID of 4 who are not temporary acting?", "answer": {"columns": ["department_ID", "head_ID"], "index": [0], "data": [["2", "6"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_B7nwg_5.png", "TableImg_A14ju_5.png"], "original_data_index": 7020, "original_sql": "SELECT department_ID, head_ID FROM management WHERE temporary_acting = \"Yes\" AND \"head_ID\" > 5 EXCEPT SELECT department_ID, head_ID FROM management WHERE temporary_acting <> \"No\" AND \"head_ID\" = 4"} {"question": "What are the average pet type, total pet ID, and average weight for pets with IDs up to 2002, combined with the average pet type, total pet ID, and average weight for pets that aren't dogs and weigh less than 9.3?", "answer": {"columns": ["AVG(PetType)", "SUM(PetID)", "AVG(weight)"], "index": [0, 1], "data": [["0.0", "4003.0", "12.7"], ["", "", ""]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_7lei0_3.png", "TableImg_4gr1i_3.png"], "original_data_index": 7024, "original_sql": "SELECT AVG(PetType), SUM(PetID), AVG(weight) FROM Pets WHERE \"PetID\" <= 2002 UNION ALL SELECT AVG(PetType), SUM(PetID), AVG(weight) FROM Pets WHERE PetType <> \"dog\" AND \"weight\" < 9.3"} {"question": "Which driver IDs, excluding driver ID 6, are not also driver IDs of school buses, excluding school bus driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2lxqs_12.png", "TableImg_I814l_5.png"], "original_data_index": 7026, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table with driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_To9w0_12.png", "TableImg_Iqyzi_5.png"], "original_data_index": 7027, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are not equal to 8 from the driver table, excluding any driver IDs from the school bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_La1sd_12.png", "TableImg_Kodmx_5.png"], "original_data_index": 7028, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list the aircraft IDs that appear at least once in the aircraft table with an ID of 5 or greater, and also list the aircraft IDs that appear at least once in the airport_aircraft table with an ID greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ju86g_5.png", "TableImg_Au5f3_4.png"], "original_data_index": 7025, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What aircraft IDs, excluding ID 1, are present in the aircraft table but not in the airport_aircraft table, also excluding ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bvwh3_5.png", "TableImg_Ujx1t_4.png"], "original_data_index": 7032, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs, excluding driver ID 5, are present in the driver table and also, excluding driver ID 7, are present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dp50z_12.png", "TableImg_09svb_5.png"], "original_data_index": 7030, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "For each aircraft, what is the ID of the aircraft with the smallest ID that uses the same airport?", "answer": {"columns": ["Aircraft_ID", "MIN(T2.Aircraft_ID)"], "index": [0], "data": [["1", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Urkun_5.png", "TableImg_P8xtz_4.png"], "original_data_index": 7031, "original_sql": "SELECT T1.Aircraft_ID, MIN(T2.Aircraft_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs that are less than 9, excluding those driver IDs that are also less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ilmzx_12.png", "TableImg_Whs3o_5.png"], "original_data_index": 7029, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only aircraft IDs up to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_59bg8_5.png", "TableImg_Q1mm1_4.png"], "original_data_index": 7035, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 7, that are not also driver IDs, excluding driver ID 4, in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mwhur_12.png", "TableImg_2qi1n_5.png"], "original_data_index": 7036, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, including those greater than 12 from the driver table and those equal to 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hhrnm_12.png", "TableImg_Vvym7_5.png"], "original_data_index": 7034, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 4 or greater, and those from the school bus table where the ID is 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_90bug_12.png", "TableImg_Pk5di_5.png"], "original_data_index": 7033, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are both greater than or equal to 5 and also less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E3jao_12.png", "TableImg_7t4r8_5.png"], "original_data_index": 7038, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs from the driver table, excluding driver ID 9, that are not also driver IDs less than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D8mqy_12.png", "TableImg_Htyjr_5.png"], "original_data_index": 7037, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the year, invested amount, budgeted amount, and total budget percent invested from the budget table where the following two sets of conditions are both met: first, the budget invested percent is not 71.3, the school ID is greater than 2, the total budget percent invested is not 2.2, the budgeted amount is less than 4979, or the total budget percent budgeted is less than or equal to 2.0; and second, the total budget percent invested is greater than 2.0, the total budget percent budgeted is not 2.4, the school ID is greater than or equal to 2, the invested amount is less than or equal to 8335, the budgeted amount is not 3666, the budget invested percent is not 127.6, and the year is not 2005?", "answer": {"columns": ["Year", "Invested", "Budgeted", "total_budget_percent_invested"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1999", "2134", "4979", "2.0"], ["2000", "5840", "3666", "2.0"], ["2001", "8335", "6803", "2.0"], ["2002", "8335", "6803", "2.0"], ["2004", "95542", "74849", "2.2"], ["2005", "140102", "61283", "2.7"], ["2006", "146102", "113531", "2.7"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Jytxa_8.png", "TableImg_Dk54n_8.png"], "original_data_index": 7040, "original_sql": "SELECT Year, Invested, Budgeted, total_budget_percent_invested FROM budget WHERE Budget_invested_percent != \"71.3\" AND \"School_id\" > 2 AND \"total_budget_percent_invested\" != 2.2 OR \"Budgeted\" < 4979 OR \"total_budget_percent_budgeted\" <= 2.0 INTERSECT SELECT Year, Invested, Budgeted, total_budget_percent_invested FROM budget WHERE \"total_budget_percent_invested\" > 2.0 AND \"total_budget_percent_budgeted\" <> 2.4 AND \"School_id\" >= 2 AND \"Invested\" <= 8335 OR \"Budgeted\" != 3666 OR Budget_invested_percent != \"127.6\" AND \"Year\" != 2005"} {"question": "Can you list the distances of aircraft where either the aircraft ID is not 7, the distance is not 2128, or the name is not \"British Aerospace Jetstream 41\", excluding distances that are also found among aircraft with an ID less than 10 and a distance greater than 1530?", "answer": {"columns": ["distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["8430"], ["3383"], ["7120"], ["1502"], ["1530"], ["2128"], ["520"], ["4103"], ["30"], ["6900"], ["4010"], ["6441"], ["6475"], ["2605"], ["1805"], ["1504"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Lq1qe_16.png", "TableImg_2m61q_16.png"], "original_data_index": 7039, "original_sql": "SELECT distance FROM aircraft WHERE \"aid\" != 7 OR \"distance\" != 2128 OR name != \"British Aerospace Jetstream 41\" NOT IN (SELECT distance FROM aircraft WHERE \"aid\" < 10 AND \"distance\" > 1530)"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 3 or less, combined with a list of driver IDs from the school bus table where the ID is exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I4ggf_12.png", "TableImg_6u3cm_5.png"], "original_data_index": 7041, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are both greater than 6 and present in the driver table, and also greater than or equal to 4 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oe17g_12.png", "TableImg_Sw0l9_5.png"], "original_data_index": 7044, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list all the aircraft IDs from the aircraft table, excluding aircraft ID 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are less than 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_W3i40_5.png", "TableImg_Xq3b7_4.png"], "original_data_index": 7046, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Could you please provide the amount outstanding, email address, date they became a customer, and customer address ID for customers who meet either of these sets of criteria: first, those who are in the Customers table and are not named Ortiz, and whose mobile number is not 739-333-6966x187, or whose first name is Ray and their phone number is not +14(5)2351480248, or whose birthdate is not 1993-07-09 11:11:36 and became a customer on 2016-05-11 17:03:48, or whose customer address ID is not 10, or whose customer ID is less than 4, or whose customer status code is \"Bad Customer\"; and second, those who are also in the Customers table and became a customer on 2016-02-17 08:26:23, and whose phone number is not (297)122-0086, and whose customer address ID is not 2, or whose amount outstanding is less than 2099.0 and their date of birth is 1998-12-15 13:24:40?", "answer": {"columns": ["amount_outstanding", "email_address", "date_became_customer", "customer_address_id"], "index": [0, 1], "data": [["255", "everette.goyette@example.org", "2016-05-11 17:03:48", "13"], ["7093", "mariela28@example.org", "2016-02-17 08:26:23", "12"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_01gdz_15.png", "TableImg_R1wlo_15.png"], "original_data_index": 7045, "original_sql": "SELECT amount_outstanding, email_address, date_became_customer, customer_address_id FROM Customers WHERE last_name != \"Ortiz\" AND cell_mobile_phone_number != \"739-333-6966x187\" OR first_name = \"Ray\" AND phone_number != \"+14(5)2351480248\" OR date_of_birth != \"1993-07-09 11:11:36\" AND date_became_customer = \"2016-05-11 17:03:48\" OR \"customer_address_id\" != 10 OR \"customer_id\" < 4 OR customer_status_code = \"Bad Customer\" INTERSECT SELECT amount_outstanding, email_address, date_became_customer, customer_address_id FROM Customers WHERE date_became_customer = \"2016-02-17 08:26:23\" AND phone_number != \"(297)122-0086\" AND \"customer_address_id\" != 2 OR \"amount_outstanding\" < 2099.0 AND date_of_birth = \"1998-12-15 13:24:40\""} {"question": "Could you give me the aircraft IDs that are both greater than 6 in the certificate table and either have an ID of 10 or a distance greater than 30 in the aircraft table?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Zaw24_16.png", "TableImg_V42b9_69.png"], "original_data_index": 7047, "original_sql": "SELECT aid FROM aircraft WHERE \"aid\" = 10 OR \"distance\" > 30 INTERSECT SELECT aid FROM certificate WHERE \"aid\" > 6"} {"question": "Can you give me a list of driver IDs, excluding driver ID 6, from the driver table, but then remove any driver IDs that are also driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xvvr7_12.png", "TableImg_8usla_5.png"], "original_data_index": 7048, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are less than 12 and also appear in the list of school bus driver IDs, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_33ooo_12.png", "TableImg_7kg45_5.png"], "original_data_index": 7049, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list the contestant number and name for all contestants, excluding contestant number 6, and also list the contestant number and name for all contestants, excluding contestant number 4?", "answer": {"columns": ["contestant_number", "contestant_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["1", "Edwina Burnam"], ["2", "Tabatha Gehling"], ["3", "Kelly Clauss"], ["4", "Jessie Alloway"], ["5", "Alana Bregman"], ["7", "Allie Rogalski"], ["8", "Nita Coster"], ["9", "Kurt Walser"], ["10", "Ericka Dieter"], ["11", "Loraine NygrenTania Mattioli"], ["1", "Edwina Burnam"], ["2", "Tabatha Gehling"], ["3", "Kelly Clauss"], ["5", "Alana Bregman"], ["6", "Jessie Eichman"], ["7", "Allie Rogalski"], ["8", "Nita Coster"], ["9", "Kurt Walser"], ["10", "Ericka Dieter"], ["11", "Loraine NygrenTania Mattioli"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_8dy99_11.png", "TableImg_U6f16_11.png"], "original_data_index": 7050, "original_sql": "SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE \"contestant_number\" != 6 UNION ALL SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE \"contestant_number\" != 4"} {"question": "Can you list the aircraft IDs that are greater than 4 in the aircraft table, and also list the aircraft IDs that are less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zmc0v_5.png", "TableImg_H54x0_4.png"], "original_data_index": 7051, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you list all the driver IDs that are less than 5 from the driver table, combined with all the driver IDs that are less than 9 from the school_bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K1zlp_12.png", "TableImg_Yby3e_5.png"], "original_data_index": 7052, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs, excluding driver ID 7, are also driver IDs in the school bus list, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ufo0_12.png", "TableImg_Elgou_5.png"], "original_data_index": 7043, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are greater than 8, excluding those driver IDs that are also greater than 3 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H2edb_12.png", "TableImg_I0hoi_5.png"], "original_data_index": 7042, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Could you give me a list of driver IDs that are less than 11 and also greater than 9, considering only the unique driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zm5gm_12.png", "TableImg_Ysmtq_5.png"], "original_data_index": 7054, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are both greater than 2 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_16uca_12.png", "TableImg_3gjw4_5.png"], "original_data_index": 7056, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me the IDs of aircraft that are less than or equal to 3, excluding the IDs of aircraft in the airport_aircraft table that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vnapd_5.png", "TableImg_20j18_4.png"], "original_data_index": 7053, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are exactly 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ahnnl_12.png", "TableImg_18vnd_5.png"], "original_data_index": 7055, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are less than or equal to 1, excluding any driver IDs that are equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dwgss_12.png", "TableImg_Ymzyp_5.png"], "original_data_index": 7058, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 10, combined with a list of driver IDs from the school_bus table that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K1d9p_12.png", "TableImg_56uxa_5.png"], "original_data_index": 7057, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Could you list the names and parties of drivers who are either not Democrats or don't live in Hartford, but are also Democrats?", "answer": {"columns": ["Name", "Party"], "index": [0, 1, 2, 3], "data": [["Geoff Luxenberg", "Dem"], ["Henry Genga", "Dem"], ["Jason Rojas", "Dem"], ["Tim Larson", "Dem"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_Lopqf_12.png", "TableImg_Fq8f5_12.png"], "original_data_index": 7061, "original_sql": "SELECT Name, Party FROM driver WHERE Party != \"Dem\" OR Home_city <> \"Hartford\" INTERSECT SELECT Name, Party FROM driver WHERE Party = \"Dem\""} {"question": "Can you give me a list of driver IDs, including driver ID 10 from the driver table and all driver IDs less than or equal to 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ctcy9_12.png", "TableImg_2jsnr_5.png"], "original_data_index": 7059, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What is the smallest student ID that is both from a member of a club with a student ID less than or equal to 1001 or a club ID less than or equal to 1 and a position of \"Teaching Coordinator\", and also from a student whose advisor is not 7792?", "answer": {"columns": ["MIN(StuID)"], "index": [0], "data": [["1001"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_7bi8f_4.png", "TableImg_T2fyg_34.png"], "original_data_index": 7062, "original_sql": "SELECT MIN(StuID) FROM Member_of_club WHERE \"StuID\" <= 1001 OR \"ClubID\" <= 1 AND Position = \"Teaching Coordinator\" INTERSECT SELECT MIN(StuID) FROM Student WHERE \"Advisor\" <> 7792"} {"question": "Can you show me the minimum earnings, average best finish, money rank, poker player ID, and minimum final tables made for poker players, combining two groups: first, those with 19 or fewer final tables made, earnings of 596462 or less, or a poker player ID less than 4; and second, those who either have a different number of final tables made than 19, earnings of at least 104871, a people ID of 7, and a poker player ID of 2 or less, or have a money rank of 166 and a best finish of 2?", "answer": {"columns": ["MIN(Earnings)", "AVG(Best_Finish)", "Money_Rank", "Poker_Player_ID", "MIN(Final_Table_Made)"], "index": [0, 1], "data": [["", "", "", "", ""], ["104871.0", "1.8", "141.0", "2.0", "10.0"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Vzsog_5.png", "TableImg_Ltcbz_5.png"], "original_data_index": 7060, "original_sql": "SELECT MIN(Earnings), AVG(Best_Finish), Money_Rank, Poker_Player_ID, MIN(Final_Table_Made) FROM poker_player WHERE \"Final_Table_Made\" <= 19.0 OR \"Earnings\" <= 596462.0 OR \"Poker_Player_ID\" < 4 UNION SELECT MIN(Earnings), AVG(Best_Finish), Money_Rank, Poker_Player_ID, MIN(Final_Table_Made) FROM poker_player WHERE \"Final_Table_Made\" != 19.0 AND \"Earnings\" >= 104871.0 AND \"People_ID\" = 7 AND \"Poker_Player_ID\" <= 2 OR \"Money_Rank\" = 166.0 AND \"Best_Finish\" = 2.0"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10, and those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3sv24_12.png", "TableImg_Yiixv_5.png"], "original_data_index": 7064, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of album IDs where the ID is 196 or greater and the title isn't \"Great Opera Choruses\", or the artist ID is 148 or greater, combined with a list of employee IDs where the title isn't \"IT Staff\", or the last name is \"Adams\", or the country isn't \"Canada\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157], "data": [["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["286"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_S5yxc_347.png", "TableImg_Ikit6_8.png"], "original_data_index": 7063, "original_sql": "SELECT id FROM albums WHERE \"id\" >= 196 AND title <> \"Great Opera Choruses\" OR \"artist_id\" >= 148 UNION ALL SELECT id FROM employees WHERE title != \"IT Staff\" OR last_name = \"Adams\" OR country != \"Canada\""} {"question": "Can you give me a list of driver IDs, removing duplicates, that includes all driver IDs from the driver table, excluding driver ID 7, and all driver IDs from the school_bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_17akq_12.png", "TableImg_T1fsi_5.png"], "original_data_index": 7066, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me the PetIDs from the Has_Pet table where either the PetID is not 2003 or the StuID is not 1002, but only if those PetIDs are also found in the Has_Pet table where the StuID is less than or equal to 1001 and the PetID is greater than or equal to 2001?", "answer": {"columns": ["PetID"], "index": [0, 1], "data": [["2001"], ["2002"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_6u289_3.png", "TableImg_Qicom_3.png"], "original_data_index": 7065, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"PetID\" != 2003 OR \"StuID\" <> 1002 IN (SELECT PetID FROM Has_Pet WHERE \"StuID\" <= 1001 AND \"PetID\" >= 2001)"} {"question": "Can you list the aircraft IDs that are equal to 5 from the aircraft table, and also list the aircraft IDs that are less than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ognke_5.png", "TableImg_Smtfg_4.png"], "original_data_index": 7067, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V1saa_12.png", "TableImg_Usdh9_5.png"], "original_data_index": 7071, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver ID 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eb8yw_12.png", "TableImg_94oge_5.png"], "original_data_index": 7068, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are both not equal to 2 and also greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R5yb0_12.png", "TableImg_Zapaw_5.png"], "original_data_index": 7073, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list all the driver IDs, including those from the driver table excluding driver ID 9, and those from the school bus table with driver IDs up to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E7vej_12.png", "TableImg_B5gs2_5.png"], "original_data_index": 7070, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me the IDs of drivers that are less than 2, excluding the IDs of school bus drivers that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3t0vo_12.png", "TableImg_Q1s6l_5.png"], "original_data_index": 7074, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are not 11, and are also not 3, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tj6kb_12.png", "TableImg_Nyhqu_5.png"], "original_data_index": 7075, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the total number of allergies, excluding ragweed, plus the total number of allergies including those that are not tree pollen or are associated with student ID 1010?", "answer": {"columns": ["SUM(Allergy)"], "index": [0], "data": [["0"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_3ondl_14.png", "TableImg_Ruv2t_59.png"], "original_data_index": 7077, "original_sql": "SELECT SUM(Allergy) FROM Allergy_Type WHERE Allergy != \"Ragweed\" UNION SELECT SUM(Allergy) FROM Has_Allergy WHERE Allergy <> \"Tree Pollen\" OR \"StuID\" = 1010"} {"question": "Can you give me a list of aircraft IDs less than 5, excluding any aircraft IDs that are equal to 2 and are also associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kl7gu_5.png", "TableImg_5r95w_4.png"], "original_data_index": 7078, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you tell me, for each name, the number of people born on January 22, 1987, the number of nationalities, and the average people ID, but only if the average people ID is exactly 4? Also, can you combine this with the number of people born on any date, the number of nationalities, and the average people ID for each name that isn't Yevgeni Sivozhelez and whose height is at least 207, but only if the number of nationalities is not equal to 1?", "answer": {"columns": ["COUNT(Birth_Date)", "COUNT(Nationality)", "AVG(People_ID)", "Name"], "index": [0], "data": [["1", "1", "4", "Sergey Grankin"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Fjuki_7.png", "TableImg_98l42_7.png"], "original_data_index": 7076, "original_sql": "SELECT COUNT(Birth_Date), COUNT(Nationality), AVG(People_ID), Name FROM people WHERE Birth_Date = \"January 22, 1987\" GROUP BY Name HAVING AVG(People_ID) = 4.0 UNION SELECT COUNT(Birth_Date), COUNT(Nationality), AVG(People_ID), Name FROM people WHERE Name != \"Yevgeni Sivozhelez\" AND \"Height\" >= 207.0 GROUP BY Name HAVING COUNT(Nationality) != 1"} {"question": "Can you give me a list of driver IDs that are greater than 11, excluding any driver IDs less than or equal to 10 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wolon_12.png", "TableImg_Tzy1v_5.png"], "original_data_index": 7079, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs from the driver table that are 10 or greater, combined with a list of driver IDs from the school_bus table that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2tgu3_12.png", "TableImg_Tf9l0_5.png"], "original_data_index": 7080, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or less, and those from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uk0fa_12.png", "TableImg_Ntek1_5.png"], "original_data_index": 7081, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding those driver IDs that are less than 3 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lwboz_12.png", "TableImg_F5ehk_5.png"], "original_data_index": 7082, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me the maximum disk loading, the highest aircraft ID, total disk area, description, and the count of maximum gross weights for aircraft, combining two sets of results: first, where the maximum disk loading is not \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\", the maximum gross weight is not \"1,370 lb (635 kg)\", and the aircraft ID is less than or equal to 2; and second, where the total disk area is \"8,495 ft\u00b2 (789 m\u00b2)\", the maximum gross weight is \"1,370 lb (635 kg)\", the aircraft ID is not 3, and the aircraft is a \"CH-47D Chinook\"?", "answer": {"columns": ["Max_disk_Loading", "MAX(Aircraft_ID)", "Total_disk_area", "Description", "COUNT(Max_Gross_Weight)"], "index": [0, 1], "data": [["3.7 lb/ft\u00b2 (18 kg/m\u00b2)", "2.0", "872 ft\u00b2 (81.1 m\u00b2)", "Turboshaft utility helicopter", "1"], ["", "", "", "", "0"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_2zech_5.png", "TableImg_6imlb_5.png"], "original_data_index": 7072, "original_sql": "SELECT Max_disk_Loading, MAX(Aircraft_ID), Total_disk_area, Description, COUNT(Max_Gross_Weight) FROM aircraft WHERE Max_disk_Loading <> \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" AND Max_Gross_Weight <> \"1,370 lb (635 kg)\" AND \"Aircraft_ID\" <= 2 UNION ALL SELECT Max_disk_Loading, MAX(Aircraft_ID), Total_disk_area, Description, COUNT(Max_Gross_Weight) FROM aircraft WHERE Total_disk_area = \"8,495 ft\u00b2 (789 m\u00b2)\" AND Max_Gross_Weight = \"1,370 lb (635 kg)\" AND \"Aircraft_ID\" <> 3 AND Aircraft = \"CH-47D Chinook\""} {"question": "Which driver IDs are both not equal to 2 and also greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3quzf_12.png", "TableImg_S9dmj_5.png"], "original_data_index": 7086, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, but only if they don't also appear in the airport_aircraft table with an aircraft ID of 2 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gg7tw_5.png", "TableImg_Ouvv6_4.png"], "original_data_index": 7085, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs that are greater than 10, excluding those driver IDs that are less than or equal to 3 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W6ckv_12.png", "TableImg_Yssre_5.png"], "original_data_index": 7084, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Could you give me a list of customer IDs from the payment records where either the payment wasn't made at \"2018-02-01 06:15:31\", or the payment amount wasn't 1708.18 and the customer ID isn't 2, combined with a list of customer IDs from the customer records where the mobile phone number is \"081-097-3684\" and the first name isn't \"Rylan\"?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["11"], ["2"], ["14"], ["6"], ["3"], ["14"], ["4"], ["7"], ["13"], ["6"], ["2"], ["10"], ["1"], ["14"], ["12"], ["4"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Shsex_15.png", "TableImg_Ip9mk_15.png"], "original_data_index": 7083, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment != \"2018-02-01 06:15:31\" OR \"amount_payment\" != 1708.18 AND \"customer_id\" <> 2 UNION ALL SELECT customer_id FROM Customers WHERE cell_mobile_phone_number = \"081-097-3684\" AND first_name <> \"Rylan\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 9, that are not also driver IDs less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vdly9_12.png", "TableImg_236mi_5.png"], "original_data_index": 7089, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are greater than 3, but not including those driver IDs that are greater than or equal to 7 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sgmbp_12.png", "TableImg_Pfiyb_5.png"], "original_data_index": 7090, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs that are less than 10 and also greater than or equal to 3, considering only the unique driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6059l_12.png", "TableImg_Okyvo_5.png"], "original_data_index": 7088, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, where each ID is 9 or greater, and the driver is in the driver table but not in the school_bus table if their ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Djm72_12.png", "TableImg_Qp0uo_5.png"], "original_data_index": 7087, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs that are also in the school_bus table and are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Seexb_12.png", "TableImg_4vf7w_5.png"], "original_data_index": 7094, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 8, but excluding any driver IDs that are not equal to 3 and are also found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jd52n_12.png", "TableImg_71g5n_5.png"], "original_data_index": 7091, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the aircraft IDs, including those that appear exactly once in the aircraft table with an ID of 4, and those that appear in the airport_aircraft table with an ID other than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Duzuz_5.png", "TableImg_2tpmf_4.png"], "original_data_index": 7092, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are not equal to 5 and also less than or equal to 4, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qaro5_12.png", "TableImg_Ywq2n_5.png"], "original_data_index": 7093, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs, excluding 9, are also driver IDs that are greater than or equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4v9gf_12.png", "TableImg_Titgv_5.png"], "original_data_index": 7095, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are greater than 1 and also not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sdnu3_12.png", "TableImg_U08t7_5.png"], "original_data_index": 7096, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are both less than 11 and also greater than 4, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1xo6n_12.png", "TableImg_22h14_5.png"], "original_data_index": 7098, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 2, and those from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ousxx_12.png", "TableImg_424pk_5.png"], "original_data_index": 7097, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs that are 11 or less from the driver table, excluding those driver IDs that are less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9hi1q_12.png", "TableImg_960we_5.png"], "original_data_index": 7102, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list all the cities of employees who either have an employee ID of 4 or less, or are named Tim Payne and are 43 years old or younger, and also list all the cities of employees who are not named Andrew Sheridan?", "answer": {"columns": ["City"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Bristol"], ["Bath"], ["Bristol"], ["Bristol"], ["Wasps"], ["Bristol"], ["Bath"], ["Bristol"], ["Bristol"], ["Wasps"], ["Bath"], ["Wasps"], ["Bath"], ["Leicester"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Oocr4_10.png", "TableImg_77x9p_10.png"], "original_data_index": 7099, "original_sql": "SELECT City FROM employee WHERE \"Employee_ID\" <= 4 OR \"Age\" <= 43 AND Name = \"Tim Payne\" UNION ALL SELECT City FROM employee WHERE Name != \"Andrew Sheridan\""} {"question": "Can you give me a list of driver IDs, where one group includes all driver IDs from the driver table that are not equal to 2, and the other group includes all driver IDs from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I105o_12.png", "TableImg_Ghw0u_5.png"], "original_data_index": 7100, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the average ModelId and the Model name from the model list, both for models with a ModelId greater than 12, and also for models that are not an \"audi\" or have a ModelId of 35 or greater and a Maker of 6 or greater?", "answer": {"columns": ["AVG(ModelId)", "Model"], "index": [0, 1], "data": [["18.9714285714", "amc"], ["24.5", "ford"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Eax5s_36.png", "TableImg_J3qrb_36.png"], "original_data_index": 7101, "original_sql": "SELECT AVG(ModelId), Model FROM model_list WHERE \"ModelId\" > 12 UNION SELECT AVG(ModelId), Model FROM model_list WHERE Model != \"audi\" OR \"ModelId\" >= 35 AND \"Maker\" >= 6"} {"question": "Can you give me a list of driver IDs, combining those from the driver table, excluding driver ID 9, with those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_557p1_12.png", "TableImg_Vsbox_5.png"], "original_data_index": 7103, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the aircraft IDs that are greater than 3, and also list aircraft IDs from the airport aircraft that are less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gsulk_5.png", "TableImg_Bx31a_4.png"], "original_data_index": 7104, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What is the highest allergy type and corresponding allergy for all allergies that are not food or are not milk, and also, separately, what is the highest allergy type and corresponding allergy for all allergies that are not food but are grass pollen?", "answer": {"columns": ["MAX(AllergyType)", "Allergy"], "index": [0, 1], "data": [["food", "Eggs"], ["environmental", "Grass Pollen"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_T9tjh_14.png", "TableImg_Uik38_14.png"], "original_data_index": 7105, "original_sql": "SELECT MAX(AllergyType), Allergy FROM Allergy_Type WHERE AllergyType != \"food\" OR Allergy <> \"Milk\" UNION ALL SELECT MAX(AllergyType), Allergy FROM Allergy_Type WHERE AllergyType != \"food\" AND Allergy = \"Grass Pollen\""} {"question": "Can you list all the template type codes from the template types table where the description is not \"Presentation\" or the code is not \"PP\", and also list all the template type codes from the templates table where the effective end date is not \"2006-02-06 23:52:04\" or the template details are not empty, or where the effective start date is not \"1975-10-20 02:28:58\" and the template type code is \"BK\"?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["PPT"], ["CV"], ["AD"], ["PP"], ["BK"], ["PP"], ["PP"], ["BK"], ["PPT"], ["PPT"], ["BK"], ["BK"], ["PPT"], ["BK"], ["AD"], ["CV"], ["CV"], ["PP"], ["AD"], ["BK"], ["AD"], ["PP"], ["BK"], ["PP"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_Vn9is_5.png", "TableImg_55u23_20.png"], "original_data_index": 7106, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description <> \"Presentation\" OR Template_Type_Code != \"PP\" UNION ALL SELECT Template_Type_Code FROM Templates WHERE Date_Effective_To != \"2006-02-06 23:52:04\" OR Template_Details <> \"\" OR Date_Effective_From <> \"1975-10-20 02:28:58\" AND Template_Type_Code = \"BK\""} {"question": "Which driver IDs are both greater than 2 and also less than or equal to 7, appearing in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Blzaq_12.png", "TableImg_66390_5.png"], "original_data_index": 7109, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the highest feature ID, the latest property feature description, and the property ID for properties that either aren't property ID 7 or have a property feature description of \"quo\" and a feature ID of 3, but only if those properties also have a property ID of 12 or less?", "answer": {"columns": ["MAX(feature_id)", "MAX(property_feature_description)", "property_id"], "index": [0], "data": [["4", "vitae", "11"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Zjdzr_15.png", "TableImg_Jyh9r_15.png"], "original_data_index": 7107, "original_sql": "SELECT MAX(feature_id), MAX(property_feature_description), property_id FROM Other_Property_Features WHERE \"property_id\" != 7 OR property_feature_description = \"quo\" AND \"feature_id\" = 3 INTERSECT SELECT MAX(feature_id), MAX(property_feature_description), property_id FROM Other_Property_Features WHERE \"property_id\" <= 12"} {"question": "Can you give me the total number of employees and their bonuses, grouped by name, excluding those who are 28 years old, and only including groups where the award year was 2016, the age is under 30, or the city isn't Bristol?", "answer": {"columns": ["SUM(T1.Employee_ID)", "Bonus"], "index": [0, 1, 2, 3], "data": [["2", "3000"], ["2", "3200"], ["10", "4000"], ["7", "3200"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Bfxpd_10.png", "TableImg_31l8b_6.png"], "original_data_index": 7108, "original_sql": "SELECT SUM(T1.Employee_ID), T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE \"Age\" <> 28 GROUP BY Name HAVING Year_awarded = \"2016\" OR Age < 30 OR City <> \"Bristol\""} {"question": "Can you give me the names of companies and their average sales in billions, considering companies where either the profits are not 26.9 billion or they are in the oil and gas industry and their ID is less than 9, but only if their average sales are exactly 82.6 billion? Also, include companies and their average sales where the company ID is 6, or they are not in the automotive industry, or their assets are 1873.9 billion, or their profits are not 21.5 billion, or their sales are at least 82.6 billion, but only if their average sales are less than 375.5 billion?", "answer": {"columns": ["Name", "AVG(Sales_in_Billion)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Agricultural Bank of China", "62.4"], ["Berkshire Hathaway", "143.7"], ["Chevron", "236.3"], ["China Construction Bank", "68.7"], ["Citigroup", "102.6"], ["Gazprom", "117.6"], ["General Electric", "147.3"], ["HSBC", "102.0"], ["Industrial and Commercial Bank of China", "82.6"], ["JPMorgan Chase", "110.8"], ["PetroChina", "310.1"], ["Petrobras", "145.9"], ["Total", "216.2"], ["Volkswagen Group", "221.9"], ["Wells Fargo", "87.6"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_9hp4j_19.png", "TableImg_Xhp6e_19.png"], "original_data_index": 7110, "original_sql": "SELECT Name, AVG(Sales_in_Billion) FROM company WHERE \"Profits_in_Billion\" != 26.9 OR Industry = \"Oil and gas\" AND \"Company_ID\" < 9.0 GROUP BY Name HAVING AVG(Sales_in_Billion) = 82.6 UNION SELECT Name, AVG(Sales_in_Billion) FROM company WHERE \"Company_ID\" = 6.0 OR Industry != \"Automotive\" OR \"Assets_in_Billion\" = 1873.9 OR \"Profits_in_Billion\" <> 21.5 OR \"Sales_in_Billion\" >= 82.6 GROUP BY Name HAVING AVG(Sales_in_Billion) < 375.5"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 11, but excluding driver ID 9 if it's on the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I5t53_12.png", "TableImg_Bsvjt_5.png"], "original_data_index": 7114, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs less than 9 that are in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wjkbl_12.png", "TableImg_Bi4sr_5.png"], "original_data_index": 7113, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of aircraft IDs less than 4 that appear in the aircraft table, excluding those aircraft IDs less than 1 that appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qvhgz_5.png", "TableImg_5hkjn_4.png"], "original_data_index": 7112, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which driver IDs, excluding driver ID 6, are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uomv1_12.png", "TableImg_Cydhw_5.png"], "original_data_index": 7111, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list all driver IDs less than 7 from both the driver and school bus tables, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gl8o0_12.png", "TableImg_Skkpk_5.png"], "original_data_index": 7117, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 2 and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z8edo_12.png", "TableImg_68y7u_5.png"], "original_data_index": 7118, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list all the aircraft IDs, combining those from the aircraft table that aren't 1 with those from the airport_aircraft table that are 1 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tizj2_5.png", "TableImg_D7eyz_4.png"], "original_data_index": 7116, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me the other details that are both from documents shipped by agent FE, not of type CD, and with document ID greater than 15, or with a status other than 'done', other details not equal to 'n', and a receipt date other than 2008-04-21 20:42:25, and also from employees who don't have the role 'MG' and whose name is Koby, or whose employee ID is greater than 1, or whose other details are not 'h'?", "answer": {"columns": ["other_details"], "index": [0, 1], "data": [["b"], ["u"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Wco53_15.png", "TableImg_7uk9p_6.png"], "original_data_index": 7115, "original_sql": "SELECT other_details FROM Documents WHERE shipping_agent_code = \"FE\" AND document_type_code <> \"CD\" AND \"document_id\" > 15 OR document_status_code != \"done\" AND other_details != \"n\" AND receipt_date != \"2008-04-21 20:42:25\" INTERSECT SELECT other_details FROM Employees WHERE role_code != \"MG\" AND employee_name = \"Koby\" OR \"employee_id\" > 1 OR other_details <> \"h\""} {"question": "Which driver has an ID of 4, but does not have an ID of 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nqn5i_12.png", "TableImg_N29vc_5.png"], "original_data_index": 7120, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are at least 12, excluding those driver IDs that are also in the school bus list and are at least 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xvy06_12.png", "TableImg_Qzjiw_5.png"], "original_data_index": 7119, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What is the sum of role descriptions for roles that don't have the role code \"ED\", combined with the sum of role descriptions for roles that aren't \"Photo\"?", "answer": {"columns": ["SUM(role_description)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Vkzu9_4.png", "TableImg_Mn0rf_4.png"], "original_data_index": 7121, "original_sql": "SELECT SUM(role_description) FROM Roles WHERE role_code <> \"ED\" UNION ALL SELECT SUM(role_description) FROM Roles WHERE role_description <> \"Photo\""} {"question": "Can you show me the phone number, highest contestant number, creation date, and earliest state from the votes, considering two sets of votes: first, where the contestant number is greater than 5, the vote ID is not 1, the state is NJ and the phone number is less than 5112677315, or the creation date is not March 9th, 2018 at 7:03 PM; and second, where the vote ID is at least 3, the phone number is less than 7148407040, or the state is not NY, combining the results of both sets?", "answer": {"columns": ["phone_number", "MAX(contestant_number)", "created", "MIN(state)"], "index": [0], "data": [["6209222712", "5", "2018-03-09 19:03:39", "CA"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_Z3gxd_4.png", "TableImg_Z4lmo_4.png"], "original_data_index": 7122, "original_sql": "SELECT phone_number, MAX(contestant_number), created, MIN(state) FROM VOTES WHERE \"contestant_number\" > 5 OR \"vote_id\" <> 1 OR state = \"NJ \" AND \"phone_number\" < 5112677315 OR created != \"2018-03-09 19:03:21\" UNION SELECT phone_number, MAX(contestant_number), created, MIN(state) FROM VOTES WHERE \"vote_id\" >= 3 OR \"phone_number\" < 7148407040 OR state != \"NY\""} {"question": "What are the smallest continent ID and the total continent value for continents with continent IDs less than 4, combined with the smallest continent ID and total continent value for continents with continent IDs greater than or equal to 5 or continents that are not 'asia'?", "answer": {"columns": ["MIN(ContId)", "SUM(Continent)"], "index": [0], "data": [["1", "0"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_Juuk0_5.png", "TableImg_95uy0_5.png"], "original_data_index": 7125, "original_sql": "SELECT MIN(ContId), SUM(Continent) FROM continents WHERE \"ContId\" < 4 UNION SELECT MIN(ContId), SUM(Continent) FROM continents WHERE \"ContId\" >= 5 OR Continent <> \"asia\""} {"question": "Can you list the aircraft IDs, excluding aircraft ID 5, that are present in the aircraft table but not in the airport_aircraft table where the aircraft ID is less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yugzs_5.png", "TableImg_Osguj_4.png"], "original_data_index": 7123, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What is the total count of document IDs from document drafts that don't have draft details of \"l\", combined with the total count of document IDs from documents that are either \"Paper\" documents or are not \"working\" and also don't have a receipt number of \"83\" and a shipping agent code of \"US\"?", "answer": {"columns": ["COUNT(document_id)"], "index": [0, 1], "data": [["7"], ["14"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Zw984_15.png", "TableImg_58b88_15.png"], "original_data_index": 7126, "original_sql": "SELECT COUNT(document_id) FROM Document_Drafts WHERE draft_details <> \"l\" UNION SELECT COUNT(document_id) FROM Documents WHERE document_type_code = \"Paper\" OR document_status_code <> \"working\" AND receipt_number <> \"83\" AND shipping_agent_code <> \"US\""} {"question": "Can you give me the Club ID, location, and name for all clubs that are not located in AKW, or are named \"Bootup Baltimore\", and also have a Club ID that's not 2 and a description of \"Refurbish computers; teach kids and adults about computer basics.\", along with the Club ID, location, and name for all clubs located in HHH?", "answer": {"columns": ["ClubID", "ClubLocation", "ClubName"], "index": [0, 1, 2], "data": [["1", "AKW", "Bootup Baltimore"], ["3", "HHH", "Pen and Paper Gaming"], ["3", "HHH", "Pen and Paper Gaming"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Qq7n7_4.png", "TableImg_Ymjpy_4.png"], "original_data_index": 7124, "original_sql": "SELECT ClubID, ClubLocation, ClubName FROM Club WHERE ClubLocation <> \"AKW\" OR ClubName = \"Bootup Baltimore\" AND \"ClubID\" != 2 AND ClubDesc = \"Refurbish computers; teach kids and adults about computer basics.\" UNION ALL SELECT ClubID, ClubLocation, ClubName FROM Club WHERE ClubLocation = \"HHH\""} {"question": "Which aircraft IDs are both greater than or equal to 2 when grouped in the aircraft table, and also greater than 2 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pynqv_5.png", "TableImg_67s94_4.png"], "original_data_index": 7128, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of member IDs, including those from members with a level of 6 or higher, excluding member ID 7, and also including member IDs from the purchase table, excluding member ID 2?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["8"], ["9"], ["1"], ["3"], ["3"], ["4"], ["6"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_Zg4st_10.png", "TableImg_2moev_8.png"], "original_data_index": 7130, "original_sql": "SELECT Member_ID FROM member WHERE \"Level\" >= 6 AND \"Member_ID\" <> 7 UNION ALL SELECT Member_ID FROM purchase WHERE \"Member_ID\" <> 2"} {"question": "Could you give me a list of contestant numbers and names, excluding contestant number 3 and Edwina Burnam, but then remove anyone from that list who isn't Ericka Dieter?", "answer": {"columns": ["contestant_number", "contestant_name"], "index": [0], "data": [["10", "Ericka Dieter"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Afijf_11.png", "TableImg_Glwpw_11.png"], "original_data_index": 7129, "original_sql": "SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE \"contestant_number\" <> 3 AND contestant_name <> \"Edwina Burnam\" EXCEPT SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE contestant_name <> \"Ericka Dieter\""} {"question": "Can you give me a list of driver IDs, first from the driver table excluding driver ID 9, and then from the school bus table excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M8eoq_12.png", "TableImg_Kd46x_5.png"], "original_data_index": 7127, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What aircraft IDs, excluding ID 3, are also aircraft IDs less than 5 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ssbjb_5.png", "TableImg_7vnq7_4.png"], "original_data_index": 7131, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs that are less than 10 and also appear as driver IDs in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uqr4f_12.png", "TableImg_8xim0_5.png"], "original_data_index": 7134, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are both equal to 9 in the driver table and greater than or equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ml9r_12.png", "TableImg_Obsow_5.png"], "original_data_index": 7132, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of all the driver IDs, excluding driver ID 10 from the driver table and excluding driver ID 4 from the school bus table, making sure to combine the two lists and remove any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Svyk1_12.png", "TableImg_3h9pn_5.png"], "original_data_index": 7133, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the IDs of drivers that are less than or equal to 9, excluding those driver IDs less than 9 that are also associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jyyun_12.png", "TableImg_Ioogz_5.png"], "original_data_index": 7138, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are less than 11 from the driver table, excluding any driver IDs less than 7 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ygo35_12.png", "TableImg_Jcrpn_5.png"], "original_data_index": 7136, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 1, combined with a list of driver IDs from the school_bus table where each ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6a9qb_12.png", "TableImg_0x81b_5.png"], "original_data_index": 7135, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Could you give me the IDs of car makers named \"Volkswagen\" with an ID of 16, combined with the IDs of cars that have an ID of 46 but a horsepower that is not 180?", "answer": {"columns": ["Id"], "index": [0], "data": [["46"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Bppuf_22.png", "TableImg_Uxsxc_406.png"], "original_data_index": 7137, "original_sql": "SELECT Id FROM car_makers WHERE FullName = \"Volkswagen\" AND \"Id\" = 16 UNION SELECT Id FROM cars_data WHERE \"Id\" = 46 AND Horsepower <> \"180\""} {"question": "Can you give me a list of aircraft IDs that are less than 4 and also appear in the list of aircraft IDs from the airport, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ipa5e_5.png", "TableImg_586rl_4.png"], "original_data_index": 7141, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me the Club ID, Rank, Gold, Small Silver, and Big Silver for match results where the Small Silver is greater than 10, but only if those same values also appear in match results where Bronze is 6, Points are at least 89, Rank is 1, Club ID is at least 1, and either Gold is not 13 or Small Silver is not 4?", "answer": {"columns": ["Club_ID", "Rank", "Gold", "Small_Silver", "Big_Silver"], "index": [0], "data": [["2", "2", "13", "16", "11"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Eogyl_6.png", "TableImg_85mmf_6.png"], "original_data_index": 7142, "original_sql": "SELECT Club_ID, Rank, Gold, Small_Silver, Big_Silver FROM match_result WHERE \"Small_Silver\" > 10 INTERSECT SELECT Club_ID, Rank, Gold, Small_Silver, Big_Silver FROM match_result WHERE \"Bronze\" = 6 AND \"Points\" >= 89 AND \"Rank\" = 1 AND \"Club_ID\" >= 1 AND \"Gold\" <> 13 OR \"Small_Silver\" <> 4"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 4 and not equal to 7, considering only the driver IDs that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9smsd_12.png", "TableImg_Xrquj_5.png"], "original_data_index": 7139, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me the sum of city codes, the minimum sex, the age, and the average student ID for students, combining two sets of results: one set where the advisor number is 1121 or higher, the sex is not male, the first name is not Linda, the major is 520 and the last name is not Brown and the city code is not CHI, or the student ID is greater than 1006; and another set where the major is 600, the city code is not PHL, the last name is Epp, the advisor number is 1148 or lower, and the age is not 20?", "answer": {"columns": ["SUM(city_code)", "MIN(Sex)", "Age", "AVG(StuID)"], "index": [0, 1], "data": [["", "", "", ""], ["0.0", "F", "18.0", "1018.1470588235"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Ac9uv_34.png", "TableImg_Muarn_34.png"], "original_data_index": 7140, "original_sql": "SELECT SUM(city_code), MIN(Sex), Age, AVG(StuID) FROM Student WHERE \"Advisor\" >= 1121 OR Sex <> \"M\" OR Fname != \"Linda\" OR \"Major\" = 520 AND LName != \"Brown\" AND city_code <> \"CHI\" OR \"StuID\" > 1006 UNION SELECT SUM(city_code), MIN(Sex), Age, AVG(StuID) FROM Student WHERE \"Major\" = 600 AND city_code != \"PHL\" AND LName = \"Epp\" AND \"Advisor\" <= 1148 AND \"Age\" <> 20"} {"question": "Which aircraft IDs are not equal to 5 and are also equal to 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ocori_5.png", "TableImg_X6oz6_4.png"], "original_data_index": 7146, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me the driver IDs that are less than 12 and also less than 4 in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sd6qm_12.png", "TableImg_Fqqjr_5.png"], "original_data_index": 7145, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list all the aircraft IDs from the aircraft table that are greater than or equal to 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3tlz1_5.png", "TableImg_Xt6x4_4.png"], "original_data_index": 7143, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 7, with those from the school bus table that are 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wc07m_12.png", "TableImg_Sewxy_5.png"], "original_data_index": 7144, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which aircraft IDs are greater than or equal to 1, excluding those aircraft IDs that are also greater than 2 and present in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ykzhw_5.png", "TableImg_Cxjw3_4.png"], "original_data_index": 7148, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "How many continents are not continent ID 1 or named \"america\", plus how many countries are not named \"italy\" and are on continent ID 1?", "answer": {"columns": ["COUNT(Continent)"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_4lhmg_5.png", "TableImg_Sjxnc_15.png"], "original_data_index": 7150, "original_sql": "SELECT COUNT(Continent) FROM continents WHERE \"ContId\" != 1 OR Continent <> \"america\" UNION SELECT COUNT(Continent) FROM countries WHERE CountryName <> \"italy\" AND \"Continent\" = 1"} {"question": "Can you give me a list of branch IDs that either have a membership amount not equal to 56 or opened in 2009 or have a branch ID of 1, combined with a list of branch IDs from the membership register that have a member ID of 4 or a branch ID of 5 and a register year not equal to 2016?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["1"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Rhunb_8.png", "TableImg_V0yy7_8.png"], "original_data_index": 7147, "original_sql": "SELECT Branch_ID FROM branch WHERE membership_amount <> \"56\" OR Open_year = \"2009\" OR \"Branch_ID\" = 1 UNION SELECT Branch_ID FROM membership_register_branch WHERE \"Member_ID\" = 4 OR Branch_ID = \"5\" AND Register_Year <> \"2016\""} {"question": "Can you show me the Club ID, Small Silver, Gold, Big Silver, Bronze, Rank, and Points from the match results for clubs where Big Silver is 12 or less, the Club ID is 1 or greater, Points are not 66, Bronze is 8 or greater, and Small Silver is not 9, combined with the same information for clubs where Small Silver is not 6, or Bronze is 6 or less and the Club ID is greater than 1, or Rank is not 5 and Big Silver is 9 or less, or Gold is 5, or Points are 168?", "answer": {"columns": ["Club_ID", "Small_Silver", "Gold", "Big_Silver", "Bronze", "Rank", "Points"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "9", "20", "14", "8", "1", "168"], ["2", "16", "13", "11", "9", "2", "139"], ["3", "4", "12", "9", "7", "3", "102"], ["4", "10", "5", "12", "8", "4", "89"], ["5", "9", "7", "7", "10", "5", "84"], ["6", "6", "6", "6", "6", "6", "66"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_3v82g_6.png", "TableImg_Cixlq_6.png"], "original_data_index": 7149, "original_sql": "SELECT Club_ID, Small_Silver, Gold, Big_Silver, Bronze, Rank, Points FROM match_result WHERE \"Big_Silver\" <= 12 AND \"Club_ID\" >= 1 AND \"Points\" != 66 AND \"Bronze\" >= 8 AND \"Small_Silver\" <> 9 UNION SELECT Club_ID, Small_Silver, Gold, Big_Silver, Bronze, Rank, Points FROM match_result WHERE \"Small_Silver\" <> 6 OR \"Bronze\" <= 6 AND \"Club_ID\" > 1 OR \"Rank\" != 5 AND \"Big_Silver\" <= 9 OR \"Gold\" = 5 OR \"Points\" = 168"} {"question": "Can you list all the role descriptions, including those that aren't \"Editor\" and don't have the role code \"ED\", combined with those that have the role code \"MG\" or aren't \"Photo\"?", "answer": {"columns": ["role_description"], "index": [0, 1, 2, 3], "data": [["Editor"], ["Manager"], ["Photo"], ["Proof Manager"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_6ywt4_4.png", "TableImg_Stej6_4.png"], "original_data_index": 7153, "original_sql": "SELECT role_description FROM Roles WHERE role_description != \"Editor\" AND role_code <> \"ED\" UNION SELECT role_description FROM Roles WHERE role_code = \"MG\" OR role_description <> \"Photo\""} {"question": "Can you give me a list of driver IDs that are greater than 7 and also not equal to 4, considering driver IDs from both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C663z_12.png", "TableImg_Wkoh2_5.png"], "original_data_index": 7151, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 3, and then from the airport_aircraft table including only aircraft IDs greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ncbxr_5.png", "TableImg_21ahk_4.png"], "original_data_index": 7154, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me the IDs of players named Ron Strynadka, or those who are not retired, or those who don't live in Winnipeg and didn't receive 5490 votes, excluding the IDs of players who were coached by someone with an ID less than 1 starting after 2012?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_Tf6va_14.png", "TableImg_4clci_7.png"], "original_data_index": 7152, "original_sql": "SELECT Player_ID FROM player WHERE \"Player_ID\" <> 11 AND Player_name = \"Ron Strynadka\" OR Occupation != \"Retired\" OR Residence != \"Winnipeg\" AND \"Votes\" != 5490 EXCEPT SELECT Player_ID FROM player_coach WHERE \"Coach_ID\" < 1 AND \"Starting_year\" > 2012"} {"question": "What is the average album ID for albums with an artist ID greater than 22, and what is the average genre ID for genres with an ID less than 11?", "answer": {"columns": ["AVG(id)"], "index": [0, 1], "data": [["193.4581939799"], ["5.5"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Vnenf_347.png", "TableImg_R50wh_25.png"], "original_data_index": 7155, "original_sql": "SELECT AVG(id) FROM albums WHERE \"artist_id\" > 22 UNION ALL SELECT AVG(id) FROM genres WHERE \"id\" < 11"} {"question": "Can you give me a list of driver IDs that are both in the driver table and greater than or equal to 1, and also in the school_bus table and less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V238o_12.png", "TableImg_Zjr9p_5.png"], "original_data_index": 7158, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 9, with those from the school bus table that are 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xfjar_12.png", "TableImg_63exx_5.png"], "original_data_index": 7157, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me the vote ID, phone number, and earliest state for votes where the contestant number is 5 or less, or the vote ID is 5 or greater and the state isn't California and the phone number isn't 7148407040, or the vote was created on March 9, 2018 at 7:03:40 PM, but exclude any votes where the phone number is 6209222712 or less and the state isn't California, or the vote ID is greater than 5?", "answer": {"columns": ["vote_id", "phone_number", "MIN(state)"], "index": [0], "data": [["3", "6209222712", "CA"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_P40qv_4.png", "TableImg_6ph7k_4.png"], "original_data_index": 7156, "original_sql": "SELECT vote_id, phone_number, MIN(state) FROM VOTES WHERE \"contestant_number\" <= 5 OR \"vote_id\" >= 5 AND state != \"CA\" AND \"phone_number\" != 7148407040 OR created = \"2018-03-09 19:03:40\" EXCEPT SELECT vote_id, phone_number, MIN(state) FROM VOTES WHERE \"phone_number\" <= 6209222712 AND state != \"CA\" OR \"vote_id\" > 5"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 5 and not equal to 4, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V8378_12.png", "TableImg_Rjgfp_5.png"], "original_data_index": 7159, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the total maker value, ID, and country for car makers that are either American Motor Company and from country 1 with an ID less than or equal to 1, or not Triumph and not from country 4?", "answer": {"columns": ["SUM(Maker)", "Id", "Country"], "index": [0], "data": [["0", "1", "1"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_Dmifj_22.png", "TableImg_Mvhux_22.png"], "original_data_index": 7160, "original_sql": "SELECT SUM(Maker), Id, Country FROM car_makers WHERE Country = \"1\" AND \"Id\" <= 1 AND FullName = \"American Motor Company\" UNION SELECT SUM(Maker), Id, Country FROM car_makers WHERE FullName <> \"Triumph\" OR Country != \"4\""} {"question": "Could you give me the maximum maker name, the sum of full names, the count of countries, and the ID for car makers that are Chrysler, not Volkswagen, with an ID of 3 or greater and a country that isn't \"3\", excluding those that are Renault or have an ID of 13?", "answer": {"columns": ["MAX(Maker)", "SUM(FullName)", "COUNT(Country)", "Id"], "index": [0], "data": [["chrysler", "0", "1", "6"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_B153v_22.png", "TableImg_Y7an1_22.png"], "original_data_index": 7161, "original_sql": "SELECT MAX(Maker), SUM(FullName), COUNT(Country), Id FROM car_makers WHERE \"Id\" >= 3 AND Country != \"3\" AND Maker = \"chrysler\" AND FullName != \"Volkswagen\" EXCEPT SELECT MAX(Maker), SUM(FullName), COUNT(Country), Id FROM car_makers WHERE Maker = \"renault\" OR \"Id\" = 13"} {"question": "Could you give me a list of airport and flight IDs, including airports with the IATA code \"ANC\", those located in Spain, airports that aren't named \"Akureyri Airport\", airports with the ICAO code \"ENBR\", or airports whose ID is not 3, as well as flights with the vehicle flight number \"M2-F1 #64\", flights with a velocity of 240 or greater, flights where the pilot isn't \"Peterson\" and the company ID is less than 5, or flights with an altitude of 3650 or greater?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_G7z81_9.png", "TableImg_Elnun_13.png"], "original_data_index": 7162, "original_sql": "SELECT id FROM airport WHERE IATA = \"ANC\" OR Country = \"Spain\" OR name != \"Akureyri Airport\" OR ICAO = \"ENBR\" OR \"id\" <> 3 UNION SELECT id FROM flight WHERE Vehicle_Flight_number = \"M2-F1 #64\" OR \"Velocity\" >= 240.0 OR Pilot <> \"Peterson\" AND \"company_id\" < 5 OR \"Altitude\" >= 3650.0"} {"question": "Can you give me a list of driver IDs from the driver table that are 8 or greater, excluding any driver IDs that also appear in the school_bus table, unless that driver ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mz8h8_12.png", "TableImg_Eh71m_5.png"], "original_data_index": 7166, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of member IDs, including those from the member table who are not level 6 or are not member ID 4, and also those from the purchase table who made purchases at branch 1 or whose total pounds spent was not 343.76 and are not member ID 6?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_Djxgw_10.png", "TableImg_Jrqy6_8.png"], "original_data_index": 7164, "original_sql": "SELECT Member_ID FROM member WHERE \"Level\" != 6 OR \"Member_ID\" != 4 UNION SELECT Member_ID FROM purchase WHERE Branch_ID = \"1\" OR \"Total_pounds\" != 343.76 AND \"Member_ID\" != 6"} {"question": "Could you give me the Incorporated_in location, ID, type, principal activities, group equity shareholding, and name for operating companies that meet two sets of criteria: first, they are not incorporated in Hong Kong and their principal activities are not cargo airline, or their ID is not 11, their group equity shareholding is less than 49%, and their type is not subsidiary; and second, they are not incorporated in Hong Kong and their name is not Vogue Laundry Service Limited?", "answer": {"columns": ["Incorporated_in", "id", "Type", "Principal_activities", "Group_Equity_Shareholding", "name"], "index": [0, 1, 2, 3], "data": [["Canada", "14", "Joint Venture", "Catering services", "30.0", "CLS Catering Services Limited"], ["China", "1", "Corporate", "Airline", "18.77", "Air China"], ["Taiwan", "12", "Joint Venture", "Laundry", "45.0", "China Pacific Laundry Services"], ["Vietnam", "13", "Joint Venture", "Catering services", "40.0", "VN/CX Catering Services Limited"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Sqe42_14.png", "TableImg_B6k87_14.png"], "original_data_index": 7163, "original_sql": "SELECT Incorporated_in, id, Type, Principal_activities, Group_Equity_Shareholding, name FROM operate_company WHERE Incorporated_in <> \"Hong Kong\" AND Principal_activities != \"Cargo airline\" OR \"id\" <> 11 AND \"Group_Equity_Shareholding\" < 49.0 AND Type <> \"Subsidiary\" INTERSECT SELECT Incorporated_in, id, Type, Principal_activities, Group_Equity_Shareholding, name FROM operate_company WHERE Incorporated_in <> \"Hong Kong\" AND name != \"Vogue Laundry Service Limited\""} {"question": "Could you list the district IDs that meet two conditions: first, they are from districts that are not named \"Chakwal District\" and are not headquartered in \"Kasur City\", or have a District ID less than 14 and a city population of 113524 or less; and second, they are also district IDs in the store district table that are not equal to 11 and have a store ID greater than 2?", "answer": {"columns": ["District_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Zj4sb_15.png", "TableImg_M2zi4_5.png"], "original_data_index": 7165, "original_sql": "SELECT District_ID FROM district WHERE District_name != \"Chakwal District\" AND Headquartered_City != \"Kasur City\" OR \"District_ID\" < 14 AND \"City_Population\" <= 113524.0 INTERSECT SELECT District_ID FROM store_district WHERE \"District_ID\" <> 11 AND \"Store_ID\" > 2"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 3, but then remove any of those IDs that also appear in the airport_aircraft table with an aircraft ID of 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M25sw_5.png", "TableImg_0hx07_4.png"], "original_data_index": 7169, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you list all the aircraft IDs from the aircraft table that are greater than or equal to 4, and combine that with a list of all aircraft IDs from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iz1ln_5.png", "TableImg_Kdv2t_4.png"], "original_data_index": 7168, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 9, and those from the school_bus table with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P73nk_12.png", "TableImg_O4vad_5.png"], "original_data_index": 7167, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Could you list the name, group equity shareholding, type, place of incorporation, and principal activities for all companies except Air Hong Kong, where the company name is Cathay Pacific Catering Services (HK) Limited and its type is Subsidiary, or it's not incorporated in China, or its principal activities aren't Cargo, and the ID is less than 7, and the Group Equity Shareholding isn't 40.0, excluding those where the name is Air Hong Kong, the ID isn't 4, and the Group Equity Shareholding is 45.0?", "answer": {"columns": ["name", "Group_Equity_Shareholding", "Type", "Incorporated_in", "Principal_activities"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Air China", "18.77", "Corporate", "China", "Airline"], ["Air China Cargo", "49.0", "Joint Venture", "China", "Cargo airline"], ["Air Hong Kong", "60.0", "Joint Venture", "Hong Kong", "Cargo airline"], ["CLS Catering Services Limited", "30.0", "Joint Venture", "Canada", "Catering services"], ["Cathay Pacific Cargo", "100.0", "Subsidiary", "Hong Kong", "Cargo airline"], ["Cathay Pacific Catering Services (HK) Limited", "100.0", "Subsidiary", "Hong Kong", "Catering services"], ["Cathay Pacific Holidays", "100.0", "Subsidiary", "Hong Kong", "Travel agency"], ["Cathay Pacific Services Limited", "100.0", "Subsidiary", "Hong Kong", "Cargo"], ["China Pacific Laundry Services", "45.0", "Joint Venture", "Taiwan", "Laundry"], ["Dragonair", "100.0", "Subsidiary", "Hong Kong", "Airline"], ["Dragonair Holidays", "100.0", "Subsidiary", "Hong Kong", "Travel agency"], ["Hong Kong Airport Services", "100.0", "Subsidiary", "Hong Kong", "Ground handling"], ["VN/CX Catering Services Limited", "40.0", "Joint Venture", "Vietnam", "Catering services"], ["Vogue Laundry Service Limited", "100.0", "Subsidiary", "Hong Kong", "Laundry"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_6pyl8_14.png", "TableImg_C9ada_14.png"], "original_data_index": 7170, "original_sql": "SELECT name, Group_Equity_Shareholding, Type, Incorporated_in, Principal_activities FROM operate_company WHERE name = \"Cathay Pacific Catering Services (HK) Limited\" AND Type = \"Subsidiary\" OR Incorporated_in <> \"China\" OR Principal_activities != \"Cargo\" AND \"id\" < 7 AND \"Group_Equity_Shareholding\" <> 40.0 EXCEPT SELECT name, Group_Equity_Shareholding, Type, Incorporated_in, Principal_activities FROM operate_company WHERE name = \"Air Hong Kong\" AND \"id\" != 4 AND \"Group_Equity_Shareholding\" = 45.0"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 1, that appear more than once, and then remove any aircraft IDs from that list that also appear in the airport aircraft table with an ID greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cxbrn_5.png", "TableImg_S2gbb_4.png"], "original_data_index": 7171, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of document IDs from the Documents table where the document type is not \"CD\", the shipping agent is not \"UP\", and the receipt number is \"189\", or where the other details are not \"h\", combined with a list of document IDs from the Documents_Mailed table where the mailing date is not \"1973-02-21 10:17:01\" and the document ID is 12, or the mailed to address ID is greater than 0?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Cpo36_15.png", "TableImg_Ohlvc_14.png"], "original_data_index": 7172, "original_sql": "SELECT document_id FROM Documents WHERE document_type_code <> \"CD\" AND shipping_agent_code != \"UP\" AND receipt_number = \"189\" OR other_details != \"h\" UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date <> \"1973-02-21 10:17:01\" AND \"document_id\" = 12 OR \"mailed_to_address_id\" > 0"} {"question": "Can you show me the budget invested percentage, year, school ID, invested amount, total budgeted percentage, budgeted amount, and total invested percentage from the budget table, including all records where either the budgeted amount is greater than 3666 and the total budgeted percentage is not 2.0, or the budget invested percentage is not 228.6 and the total invested percentage is greater than or equal to 2.0, combined with all records where the year is not 1999, or the invested amount is less than or equal to 5840, or the budget invested percentage is not 42.9, or the total budgeted percentage is less than 1.3?", "answer": {"columns": ["Budget_invested_percent", "Year", "School_id", "Invested", "total_budget_percent_budgeted", "Budgeted", "total_budget_percent_invested"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["42.9", "1999", "2", "2134", "2.0", "4979", "2.0"], ["159.3", "2000", "2", "5840", "2.0", "3666", "2.0"], ["122.5", "2001", "2", "8335", "2.0", "6803", "2.0"], ["146.9", "2002", "3", "8335", "2.0", "6803", "2.0"], ["71.3", "2003", "1", "85249", "2.4", "119527", "2.2"], ["127.6", "2004", "4", "95542", "2.0", "74849", "2.2"], ["228.8", "2005", "5", "140102", "1.3", "61283", "2.7"], ["42.9", "1999", "2", "2134", "2.0", "4979", "2.0"], ["159.3", "2000", "2", "5840", "2.0", "3666", "2.0"], ["122.5", "2001", "2", "8335", "2.0", "6803", "2.0"], ["146.9", "2002", "3", "8335", "2.0", "6803", "2.0"], ["71.3", "2003", "1", "85249", "2.4", "119527", "2.2"], ["127.6", "2004", "4", "95542", "2.0", "74849", "2.2"], ["228.8", "2005", "5", "140102", "1.3", "61283", "2.7"], ["228.6", "2006", "5", "146102", "2.0", "113531", "2.7"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_3t0re_8.png", "TableImg_L5hoy_8.png"], "original_data_index": 7173, "original_sql": "SELECT Budget_invested_percent, Year, School_id, Invested, total_budget_percent_budgeted, Budgeted, total_budget_percent_invested FROM budget WHERE \"Budgeted\" > 3666 AND \"total_budget_percent_budgeted\" != 2.0 OR Budget_invested_percent != \"228.6\" AND \"total_budget_percent_invested\" >= 2.0 UNION ALL SELECT Budget_invested_percent, Year, School_id, Invested, total_budget_percent_budgeted, Budgeted, total_budget_percent_invested FROM budget WHERE \"Year\" <> 1999 OR \"Invested\" <= 5840 OR Budget_invested_percent <> \"42.9\" OR \"total_budget_percent_budgeted\" < 1.3"} {"question": "Can you tell me the average interface, pages per minute in color, and product name for products where the maximum page size is A4, or the product isn't ScanShell 3000DN and the DPI isn't 600, or the product ID isn't 4 and the dimensions are 300 x 50 x 45, or the interface isn't USB 2.0 and the pages per minute in color isn't 28, combined with the average interface, pages per minute in color, and product name for products where the product isn't Xerox Travel Scanner 100 and the pages per minute in color is greater than 3, or the interface is USB 2.0 and the maximum page size is 216mm x 355mm, or the dimensions are 303 x 94 x 60 and the product ID is less than or equal to 4 and the DPI is greater than or equal to 600?", "answer": {"columns": ["pages_per_minute_color", "AVG(interface)", "product"], "index": [0, 1], "data": [["30", "0", "Fujitsu fi-6130 A4 Series Scanner"], ["30", "0", "Fujitsu fi-6130 A4 Series Scanner"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Mdxqx_6.png", "TableImg_Rfqfx_6.png"], "original_data_index": 7174, "original_sql": "SELECT pages_per_minute_color, AVG(interface), product FROM product WHERE max_page_size = \"A4\" OR product != \"ScanShell 3000DN\" AND \"dpi\" != 600.0 OR \"product_id\" <> 4 AND dimensions = \"300 x 50 x 45\" OR interface <> \"USB 2.0\" AND \"pages_per_minute_color\" != 28.0 UNION ALL SELECT pages_per_minute_color, AVG(interface), product FROM product WHERE product != \"Xerox Travel Scanner 100\" AND \"pages_per_minute_color\" > 3.0 OR interface = \"USB 2.0\" AND max_page_size = \"216mm x 355mm\" OR dimensions = \"303 x 94 x 60\" AND \"product_id\" <= 4 AND \"dpi\" >= 600.0"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 3, excluding any driver IDs that are equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qm49e_12.png", "TableImg_4v1em_5.png"], "original_data_index": 7178, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the driver IDs from the driver table that are less than or equal to 5, and combine that with a list of driver IDs from the school_bus table that are greater than 4, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vguaz_12.png", "TableImg_8gbk9_5.png"], "original_data_index": 7176, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me the Member ID, Card Number, and Level for all members who either live in Simpsonville, South Carolina and have a Member ID less than 1, or whose Level is not 6, or whose Card Number is not RT91, combined with the Member ID, Card Number, and Level for members named Micah Johnson who have a Card Number of LT98?", "answer": {"columns": ["Member_ID", "Card_Number", "Level"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1", "LE99", "6"], ["2", "LT98", "6"], ["4", "RE95", "6"], ["5", "OLB56", "6"], ["6", "MLB4", "4"], ["7", "SLB51", "6"], ["8", "RCB32", "6"], ["9", "LCB7", "6"], ["10", "FS10", "2"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_X2g9m_10.png", "TableImg_Fypiz_10.png"], "original_data_index": 7177, "original_sql": "SELECT Member_ID, Card_Number, Level FROM member WHERE Hometown = \"Simpsonville, South Carolina\" AND \"Member_ID\" < 1 OR \"Level\" != 6 OR Card_Number <> \"RT91\" UNION SELECT Member_ID, Card_Number, Level FROM member WHERE Name = \"Micah Johnson\" AND Card_Number = \"LT98\""} {"question": "Can you list all the political parties from the election table, excluding those where the delegate is Warren E. Miller, and including only those with a first election year of 1994 or later, a party value of 1 or less, counties represented as \"12.2 12B\", or membership on the Appropriations committee, combined with all parties from the party table that are not \"Independence\" and have a year of 1998 or earlier?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["1"], ["Democratic"], ["Liberal"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Yvfna_8.png", "TableImg_Y9rpy_7.png"], "original_data_index": 7175, "original_sql": "SELECT Party FROM election WHERE Delegate != \"Miller, Warren E. Warren E. Miller\" AND \"First_Elected\" >= 1994.0 AND \"Party\" <= 1 OR Counties_Represented = \"12.2 12B\" OR Committee = \"Appropriations\" UNION ALL SELECT Party FROM party WHERE Party <> \"Independence\" AND \"Year\" <= 1998.0"} {"question": "Which driver IDs are greater than or equal to 6, but not greater than 7 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ycdga_12.png", "TableImg_Ybzsh_5.png"], "original_data_index": 7180, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list all driver IDs, including those from the driver table that are greater than or equal to 1 and those from the school bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tk1o5_12.png", "TableImg_L0fnp_5.png"], "original_data_index": 7181, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_32fs4_12.png", "TableImg_C5uag_5.png"], "original_data_index": 7179, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 4, but also excluding any driver IDs that appear in the school_bus table with an ID of 4 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0zeht_12.png", "TableImg_X8axu_5.png"], "original_data_index": 7182, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you list the aircraft IDs that are both greater than or equal to 2 and not equal to 3, considering the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U08cr_5.png", "TableImg_C7zpf_4.png"], "original_data_index": 7183, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me the IDs of drivers that are less than or equal to 1, excluding the IDs of school bus drivers that are greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5gf7a_12.png", "TableImg_Esnc5_5.png"], "original_data_index": 7186, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only aircraft IDs that are 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qjfmk_5.png", "TableImg_Nl18t_4.png"], "original_data_index": 7185, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs that appear in both the driver table and the school bus table, where the driver ID is not 10 in the driver table and is less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ts73u_12.png", "TableImg_642zq_5.png"], "original_data_index": 7184, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the driver IDs that are both less than or equal to 10 and appear in the driver table, and also less than 4 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N6wiu_12.png", "TableImg_Vo9ma_5.png"], "original_data_index": 7188, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs less than or equal to 9 from the driver table, excluding any driver IDs less than or equal to 10 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zek7s_12.png", "TableImg_Zef5f_5.png"], "original_data_index": 7187, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 10 from the driver table, combined with a list of driver IDs that are less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jdbqk_12.png", "TableImg_Fpmr2_5.png"], "original_data_index": 7189, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is greater than 3, combined with a list of driver IDs from the school bus table where the driver ID is greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A23h4_12.png", "TableImg_K7idw_5.png"], "original_data_index": 7190, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 4, combined with a list of driver IDs from the school_bus table that are greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Drozh_12.png", "TableImg_Eto8k_5.png"], "original_data_index": 7191, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Could you give me the total ClubID and individual ClubID for clubs, considering only clubs that are not located in HHH or are named \"Tennis Club\" and where the position is not \"Teaching Coordinator\"?", "answer": {"columns": ["SUM(T1.ClubID)", "ClubID"], "index": [0], "data": [["8", "1"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_M5vy9_4.png", "TableImg_7xcah_4.png"], "original_data_index": 7192, "original_sql": "SELECT SUM(T1.ClubID), T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubLocation <> \"HHH\" OR ClubName = \"Tennis Club\" AND Position <> \"Teaching Coordinator\""} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 5, with those from the school bus table that are 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rlcbr_12.png", "TableImg_03fg6_5.png"], "original_data_index": 7194, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you show me a combined list of property details, including fld_feature_1 and fld_feature_3, the minimum apt_feature_2 and shp_feature_2, the property address and name, shp_feature_3, counts of hse_feature_3 and buyer_offered_price, sums of agreed_selling_price and date_sold, oth_feature_3, other_property_details, oth_feature_1, hse_feature_1, the average date_on_market and shp_feature_1, and the minimum vendor_requested_price, from the Properties table, first for properties where the agreed selling price isn't 2794972.2495, the vendor requested price isn't 2573.0, fld_feature_2 and fld_feature_3 are not \"None\", or shp_feature_1 is \"None\", and then for properties where oth_feature_2 and oth_feature_3 are not \"None\", apt_feature_3 is \"None\" and the property name is not \"high line\", shp_feature_3 is \"None\", apt_feature_1 is \"fuga\", or oth_feature_1 is \"None\"?", "answer": {"columns": ["fld_feature_1", "MIN(apt_feature_2)", "property_address", "property_name", "shp_feature_3", "COUNT(hse_feature_3)", "SUM(agreed_selling_price)", "SUM(date_sold)", "oth_feature_3", "other_property_details", "oth_feature_1", "hse_feature_1", "MIN(shp_feature_2)", "AVG(date_on_market)", "COUNT(buyer_offered_price)", "AVG(shp_feature_1)", "MIN(vendor_requested_price)", "fld_feature_3"], "index": [0, 1], "data": [["", "adipisci", "24365 Ulices Run\nHomenicktown, MD 88485-6198", "vogue", "", "0", "729806911.8425", "29848", "", "", "", "", "", "1994.8666666667", "15", "", "13.4715", ""], ["", "aut", "24365 Ulices Run\nHomenicktown, MD 88485-6198", "vogue", "", "0", "44132.4621", "3974", "", "", "", "", "", "1988.0", "2", "", "13.4715", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_8ax35_15.png", "TableImg_Hh8xc_15.png"], "original_data_index": 7193, "original_sql": "SELECT fld_feature_1, MIN(apt_feature_2), property_address, property_name, shp_feature_3, COUNT(hse_feature_3), SUM(agreed_selling_price), SUM(date_sold), oth_feature_3, other_property_details, oth_feature_1, hse_feature_1, MIN(shp_feature_2), AVG(date_on_market), COUNT(buyer_offered_price), AVG(shp_feature_1), MIN(vendor_requested_price), fld_feature_3 FROM Properties WHERE \"agreed_selling_price\" <> 2794972.2495 OR \"vendor_requested_price\" != 2573.0 OR fld_feature_2 != \"None\" AND fld_feature_3 != \"None\" OR shp_feature_1 = \"None\" UNION ALL SELECT fld_feature_1, MIN(apt_feature_2), property_address, property_name, shp_feature_3, COUNT(hse_feature_3), SUM(agreed_selling_price), SUM(date_sold), oth_feature_3, other_property_details, oth_feature_1, hse_feature_1, MIN(shp_feature_2), AVG(date_on_market), COUNT(buyer_offered_price), AVG(shp_feature_1), MIN(vendor_requested_price), fld_feature_3 FROM Properties WHERE oth_feature_2 != \"None\" AND oth_feature_3 != \"None\" OR apt_feature_3 = \"None\" AND property_name != \"high line\" OR shp_feature_3 = \"None\" OR apt_feature_1 = \"fuga\" OR oth_feature_1 = \"None\""} {"question": "What aircraft IDs are not equal to 3 and are also not equal to 1 in the airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Btmz1_5.png", "TableImg_Q5bam_4.png"], "original_data_index": 7197, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H2kbl_12.png", "TableImg_4o27s_5.png"], "original_data_index": 7198, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me the minimum school ID, years working, count of full-time status, and driver ID for school bus drivers who have worked more than 6 years and have a driver ID of 7 or less, excluding those where the school ID is less than 1, or the driver ID is not 10 and they are not full-time, or they have worked 8 or more years?", "answer": {"columns": ["MIN(School_ID)", "Years_Working", "COUNT(If_full_time)", "Driver_ID"], "index": [0], "data": [["5", "8", "1", "7"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_Ibou9_5.png", "TableImg_N5p36_5.png"], "original_data_index": 7195, "original_sql": "SELECT MIN(School_ID), Years_Working, COUNT(If_full_time), Driver_ID FROM school_bus WHERE \"Years_Working\" > 6 AND \"Driver_ID\" <= 7 EXCEPT SELECT MIN(School_ID), Years_Working, COUNT(If_full_time), Driver_ID FROM school_bus WHERE \"School_ID\" < 1 OR \"Driver_ID\" <> 10 AND If_full_time <> \"F\" OR \"Years_Working\" >= 8"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 7, but not equal to 9, and the driver ID is present in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7fxz4_12.png", "TableImg_I5nfn_5.png"], "original_data_index": 7196, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list all allergies that are not animal-related or are specifically rodent allergies, and also include cat allergies from a separate list?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Eggs"], ["Nuts"], ["Milk"], ["Shellfish"], ["Anchovies"], ["Wheat"], ["Soy"], ["Ragweed"], ["Tree Pollen"], ["Grass Pollen"], ["Rodent"], ["Cat"], ["Cat"], ["Cat"], ["Cat"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_X99qj_14.png", "TableImg_Rfkz3_59.png"], "original_data_index": 7199, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType <> \"animal\" OR Allergy = \"Rodent\" UNION ALL SELECT Allergy FROM Has_Allergy WHERE Allergy = \"Cat\""} {"question": "Which driver IDs are both greater than or equal to 4 in the driver table and greater than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wciw7_12.png", "TableImg_N7bng_5.png"], "original_data_index": 7200, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 7 or greater, and those from the school bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Or0gz_12.png", "TableImg_Ue2xj_5.png"], "original_data_index": 7201, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs that are not equal to 4, excluding any driver IDs that are less than or equal to 3 and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Esse3_12.png", "TableImg_Ss6da_5.png"], "original_data_index": 7202, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are greater than 9, but not including any driver IDs that are greater than or equal to 3 and also appear in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_83gvl_12.png", "TableImg_Vfope_5.png"], "original_data_index": 7206, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which student IDs, that are less than 1002 and have pets, are also student IDs of students who don't live in Hong Kong?", "answer": {"columns": ["StuID"], "index": [0], "data": [["1001"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_Lvebg_3.png", "TableImg_Fnp68_34.png"], "original_data_index": 7203, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" < 1002 INTERSECT SELECT StuID FROM Student WHERE city_code <> \"HKG\""} {"question": "Can you give me a list of driver IDs that are less than 9 from the driver table, combined with a list of driver IDs that are less than or equal to 7 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T1j3k_12.png", "TableImg_3j8xc_5.png"], "original_data_index": 7205, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of aircraft IDs, including those from the aircraft table that are equal to 2, and those from the airport_aircraft table that are greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7nfxh_5.png", "TableImg_Ey3rl_4.png"], "original_data_index": 7204, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs less than or equal to 7, excluding any driver IDs from the school bus list that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cza80_12.png", "TableImg_W2mew_5.png"], "original_data_index": 7207, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Could you give me a list of player IDs, including those of female players with ID 14 who aren't named Fiona Shiells, and also those from the player_coach table with ID 2 who didn't start in 2010?", "answer": {"columns": ["Player_ID"], "index": [0, 1], "data": [["2"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_Ih2kl_14.png", "TableImg_Ldncf_7.png"], "original_data_index": 7208, "original_sql": "SELECT Player_ID FROM player WHERE Gender = \"F\" AND \"Player_ID\" = 14 AND Player_name != \"Fiona Shiells\" UNION SELECT Player_ID FROM player_coach WHERE \"Player_ID\" = 2 AND \"Starting_year\" <> 2010"} {"question": "Can you give me the IDs of drivers with an ID of 1 or less, excluding those drivers who also have an ID of 9 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cq5bw_12.png", "TableImg_Shkrg_5.png"], "original_data_index": 7209, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you show me the Book ID, number of Issues, Title, and Writer for all books, excluding those titled \"Sheva's War\" with more than 4 issues or those not written by Dave Gibbons, but including books with a Book ID other than 6, or a title other than \"Michael Moorcock's Multiverse\" where the writer is not Timothy Truman, or those with 9 or more issues?", "answer": {"columns": ["Book_ID", "Issues", "Title", "Writer"], "index": [0], "data": [["7", "1", "The Dome: Ground Zero", "Dave Gibbons"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_S7nq5_10.png", "TableImg_1xlo3_10.png"], "original_data_index": 7210, "original_sql": "SELECT Book_ID, Issues, Title, Writer FROM book WHERE \"Book_ID\" <> 6 OR Title <> \"Michael Moorcock's Multiverse\" AND Writer <> \"Timothy Truman\" OR \"Issues\" >= 9.0 EXCEPT SELECT Book_ID, Issues, Title, Writer FROM book WHERE Title = \"Sheva's War\" AND \"Issues\" > 4.0 OR Writer != \"Dave Gibbons\""} {"question": "Can you give me the names of companies that either have a Company ID greater than 18, or are not headquartered in the UK and have profits over 21.5 billion, a market value of 227.6 billion or less, are not in the banking industry, are named Berkshire Hathaway, and have sales of 110.8 billion, or have assets of at least 213 billion, along with the names of people who have a People ID of 1 or greater, did not graduate from Iowa, and are not United States citizens?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["ExxonMobil"], ["JPMorgan Chase"], ["General Electric"], ["Royal Dutch Shell"], ["Industrial and Commercial Bank of China"], ["HSBC"], ["PetroChina"], ["Berkshire Hathaway"], ["Wells Fargo"], ["Petrobras"], ["BP"], ["China Construction Bank"], ["Citigroup"], ["Gazprom"], ["Volkswagen Group"], ["Total"], ["Agricultural Bank of China"], ["Tom Sheehey"], ["David Butler"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_Xljon_19.png", "TableImg_Qkh2l_7.png"], "original_data_index": 7211, "original_sql": "SELECT Name FROM company WHERE \"Company_ID\" > 18.0 OR Headquarters <> \"UK\" AND \"Profits_in_Billion\" > 21.5 AND \"Market_Value_in_Billion\" <= 227.6 AND Industry <> \"Banking\" AND Name = \"Berkshire Hathaway\" AND \"Sales_in_Billion\" = 110.8 OR \"Assets_in_Billion\" >= 213.0 UNION ALL SELECT Name FROM people WHERE \"People_ID\" >= 1 AND Graduation_College != \"Iowa\" AND Nationality != \"United States\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 10, and those from the school bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C37os_12.png", "TableImg_Czyee_5.png"], "original_data_index": 7212, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which aircraft IDs are both greater than 3 and present in the aircraft table, and also greater than 1 and present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X801d_5.png", "TableImg_Qh3is_4.png"], "original_data_index": 7213, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of all the driver IDs, combining those from the driver table excluding driver ID 8, and those from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jal6e_12.png", "TableImg_U0obf_5.png"], "original_data_index": 7215, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Could you list the Election IDs from the election table where either the Election ID is 8 or the Counties Represented is not \"12.1 12A\", and also list the Election IDs where the District is not 2, or the First Elected year is after 2003 and Counties Represented is \"09.1 9A\", or the Party is less than 1?", "answer": {"columns": ["Election_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["1"], ["2"], ["4"], ["6"], ["7"], ["8"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Tk1db_8.png", "TableImg_7n7z8_8.png"], "original_data_index": 7214, "original_sql": "SELECT Election_ID FROM election WHERE \"Election_ID\" = 8 OR Counties_Represented <> \"12.1 12A\" UNION ALL SELECT Election_ID FROM election WHERE \"District\" != 2 OR \"First_Elected\" > 2003.0 AND Counties_Represented = \"09.1 9A\" OR \"Party\" < 1"} {"question": "Which driver IDs are greater than 9 and also greater than 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rneho_12.png", "TableImg_P2h7w_5.png"], "original_data_index": 7216, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you list the driver IDs that are both less than or equal to 12 in the driver table and less than or equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6fybz_12.png", "TableImg_T1wcr_5.png"], "original_data_index": 7218, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the average total pounds and member IDs for purchases, considering two scenarios: first, purchases from branch 1 excluding the year 2017 where the member ID is greater than 2 and the total pounds is exactly 232.09; and second, purchases where either the total pounds is not 20.99 or the member ID is 2?", "answer": {"columns": ["AVG(Total_pounds)", "Member_ID"], "index": [0, 1], "data": [["", ""], ["675.8257142857", "1.0"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_622eh_8.png", "TableImg_3ited_8.png"], "original_data_index": 7217, "original_sql": "SELECT AVG(Total_pounds), Member_ID FROM purchase WHERE Year <> \"2017\" AND Branch_ID = \"1\" AND \"Member_ID\" > 2 AND \"Total_pounds\" = 232.09 UNION SELECT AVG(Total_pounds), Member_ID FROM purchase WHERE \"Total_pounds\" != 20.99 OR \"Member_ID\" = 2"} {"question": "Can you give me a list of member IDs from the member table where the level is greater than 6, or the member ID is less than or equal to 7 and the name is not Micah Johnson and the card number is not MLB4, or the hometown is not Fort Campbell, Kentucky, combined with a list of member IDs from the membership_register_branch table where the member ID is 3?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["3"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_X0s7l_10.png", "TableImg_As7e1_8.png"], "original_data_index": 7219, "original_sql": "SELECT Member_ID FROM member WHERE \"Level\" > 6 OR \"Member_ID\" <= 7 AND Name != \"Micah Johnson\" AND Card_Number <> \"MLB4\" OR Hometown <> \"Fort Campbell, Kentucky\" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" = 3"} {"question": "Which aircraft have an ID of 2 and are also associated with airports, but not with an airport that has an ID of 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uc3ok_5.png", "TableImg_3q6mr_4.png"], "original_data_index": 7221, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you list the driver IDs that are less than 6 from the driver table, combined with the driver IDs that are greater than 9 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uyqli_12.png", "TableImg_1h6ej_5.png"], "original_data_index": 7223, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 12, and those from the school bus table with driver IDs of 4 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ane6d_12.png", "TableImg_Lxn2v_5.png"], "original_data_index": 7222, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the draft number, document ID, and copy number for all circulation history entries where the document ID is 20 or greater and the copy number is less than 10, combined with the draft number, document ID, and copy number for all draft copies where the document ID is 2 or less and the copy number is 5 or greater?", "answer": {"columns": ["draft_number", "document_id", "copy_number"], "index": [0, 1], "data": [["2", "1", "5"], ["8", "2", "5"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_Tro7l_4.png", "TableImg_8i1xu_8.png"], "original_data_index": 7220, "original_sql": "SELECT draft_number, document_id, copy_number FROM Circulation_History WHERE \"document_id\" >= 20 AND \"copy_number\" < 10 UNION SELECT draft_number, document_id, copy_number FROM Draft_Copies WHERE \"document_id\" <= 2 AND \"copy_number\" >= 5"} {"question": "Can you give me a list of driver IDs that are not 12 and are also driver IDs of school buses where those IDs are at least 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wffbt_12.png", "TableImg_Aupzz_5.png"], "original_data_index": 7224, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me the driver ID that appears exactly once with the value 8 in the driver table, but does not appear with any value other than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vf1tq_12.png", "TableImg_06a2u_5.png"], "original_data_index": 7226, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 10, and those from the school bus table with driver IDs up to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yrbti_12.png", "TableImg_Lj4dl_5.png"], "original_data_index": 7225, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the payment amount, date and time, and payment method for all customer payments, excluding those payments where the payment method is not \"Direct Debit\" or the customer ID is not 14, but including payments that either didn't happen on \"2018-03-20 21:38:41\" or were for customer ID 3?", "answer": {"columns": ["amount_payment", "datetime_payment", "payment_method_code"], "index": [0], "data": [["4610.26", "2018-02-27 20:08:53", "Direct Debit"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_0tklp_15.png", "TableImg_Dize5_15.png"], "original_data_index": 7227, "original_sql": "SELECT amount_payment, datetime_payment, payment_method_code FROM Customer_Payments WHERE datetime_payment <> \"2018-03-20 21:38:41\" OR \"customer_id\" = 3 EXCEPT SELECT amount_payment, datetime_payment, payment_method_code FROM Customer_Payments WHERE payment_method_code != \"Direct Debit\" OR \"customer_id\" <> 14"} {"question": "Which driver IDs are both less than or equal to 8 and also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ei7p2_12.png", "TableImg_8zflp_5.png"], "original_data_index": 7230, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the other details and document IDs for documents where the description is not \"u\" or the other details are not \"None\", combined with the other details and document IDs for paragraphs where the document ID is less than 2394 or the paragraph text is not \"Jersey\"?", "answer": {"columns": ["Other_Details", "Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["", "0"], ["", "1"], ["", "3"], ["", "76"], ["", "80"], ["", "82"], ["", "2394"], ["", "3830"], ["", "33930"], ["", "50123"], ["", "651512"], ["", "801801"], ["", "3540024"], ["", "16514113"], ["", "385906526"]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_Dc0bf_15.png", "TableImg_9wmrt_15.png"], "original_data_index": 7233, "original_sql": "SELECT Other_Details, Document_ID FROM Documents WHERE Document_Description != \"u\" OR Other_Details != \"None\" UNION SELECT Other_Details, Document_ID FROM Paragraphs WHERE \"Document_ID\" < 2394 OR Paragraph_Text != \"Jersey\""} {"question": "Can you give me a list of driver IDs that are greater than 8, but not including any driver IDs from the school bus table that are greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U7yjn_12.png", "TableImg_Umwey_5.png"], "original_data_index": 7228, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which aircraft IDs are both greater than 4 in the aircraft table and greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_08z2h_5.png", "TableImg_Upu2d_4.png"], "original_data_index": 7229, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 6 or greater, combined with a list of driver IDs from the school bus table where the driver ID is 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ppm4a_12.png", "TableImg_R17xv_5.png"], "original_data_index": 7234, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of document IDs from the Document_Drafts table where the ID is less than or equal to 2, combined with a list of document IDs where the ID is greater than 13?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["14"], ["17"], ["20"], ["23"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Yzrfg_15.png", "TableImg_Qfi1j_15.png"], "original_data_index": 7236, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" <= 2 UNION SELECT document_id FROM Document_Drafts WHERE \"document_id\" > 13"} {"question": "Can you list the aircraft IDs from the aircraft table, but only those less than or equal to 4, along with the aircraft IDs from the airport_aircraft table, excluding those that are equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7ubcc_5.png", "TableImg_Kq754_4.png"], "original_data_index": 7235, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are also less than or equal to 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kwlna_12.png", "TableImg_M23ee_5.png"], "original_data_index": 7237, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs greater than 4 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wn0lf_12.png", "TableImg_A62fs_5.png"], "original_data_index": 7238, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs from the school bus list that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_53abj_12.png", "TableImg_Llquu_5.png"], "original_data_index": 7240, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list the aircraft IDs that are less than 2, grouping by aircraft ID from the aircraft table, and combine that with a list of aircraft IDs that are less than 1, grouping by aircraft ID from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dkzig_5.png", "TableImg_Gbef0_4.png"], "original_data_index": 7239, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you give me a list of driver IDs that are greater than 8, excluding any driver IDs from the school bus list that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_97v9f_12.png", "TableImg_Sm800_5.png"], "original_data_index": 7241, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or greater, and also those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yao3v_12.png", "TableImg_Hlr81_5.png"], "original_data_index": 7242, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, and combine it with a list of school bus driver IDs, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xyld5_12.png", "TableImg_7ivyx_5.png"], "original_data_index": 7232, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 8 and not equal to 7, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_014kt_12.png", "TableImg_Ry7yc_5.png"], "original_data_index": 7245, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are equal to 8 in the driver table, but not equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W02j3_12.png", "TableImg_5sj1v_5.png"], "original_data_index": 7244, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me the country, zip code, city, state, largest address ID, and building number for all addresses that are both in the USA and either in the USA or have the building number \"535 Ariel Brook\"?", "answer": {"columns": ["country", "zip_postcode", "city", "state_province_county", "MAX(address_id)", "line_1_number_building"], "index": [0], "data": [["USA", "43988", "West Edmondview", "Kentucky", "15", "9260 Streich Mountain"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_7uori_15.png", "TableImg_4elde_15.png"], "original_data_index": 7243, "original_sql": "SELECT country, zip_postcode, city, state_province_county, MAX(address_id), line_1_number_building FROM Addresses WHERE country = \"USA\" INTERSECT SELECT country, zip_postcode, city, state_province_county, MAX(address_id), line_1_number_building FROM Addresses WHERE country = \"USA\" OR line_1_number_building = \"535 Ariel Brook\""} {"question": "Can you give me a list of all aircraft IDs from the certificate table where the ID is less than or equal to 5 and not equal to 142519864, combined with a list of aircraft IDs from the flight table where the arrival date is not \"04/12/2005 09:40\"?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Rup1u_69.png", "TableImg_Pat19_10.png"], "original_data_index": 7246, "original_sql": "SELECT aid FROM certificate WHERE \"aid\" <= 5 AND \"eid\" <> 142519864 UNION SELECT aid FROM flight WHERE arrival_date != \"04/12/2005 09:40\""} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs from the school_bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5pj5l_12.png", "TableImg_Rclxp_5.png"], "original_data_index": 7247, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of all Driver IDs, combining those from the driver table excluding ID 11 with those from the school_bus table excluding ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0yqu2_12.png", "TableImg_5nisx_5.png"], "original_data_index": 7249, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me the other details, employee name, and employee ID for all employees, excluding those with a role code other than \"PT\" or other details equal to \"b\", but including those with a role code other than \"MG\", or whose name is \"Erling\" and other details are not \"b\", or whose employee ID is less than or equal to 8?", "answer": {"columns": ["other_details", "employee_name", "employee_id"], "index": [0], "data": [["v", "Jordyn", "7"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_Txvpc_6.png", "TableImg_Obsyw_6.png"], "original_data_index": 7250, "original_sql": "SELECT other_details, employee_name, employee_id FROM Employees WHERE role_code <> \"MG\" OR employee_name = \"Erling\" AND other_details != \"b\" OR \"employee_id\" <= 8 EXCEPT SELECT other_details, employee_name, employee_id FROM Employees WHERE role_code <> \"PT\" OR other_details = \"b\""} {"question": "What is the highest customer ID and corresponding customer status code for customers who either paid with direct debit on \"2018-02-15 16:38:49\", have the phone number \"1-875-045-0806\" and email address \"myrl.lind@example.net\", became a customer on \"2015-06-24 03:50:04\" and paid an amount less than or equal to 1708.18, have the first name \"Estelle\", cell phone number \"(630)964-2426\" and a customer address ID not equal to 13, or have a date of birth of \"1996-11-07 05:30:55\"?", "answer": {"columns": ["MAX(T1.customer_id)", "customer_status_code"], "index": [0], "data": [["14", "Good Customer"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Gg26u_15.png", "TableImg_1kbys_15.png"], "original_data_index": 7248, "original_sql": "SELECT MAX(T1.customer_id), T2.customer_status_code FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code = \"Direct Debit\" AND datetime_payment = \"2018-02-15 16:38:49\" OR phone_number = \"1-875-045-0806\" AND email_address = \"myrl.lind@example.net\" OR date_became_customer = \"2015-06-24 03:50:04\" AND amount_payment <= 1708.18 OR first_name = \"Estelle\" AND cell_mobile_phone_number = \"(630)964-2426\" AND customer_address_id <> 13 OR date_of_birth = \"1996-11-07 05:30:55\""} {"question": "What are the aircraft IDs that are not equal to 1 and are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jeoys_5.png", "TableImg_2a0u1_4.png"], "original_data_index": 7251, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 10 with those from the school bus table excluding driver ID 7, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wpjgq_12.png", "TableImg_Qckd2_5.png"], "original_data_index": 7254, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including driver ID 6 from the driver table and all driver IDs from the school bus table except for driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sbzxd_12.png", "TableImg_Pi3kj_5.png"], "original_data_index": 7255, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list all the aircraft IDs from the aircraft table, excluding aircraft ID 2, and combine that with a list of aircraft IDs from the airport_aircraft table that are less than 2, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4fg47_5.png", "TableImg_N7pnr_4.png"], "original_data_index": 7252, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 4, but then remove any aircraft IDs that also appear in the airport_aircraft table with an ID of 1 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Esylu_5.png", "TableImg_Lum8b_4.png"], "original_data_index": 7253, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Which clubs named \"Gefle IF\" do not have coaches other than Robert Chen, or coaches with a rank greater than 3?", "answer": {"columns": ["Club_ID"], "index": [0], "data": [["4"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_4v7vr_6.png", "TableImg_T5ocy_5.png"], "original_data_index": 7257, "original_sql": "SELECT Club_ID FROM club WHERE Club_name = \"Gefle IF\" EXCEPT SELECT Club_ID FROM coach WHERE Coach_name != \"Robert Chen\" OR \"Rank\" <= 3"} {"question": "Can you give me a list of driver IDs, up to and including 6, that are in the driver table but not in the school_bus table, where only driver IDs less than 3 are considered in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lfroo_12.png", "TableImg_49rln_5.png"], "original_data_index": 7256, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 4, and also list all aircraft IDs less than 2 from the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qkwuv_5.png", "TableImg_3zaah_4.png"], "original_data_index": 7259, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of employee IDs from the employee table, excluding those employees who either have an ID of 9 or don't live in Sale, but then remove any IDs that also appear in the hiring table where the ID is 4 or the start date isn't 2008 and they aren't full-time?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_7frfm_10.png", "TableImg_0blzi_7.png"], "original_data_index": 7258, "original_sql": "SELECT Employee_ID FROM employee WHERE \"Employee_ID\" != 9 OR City <> \"Sale\" EXCEPT SELECT Employee_ID FROM hiring WHERE \"Employee_ID\" = 4 OR Start_from != \"2008\" AND Is_full_time != \"T\""} {"question": "Can you give me a list of driver IDs that are greater than 11 from the driver table, combined with a list of driver IDs that are greater than 9 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0aeq7_12.png", "TableImg_Zp5nl_5.png"], "original_data_index": 7263, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Could you list the vehicle IDs from lessons that either cost something other than $495, have a vehicle ID less than 1, a lesson time other than \"5\", and a cancelled status, or have a customer ID other than 2 and a lesson ID greater than 3, combined with the vehicle IDs from vehicles that have an ID of 3 or greater and are not trucks?", "answer": {"columns": ["vehicle_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["2"], ["2"], ["1"], ["2"], ["1"], ["2"], ["1"], ["1"], ["1"], ["3"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_20ks0_15.png", "TableImg_O0tpg_3.png"], "original_data_index": 7264, "original_sql": "SELECT vehicle_id FROM Lessons WHERE \"price\" != 495.0 AND \"vehicle_id\" < 1 AND lesson_time <> \"5\" AND lesson_status_code = \"Cancelled\" AND \"staff_id\" <> 1 OR \"customer_id\" != 2 AND \"lesson_id\" > 3 UNION ALL SELECT vehicle_id FROM Vehicles WHERE \"vehicle_id\" >= 3 AND vehicle_details != \"Truck\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 4, and also list the aircraft IDs from the airport_aircraft table that are greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fqi8c_5.png", "TableImg_Sdybo_4.png"], "original_data_index": 7265, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Could you give me the text, document ID, paragraph ID, and other details from paragraphs that either don't contain the text \"Fiji\" and have a document ID less than or equal to 651512, or have a paragraph ID greater than or equal to 16615, or have other details that are not \"None\", but only for those paragraphs that also have a paragraph ID greater than 9946?", "answer": {"columns": ["Paragraph_Text", "Document_ID", "Paragraph_ID", "Other_Details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Brazil", "16514113", "571212310", ""], ["Indonesia", "651512", "243399026", ""], ["Ireland", "16514113", "765713812", ""], ["Japan", "80", "16615", ""], ["Korea", "2394", "510442723", ""], ["Micronesia", "80", "608931827", ""], ["Papua New Guinea", "3540024", "946335436", ""], ["Senegal", "3830", "1104059", ""], ["Ukraine", "2394", "280120913", ""]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_U3sxh_15.png", "TableImg_6wp5e_15.png"], "original_data_index": 7266, "original_sql": "SELECT Paragraph_Text, Document_ID, Paragraph_ID, Other_Details FROM Paragraphs WHERE Paragraph_Text <> \"Fiji\" AND \"Document_ID\" <= 651512 OR \"Paragraph_ID\" >= 16615 OR Other_Details <> \"None\" INTERSECT SELECT Paragraph_Text, Document_ID, Paragraph_ID, Other_Details FROM Paragraphs WHERE \"Paragraph_ID\" > 9946"} {"question": "Can you give me the maximum Company ID, the average Industry value, the count of Sales in Billion, the count of company names, the minimum Headquarters value, the Profits in Billion, the average Assets in Billion, and the count of Market Value in Billion for companies meeting certain criteria, but excluding those that meet another set of criteria? The first set of criteria includes companies with Profits in Billion greater than or equal to 15.9 and Company ID greater than or equal to 15.0, where the Industry is not Banking, or Headquarters is in the USA and the name is not Petrobras, and Sales in Billion is less than or equal to 87.6, or Market Value in Billion is less than or equal to 178.7, or Assets in Billion equals 2039.1. The second set of criteria includes companies where the Industry is Conglomerate and Assets in Billion is less than 292.5, and Sales in Billion is not 102.0, or Headquarters is not in the UK, or Company ID is greater than 19.0, or Profits in Billion is less than 19.0.", "answer": {"columns": ["MAX(Company_ID)", "AVG(Industry)", "COUNT(Sales_in_Billion)", "COUNT(Name)", "MIN(Headquarters)", "Profits_in_Billion", "AVG(Assets_in_Billion)", "COUNT(Market_Value_in_Billion)"], "index": [0], "data": [["19", "0", "10", "10", "China", "25.1", "1274.34", "10"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_X6qj5_19.png", "TableImg_59kt4_19.png"], "original_data_index": 7267, "original_sql": "SELECT MAX(Company_ID), AVG(Industry), COUNT(Sales_in_Billion), COUNT(Name), MIN(Headquarters), Profits_in_Billion, AVG(Assets_in_Billion), COUNT(Market_Value_in_Billion) FROM company WHERE \"Profits_in_Billion\" >= 15.9 AND \"Company_ID\" >= 15.0 AND Industry != \"Banking\" OR Headquarters = \"USA\" AND Name <> \"Petrobras\" AND \"Sales_in_Billion\" <= 87.6 OR \"Market_Value_in_Billion\" <= 178.7 OR \"Assets_in_Billion\" = 2039.1 EXCEPT SELECT MAX(Company_ID), AVG(Industry), COUNT(Sales_in_Billion), COUNT(Name), MIN(Headquarters), Profits_in_Billion, AVG(Assets_in_Billion), COUNT(Market_Value_in_Billion) FROM company WHERE Industry = \"Conglomerate\" AND \"Assets_in_Billion\" < 292.5 AND \"Sales_in_Billion\" != 102.0 OR Headquarters <> \"UK\" OR \"Company_ID\" > 19.0 OR \"Profits_in_Billion\" < 19.0"} {"question": "Can you give me a list of all the driver IDs, including those from the driver table where the ID is 1 or greater, and those from the school bus table where the ID is not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O8osx_12.png", "TableImg_3gb4k_5.png"], "original_data_index": 7268, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me the average decor score, the lowest bed type, and the base price for rooms that either have fewer than one bed and aren't decorated in a modern style, or have a queen bed, or are named \"Mendicant with cryptic\", or have a base price not equal to 175, combined with the average decor score, the lowest bed type, and the base price for rooms that either have a RoomId other than \"AOB\", or aren't decorated in a rustic style and don't have a max occupancy of 2, or are named \"Abscond or bolster\" and don't have a King bed type?", "answer": {"columns": ["AVG(decor)", "MIN(bedType)", "basePrice"], "index": [0], "data": [["0", "Double", "125"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_18qkj_10.png", "TableImg_0jlwf_10.png"], "original_data_index": 7269, "original_sql": "SELECT AVG(decor), MIN(bedType), basePrice FROM Rooms WHERE \"beds\" < 1 AND decor <> \"modern\" OR bedType = \"Queen\" OR roomName = \"Mendicant with cryptic\" OR \"basePrice\" != 175 UNION SELECT AVG(decor), MIN(bedType), basePrice FROM Rooms WHERE RoomId <> \"AOB\" OR decor <> \"rustic\" AND \"maxOccupancy\" != 2 OR roomName = \"Abscond or bolster\" AND bedType != \"King\""} {"question": "Can you list the Club IDs, the lowest Gold value, and the Small Silver value for match results where the Points are 139 or less, the Rank is 1 or less, or the Big Silver is not 6, but exclude any results where the Club ID is 5 or less, the Big Silver is not 12, and the Bronze is 7 or less?", "answer": {"columns": ["Club_ID", "MIN(Gold)", "Small_Silver"], "index": [0], "data": [["4", "5", "10"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Lm8i5_6.png", "TableImg_6wd7k_6.png"], "original_data_index": 7270, "original_sql": "SELECT Club_ID, MIN(Gold), Small_Silver FROM match_result WHERE \"Points\" <= 139 OR \"Rank\" <= 1 OR \"Big_Silver\" != 6 EXCEPT SELECT Club_ID, MIN(Gold), Small_Silver FROM match_result WHERE \"Club_ID\" <= 5 AND \"Big_Silver\" <> 12 AND \"Bronze\" <= 7"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table and all driver IDs except 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L852n_12.png", "TableImg_Gty4f_5.png"], "original_data_index": 7271, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me the driver IDs that appear exactly once in the driver table, specifically driver ID 1, but are not driver IDs that appear in the school bus table with a driver ID greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8bejv_12.png", "TableImg_Z3u4s_5.png"], "original_data_index": 7262, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are both greater than 9 and present in the driver table, and also greater than or equal to 9 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7z0q6_12.png", "TableImg_9exxm_5.png"], "original_data_index": 7260, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs that are greater than 2, excluding those driver IDs that are also greater than 9 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hn4o0_12.png", "TableImg_N10qg_5.png"], "original_data_index": 7261, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are greater than or equal to 3 from the school bus table, ensuring no duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2y98r_12.png", "TableImg_572yd_5.png"], "original_data_index": 7274, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of aircraft IDs that are greater than 1, excluding any aircraft IDs that are also equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vbe4d_5.png", "TableImg_31g8j_4.png"], "original_data_index": 7272, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12 from the driver table and excluding driver ID 3 from the school bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_No450_12.png", "TableImg_Pjr3j_5.png"], "original_data_index": 7275, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of employee IDs for employees who are not named Dorthy Lewis or whose employee ID is 390487451, combined with a list of employee IDs for employees whose employee ID is less than or equal to 356187925 or whose name is Robert Brown?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["11564812"], ["15645489"], ["90873519"], ["141582651"], ["142519864"], ["159542516"], ["242518965"], ["248965255"], ["254099823"], ["269734834"], ["274878974"], ["287321212"], ["310454876"], ["310454877"], ["348121549"], ["355548984"], ["356187925"], ["390487451"], ["486512566"], ["489221823"], ["489456522"], ["548977562"], ["550156548"], ["552455318"], ["556784565"], ["567354612"], ["573284895"], ["574489456"], ["574489457"], ["619023588"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Klw6w_31.png", "TableImg_Fsiuk_31.png"], "original_data_index": 7273, "original_sql": "SELECT eid FROM employee WHERE name != \"Dorthy Lewis\" OR \"eid\" = 390487451 UNION SELECT eid FROM employee WHERE \"eid\" <= 356187925 OR name = \"Robert Brown\""} {"question": "Which driver IDs, excluding driver ID 9, are in the driver table but not in the school bus table where the driver ID is less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ngk4_12.png", "TableImg_8b02c_5.png"], "original_data_index": 7277, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 5, and also list the aircraft IDs from the airport_aircraft table that are less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8jmoa_5.png", "TableImg_Nq1yr_4.png"], "original_data_index": 7278, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me the Club IDs for clubs that are not located in AKW, or don't have the description \"Play pen and paper games on campus.\", or are named \"Bootup Baltimore\" and have a ClubID of 3 or greater, but excluding the Club IDs of clubs where the CTO is a member, or where the ClubID is not 2 and the StuID is 1007 or less?", "answer": {"columns": ["ClubID"], "index": [0], "data": [["3"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Q4ndh_4.png", "TableImg_Lnm7x_4.png"], "original_data_index": 7279, "original_sql": "SELECT ClubID FROM Club WHERE ClubLocation <> \"AKW\" OR ClubDesc <> \"Play pen and paper games on campus.\" OR ClubName = \"Bootup Baltimore\" AND \"ClubID\" >= 3 EXCEPT SELECT ClubID FROM Member_of_club WHERE Position = \"CTO\" OR \"ClubID\" != 2 AND \"StuID\" <= 1007"} {"question": "Could you give me the sum of customer IDs from the Customer_Payments table, including those where the payment method isn't Direct Debit, or the customer ID is 14 and the payment amount isn't 1708.18, or the payment datetime isn't \"2018-02-19 09:06:29\", combined with the sum of customer IDs from the Customers table, including those where the customer address ID is less than 10, or the amount outstanding is greater than or equal to 255.0, or the date of birth is \"1996-11-07 05:30:55\" and the date they became a customer isn't \"2016-05-11 17:03:48\", or the customer ID is less than 9 and the last name isn't Bernhard and the cell phone number is \"1-197-686-2849x8761\" and the customer status code is \"Bad Customer\", or the phone number isn't \"1-673-962-8158x7646\" and the first name is Rylan and the email address isn't \"karina.carroll@example.net\"?", "answer": {"columns": ["SUM(customer_id)"], "index": [0, 1], "data": [["113"], ["120"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Wsqc3_15.png", "TableImg_2y8w7_15.png"], "original_data_index": 7276, "original_sql": "SELECT SUM(customer_id) FROM Customer_Payments WHERE payment_method_code <> \"Direct Debit\" OR \"customer_id\" = 14 AND \"amount_payment\" <> 1708.18 OR datetime_payment <> \"2018-02-19 09:06:29\" UNION SELECT SUM(customer_id) FROM Customers WHERE \"customer_address_id\" < 10 OR \"amount_outstanding\" >= 255.0 OR date_of_birth = \"1996-11-07 05:30:55\" AND date_became_customer <> \"2016-05-11 17:03:48\" OR \"customer_id\" < 9 AND last_name != \"Bernhard\" AND cell_mobile_phone_number = \"1-197-686-2849x8761\" AND customer_status_code = \"Bad Customer\" OR phone_number <> \"1-673-962-8158x7646\" AND first_name = \"Rylan\" AND email_address != \"karina.carroll@example.net\""} {"question": "Can you give me the IDs of drivers, up to ID 2, who are drivers but not school bus drivers up to ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Otr3a_12.png", "TableImg_6br8t_5.png"], "original_data_index": 7283, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including driver ID 2 from the driver table and all driver IDs except 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9d1gv_12.png", "TableImg_Tpu4a_5.png"], "original_data_index": 7282, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of aircraft IDs, including those that are 5 from the aircraft table and those that are 2 or greater from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9gx47_5.png", "TableImg_J9oga_4.png"], "original_data_index": 7281, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Could you give me a list of school IDs that meet two conditions: first, they either had a budget year before 2002 with a budget investment percentage of 127.6 or a budgeted amount greater than 6803; and second, they either have a school ID that's not 2 or a total budget percentage budgeted of at least 2.0 and a budget investment percentage not equal to 71.3?", "answer": {"columns": ["School_id"], "index": [0, 1, 2], "data": [["1"], ["4"], ["5"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_3y7rx_8.png", "TableImg_0b4fq_8.png"], "original_data_index": 7280, "original_sql": "SELECT School_id FROM budget WHERE \"Year\" < 2002 AND Budget_invested_percent = \"127.6\" OR \"Budgeted\" > 6803 INTERSECT SELECT School_id FROM budget WHERE \"School_id\" != 2 OR \"total_budget_percent_budgeted\" >= 2.0 AND Budget_invested_percent <> \"71.3\""} {"question": "Which driver IDs are both not equal to 4 and greater than 7, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S5lhs_12.png", "TableImg_Yek0h_5.png"], "original_data_index": 7286, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are equal to 7, considering both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pfxoo_12.png", "TableImg_T06be_5.png"], "original_data_index": 7287, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs that are less than 12 are also driver IDs of school buses where the driver ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_23ih7_12.png", "TableImg_Gkkcd_5.png"], "original_data_index": 7285, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of document type codes from the Documents table where the document ID is 13 or higher, or where the shipping agent code isn't \"US\", the document type code isn't \"Paper\", and the receipt date isn't \"1983-09-26 09:32:56\", or where the other details aren't \"u\", combined with a list of document type codes from the Ref_Document_Types table where the document type description isn't \"u\" and the document type code isn't \"CD\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2], "data": [["CD"], ["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_38ufd_15.png", "TableImg_U1jl9_3.png"], "original_data_index": 7284, "original_sql": "SELECT document_type_code FROM Documents WHERE \"document_id\" >= 13 OR shipping_agent_code != \"US\" AND document_type_code <> \"Paper\" AND receipt_date <> \"1983-09-26 09:32:56\" OR other_details <> \"u\" UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description != \"u\" AND document_type_code != \"CD\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Juhnc_12.png", "TableImg_Pzkui_5.png"], "original_data_index": 7291, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you show me the lowest rank and club ID from the coach table where the club ID is 1 or higher, or the coach ID is not 1, or the gender is not male, the coach's name is not Smith Brown, and the rank is greater than 1, combined with the lowest rank and club ID from the match result table where the rank is not 1, or the small silver count is 6, or the club ID is 5 and the gold count is not 6?", "answer": {"columns": ["MIN(Rank)", "Club_ID"], "index": [0, 1], "data": [["1", "1"], ["2", "2"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Uu6ao_5.png", "TableImg_Ehnjh_6.png"], "original_data_index": 7290, "original_sql": "SELECT MIN(Rank), Club_ID FROM coach WHERE \"Club_ID\" >= 1 OR \"Coach_ID\" <> 1 OR Gender != \"M\" AND Coach_name != \"Smith Brown\" AND \"Rank\" > 1 UNION SELECT MIN(Rank), Club_ID FROM match_result WHERE \"Rank\" <> 1 OR \"Small_Silver\" = 6 OR \"Club_ID\" = 5 AND \"Gold\" != 6"} {"question": "Which driver IDs are both less than 12 and also equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q912k_12.png", "TableImg_Lbkbo_5.png"], "original_data_index": 7289, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 2, and those from the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1er90_12.png", "TableImg_Gtrcc_5.png"], "original_data_index": 7293, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me the name and location of each club, along with a count of clubs, including those that don't have the description \"Play pen and paper games on campus.\" or have a location of \"HHH\" and a ClubID that is not 1, as well as those that don't have the description \"Venture capital fund for student business.\"?", "answer": {"columns": ["ClubName", "ClubLocation", "COUNT(ClubID)"], "index": [0, 1], "data": [["Bootup Baltimore", "AKW", "4"], ["Bootup Baltimore", "AKW", "3"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Vyopx_4.png", "TableImg_4gudw_4.png"], "original_data_index": 7292, "original_sql": "SELECT ClubName, ClubLocation, COUNT(ClubID) FROM Club WHERE ClubDesc != \"Play pen and paper games on campus.\" OR \"ClubID\" <> 1 AND ClubLocation = \"HHH\" UNION ALL SELECT ClubName, ClubLocation, COUNT(ClubID) FROM Club WHERE ClubDesc != \"Venture capital fund for student business.\""} {"question": "Which driver IDs are both greater than 1 and appear in the driver table, and also greater than 9 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hwtiw_12.png", "TableImg_8mejs_5.png"], "original_data_index": 7294, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 7, combined with a list of driver IDs from the school_bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wgq8n_12.png", "TableImg_Ds8rw_5.png"], "original_data_index": 7295, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 8 or higher, and those from the school bus table where the ID is 3 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2xyrr_12.png", "TableImg_Nmhk1_5.png"], "original_data_index": 7297, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs from the driver table, excluding those drivers from the school_bus table whose School ID is not 3, and including drivers who are not named Jason Rojas, are not affiliated with the Dem party, are 38 years old, have a Driver ID other than 1, or don't live in East Hartford?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aqnar_12.png", "TableImg_Fqp18_5.png"], "original_data_index": 7296, "original_sql": "SELECT Driver_ID FROM driver WHERE Name <> \"Jason Rojas\" OR Party != \"Dem\" OR \"Age\" = 38 OR \"Driver_ID\" <> 1 OR Home_city <> \"East Hartford\" EXCEPT SELECT Driver_ID FROM school_bus WHERE \"School_ID\" <> 3"} {"question": "Can you list all the driver IDs, including those from the driver table that are 9 or higher, and those from the school bus table that are 9 or lower?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1or4a_12.png", "TableImg_361ik_5.png"], "original_data_index": 7299, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me the Club ID, Points, and the lowest Small Silver value for each club, considering only results where the Rank isn't 5, the Club ID is greater than 5, the Gold is less than or equal to 6, or the Points are less than or equal to 168, but excluding any results where the Gold is less than 12, the Bronze is greater than 8, the Rank isn't 6, the Points are less than or equal to 89, or the Big Silver is greater than or equal to 11 and the Club ID is not 4?", "answer": {"columns": ["Club_ID", "Points", "MIN(Small_Silver)"], "index": [0], "data": [["3", "102", "4"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Popma_6.png", "TableImg_0srvh_6.png"], "original_data_index": 7298, "original_sql": "SELECT Club_ID, Points, MIN(Small_Silver) FROM match_result WHERE \"Rank\" != 5 OR \"Club_ID\" > 5 OR \"Gold\" <= 6 OR \"Points\" <= 168 EXCEPT SELECT Club_ID, Points, MIN(Small_Silver) FROM match_result WHERE \"Gold\" < 12 AND \"Bronze\" > 8 AND \"Rank\" != 6 OR \"Points\" <= 89 OR \"Big_Silver\" >= 11 AND \"Club_ID\" <> 4"} {"question": "Can you give me a list of driver IDs that are less than 4 from the driver table, combined with a list of driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Arxfw_12.png", "TableImg_Bm744_5.png"], "original_data_index": 7300, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which aircraft have an ID of 5 and also appear in the list of aircraft with an ID of 3 or greater at the airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xa897_5.png", "TableImg_C8m03_4.png"], "original_data_index": 7304, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 8, and those from the school bus table where the ID is 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1l75d_12.png", "TableImg_Fok1u_5.png"], "original_data_index": 7303, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of all the Driver IDs, including those from the driver table excluding Driver ID 11, and those from the school_bus table with Driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_44hhw_12.png", "TableImg_S05nh_5.png"], "original_data_index": 7302, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are less than 4 from the driver table, combined with a list of driver IDs that are not equal to 3 from the school bus table, making sure to remove any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ibr1w_12.png", "TableImg_2gkyw_5.png"], "original_data_index": 7301, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me the employee IDs for employees named Lee Mears who are at least 30 years old and have an ID of 6 or less, along with the employee IDs from the evaluation table where the bonus is at least 2900 or the employee ID is 1 or the year awarded is not 2011?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["1"], ["4"], ["7"], ["10"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_3kxj3_10.png", "TableImg_D1640_6.png"], "original_data_index": 7308, "original_sql": "SELECT Employee_ID FROM employee WHERE Name = \"Lee Mears\" AND \"Age\" >= 30 AND \"Employee_ID\" <= 6 UNION ALL SELECT Employee_ID FROM evaluation WHERE \"Bonus\" >= 2900.0 AND Employee_ID = \"1\" OR Year_awarded <> \"2011\""} {"question": "Can you give me a list of Driver IDs, excluding Driver ID 1 from the driver table, combined with a list of Driver IDs, excluding Driver ID 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H6lhi_12.png", "TableImg_03j8g_5.png"], "original_data_index": 7307, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me the first and last names of all customers whose mobile phone number is not 200.830.8723, combined with the first and last names of all staff members named Eulalia with the nickname santos45, or those with a staff address ID of 1 and a birthdate other than November 16, 2000 at 6:55:12 AM and a last name other than Hermann, or those with a staff ID less than 6 and a middle name other than Tre?", "answer": {"columns": ["last_name", "first_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["Bernhard", "Carole"], ["Bruen", "Millie"], ["Durgan", "Titus"], ["Goodwin", "Rylan"], ["Grant", "Estelle"], ["Hermann", "Rebekah"], ["Herzog", "Jedidiah"], ["Jast", "Winnifred"], ["Koelpin", "Marina"], ["Kohler", "Ray"], ["Mertz", "Kaitlin"], ["Mertz", "Leif"], ["Mraz", "Ernestina"], ["Ortiz", "Clara"], ["Sanford", "Dameon"], ["Sawayn", "Janessa"], ["Schmeler", "Sigrid"], ["Spinka", "Amya"], ["Terry", "Genevieve"], ["Trantow", "Dianna"], ["Tromp", "Jordy"], ["Weissnat", "Camylle"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_C2qjd_15.png", "TableImg_T4n7t_15.png"], "original_data_index": 7305, "original_sql": "SELECT last_name, first_name FROM Customers WHERE cell_mobile_phone_number <> \"200.830.8723\" UNION SELECT last_name, first_name FROM Staff WHERE first_name = \"Eulalia\" AND nickname = \"santos45\" OR \"staff_address_id\" = 1 AND date_of_birth != \"2000-11-16 06:55:12\" AND last_name != \"Hermann\" OR \"staff_id\" < 6 AND middle_name <> \"Tre\""} {"question": "Can you give me the level, hometown, card number, member ID, and the number of members, excluding Ventrell Jenkins and those with card number RT91, but then remove from that list anyone who isn't from Simpsonville, South Carolina or isn't David Jones, or whose Member ID is less than 10 and level is 6 or higher?", "answer": {"columns": ["Level", "Hometown", "Card_Number", "Member_ID", "COUNT(Name)"], "index": [0], "data": [["6", "Collierville, Tennessee", "LE99", "1", "8"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_1r7hz_10.png", "TableImg_N2vft_10.png"], "original_data_index": 7306, "original_sql": "SELECT Level, Hometown, Card_Number, Member_ID, COUNT(Name) FROM member WHERE Name != \"Ventrell Jenkins\" AND Card_Number != \"RT91\" EXCEPT SELECT Level, Hometown, Card_Number, Member_ID, COUNT(Name) FROM member WHERE Hometown <> \"Simpsonville, South Carolina\" AND Name <> \"David Jones\" OR \"Member_ID\" < 10 AND \"Level\" >= 6"} {"question": "Can you give me a list of driver IDs that are greater than 10, excluding any driver IDs from the school bus list that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I3itk_12.png", "TableImg_8tseo_5.png"], "original_data_index": 7310, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs less than 10 from the driver table, excluding any driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bhhgm_12.png", "TableImg_Tzx6f_5.png"], "original_data_index": 7309, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs that are less than 11 are also driver IDs of school buses, specifically driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oi002_12.png", "TableImg_Elg6p_5.png"], "original_data_index": 7311, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, excluding driver 6, are also bus driver IDs, excluding bus driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Odmo3_12.png", "TableImg_Nhf57_5.png"], "original_data_index": 7312, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 12, and those from the school bus table where the ID is 10 or greater, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8r8f3_12.png", "TableImg_7lqsw_5.png"], "original_data_index": 7313, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 3 or greater, and those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bkusx_12.png", "TableImg_L6w40_5.png"], "original_data_index": 7316, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 5 and those from the school bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K8hoo_12.png", "TableImg_V0sjc_5.png"], "original_data_index": 7314, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What is the average coach ID for coaches where either the club ID is not 3, or the coach ID is 4 or greater and the coach's name is Smith Brown, combined with the average coach ID from the player coach table where the player ID is not 10, the coach ID is not 2, and the starting year is 2011 or later?", "answer": {"columns": ["AVG(Coach_ID)"], "index": [0, 1], "data": [["1.6666666667"], ["2.6666666667000003"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_2imag_5.png", "TableImg_Nc2ty_7.png"], "original_data_index": 7317, "original_sql": "SELECT AVG(Coach_ID) FROM coach WHERE \"Club_ID\" != 3 OR \"Coach_ID\" >= 4 AND Coach_name = \"Smith Brown\" UNION SELECT AVG(Coach_ID) FROM player_coach WHERE \"Player_ID\" != 10 AND \"Coach_ID\" <> 2 AND \"Starting_year\" >= 2011"} {"question": "Can you list the driver IDs from the driver table that are less than or equal to 4, and combine that with a list of driver IDs from the school_bus table that are greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Blrvj_12.png", "TableImg_78akq_5.png"], "original_data_index": 7315, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs from the driver table, considering only those IDs that are 8 or greater, but excluding any driver IDs that also appear in the school_bus table, unless that ID is 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ut22g_12.png", "TableImg_Xjjyu_5.png"], "original_data_index": 7320, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10 and those from the school bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0fg95_12.png", "TableImg_9tc4v_5.png"], "original_data_index": 7319, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What is the sum of branch IDs for branches named \"Taverner\" with a membership amount of \"31\" and not located on Abbott Street, combined with the sum of branch IDs from purchases made in years other than 2018 or where the total pounds are less than 402.1 and the member ID is less than or equal to 3?", "answer": {"columns": ["SUM(Branch_ID)"], "index": [0, 1], "data": [[""], ["11.0"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Z3krl_8.png", "TableImg_Nu19s_8.png"], "original_data_index": 7321, "original_sql": "SELECT SUM(Branch_ID) FROM branch WHERE Address_road != \"Abbott Street\" AND Name = \"Taverner\" AND membership_amount = \"31\" UNION ALL SELECT SUM(Branch_ID) FROM purchase WHERE Year <> \"2018\" OR \"Total_pounds\" < 402.1 AND \"Member_ID\" <= 3"} {"question": "Can you give me the counts of rank, player ID, gender, and occupation, along with the residence, player name, maximum votes, and sponsor name for all players, first for those whose rank isn't first or whose player ID is 13 or higher or whose votes are 4947, and then again for those who are retired and named Jim Maloway?", "answer": {"columns": ["COUNT(Rank)", "Residence", "Player_name", "COUNT(Player_ID)", "MAX(Votes)", "Sponsor_name", "COUNT(Gender)", "COUNT(Occupation)"], "index": [0, 1], "data": [["10", "Winnipeg", "Ross Eadie", "10", "12093.0", "Kildonan\u2014St. Paul", "10", "10"], ["0", "", "", "0", "", "", "0", "0"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_Lkqt5_14.png", "TableImg_N6z5s_14.png"], "original_data_index": 7318, "original_sql": "SELECT COUNT(Rank), Residence, Player_name, COUNT(Player_ID), MAX(Votes), Sponsor_name, COUNT(Gender), COUNT(Occupation) FROM player WHERE Rank <> \"1st\" OR \"Player_ID\" >= 13 OR \"Votes\" = 4947 UNION ALL SELECT COUNT(Rank), Residence, Player_name, COUNT(Player_ID), MAX(Votes), Sponsor_name, COUNT(Gender), COUNT(Occupation) FROM player WHERE Occupation = \"Retired\" AND Player_name = \"Jim Maloway\""} {"question": "Which driver IDs are equal to 5 in the driver table, but not equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_297lz_12.png", "TableImg_969nm_5.png"], "original_data_index": 7324, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are less than 8, excluding those driver IDs that are also less than or equal to 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_77pa3_12.png", "TableImg_A8une_5.png"], "original_data_index": 7325, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table and all driver IDs except 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O3kwo_12.png", "TableImg_5lx8a_5.png"], "original_data_index": 7322, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "For each aircraft, what is the ID of that aircraft and the ID of the aircraft with the smallest ID that is associated with the same airport?", "answer": {"columns": ["Aircraft_ID", "MIN(T2.Aircraft_ID)"], "index": [0], "data": [["1", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F5i6b_5.png", "TableImg_Dbxld_4.png"], "original_data_index": 7323, "original_sql": "SELECT T1.Aircraft_ID, MIN(T2.Aircraft_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs less than 9, excluding any driver IDs that are also in the school bus list, unless that driver ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1br76_12.png", "TableImg_Gwec4_5.png"], "original_data_index": 7328, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which branch IDs are found in the membership register for years other than 2016, and also appear in the purchase table with a branch ID not equal to 3 or a member ID not equal to 4?", "answer": {"columns": ["Branch_ID"], "index": [0, 1], "data": [["1"], ["6"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_X361x_8.png", "TableImg_Pxhtn_8.png"], "original_data_index": 7326, "original_sql": "SELECT Branch_ID FROM membership_register_branch WHERE Register_Year <> \"2016\" INTERSECT SELECT Branch_ID FROM purchase WHERE Branch_ID != \"3\" OR \"Member_ID\" <> 4"} {"question": "Can you give me a list of employee IDs from the evaluation table where the ID is not \"7\", or the bonus is at least $3200, or the year awarded is \"2015\", combined with a list of employee IDs from the hiring table where the employee is full-time, or the shop ID is less than 1 and the start year is not \"2009\", or the employee ID is not 5?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["1"], ["10"], ["2"], ["4"], ["7"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Ytcl4_6.png", "TableImg_Pd2rb_7.png"], "original_data_index": 7329, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Employee_ID != \"7\" OR \"Bonus\" >= 3200.0 OR Year_awarded = \"2015\" UNION SELECT Employee_ID FROM hiring WHERE Is_full_time = \"T\" OR \"Shop_ID\" < 1 AND Start_from != \"2009\" OR \"Employee_ID\" <> 5"} {"question": "Can you give me the profits, number of companies with the same sales, company ID, headquarters, number of companies in the same industry, assets, and number of companies with the same name for companies where profits are greater than 14.2 and the company isn't \"China Construction Bank\", or the headquarters isn't in China, or the market value is 294.7, or the company ID isn't 16 and assets are 328.7 and sales are 68.7, but exclude those companies where the company ID is greater than 1, or the name isn't \"Agricultural Bank of China\", or profits are greater than 20.6 and assets are less than or equal to 209.5 and the headquarters isn't in the USA and the industry is banking?", "answer": {"columns": ["Profits_in_Billion", "COUNT(Sales_in_Billion)", "Company_ID", "Headquarters", "COUNT(Industry)", "Assets_in_Billion", "COUNT(Name)"], "index": [0], "data": [["41.1", "18", "1", "USA", "18", "331.1", "18"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_J93v3_19.png", "TableImg_Azj03_19.png"], "original_data_index": 7327, "original_sql": "SELECT Profits_in_Billion, COUNT(Sales_in_Billion), Company_ID, Headquarters, COUNT(Industry), Assets_in_Billion, COUNT(Name) FROM company WHERE \"Profits_in_Billion\" > 14.2 AND Name != \"China Construction Bank\" OR Headquarters != \"China\" OR \"Market_Value_in_Billion\" = 294.7 OR \"Company_ID\" <> 16.0 AND \"Assets_in_Billion\" = 328.7 AND \"Sales_in_Billion\" = 68.7 EXCEPT SELECT Profits_in_Billion, COUNT(Sales_in_Billion), Company_ID, Headquarters, COUNT(Industry), Assets_in_Billion, COUNT(Name) FROM company WHERE \"Company_ID\" > 1.0 OR Name <> \"Agricultural Bank of China\" OR \"Profits_in_Billion\" > 20.6 AND \"Assets_in_Billion\" <= 209.5 AND Headquarters != \"USA\" AND Industry = \"Banking\""} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 9, combined with a list of driver IDs from the school_bus table where each ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hj89t_12.png", "TableImg_Pgnoq_5.png"], "original_data_index": 7333, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including those that are not 12 from the driver table, and those that are equal to 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_29zcs_12.png", "TableImg_G5trx_5.png"], "original_data_index": 7334, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that aren't 12 with those from the school bus table that are less than 7, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_13faj_12.png", "TableImg_8b91j_5.png"], "original_data_index": 7335, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the address details and address IDs for all addresses, including those with an address ID of 5 or less, and also those where the address details are not \"IE\" or the address ID is less than 5?", "answer": {"columns": ["address_details", "address_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["IT", "0"], ["MX", "1"], ["DE", "2"], ["ES", "3"], ["ES", "4"], ["IE", "5"], ["IT", "0"], ["MX", "1"], ["DE", "2"], ["ES", "3"], ["ES", "4"], ["US", "6"], ["PT", "7"], ["MX", "9"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Tasue_10.png", "TableImg_15yhu_10.png"], "original_data_index": 7336, "original_sql": "SELECT address_details, address_id FROM Addresses WHERE \"address_id\" <= 5 UNION ALL SELECT address_details, address_id FROM Addresses WHERE address_details != \"IE\" OR \"address_id\" < 5"} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 10, but only if they don't appear in the school bus table with a driver ID of 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1tj5x_12.png", "TableImg_Zboyk_5.png"], "original_data_index": 7337, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list all the positions held by members, including those who aren't student 1001, and also including positions from any member if their club ID is 4 or less, or if they aren't student 1007, or if their position is Vice-President?", "answer": {"columns": ["Position"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Vice-President"], ["CTO"], ["Teaching Coordinator"], ["President"], ["Vice-President"], ["CTO"], ["Teaching Coordinator"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_7pegq_4.png", "TableImg_Hq6xe_4.png"], "original_data_index": 7338, "original_sql": "SELECT Position FROM Member_of_club WHERE \"StuID\" <> 1001 UNION ALL SELECT Position FROM Member_of_club WHERE \"ClubID\" <= 4 OR \"StuID\" <> 1007 OR Position = \"Vice-President\""} {"question": "What are the aircraft IDs that are greater than or equal to 2, excluding those aircraft IDs less than 2 that are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2tryb_5.png", "TableImg_Cn2tc_4.png"], "original_data_index": 7339, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs, where the IDs are not equal to 5 from the driver table, combined with a list of driver IDs less than 9 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N0nvo_12.png", "TableImg_Mya14_5.png"], "original_data_index": 7340, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me the total ClubID for each student who is a member of a club, but only for clubs where the president isn't part of \"Hopkins Student Enterprises\"?", "answer": {"columns": ["SUM(T1.ClubID)", "StuID"], "index": [0], "data": [["1", "1001"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_A5ayq_4.png", "TableImg_5g0g6_4.png"], "original_data_index": 7341, "original_sql": "SELECT SUM(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE Position = \"President\" AND ClubName <> \"Hopkins Student Enterprises\""} {"question": "Can you list the title and ID of all items, including those with an ID of 5 or greater, along with all items that don't have the title \"cup\" or don't have an ID of 2?", "answer": {"columns": ["title", "i_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["comb", "5"], ["blue hoodie", "6"], ["cup", "7"], ["pear", "0"], ["orange", "1"], ["apple", "2"], ["shampoo", "3"], ["avocado", "4"], ["comb", "5"], ["blue hoodie", "6"], ["cup", "7"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_Wnfgh_8.png", "TableImg_Vi2y5_8.png"], "original_data_index": 7331, "original_sql": "SELECT title, i_id FROM item WHERE \"i_id\" >= 5 UNION ALL SELECT title, i_id FROM item WHERE title <> \"cup\" OR \"i_id\" != 2"} {"question": "What is the average item ID for items that are not item ID 1 or have the title \"avocado\", combined with the average item ID for reviews where the author ID is greater than 5?", "answer": {"columns": ["AVG(i_id)"], "index": [0, 1], "data": [["3.8571428571"], ["5.0"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Jksvl_8.png", "TableImg_Y77je_7.png"], "original_data_index": 7332, "original_sql": "SELECT AVG(i_id) FROM item WHERE \"i_id\" <> 1 OR title = \"avocado\" UNION ALL SELECT AVG(i_id) FROM review WHERE \"a_id\" > 5"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 4, and also list the aircraft IDs from the airport_aircraft table that are greater than or equal to 3, combining both lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cycbz_5.png", "TableImg_Lnxmq_4.png"], "original_data_index": 7330, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of employee IDs that are either greater than 573284895 in the certificate table or associated with an aid greater than or equal to 12 in the certificate table, combined with a list of employee IDs from the employee table where the employee's name is not Donald King?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46], "data": [["141582651"], ["142519864"], ["142519864"], ["269734834"], ["269734834"], ["269734834"], ["269734834"], ["274878974"], ["390487451"], ["390487451"], ["550156548"], ["552455318"], ["567354612"], ["567354612"], ["574489456"], ["574489456"], ["574489457"], ["242518965"], ["141582651"], ["11564812"], ["567354612"], ["552455318"], ["550156548"], ["390487451"], ["274878974"], ["254099823"], ["356187925"], ["355548984"], ["310454876"], ["489456522"], ["489221823"], ["548977562"], ["310454877"], ["142519864"], ["269734834"], ["287321212"], ["552455348"], ["248965255"], ["159542516"], ["348121549"], ["90873519"], ["486512566"], ["619023588"], ["556784565"], ["573284895"], ["574489456"], ["574489457"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_9xkp1_69.png", "TableImg_83z0z_31.png"], "original_data_index": 7343, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" > 573284895 OR \"aid\" >= 12 UNION ALL SELECT eid FROM employee WHERE name != \"Donald King\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bwwzq_12.png", "TableImg_K64fy_5.png"], "original_data_index": 7345, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me the head IDs from the head table, excluding any head IDs from the management table where the department ID is less than 7, and only including heads who either don't have a head ID of 1, or whose name isn't Stewart Cink, are younger than 43, and weren't born in Alabama?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["4"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Mjbor_10.png", "TableImg_Ta966_5.png"], "original_data_index": 7342, "original_sql": "SELECT head_ID FROM head WHERE \"head_ID\" <> 1 OR name != \"Stewart Cink\" AND \"age\" < 43.0 AND born_state <> \"Alabama\" EXCEPT SELECT head_ID FROM management WHERE \"department_ID\" < 7"} {"question": "Can you give me the state, creation date, contestant number, vote ID, and phone number from the votes table for entries where either the vote ID is not 3 and the phone number is greater than 6209222712 and the creation date is \"2018-03-09 19:03:36\", or the contestant number is not 3 and the state is \"CA\", combined with all entries from the votes table where the phone number is greater than or equal to 5112677315?", "answer": {"columns": ["state", "created", "contestant_number", "vote_id", "phone_number"], "index": [0, 1, 2, 3], "data": [["CA", "2018-03-09 19:03:39", "3", "3", "6209222712"], ["NJ\n", "2018-03-09 19:03:40", "5", "5", "5112677315"], ["NY", "2018-03-09 19:03:21", "2", "1", "7182887233"], ["NY", "2018-03-09 19:03:36", "3", "2", "7148407040"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_De3rv_4.png", "TableImg_Z0qta_4.png"], "original_data_index": 7344, "original_sql": "SELECT state, created, contestant_number, vote_id, phone_number FROM VOTES WHERE \"vote_id\" != 3 AND \"phone_number\" > 6209222712 AND created = \"2018-03-09 19:03:36\" OR \"contestant_number\" <> 3 AND state = \"CA\" UNION SELECT state, created, contestant_number, vote_id, phone_number FROM VOTES WHERE \"phone_number\" >= 5112677315"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 5 and also less than 9, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_918io_12.png", "TableImg_8kfvk_5.png"], "original_data_index": 7348, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, where each ID is 5 or greater, but excluding any driver IDs that also appear in the school bus list, unless that ID is 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bbmni_12.png", "TableImg_G1l88_5.png"], "original_data_index": 7349, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, and also include the aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sq26w_5.png", "TableImg_Lsl3o_4.png"], "original_data_index": 7347, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me the driver ID that appears exactly once as driver in the driver table, where the ID is 8, but does not appear as a driver ID in the school_bus table if that ID is greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_67de6_12.png", "TableImg_8z51i_5.png"], "original_data_index": 7346, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are 3 or greater from the driver table, excluding any driver IDs that are 7 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hj947_12.png", "TableImg_S8zli_5.png"], "original_data_index": 7352, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 3, that appear in the aircraft table, but not in the airport_aircraft table where the aircraft ID is 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B896j_5.png", "TableImg_8dulk_4.png"], "original_data_index": 7350, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of ranks from match results where the Club ID is less than 2 and the rank is 4 or higher, or the gold is greater than 7, or the bronze is equal to 8, combined with a list of ranks from players where the votes are greater than 14097 and the residence is not Winnipeg, or the rank is 3rd and the player name is not Rachel Heinrichs, or the occupation is not Product Consultant - MLCC, or the gender is not female?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["1st"], ["2nd"], ["3rd"], ["4th"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Hg7h2_6.png", "TableImg_Yw3lu_14.png"], "original_data_index": 7351, "original_sql": "SELECT Rank FROM match_result WHERE \"Club_ID\" < 2 AND \"Rank\" >= 4 OR \"Gold\" > 7 OR \"Bronze\" = 8 UNION SELECT Rank FROM player WHERE \"Votes\" > 14097 AND Residence != \"Winnipeg\" OR Rank = \"3rd\" AND Player_name <> \"Rachel Heinrichs\" OR Occupation != \"Product Consultant - MLCC\" OR Gender != \"F\""} {"question": "Which driver IDs are both greater than or equal to 5 in the driver table and less than or equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aioj8_12.png", "TableImg_518oo_5.png"], "original_data_index": 7353, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of aircraft IDs that are both less than or equal to 5, and also not equal to 1 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D1shj_5.png", "TableImg_Td05w_4.png"], "original_data_index": 7354, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What is the largest pet ID that is both less than or equal to 2003 and not owned by student 1002, and also the largest pet ID of a pet weighing less than 13.4 that isn't a dog?", "answer": {"columns": ["MAX(PetID)"], "index": [0], "data": [["2001"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Evx9w_3.png", "TableImg_Gfr1q_3.png"], "original_data_index": 7355, "original_sql": "SELECT MAX(PetID) FROM Has_Pet WHERE \"PetID\" <= 2003 AND \"StuID\" <> 1002 INTERSECT SELECT MAX(PetID) FROM Pets WHERE \"weight\" < 13.4 AND PetType != \"dog\""} {"question": "How many students with ID 1031 have allergies, and how many students have an ID greater than 1001, are older than 20, have a major other than 50 and a first name of Andy, have an advisor other than 8722 and a city code other than PHL, or are not male?", "answer": {"columns": ["COUNT(StuID)"], "index": [0, 1], "data": [["3"], ["34"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Xtge2_59.png", "TableImg_2pjva_34.png"], "original_data_index": 7356, "original_sql": "SELECT COUNT(StuID) FROM Has_Allergy WHERE \"StuID\" = 1031 UNION SELECT COUNT(StuID) FROM Student WHERE \"StuID\" > 1001 OR \"Age\" > 20 OR \"Major\" <> 50 AND Fname = \"Andy\" OR \"Advisor\" != 8722 AND city_code != \"PHL\" OR Sex != \"M\""} {"question": "Can you give me the IDs of drivers with an ID of 2 or less, excluding those drivers whose IDs are 10 or less and are also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1td5l_12.png", "TableImg_Zq7bk_5.png"], "original_data_index": 7361, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, from the driver table, but then remove any driver IDs that are also driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5u54u_12.png", "TableImg_Ovub9_5.png"], "original_data_index": 7359, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me the Aircraft IDs that are less than 5 when grouped in the aircraft table, and also greater than 2 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5ss60_5.png", "TableImg_Ms92y_4.png"], "original_data_index": 7358, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of student IDs, including those with allergy ID 1027, and also those who are male, not advised by 8722, whose first name isn't Michael, or whose last name is Schultz, or who are not 19 years old and don't have a major of 600?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["1004"], ["1005"], ["1006"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1016"], ["1017"], ["1019"], ["1020"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Lvx7s_59.png", "TableImg_Wnsr9_34.png"], "original_data_index": 7360, "original_sql": "SELECT StuID FROM Has_Allergy WHERE \"StuID\" = 1027 UNION SELECT StuID FROM Student WHERE \"Advisor\" <> 8722 AND Sex = \"M\" AND Fname != \"Michael\" OR LName = \"Schultz\" OR \"Age\" <> 19 AND \"Major\" != 600"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 9, excluding the driver ID 9 if it appears in the school bus assignments?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Et3j6_12.png", "TableImg_K2pgf_5.png"], "original_data_index": 7362, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Could you list the names of documents that have a description other than \"n\", excluding those documents that have a description other than \"f\", a Template ID less than 4, and Other Details not equal to \"None\"?", "answer": {"columns": ["Document_Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Introduction of OS"], ["Understanding DB"], ["Summer Show"], ["Robbin CV"], ["Welcome to NY"], ["Data base"], ["Customer reviews"], ["Do not panic"], ["How Google people work"], ["Learning French"], ["How to write a CV"], ["How to read a book"], ["Palm reading"], ["A history of Arts"], ["About Korea"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_O867z_15.png", "TableImg_P86qk_15.png"], "original_data_index": 7363, "original_sql": "SELECT Document_Name FROM Documents WHERE Document_Description != \"n\" NOT IN (SELECT Document_Name FROM Documents WHERE Document_Description <> \"f\" AND \"Template_ID\" < 4 AND Other_Details <> \"None\")"} {"question": "Which driver IDs, excluding driver ID 3, are also driver IDs that are greater than or equal to 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J42z8_12.png", "TableImg_J8qqr_5.png"], "original_data_index": 7365, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7jhcf_12.png", "TableImg_Lv04t_5.png"], "original_data_index": 7364, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are less than 8, excluding any driver IDs that are also equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iveq2_12.png", "TableImg_Peiqa_5.png"], "original_data_index": 7366, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What aircraft IDs, excluding ID 3, are also aircraft IDs greater than 1 found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3xbeb_5.png", "TableImg_Wopp7_4.png"], "original_data_index": 7367, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of Template IDs from documents where the description isn't \"h\" or the Template ID is less than 1, combined with a list of Template IDs from templates where the details aren't empty?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["4"], ["6"], ["7"], ["8"], ["10"], ["11"], ["14"], ["20"], ["21"], ["22"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Ve4pz_15.png", "TableImg_O5hjx_20.png"], "original_data_index": 7368, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Description != \"h\" OR \"Template_ID\" < 1 UNION SELECT Template_ID FROM Templates WHERE Template_Details != \"\""} {"question": "Can you give me a list of driver IDs from the driver table that are less than 4, combined with a list of driver IDs from the school_bus table that are not equal to 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1ush7_12.png", "TableImg_Ouzzh_5.png"], "original_data_index": 7369, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver IDs less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3rj79_12.png", "TableImg_8bzfj_5.png"], "original_data_index": 7370, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me the IDs of drivers, up to and including ID 5, excluding the IDs of school bus drivers that are ID 4 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3tj58_12.png", "TableImg_Mm2u4_5.png"], "original_data_index": 7373, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the head IDs and temporary acting status for management where the department ID is greater than 2, the head ID is 4, and temporary acting is \"Yes\", combined with the head IDs and temporary acting status for management where the department ID is 7 and either the head ID is less than 5 or temporary acting is \"No\"?", "answer": {"columns": ["head_ID", "temporary_acting"], "index": [0, 1, 2], "data": [["3", "No"], ["4", "Yes"], ["10", "No"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_Dlemx_5.png", "TableImg_1s6wy_5.png"], "original_data_index": 7372, "original_sql": "SELECT head_ID, temporary_acting FROM management WHERE \"department_ID\" > 2 AND temporary_acting = \"Yes\" AND \"head_ID\" = 4 UNION SELECT head_ID, temporary_acting FROM management WHERE \"department_ID\" = 7 AND \"head_ID\" < 5 OR temporary_acting = \"No\""} {"question": "Can you give me the ID, principal activities, and place of incorporation for all companies where the ID is 8, or the principal activity is not \"Travel agency\", or the name is not \"Cathay Pacific Catering Services (HK) Limited\", combined with companies where the ID is 13 or greater, or are not incorporated in Hong Kong and do laundry, or are a subsidiary?", "answer": {"columns": ["id", "Principal_activities", "Incorporated_in"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1", "Airline", "China"], ["2", "Cargo airline", "China"], ["3", "Cargo airline", "Hong Kong"], ["4", "Airline", "Hong Kong"], ["5", "Cargo airline", "Hong Kong"], ["6", "Catering services", "Hong Kong"], ["7", "Cargo", "Hong Kong"], ["8", "Travel agency", "Hong Kong"], ["9", "Travel agency", "Hong Kong"], ["10", "Ground handling", "Hong Kong"], ["11", "Laundry", "Hong Kong"], ["12", "Laundry", "Taiwan"], ["13", "Catering services", "Vietnam"], ["14", "Catering services", "Canada"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Qe0ti_14.png", "TableImg_Pve0c_14.png"], "original_data_index": 7371, "original_sql": "SELECT id, Principal_activities, Incorporated_in FROM operate_company WHERE \"id\" = 8 OR Principal_activities <> \"Travel agency\" OR name <> \"Cathay Pacific Catering Services (HK) Limited\" UNION SELECT id, Principal_activities, Incorporated_in FROM operate_company WHERE \"id\" >= 13 OR Incorporated_in != \"Hong Kong\" AND Principal_activities = \"Laundry\" OR Type = \"Subsidiary\""} {"question": "Could you give me the publisher, price, publication date, and publication ID for all publications from Wiley or those with a price of at least 4,100,000, excluding those that have a price of exactly 2,000,000, a publication ID that is not 4, and a book ID of 5 or greater?", "answer": {"columns": ["Publisher", "Price", "Publication_Date", "Publication_ID"], "index": [0, 1, 2, 3], "data": [["Pearson", "15000000", "August 2008", "1"], ["Thomson Reuters", "6000000", "March 2008", "2"], ["Wiley", "3000000", "October 2005", "4"], ["Wiley", "4100000", "June 2006", "3"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_7qqxn_7.png", "TableImg_2h3nf_7.png"], "original_data_index": 7374, "original_sql": "SELECT Publisher, Price, Publication_Date, Publication_ID FROM publication WHERE Publisher = \"Wiley\" OR \"Price\" >= 4100000.0 EXCEPT SELECT Publisher, Price, Publication_Date, Publication_ID FROM publication WHERE \"Price\" = 2000000.0 AND \"Publication_ID\" != 4 AND \"Book_ID\" >= 5"} {"question": "Can you give me a list of aircraft IDs that are greater than 4 and also not equal to 1 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gtsb7_5.png", "TableImg_P198y_4.png"], "original_data_index": 7375, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of aircraft IDs that are greater than 3, excluding those aircraft IDs from the airport aircraft list that are greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qt63r_5.png", "TableImg_S14yi_4.png"], "original_data_index": 7379, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which driver has an ID of 8, excluding any drivers who have an ID other than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F19lg_12.png", "TableImg_G4179_5.png"], "original_data_index": 7376, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 9, and those from the school bus table excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cnni7_12.png", "TableImg_E0qrr_5.png"], "original_data_index": 7378, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the creation date, state, phone number, and vote ID for votes that have a vote ID other than 1, and also meet at least one of these conditions: a vote ID less than 2, a phone number different from 6209222712 with a contestant number greater than 5, a state other than NY, or a creation date of March 9th, 2018 at 7:03:36 PM?", "answer": {"columns": ["created", "state", "phone_number", "vote_id"], "index": [0, 1, 2], "data": [["2018-03-09 19:03:36", "NY", "7148407040", "2"], ["2018-03-09 19:03:39", "CA", "6209222712", "3"], ["2018-03-09 19:03:40", "NJ\n", "5112677315", "5"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_Gzzbl_4.png", "TableImg_Qx6f2_4.png"], "original_data_index": 7377, "original_sql": "SELECT created, state, phone_number, vote_id FROM VOTES WHERE \"vote_id\" <> 1 INTERSECT SELECT created, state, phone_number, vote_id FROM VOTES WHERE \"vote_id\" < 2 OR \"phone_number\" <> 6209222712 AND \"contestant_number\" > 5 OR state != \"NY\" OR created = \"2018-03-09 19:03:36\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 2, and also list the aircraft IDs from the airport_aircraft table that are greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C6g00_5.png", "TableImg_Vwaf2_4.png"], "original_data_index": 7380, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which driver IDs are less than 8 and also greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_402ep_12.png", "TableImg_Mnek2_5.png"], "original_data_index": 7382, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which aircraft IDs are both greater than or equal to 3 and also not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C6k5d_5.png", "TableImg_Wpeei_4.png"], "original_data_index": 7383, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 3, and those from the school bus table that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gaxp2_12.png", "TableImg_5v79p_5.png"], "original_data_index": 7381, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 5, and also include the aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sjgnc_5.png", "TableImg_Oy32h_4.png"], "original_data_index": 7384, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "For each aircraft, what is the highest airport ID associated with it?", "answer": {"columns": ["Aircraft_ID", "MAX(T2.Airport_ID)"], "index": [0], "data": [["3", "9"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1vinl_5.png", "TableImg_Qhub6_4.png"], "original_data_index": 7387, "original_sql": "SELECT T1.Aircraft_ID, MAX(T2.Airport_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Which driver has an ID of 5, excluding any drivers with an ID other than 9 who are associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ufm8e_12.png", "TableImg_3qygy_5.png"], "original_data_index": 7388, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What bonuses were given to employees other than employee 4, excluding any bonuses that were not exactly 2900 or were not awarded in 2016?", "answer": {"columns": ["Bonus"], "index": [0], "data": [["2900"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_Lfh18_6.png", "TableImg_Mwlli_6.png"], "original_data_index": 7386, "original_sql": "SELECT Bonus FROM evaluation WHERE Employee_ID != \"4\" EXCEPT SELECT Bonus FROM evaluation WHERE \"Bonus\" <> 2900.0 OR Year_awarded != \"2016\""} {"question": "Can you show me the number of issues and book IDs, grouped by the number of issues, but only for publishers that are not \"Bertelsmann\" or have a price of 2,000,000 or less?", "answer": {"columns": ["Issues", "Book_ID"], "index": [0, 1, 2, 3, 4], "data": [["1", "7"], ["4", "3"], ["5", "10"], ["6", "1"], ["12", "5"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_74987_10.png", "TableImg_G7m43_7.png"], "original_data_index": 7385, "original_sql": "SELECT T1.Issues, T2.Book_ID FROM book as T1 JOIN publication as T2 ON T1.Book_ID == T2.Book_ID GROUP BY Issues HAVING Publisher <> \"Bertelsmann\" OR Price <= 2000000.0"} {"question": "Can you list the aircraft IDs that are greater than 4 from the aircraft table, and combine that with a list of aircraft IDs that are less than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H0tuk_5.png", "TableImg_Ljik1_4.png"], "original_data_index": 7389, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the total store ID and highest product ID for products where the store ID is at least 2 and the product ID is less than 3, combined with the total store ID and highest product ID for products where the store ID is greater than 5 and the product ID is at least 2?", "answer": {"columns": ["SUM(Store_ID)", "MAX(Product_ID)"], "index": [0, 1], "data": [["15.0", "2.0"], ["", ""]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_G1jbo_15.png", "TableImg_Cw78m_15.png"], "original_data_index": 7390, "original_sql": "SELECT SUM(Store_ID), MAX(Product_ID) FROM store_product WHERE \"Store_ID\" >= 2 AND \"Product_ID\" < 3 UNION ALL SELECT SUM(Store_ID), MAX(Product_ID) FROM store_product WHERE \"Store_ID\" > 5 AND \"Product_ID\" >= 2"} {"question": "Which driver IDs are both greater than 3 and also less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rq0oe_12.png", "TableImg_Ea0oy_5.png"], "original_data_index": 7394, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 2, excluding those driver IDs that are not equal to 3 and are found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5jodv_12.png", "TableImg_42uo5_5.png"], "original_data_index": 7392, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 9, combined with a list of driver IDs from the school_bus table that are less than 4, making sure to only include each driver ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dk25q_12.png", "TableImg_H8vnd_5.png"], "original_data_index": 7391, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are exactly 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2639e_12.png", "TableImg_Aotuk_5.png"], "original_data_index": 7393, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 4 or greater, combined with a list of driver IDs from the school_bus table where the ID is not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vmxkw_12.png", "TableImg_84stk_5.png"], "original_data_index": 7396, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 6, and those from the school bus table that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oq35c_12.png", "TableImg_Jj08n_5.png"], "original_data_index": 7395, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are less than or equal to 4 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2seej_12.png", "TableImg_Zh6wj_5.png"], "original_data_index": 7397, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Could you list the company IDs from the company table that meet either of these conditions: having profits of at least 25.7 billion and being headquartered in the USA and having a market value not equal to 202.2 billion, or having a name other than Chevron and a company ID greater than 5, but excluding any company IDs that are also found in the employment table where the people ID is less than or equal to 7?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["6"], ["8"], ["9"], ["10"], ["12"], ["14"], ["16"], ["18"], ["19"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Izxtu_19.png", "TableImg_Nd0hs_5.png"], "original_data_index": 7398, "original_sql": "SELECT Company_ID FROM company WHERE \"Profits_in_Billion\" >= 25.7 AND Headquarters = \"USA\" AND \"Market_Value_in_Billion\" <> 202.2 OR Name <> \"Chevron\" AND \"Company_ID\" > 5.0 EXCEPT SELECT Company_ID FROM employment WHERE \"People_ID\" <= 7"} {"question": "Can you give me a list of driver IDs that are not equal to 2 from the driver table, excluding any driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqaaq_12.png", "TableImg_Kuh6g_5.png"], "original_data_index": 7400, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are equal to 1 in the driver table, but not equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Igjq4_12.png", "TableImg_Tvmjv_5.png"], "original_data_index": 7402, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are less than 9, excluding those driver IDs that also appear in the school bus table where the driver ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bbwzq_12.png", "TableImg_Wm9li_5.png"], "original_data_index": 7401, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What is the highest feature ID from the Other_Available_Features table where the feature ID is less than or equal to 2, the feature name is not \"BurglarAlarm\", and the feature type code is not \"Amenity\", combined with the highest feature ID from the Other_Property_Features table where the property feature description is not \"autem\", the feature ID is not 2, and the property ID is 15?", "answer": {"columns": ["MAX(feature_id)"], "index": [0, 1], "data": [[""], ["3.0"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_8q947_3.png", "TableImg_T33pi_15.png"], "original_data_index": 7399, "original_sql": "SELECT MAX(feature_id) FROM Other_Available_Features WHERE \"feature_id\" <= 2 AND feature_name <> \"BurglarAlarm\" AND feature_type_code != \"Amenity\" UNION ALL SELECT MAX(feature_id) FROM Other_Property_Features WHERE property_feature_description <> \"autem\" AND \"feature_id\" != 2 AND \"property_id\" = 15"} {"question": "Which driver IDs are both greater than 6 and appear in the driver table, and also greater than or equal to 9 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0eomi_12.png", "TableImg_Zfv6i_5.png"], "original_data_index": 7404, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 6, and is not a driver ID from the school bus list, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cs1lx_12.png", "TableImg_Wq8v7_5.png"], "original_data_index": 7405, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 4 and not equal to 10, considering only the driver IDs present in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cxp0e_12.png", "TableImg_J1syw_5.png"], "original_data_index": 7403, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are less than 2, excluding any driver IDs that are also 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hykj2_12.png", "TableImg_23hyb_5.png"], "original_data_index": 7406, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the aircraft IDs that are less than 4 from the aircraft table, and also include aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zh2ex_5.png", "TableImg_H2ulr_4.png"], "original_data_index": 7409, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you list all aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only those greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uizsg_5.png", "TableImg_849d5_4.png"], "original_data_index": 7408, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you give me a list of aircraft IDs that are less than or equal to 4, and also appear in a list of aircraft IDs that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1kg2g_5.png", "TableImg_Oujym_4.png"], "original_data_index": 7407, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs that are not 10 and also appear as driver IDs for school buses, where those school bus driver IDs are at least 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dr50g_12.png", "TableImg_Pfcfj_5.png"], "original_data_index": 7411, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 3, excluding any driver IDs that also appear in the school_bus table with a driver ID of 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9mbv5_12.png", "TableImg_Th2og_5.png"], "original_data_index": 7413, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 11 and also not equal to 9, considering only unique driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F2vz0_12.png", "TableImg_Vmt4z_5.png"], "original_data_index": 7412, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the district name, ID, headquartered city, and city population for districts headquartered in Gujrat City, along with all districts that are not named Chiniot District, or have a city area less than 10, or a city population less than 134936 and are not headquartered in Chakwal City, and also don't have a district ID of 8?", "answer": {"columns": ["District_name", "District_ID", "Headquartered_City", "City_Population"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Gujrat District", "10", "Gujrat City", "328512"], ["Attock District", "1", "Attock City", "94620"], ["Bahawalnagar District", "2", "Bahawalnagar City", "134936"], ["Bahawalpur District", "3", "Bahawalpur City", "530438"], ["Bhakkar District", "4", "Bhakkar City", "89380"], ["Chakwal District", "5", "Chakwal City", "113524"], ["Dera Ghazi Khan District", "7", "Dera Ghazi Khan City", "464742"], ["Faisalabad District", "8", "Faisalabad City", "2793721"], ["Gujranwala District", "9", "Gujranwala City", "1526168"], ["Gujrat District", "10", "Gujrat City", "328512"], ["Hafizabad District", "11", "Hafizabad City", "165936"], ["Jhang District", "12", "Jhang City", "365198"], ["Jhelum District", "13", "Jhelum City", "172073"], ["Kasur District", "14", "Kasur City", "314617"], ["Khanewal District", "15", "Khanewal City", "165038"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_Hr2ne_15.png", "TableImg_Eifhg_15.png"], "original_data_index": 7410, "original_sql": "SELECT District_name, District_ID, Headquartered_City, City_Population FROM district WHERE Headquartered_City = \"Gujrat City\" UNION ALL SELECT District_name, District_ID, Headquartered_City, City_Population FROM district WHERE District_name != \"Chiniot District\" OR \"City_Area\" < 10.0 OR \"City_Population\" < 134936.0 AND Headquartered_City <> \"Chakwal City\" AND \"District_ID\" != 8"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 2, that appear in the aircraft table but not in the airport_aircraft table where the aircraft ID is less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5pvjh_5.png", "TableImg_Klogh_4.png"], "original_data_index": 7417, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of driver IDs less than 10, excluding those driver IDs that are not equal to 3 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kyyg0_12.png", "TableImg_Tk01y_5.png"], "original_data_index": 7416, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 6, excluding any driver IDs from the school_bus table that are equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Woqy0_12.png", "TableImg_Ei3nd_5.png"], "original_data_index": 7414, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the average donor names, minimum endowment IDs, count of school IDs, and amounts from the endowment table where either the amount is not 8.99 or the school ID is greater than 5, excluding those where the amount is greater than 9.83 or the school ID is 5 and the endowment ID is less than 8?", "answer": {"columns": ["AVG(donator_name)", "MIN(endowment_id)", "COUNT(School_id)", "amount"], "index": [0], "data": [["0", "1", "10", "9.51"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_0owx4_11.png", "TableImg_9hm8w_11.png"], "original_data_index": 7415, "original_sql": "SELECT AVG(donator_name), MIN(endowment_id), COUNT(School_id), amount FROM endowment WHERE \"amount\" <> 8.99 OR \"School_id\" > 5 EXCEPT SELECT AVG(donator_name), MIN(endowment_id), COUNT(School_id), amount FROM endowment WHERE \"amount\" > 9.83 OR \"School_id\" = 5 AND \"endowment_id\" < 8"} {"question": "Can you give me the Driver ID of drivers with ID 11, excluding any driver IDs greater than 3 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Upq7d_12.png", "TableImg_2hqg5_5.png"], "original_data_index": 7420, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5, that are in the driver table but not in the school bus table where the driver ID is less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R819d_12.png", "TableImg_E38y6_5.png"], "original_data_index": 7419, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are less than 5, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6f5u9_5.png", "TableImg_An6zt_4.png"], "original_data_index": 7421, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What is the difference between the number of clubs that don't have a Club ID of 3 and didn't start in 2009, and the number of coaches who either have a Coach ID of 3, a Club ID less than 1, a name other than Robert Chen with a rank greater than 1, or are male?", "answer": {"columns": ["COUNT(Club_ID)"], "index": [0], "data": [["4"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Mtvcg_6.png", "TableImg_Dszrj_5.png"], "original_data_index": 7418, "original_sql": "SELECT COUNT(Club_ID) FROM club WHERE \"Club_ID\" != 3 AND \"Start_year\" <> 2009 EXCEPT SELECT COUNT(Club_ID) FROM coach WHERE \"Coach_ID\" = 3 OR \"Club_ID\" < 1 OR Coach_name != \"Robert Chen\" AND \"Rank\" > 1 OR Gender = \"M\""} {"question": "Can you give me a list of driver IDs that are greater than 4 from the driver table, combined with a list of driver IDs that are greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wpwqh_12.png", "TableImg_G0weu_5.png"], "original_data_index": 7425, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 1, and also including driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8xh1j_12.png", "TableImg_Fv6s9_5.png"], "original_data_index": 7423, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the hometowns of members who either have a level greater than 6 and are from Fort Campbell, Kentucky, or whose name isn't Jeremy Jarmon, or whose member ID is 10, or whose card number isn't FS10, combined with the hometowns of members whose card number isn't RT91 and whose level is 2?", "answer": {"columns": ["Hometown"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Collierville, Tennessee"], ["Columbia, South Carolina"], ["Fort Campbell, Kentucky"], ["Hiram, Georgia"], ["Jacksonville, Florida"], ["LaGrange, Georgia"], ["Louisville, Kentucky"], ["Red Jacket, West Virginia"], ["Simpsonville, South Carolina"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_Fvydz_10.png", "TableImg_9g96t_10.png"], "original_data_index": 7422, "original_sql": "SELECT Hometown FROM member WHERE \"Level\" > 6 AND Hometown = \"Fort Campbell, Kentucky\" OR Name != \"Jeremy Jarmon\" OR \"Member_ID\" = 10 OR Card_Number != \"FS10\" UNION SELECT Hometown FROM member WHERE Card_Number != \"RT91\" AND \"Level\" = 2"} {"question": "Could you give me the effective-to date, version number, effective-from date, and template details from the templates, excluding those where the template details are not empty, the version number is 9 or greater, the template ID is 20 or less, or the effective-to date is July 8th, 1999 at 3:31 AM and the effective-from date is October 7th, 1993 at 2:33 AM, and only including templates where the effective-from date is not April 5th, 2012 at 7:11 AM and the version number is not 6, or the template details are empty, or the template type code is not PP and the effective-to date is not December 7th, 1994 at 1:26 PM?", "answer": {"columns": ["Date_Effective_To", "Version_Number", "Date_Effective_From", "Template_Details"], "index": [0, 1, 2, 3], "data": [["1973-01-12 14:13:34", "8", "2008-08-01 13:57:26", ""], ["1989-11-24 19:06:06", "0", "2005-02-20 00:31:34", ""], ["2000-10-22 11:57:12", "2", "1979-12-24 10:28:16", ""], ["2006-02-06 23:52:04", "5", "1979-10-20 21:23:20", ""]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_1cdp4_20.png", "TableImg_S9suj_20.png"], "original_data_index": 7424, "original_sql": "SELECT Date_Effective_To, Version_Number, Date_Effective_From, Template_Details FROM Templates WHERE Date_Effective_From <> \"2012-04-05 07:11:42\" AND \"Version_Number\" <> 6 OR Template_Details = \"\" OR Template_Type_Code <> \"PP\" AND Date_Effective_To <> \"1994-12-07 13:26:23\" EXCEPT SELECT Date_Effective_To, Version_Number, Date_Effective_From, Template_Details FROM Templates WHERE Template_Details != \"\" OR \"Version_Number\" >= 9 OR \"Template_ID\" <= 20 OR Date_Effective_To = \"1999-07-08 03:31:04\" AND Date_Effective_From = \"1993-10-07 02:33:04\""} {"question": "Can you give me a list of driver IDs, including driver ID 11 from the driver table and all driver IDs except 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W61f5_12.png", "TableImg_W9ny5_5.png"], "original_data_index": 7428, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are greater than 11 from the driver table, combined with a list of driver IDs that are greater than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M88ac_12.png", "TableImg_Uj2fl_5.png"], "original_data_index": 7427, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list all Driver IDs that are greater than or equal to 9 from the driver table, and also list all Driver IDs that are greater than or equal to 10 from the school_bus table, combining the two lists into one?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6uz6f_12.png", "TableImg_Ye39n_5.png"], "original_data_index": 7426, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are both greater than 7 and present in the driver table, and also greater than or equal to 9 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_66pby_12.png", "TableImg_Azvir_5.png"], "original_data_index": 7431, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs that are not equal to 6, excluding any driver IDs that are less than 4 and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Djt9v_12.png", "TableImg_Kjt5o_5.png"], "original_data_index": 7429, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are less than 12 from the driver table, combined with a list of driver IDs that are 10 or less from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bm4vj_12.png", "TableImg_8mshb_5.png"], "original_data_index": 7432, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What feature type codes are present in both the available features list (excluding features with ID 2 or named \"BurglarAlarm\" or described as \"Burglar Alarm\" and not of type \"Amenity\") and the reference feature types list (excluding those named \"Amenity, eg Pool.\")?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_18fwk_3.png", "TableImg_8ew7u_2.png"], "original_data_index": 7430, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE \"feature_id\" != 2 OR feature_name <> \"BurglarAlarm\" AND feature_type_code <> \"Amenity\" AND feature_description <> \"Burglar Alarm\" INTERSECT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\""} {"question": "Can you give me a list of driver IDs that are less than or equal to 1, excluding any driver IDs that are greater than 7 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bkn4j_12.png", "TableImg_Fw1hg_5.png"], "original_data_index": 7434, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the aircraft IDs that are greater than or equal to 2 in the aircraft table, combined with the aircraft IDs that are greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0k1rv_5.png", "TableImg_Dtm0h_4.png"], "original_data_index": 7433, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs, that are at least 7, are not also school bus driver IDs that are at least 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5jf6z_12.png", "TableImg_3e4xe_5.png"], "original_data_index": 7436, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs appear in both the driver table, excluding driver ID 5, and the school_bus table, including only driver IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cktal_12.png", "TableImg_6kq0k_5.png"], "original_data_index": 7435, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 9, excluding any driver IDs that are less than or equal to 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6xmdg_12.png", "TableImg_Ex7al_5.png"], "original_data_index": 7438, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are greater than 10 from the driver table, excluding any driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P7sx8_12.png", "TableImg_Rpsb4_5.png"], "original_data_index": 7439, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the Aircraft ID from the aircraft table that is equal to 2, excluding any Aircraft IDs from the airport_aircraft table that are less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9l2j3_5.png", "TableImg_0597q_4.png"], "original_data_index": 7437, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you list all the driver IDs from the driver table that are 11 or greater, combined with all the driver IDs from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ffjs2_12.png", "TableImg_Ki8xa_5.png"], "original_data_index": 7440, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7 and those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I6ge7_12.png", "TableImg_Pd214_5.png"], "original_data_index": 7443, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 8, excluding any driver IDs from the school bus list that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R3i95_12.png", "TableImg_Pvlhu_5.png"], "original_data_index": 7442, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 12, combined with a list of driver IDs from the school bus table that are equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0t4mn_12.png", "TableImg_27t03_5.png"], "original_data_index": 7444, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are 7 or greater, excluding any driver IDs less than 3 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8ckj2_12.png", "TableImg_E4sfs_5.png"], "original_data_index": 7441, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of all driver IDs, combining those from the driver table excluding ID 11 with those from the school bus table excluding ID 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ma943_12.png", "TableImg_Eoedb_5.png"], "original_data_index": 7448, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that aren't 12 with those from the school bus table that are less than 10, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3j61i_12.png", "TableImg_Ohpz4_5.png"], "original_data_index": 7449, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me the age, name, and birth state of people in the head table who are either named Billy Mayfair, not born in California, or not 43 years old, but only if they are also either older than 67 and born in Delaware, not named Dudley Hart, or have a head ID that isn't 1?", "answer": {"columns": ["age", "name", "born_state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["43", "P\u00e1draig Harrington", "Connecticut"], ["50", "Stewart Cink", "Florida"], ["52", "Dudley Hart", "California"], ["53", "Jeff Maggert", "Delaware"], ["56", "Nick Faldo", "California"], ["67", "Franklin Langham", "Connecticut"], ["67", "Tiger Woods", "Alabama"], ["68", "Sergio Garc\u00eda", "California"], ["69", "Billy Mayfair", "California"], ["69", "K. J. Choi", "Alabama"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Dnnfg_10.png", "TableImg_F8i9i_10.png"], "original_data_index": 7450, "original_sql": "SELECT age, name, born_state FROM head WHERE name = \"Billy Mayfair\" OR born_state != \"California\" OR \"age\" != 43.0 INTERSECT SELECT age, name, born_state FROM head WHERE \"age\" > 67.0 AND born_state = \"Delaware\" OR name <> \"Dudley Hart\" OR \"head_ID\" <> 1"} {"question": "Which aircraft have an ID of 2 and are also associated with airports having an aircraft ID greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_55yxb_5.png", "TableImg_Lh7vq_4.png"], "original_data_index": 7451, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 2, and those from the school bus table excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1mzn5_12.png", "TableImg_Hpq1a_5.png"], "original_data_index": 7452, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list the product IDs that are less than or equal to 2, and also list the product IDs that are not equal to 6?", "answer": {"columns": ["Product_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_7ra8s_15.png", "TableImg_Nwtfi_15.png"], "original_data_index": 7453, "original_sql": "SELECT Product_ID FROM store_product WHERE \"Product_ID\" <= 2 UNION SELECT Product_ID FROM store_product WHERE \"Product_ID\" <> 6"} {"question": "Can you give me the receipt date, document ID, shipping agent code, document status code, and receipt number from the Documents table where either the shipping agent code is \"SH\" or the receipt date is not \"2017-07-02 17:39:09\" and the document ID is less than 13 and the receipt number is not \"83\", but only if they also appear in the Documents table where the receipt date is not \"1973-11-05 21:48:53\" or the receipt number is not \"37\" and the shipping agent code is not \"FE\" or the other details are \"j\" or the document ID is 4 or the document status code is not \"done\"?", "answer": {"columns": ["receipt_date", "document_id", "shipping_agent_code", "document_status_code", "receipt_number"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1973-11-05 21:48:53", "4", "US", "done", "80"], ["1974-05-08 00:00:46", "2", "US", "done", "34"], ["1976-09-15 19:24:17", "10", "UP", "overdue", "8"], ["1982-09-27 14:52:15", "7", "SH", "working", "61"], ["1996-05-31 06:51:58", "12", "US", "overdue", "69"], ["2008-04-21 20:42:25", "1", "UP", "working", "19"], ["2014-12-25 17:22:44", "3", "UP", "done", "93"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Ty6rf_15.png", "TableImg_3fegh_15.png"], "original_data_index": 7454, "original_sql": "SELECT receipt_date, document_id, shipping_agent_code, document_status_code, receipt_number FROM Documents WHERE shipping_agent_code = \"SH\" OR receipt_date <> \"2017-07-02 17:39:09\" AND \"document_id\" < 13 AND receipt_number != \"83\" INTERSECT SELECT receipt_date, document_id, shipping_agent_code, document_status_code, receipt_number FROM Documents WHERE receipt_date != \"1973-11-05 21:48:53\" OR receipt_number <> \"37\" AND shipping_agent_code <> \"FE\" OR other_details = \"j\" OR \"document_id\" = 4 OR document_status_code <> \"done\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver IDs less than or equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xiz4u_12.png", "TableImg_Iwxab_5.png"], "original_data_index": 7455, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are less than 2, excluding any driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ixy4_12.png", "TableImg_R5ine_5.png"], "original_data_index": 7456, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 11, with those from the school bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gd0pd_12.png", "TableImg_M8knc_5.png"], "original_data_index": 7445, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list all the parties from the election table where either 13 counties are represented, the delegate isn't Shane E. Shane Pendergrass, the first election wasn't in 2003, or the committee is Appropriations and the party is less than 7 and the election ID isn't 5, combined with all the parties from the party table where the party isn't Independence, or the party ID is 6, or the governor is Peter Vallone and the comptroller is Carl McCall and the lieutenant governor isn't Mary Donohue?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["1"], ["2"], ["2"], ["3"], ["4"], ["1"], ["7"], ["Democratic"], ["Liberal"], ["Democratic"], ["Democratic"], ["Independence"], ["Working Families"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Cil36_8.png", "TableImg_Ivks2_7.png"], "original_data_index": 7447, "original_sql": "SELECT Party FROM election WHERE Counties_Represented = \"13\" OR Delegate <> \"Pendergrass, Shane E. Shane Pendergrass\" OR \"First_Elected\" != 2003.0 OR Committee = \"Appropriations\" AND \"Party\" < 7 AND \"Election_ID\" != 5 UNION ALL SELECT Party FROM party WHERE Party <> \"Independence\" OR \"Party_ID\" = 6 OR Governor = \"Peter Vallone\" AND Comptroller = \"Carl McCall\" AND Lieutenant_Governor != \"Mary Donohue\""} {"question": "Can you list the aircraft IDs that are less than 4, excluding any aircraft IDs that appear in the airport aircraft list and are equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Izp3l_5.png", "TableImg_Ci4sw_4.png"], "original_data_index": 7446, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What aircraft IDs appear in the aircraft table, specifically aircraft ID 1, but do not appear in the airport_aircraft table for aircraft IDs less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ulie1_5.png", "TableImg_O04dw_4.png"], "original_data_index": 7459, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you list all aircraft IDs that are greater than 4 from the aircraft table, and combine that with a list of all aircraft IDs that are not equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ruvv_5.png", "TableImg_Ni42z_4.png"], "original_data_index": 7460, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me the Driver ID from the driver table, specifically if the Driver ID is 11, but only if that Driver ID is not also in the school_bus table where the Driver ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ztazc_12.png", "TableImg_Bgma9_5.png"], "original_data_index": 7458, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you find the minimum age and name, along with the head ID, for heads where either the age is less than 52, the birth state isn't Connecticut, the head ID is 6 or greater, or the name isn't Nick Faldo, combined with the minimum age and name, along with the head ID, for heads where either the name isn't Jeff Maggert, the age is 43 and the head ID is 1 or less, or the birth state is Florida?", "answer": {"columns": ["MIN(age)", "MIN(name)", "head_ID"], "index": [0, 1], "data": [["43", "Billy Mayfair", "6"], ["50", "Stewart Cink", "7"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Ldcvs_10.png", "TableImg_Nugal_10.png"], "original_data_index": 7457, "original_sql": "SELECT MIN(age), MIN(name), head_ID FROM head WHERE \"age\" < 52.0 OR born_state <> \"Connecticut\" OR \"head_ID\" >= 6 OR name <> \"Nick Faldo\" UNION SELECT MIN(age), MIN(name), head_ID FROM head WHERE name <> \"Jeff Maggert\" AND \"age\" = 43.0 AND \"head_ID\" <= 1 OR born_state = \"Florida\""} {"question": "What is the number of pets that either don't have an ID of 2003 or belong to student 1001, and also the number of pets that are not dogs, or don't have an ID of 2003, or have a weight of 12.0 but are not 3 years old?", "answer": {"columns": ["COUNT(PetID)"], "index": [0], "data": [["2"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Zd2bg_3.png", "TableImg_7z03y_3.png"], "original_data_index": 7464, "original_sql": "SELECT COUNT(PetID) FROM Has_Pet WHERE \"PetID\" <> 2003 OR \"StuID\" = 1001 INTERSECT SELECT COUNT(PetID) FROM Pets WHERE PetType != \"dog\" OR \"PetID\" <> 2003 OR \"weight\" = 12.0 AND \"pet_age\" <> 3"} {"question": "Could you give me the IDs that are both from car makers that aren't Volkswagen or don't have the full name Mazda, or don't have an ID of 16, or are from country 8, and also from cars made in years other than 1978?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Vo15i_22.png", "TableImg_D5853_406.png"], "original_data_index": 7462, "original_sql": "SELECT Id FROM car_makers WHERE Maker <> \"volkswagen\" OR FullName != \"Mazda\" OR \"Id\" <> 16 OR Country = \"8\" INTERSECT SELECT Id FROM cars_data WHERE \"Year\" <> 1978"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 11, and those from the school bus table that are greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hg6wu_12.png", "TableImg_Vf9dh_5.png"], "original_data_index": 7463, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Could you give me a list of car maker names and their countries, including only those that satisfy these two conditions: first, the maker isn't 'kia' or the country isn't '2' and the name isn't 'Honda' or the ID is less than 8; and second, the country isn't '1' or the name isn't 'Peugeaut' or the ID isn't 22?", "answer": {"columns": ["FullName", "Country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["American Motor Company", "1"], ["BMW", "2"], ["Chrysler", "1"], ["Citroen", "3"], ["Daimler Benz", "2"], ["Fiat", "5"], ["Ford Motor Company", "1"], ["General Motors", "1"], ["Honda", "4"], ["Hyundai", "8"], ["Kia Motors", "8"], ["Mazda", "4"], ["Nissan Motors", "4"], ["Opel", "2"], ["Peugeaut", "3"], ["Renault", "3"], ["Saab", "6"], ["Subaru", "4"], ["Toyota", "4"], ["Triumph", "7"], ["Volkswagen", "2"], ["Volvo", "6"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_Qm6a4_22.png", "TableImg_2k3nb_22.png"], "original_data_index": 7461, "original_sql": "SELECT FullName, Country FROM car_makers WHERE Maker <> \"kia\" OR Country <> \"2\" AND FullName <> \"Honda\" OR \"Id\" < 8 INTERSECT SELECT FullName, Country FROM car_makers WHERE Country <> \"1\" OR FullName != \"Peugeaut\" OR \"Id\" != 22"} {"question": "Can you give me a list of driver IDs that are 10 or greater, excluding any driver IDs from the school bus list that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ailf1_12.png", "TableImg_632ms_5.png"], "original_data_index": 7467, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are 8 or greater, from the driver table, excluding any driver IDs that are 4 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ng3bl_12.png", "TableImg_Byivh_5.png"], "original_data_index": 7466, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver has an ID of 9, excluding any drivers with IDs less than 4 who are also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0m8zz_12.png", "TableImg_Nyzt4_5.png"], "original_data_index": 7468, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12 from the driver table and excluding driver ID 7 from the school_bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3l3e6_12.png", "TableImg_12lm1_5.png"], "original_data_index": 7465, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of aircraft IDs, first from the aircraft table excluding ID 4, and then from the airport_aircraft table including only IDs less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Odtwp_5.png", "TableImg_Zjmbn_4.png"], "original_data_index": 7472, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of aircraft IDs that are not equal to 2, excluding any aircraft IDs found in the airport aircraft list that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ue0vr_5.png", "TableImg_Wm0fl_4.png"], "original_data_index": 7471, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you list the draft numbers and their highest document IDs, excluding those with a highest document ID of 1 from the circulation history, and combine that with a list of draft numbers and their highest document IDs, excluding those with a highest document ID of 13 from the document drafts?", "answer": {"columns": ["draft_number", "MAX(document_id)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["0", "1"], ["1", "2"], ["2", "1"], ["8", "2"], ["9", "23"], ["10", "7"], ["11", "12"], ["12", "12"], ["14", "14"], ["17", "20"], ["19", "17"], ["20", "10"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_L7iq0_4.png", "TableImg_Ux0jb_15.png"], "original_data_index": 7469, "original_sql": "SELECT draft_number, MAX(document_id) FROM Circulation_History GROUP BY draft_number HAVING MAX(document_id) != 1 UNION SELECT draft_number, MAX(document_id) FROM Document_Drafts GROUP BY draft_number HAVING MAX(document_id) != 13"} {"question": "What aircraft IDs, excluding aircraft ID 3, are also aircraft IDs less than 5 that are used at airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2gkgw_5.png", "TableImg_3h9un_4.png"], "original_data_index": 7474, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of aircraft IDs, including those from the aircraft table where the ID is 1 or greater, and those from the airport_aircraft table where the ID is not 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wjxdb_5.png", "TableImg_4tsjb_4.png"], "original_data_index": 7473, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me the draft number, draft details, and document ID for all document drafts that have a draft number other than 14, but only if they also have a document ID greater than 1, a draft number of 9 or more, or draft details equal to \"v\"?", "answer": {"columns": ["draft_number", "draft_details", "document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1", "v", "2"], ["4", "w", "13"], ["8", "v", "2"], ["9", "r", "4"], ["9", "r", "23"], ["10", "m", "7"], ["11", "b", "12"], ["12", "r", "12"], ["16", "p", "13"], ["17", "l", "20"], ["19", "a", "17"], ["20", "k", "10"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Cyeq5_15.png", "TableImg_Okfov_15.png"], "original_data_index": 7477, "original_sql": "SELECT draft_number, draft_details, document_id FROM Document_Drafts WHERE \"draft_number\" != 14 INTERSECT SELECT draft_number, draft_details, document_id FROM Document_Drafts WHERE \"document_id\" > 1 OR \"draft_number\" >= 9 OR draft_details = \"v\""} {"question": "What is the smallest feature ID for amenities, excluding those named \"AirCon\" or described as \"Burglar Alarm\", or where the feature ID isn't 3, combined with the smallest feature ID from property features where the ID is 3 or less and the description isn't \"odio\"?", "answer": {"columns": ["MIN(feature_id)"], "index": [0, 1], "data": [["2"], ["2"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Euwor_3.png", "TableImg_Hprq9_15.png"], "original_data_index": 7470, "original_sql": "SELECT MIN(feature_id) FROM Other_Available_Features WHERE feature_type_code = \"Amenity\" AND feature_name <> \"AirCon\" AND feature_description <> \"Burglar Alarm\" OR \"feature_id\" != 3 UNION ALL SELECT MIN(feature_id) FROM Other_Property_Features WHERE \"feature_id\" <= 3 AND property_feature_description <> \"odio\""} {"question": "Which driver IDs, that are at least 6, are not also school bus driver IDs that are at least 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tx0r4_12.png", "TableImg_Nzlz4_5.png"], "original_data_index": 7476, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "How many property types are there for each description, excluding \"Field, Meadow.\" and \"House, Bungalow, etc.\"?", "answer": {"columns": ["COUNT(property_type_code)", "property_type_description"], "index": [0, 1], "data": [["4", "Apartment, Flat, Condo, etc."], ["4", "House, Bungalow, etc."]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_1wiid_5.png", "TableImg_Nogav_5.png"], "original_data_index": 7479, "original_sql": "SELECT COUNT(property_type_code), property_type_description FROM Ref_Property_Types WHERE property_type_description <> \"Field, Meadow.\" UNION SELECT COUNT(property_type_code), property_type_description FROM Ref_Property_Types WHERE property_type_description <> \"House, Bungalow, etc.\""} {"question": "Can you give me a list of shipping agent codes from the Documents table where either the other details are \"u\", the document type code isn't \"CD\", the shipping agent code isn't \"SH\" and the document ID is less than or equal to 15, the document status code isn't \"done\", the receipt date is \"1973-11-05 21:48:53\", or the receipt number isn't \"37\", combined with a list of shipping agent codes from the Ref_Shipping_Agents table where the shipping agent code isn't \"AL\" and the shipping agent description isn't \"k\"?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2, 3, 4], "data": [["AL"], ["FE"], ["SH"], ["UP"], ["US"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_N5pc4_15.png", "TableImg_I9put_5.png"], "original_data_index": 7478, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE other_details = \"u\" OR document_type_code <> \"CD\" OR shipping_agent_code != \"SH\" AND \"document_id\" <= 15 OR document_status_code != \"done\" OR receipt_date = \"1973-11-05 21:48:53\" OR receipt_number != \"37\" UNION SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code <> \"AL\" AND shipping_agent_description <> \"k\""} {"question": "Can you give me a list of document status codes from the Documents table, including those where the document type is not \"CD\" and the other details are not \"u\", or where the document ID is greater than 12 and the receipt number is not \"83\", or where the shipping agent code is not \"AL\", or where the document status code is \"done\" and the receipt date is not \"1996-07-27 03:30:40\", combined with a list of document status codes from the Ref_Document_Status table where the document status description is not \"currently working on\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2], "data": [["done"], ["overdue"], ["working"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Ja2kd_15.png", "TableImg_Jvt9q_3.png"], "original_data_index": 7480, "original_sql": "SELECT document_status_code FROM Documents WHERE document_type_code <> \"CD\" AND other_details != \"u\" OR \"document_id\" > 12 AND receipt_number <> \"83\" OR shipping_agent_code != \"AL\" OR document_status_code = \"done\" AND receipt_date <> \"1996-07-27 03:30:40\" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description != \"currently working on\""} {"question": "Which driver IDs are both greater than or equal to 10 in the driver table and greater than or equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X45rb_12.png", "TableImg_J92n4_5.png"], "original_data_index": 7481, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs that are not 10, where each ID appears only once, excluding any driver IDs that are less than or equal to 3 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rc3z1_12.png", "TableImg_W689h_5.png"], "original_data_index": 7482, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are both less than or equal to 12 and also greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1i23s_12.png", "TableImg_3mdkx_5.png"], "original_data_index": 7483, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of aircraft IDs that are not equal to 5 and are also greater than 1, considering only aircraft IDs that appear in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1c44w_5.png", "TableImg_T47ob_4.png"], "original_data_index": 7484, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you list the country name, continent, and country ID for the UK, and also list the country name, continent, and country ID for all countries that are not Sweden or have a continent value greater than or equal to 1?", "answer": {"columns": ["CountryName", "Continent", "CountryId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["australia", "5", "11"], ["brazil", "1", "15"], ["egypt", "4", "13"], ["france", "2", "3"], ["germany", "2", "2"], ["italy", "2", "5"], ["japan", "3", "4"], ["korea", "3", "8"], ["mexico", "1", "14"], ["new zealand", "5", "12"], ["nigeria", "4", "10"], ["russia", "2", "9"], ["sweden", "2", "6"], ["uk", "2", "7"], ["usa", "1", "1"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_Vdgio_15.png", "TableImg_Znj7j_15.png"], "original_data_index": 7485, "original_sql": "SELECT CountryName, Continent, CountryId FROM countries WHERE CountryName = \"uk\" UNION SELECT CountryName, Continent, CountryId FROM countries WHERE CountryName <> \"sweden\" OR \"Continent\" >= 1"} {"question": "Can you list the aircraft ID and distance for aircraft where the distance is 520 or less, or the name is not Airbus A319, combined with the aircraft ID and distance for flights where the aircraft ID is not 7, or the arrival date is not December 4th, 2005 at 3:55 AM, and the distance is less than 2551, and the departure date is December 4th, 2005 at 9:00 AM?", "answer": {"columns": ["aid", "distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["1", "2308"], ["1", "8430"], ["2", "1251"], ["2", "3383"], ["3", "1749"], ["3", "7120"], ["3", "7487"], ["4", "1502"], ["5", "1530"], ["5", "2551"], ["6", "2128"], ["6", "2606"], ["7", "520"], ["8", "4103"], ["9", "1749"], ["9", "5478"], ["9", "6900"], ["10", "802"], ["10", "4010"], ["11", "6441"], ["12", "6475"], ["13", "2605"], ["15", "1504"], ["16", "30"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_Ppcgv_16.png", "TableImg_Fpho9_10.png"], "original_data_index": 7486, "original_sql": "SELECT aid, distance FROM aircraft WHERE \"distance\" <= 520 OR name <> \"Airbus A319\" UNION SELECT aid, distance FROM flight WHERE \"aid\" <> 7 OR arrival_date != \"04/12/2005 03:55\" AND \"distance\" < 2551 AND departure_date = \"04/12/2005 09:00\""} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 5, that appear more than once, and then remove any aircraft IDs from that list that also appear more than once in the airport aircraft table, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nudvk_5.png", "TableImg_06y64_4.png"], "original_data_index": 7487, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of driver IDs, including driver ID 4 from the driver table and all driver IDs except 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zgahx_12.png", "TableImg_Pujeg_5.png"], "original_data_index": 7489, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs, excluding driver ID 7, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Przdn_12.png", "TableImg_Rrwdn_5.png"], "original_data_index": 7490, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list the aircraft IDs that are greater than or equal to 2 from the aircraft table, and combine that with a list of aircraft IDs that are less than or equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xur62_5.png", "TableImg_5imu2_4.png"], "original_data_index": 7488, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Which driver IDs are both greater than or equal to 3 and also not equal to 3, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q2uxe_12.png", "TableImg_Olrv3_5.png"], "original_data_index": 7492, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 1, excluding any driver IDs that are equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Erwiz_12.png", "TableImg_Ljsuf_5.png"], "original_data_index": 7491, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list all driver IDs less than or equal to 10 from the driver table, and combine that with a list of all driver IDs less than 10 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uuncf_12.png", "TableImg_398eh_5.png"], "original_data_index": 7494, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you show me the total budget percentage budgeted and the budgeted amount from the budget table, combining two sets of results: first, where the year isn't 1999 and the invested amount isn't 85249, or the school ID is greater than 2 and the budgeted amount is 113531, or the total budget percentage budgeted isn't 1.3 and the total budget percentage invested is 2.2; and second, where the total budget percentage budgeted is 2.4?", "answer": {"columns": ["total_budget_percent_budgeted", "Budgeted"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2.0", "3666"], ["2.0", "6803"], ["2.0", "6803"], ["2.4", "119527"], ["2.0", "74849"], ["1.3", "61283"], ["2.0", "113531"], ["2.4", "119527"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Asvw5_8.png", "TableImg_Ux3dg_8.png"], "original_data_index": 7493, "original_sql": "SELECT total_budget_percent_budgeted, Budgeted FROM budget WHERE \"Year\" <> 1999 AND \"Invested\" != 85249 OR \"School_id\" > 2 AND \"Budgeted\" = 113531 OR \"total_budget_percent_budgeted\" <> 1.3 AND \"total_budget_percent_invested\" = 2.2 UNION ALL SELECT total_budget_percent_budgeted, Budgeted FROM budget WHERE \"total_budget_percent_budgeted\" = 2.4"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is greater than 1, combined with a list of driver IDs from the school_bus table where the driver ID is greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xtp4s_12.png", "TableImg_6vu38_5.png"], "original_data_index": 7495, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than 8, combined with a list of driver IDs from the school_bus table where the ID is exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B4qy7_12.png", "TableImg_S5y4v_5.png"], "original_data_index": 7496, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 9, and those from the school bus table with driver IDs of 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3kzra_12.png", "TableImg_Anz51_5.png"], "original_data_index": 7498, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you list the advisor, age, city code, sex, major, first name, and last name for all students who either live in Chicago and have a student ID less than 1007, or are older than 18, combined with the same information for students who don't have major 550, are named Jun, have an advisor number less than 7723, and are not 18 years old?", "answer": {"columns": ["Advisor", "Age", "city_code", "Sex", "Major", "Fname", "LName"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["7712", "19", "HKG", "F", "600", "Tracy", "Kim"], ["7792", "21", "WAS", "F", "600", "Shiela", "Jones"], ["8423", "20", "CHI", "M", "600", "Dinesh", "Kumar"], ["1121", "26", "YYZ", "M", "600", "Paul", "Gompers"], ["9172", "20", "BAL", "F", "600", "Jandy", "Nelson"], ["2192", "19", "YYZ", "M", "600", "Eric", "Tai"], ["1148", "22", "PHL", "M", "600", "David", "Adams"], ["7723", "20", "PIT", "M", "600", "Steven", "Davis"], ["1148", "27", "LON", "M", "600", "Bruce", "Wilson"], ["1121", "20", "PIT", "M", "600", "Michael", "Leighton"], ["7271", "22", "NYC", "M", "520", "Ian", "Thornton"], ["8722", "19", "NYC", "M", "520", "George", "Andreou"], ["8722", "20", "NYC", "M", "520", "David", "Shieber"], ["7134", "19", "HKG", "M", "520", "Eric", "Pang"], ["2311", "20", "ROC", "M", "550", "Eric", "Rugh"], ["2311", "21", "SFO", "F", "550", "Lisa", "Cheng"], ["8772", "20", "PHL", "F", "550", "Sarah", "Smith"], ["8772", "20", "ATL", "M", "550", "Eric", "Brown"], ["5718", "26", "WAS", "F", "50", "Sarah", "Schmidt"], ["2311", "17", "PEK", "M", "100", "Jun", "Han"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Hm79v_34.png", "TableImg_U2cq0_34.png"], "original_data_index": 7497, "original_sql": "SELECT Advisor, Age, city_code, Sex, Major, Fname, LName FROM Student WHERE city_code = \"CHI\" AND \"StuID\" < 1007 OR \"Age\" > 18 UNION ALL SELECT Advisor, Age, city_code, Sex, Major, Fname, LName FROM Student WHERE \"Major\" <> 550 AND Fname = \"Jun\" AND \"Advisor\" < 7723 AND \"Age\" != 18"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are not equal to 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V09vm_12.png", "TableImg_Jt1b3_5.png"], "original_data_index": 7500, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the enrollment, location, and county for all schools that are in IHSAA Class AAA, excluding school ID 1, combined with the enrollment, location, and county for all schools that are not in IHSAA Football Class A and are not located in New Carlisle?", "answer": {"columns": ["Enrollment", "Location", "County"], "index": [0, 1, 2, 3, 4], "data": [["495", "Bremen", "50 Marshall"], ["601", "Elkhart", "20 Elkhart"], ["605", "Walkerton", "71 St. Joseph"], ["620", "Knox", "75 Starke"], ["852", "New Carlisle", "46 LaPorte 71 St. Joseph"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Ftkdh_8.png", "TableImg_L1b0s_8.png"], "original_data_index": 7499, "original_sql": "SELECT Enrollment, Location, County FROM School WHERE IHSAA_Class = \"AAA\" AND School_id != \"1\" UNION SELECT Enrollment, Location, County FROM School WHERE IHSAA_Football_Class != \"A\" AND Location <> \"New Carlisle\""} {"question": "Can you list the driver IDs that are less than or equal to 1 from the driver table, and also list the driver IDs that are greater than or equal to 9 from the school_bus table, combining both lists into one?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M5816_12.png", "TableImg_Sky5s_5.png"], "original_data_index": 7502, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 4, and combine that with a list of aircraft IDs from the airport aircraft table, excluding aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iysy7_5.png", "TableImg_P8z2s_4.png"], "original_data_index": 7504, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me the total of the club descriptions, the club ID, and the number of club locations for clubs where the location is not \"AKW\" and the description is \"Play pen and paper games on campus,\" or where the club ID is greater than 4, combined with the total of the club descriptions, the club ID, and the number of club locations for clubs where the name is not \"Tennis Club\" and the club ID is greater than or equal to 1, or where the description is not \"Venture capital fund for student business\" and the location is not \"HHH\"?", "answer": {"columns": ["SUM(ClubDesc)", "ClubID", "COUNT(ClubLocation)"], "index": [0, 1], "data": [["0", "1", "4"], ["0", "3", "1"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_J9vhd_4.png", "TableImg_L7778_4.png"], "original_data_index": 7501, "original_sql": "SELECT SUM(ClubDesc), ClubID, COUNT(ClubLocation) FROM Club WHERE ClubLocation != \"AKW\" AND ClubDesc = \"Play pen and paper games on campus.\" OR \"ClubID\" > 4 UNION SELECT SUM(ClubDesc), ClubID, COUNT(ClubLocation) FROM Club WHERE ClubName <> \"Tennis Club\" AND \"ClubID\" >= 1 OR ClubDesc <> \"Venture capital fund for student business.\" AND ClubLocation <> \"HHH\""} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 7, excluding any driver IDs from the school_bus table that are greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2tphg_12.png", "TableImg_N3f0w_5.png"], "original_data_index": 7505, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 2, and those from the school bus table where the ID is not 4, making sure to list each ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cam24_12.png", "TableImg_Ctgj5_5.png"], "original_data_index": 7509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the city population and district ID for each district, but only for districts where the city area isn't 12 or the city population is 2793721?", "answer": {"columns": ["City_Population", "District_ID"], "index": [0, 1, 2, 3], "data": [["530438", "3"], ["89380", "4"], ["165936", "11"], ["165038", "15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Cyr56_15.png", "TableImg_A8x17_5.png"], "original_data_index": 7510, "original_sql": "SELECT T1.City_Population, T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID == T2.District_ID GROUP BY District_name HAVING City_Area <> 12.0 OR City_Population = 2793721.0"} {"question": "Can you give me a list of customer IDs from payments made on February 19, 2018, at 1:49:59 AM, or paid with a credit card, where the customer ID is 14 or higher, combined with a list of customer IDs from lessons that cost something other than $231 and are not completed, where the staff ID is 4 or higher?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["6"], ["8"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_6tdrq_15.png", "TableImg_Udk97_15.png"], "original_data_index": 7511, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"customer_id\" >= 14 AND datetime_payment = \"2018-02-19 01:49:59\" OR payment_method_code = \"Credit Card\" UNION SELECT customer_id FROM Lessons WHERE \"price\" <> 231.0 AND \"staff_id\" >= 4 AND lesson_status_code != \"Completed\""} {"question": "Which driver IDs are both greater than or equal to 8 in the driver table and greater than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Taol0_12.png", "TableImg_7uqrx_5.png"], "original_data_index": 7512, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs, excluding driver ID 5, are also driver ID 9 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K9yr1_12.png", "TableImg_Csmxz_5.png"], "original_data_index": 7513, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs, excluding driver ID 4, are not also driver IDs of school buses, excluding school bus driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gxpec_12.png", "TableImg_Pqhey_5.png"], "original_data_index": 7506, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the difference between the average feature ID of all available features excluding \"AirCon\", and the average feature ID of property features described as \"modi\" with a feature ID of 4 and a property ID not equal to 11?", "answer": {"columns": ["AVG(feature_id)"], "index": [0], "data": [["3.5"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_3sril_3.png", "TableImg_Qq50r_15.png"], "original_data_index": 7514, "original_sql": "SELECT AVG(feature_id) FROM Other_Available_Features WHERE feature_name != \"AirCon\" EXCEPT SELECT AVG(feature_id) FROM Other_Property_Features WHERE property_feature_description = \"modi\" AND \"feature_id\" = 4 AND \"property_id\" <> 11"} {"question": "Which driver IDs are both less than or equal to 11 and also equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ygqj1_12.png", "TableImg_Bxq51_5.png"], "original_data_index": 7507, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are greater than 9 from the driver table, combined with a list of driver IDs that are greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Folfj_12.png", "TableImg_Y46v7_5.png"], "original_data_index": 7517, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list the aircraft IDs that appear more than once, both from the aircraft table and the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wbeci_5.png", "TableImg_6twlb_4.png"], "original_data_index": 7518, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you list all aircraft IDs that are greater than 4 from the aircraft table, combined with all aircraft IDs that are greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wqdfq_5.png", "TableImg_Ae6kr_4.png"], "original_data_index": 7516, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you list all the driver IDs that are greater than 10 from the driver table, combined with all the driver IDs that are not equal to 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I41ay_12.png", "TableImg_Alyhg_5.png"], "original_data_index": 7515, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs, other than 11, appear in the driver table and are also greater than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nuqnj_12.png", "TableImg_Qdk72_5.png"], "original_data_index": 7519, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are 9 or less from the driver table, excluding any driver IDs greater than 7 that are in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zz2lt_12.png", "TableImg_Xkwy6_5.png"], "original_data_index": 7522, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 6, with those from the school bus table that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Udqf2_12.png", "TableImg_Ph5ng_5.png"], "original_data_index": 7523, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me the driver ID that appears exactly once as 7 in the driver table, but is not a driver ID that appears as 10 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_12m2v_12.png", "TableImg_Vq7tn_5.png"], "original_data_index": 7521, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Could you list the names of employees who either don't live in Bristol or are older than 23 and aren't named Phil Vickery, excluding the names of shop employees who either have a Shop ID less than 6 and are managed by Olli Huttunen, or aren't named FF Jaro, have fewer than 6000 products, and are located in Kuopio?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Andrew Sheridan"], ["Jason Hobson"], ["Lee Mears"], ["Louis Deacon"], ["Mark Regan"], ["Matt Stevens"], ["Phil Vickery"], ["Steve Borthwick"], ["Tim Payne"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_6ph3l_10.png", "TableImg_Rvlwj_9.png"], "original_data_index": 7520, "original_sql": "SELECT Name FROM employee WHERE City != \"Bristol\" OR \"Age\" > 23 AND Name != \"Phil Vickery\" EXCEPT SELECT Name FROM shop WHERE \"Shop_ID\" < 6 AND Manager_name = \"Olli Huttunen\" OR Name <> \"FF Jaro\" AND \"Number_products\" < 6000 AND Location = \"Kuopio\""} {"question": "Can you list the driver IDs that are less than 5 from the driver table, and also list the driver IDs that are less than 4 from the school_bus table, combining the two lists into one?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xqgi3_12.png", "TableImg_Z8yus_5.png"], "original_data_index": 7524, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 7 from the driver table and driver ID 9 from the school_bus table, making sure to list each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7qf6e_12.png", "TableImg_Kpdih_5.png"], "original_data_index": 7528, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "How many aircraft have a distance less than 2128 or are named \"Airbus A319\", and what are the corresponding eid values for those aircraft?", "answer": {"columns": ["COUNT(T1.distance)", "eid"], "index": [0], "data": [["20", "142519864"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Elvqb_16.png", "TableImg_1jjg5_69.png"], "original_data_index": 7525, "original_sql": "SELECT COUNT(T1.distance), T2.eid FROM aircraft as T1 JOIN certificate as T2 ON T1.aid = T2.aid WHERE AVG(distance) < 2128 OR name = \"Airbus A319\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 4, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4kwxq_12.png", "TableImg_Ivy9h_5.png"], "original_data_index": 7526, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Could you list the ICAO codes and IDs for airports that meet either of these conditions: either the airport is named \"Schiphol Airport\" but is not in Brussels, or the airport's IATA code isn't \"BCN\" and its ID is 8 or greater, or the airport is not in Iceland?", "answer": {"columns": ["ICAO", "id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["EBBR", "9"], ["EHAM", "2"], ["EKBI", "7"], ["ENBR", "6"], ["KBOS", "8"], ["KBWI", "4"], ["LEBL", "5"], ["PANC", "3"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_V4ptg_9.png", "TableImg_Azc5x_9.png"], "original_data_index": 7527, "original_sql": "SELECT ICAO, id FROM airport WHERE name = \"Schiphol Airport\" AND City != \"Brussels\" UNION SELECT ICAO, id FROM airport WHERE IATA != \"BCN\" AND \"id\" >= 8 OR Country <> \"Iceland\""} {"question": "Could you please retrieve the Paragraph ID, Document ID, Paragraph Text, and Other Details from the Paragraphs table, combining results from two different sets of criteria: the first set includes paragraphs where the text is not \"UK\" and the other details are \"None\", or where the Paragraph ID is 280120913, or where the Document ID is not 2394; and the second set includes paragraphs where the other details are not \"None\", or the Document ID is greater than 2394, or the Paragraph ID is less than or equal to 608931827 and the paragraph text is \"Micronesia\"?", "answer": {"columns": ["Paragraph_ID", "Document_ID", "Paragraph_Text", "Other_Details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["9", "3", "Somalia", ""], ["65", "50123", "Palestinian Territory", ""], ["241", "651512", "Jersey", ""], ["3708", "33930", "UK", ""], ["9946", "385906526", "Fiji", ""], ["16615", "80", "Japan", ""], ["1104059", "3830", "Senegal", ""], ["243399026", "651512", "Indonesia", ""], ["280120913", "2394", "Ukraine", ""], ["571212310", "16514113", "Brazil", ""], ["608931827", "80", "Micronesia", ""], ["765713812", "16514113", "Ireland", ""], ["946335436", "3540024", "Papua New Guinea", ""]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_5hmqr_15.png", "TableImg_Sxq11_15.png"], "original_data_index": 7530, "original_sql": "SELECT Paragraph_ID, Document_ID, Paragraph_Text, Other_Details FROM Paragraphs WHERE Paragraph_Text != \"UK\" AND Other_Details = \"None\" OR \"Paragraph_ID\" = 280120913 OR \"Document_ID\" != 2394 UNION SELECT Paragraph_ID, Document_ID, Paragraph_Text, Other_Details FROM Paragraphs WHERE Other_Details <> \"None\" OR \"Document_ID\" > 2394 OR \"Paragraph_ID\" <= 608931827 AND Paragraph_Text = \"Micronesia\""} {"question": "Can you give me the street addresses of branches that either aren't branch number 5 and aren't on Oaks Crescent, or didn't open in 2014 and are also on a street where a branch opened in 2001?", "answer": {"columns": ["Address_road"], "index": [0, 1, 2, 3, 4, 5], "data": [["Valleys Place"], ["Abbott Street"], ["Abbey Rise"], ["Cecilia Avenue"], ["Concord Road"], ["Glebe Street"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Js528_8.png", "TableImg_Rm4go_8.png"], "original_data_index": 7532, "original_sql": "SELECT Address_road FROM branch WHERE \"Branch_ID\" != 5 AND Address_road <> \"Oaks Crescent\" OR Open_year <> \"2014\" IN (SELECT Address_road FROM branch WHERE Open_year = \"2001\")"} {"question": "Could you give me the school IDs from the budget table where either the budgeted amount is greater than 6803, or the invested amount is 140102 and the school ID is less than or equal to 5, or the total budget percent budgeted is not 2.0 and the budget invested percent is not 228.6, or the total budget percent invested is less than 2.2, combined with the school IDs from the endowment table where either the endowment ID is greater than or equal to 6 and the donator name is Duarte, or the amount is less than 9.73?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["2"], ["2"], ["2"], ["3"], ["1"], ["4"], ["5"], ["5"], ["1"], ["3"], ["3"], ["4"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['budget' 'endowment']", "table_image_ids": ["TableImg_Mca6d_8.png", "TableImg_9xbfr_11.png"], "original_data_index": 7529, "original_sql": "SELECT School_id FROM budget WHERE \"Budgeted\" > 6803 OR \"Invested\" = 140102 AND \"School_id\" <= 5 OR \"total_budget_percent_budgeted\" != 2.0 AND Budget_invested_percent <> \"228.6\" OR \"total_budget_percent_invested\" < 2.2 UNION ALL SELECT School_id FROM endowment WHERE \"endowment_id\" >= 6 AND donator_name = \"Duarte\" OR \"amount\" < 9.73"} {"question": "What is the difference between the number of documents with an ID less than or equal to 76, no other details, and a description of \"y\", and the number of paragraphs with an ID not equal to 3830, or containing the text \"Ukraine\" and having an ID of 16615, or having other details that are not \"None\"?", "answer": {"columns": ["COUNT(Document_ID)"], "index": [0], "data": [["0"]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_Thd8b_15.png", "TableImg_Twzeb_15.png"], "original_data_index": 7531, "original_sql": "SELECT COUNT(Document_ID) FROM Documents WHERE \"Document_ID\" <= 76 AND Other_Details = \"None\" AND Document_Description = \"y\" EXCEPT SELECT COUNT(Document_ID) FROM Paragraphs WHERE \"Document_ID\" != 3830 OR Paragraph_Text = \"Ukraine\" AND \"Paragraph_ID\" = 16615 OR Other_Details <> \"None\""} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 2 with those from the school bus table excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2i6ys_12.png", "TableImg_Txqnr_5.png"], "original_data_index": 7535, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 12, and those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eftgs_12.png", "TableImg_Gzcgq_5.png"], "original_data_index": 7534, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of company names that either aren't headquartered in the USA and have assets under 340.5 billion, or aren't in the oil and gas industry, or don't have a market value of 213.7 billion and have sales under 143.7 billion, along with a list of people's names who aren't Tom Sheehey and aren't from the United Kingdom?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["JPMorgan Chase"], ["General Electric"], ["Industrial and Commercial Bank of China"], ["HSBC"], ["PetroChina"], ["Berkshire Hathaway"], ["Wells Fargo"], ["Petrobras"], ["BP"], ["China Construction Bank"], ["Citigroup"], ["Gazprom"], ["Walmart"], ["Volkswagen Group"], ["Total"], ["Agricultural Bank of China"], ["Reggie Lewis"], ["Brad Lohaus"], ["Darryl Kennedy"], ["Tim Naegeli"], ["Jerry Corcoran"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_R3pxm_19.png", "TableImg_Lktoo_7.png"], "original_data_index": 7536, "original_sql": "SELECT Name FROM company WHERE Headquarters <> \"USA\" AND \"Assets_in_Billion\" < 340.5 OR Industry != \"Oil and gas\" OR \"Market_Value_in_Billion\" <> 213.7 AND \"Sales_in_Billion\" < 143.7 UNION ALL SELECT Name FROM people WHERE Name != \"Tom Sheehey\" AND Nationality <> \"United Kindom\""} {"question": "Can you list the document IDs and draft numbers from the circulation history for entries where the employee ID is 8 or higher, the draft number is 20 or lower, or the document ID is 10 or higher, combined with a list of document IDs and draft numbers where the copy number is 5 or higher, the draft number is less than 17, or the employee ID is not 1 and the document ID is 1?", "answer": {"columns": ["document_id", "draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["20", "17"], ["1", "2"], ["2", "1"], ["10", "20"], ["20", "17"], ["1", "2"], ["2", "1"], ["10", "20"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Xl27k_4.png", "TableImg_K1kf8_4.png"], "original_data_index": 7533, "original_sql": "SELECT document_id, draft_number FROM Circulation_History WHERE \"employee_id\" >= 8 OR \"draft_number\" <= 20 OR \"document_id\" >= 10 UNION ALL SELECT document_id, draft_number FROM Circulation_History WHERE \"copy_number\" >= 5 OR \"draft_number\" < 17 OR \"employee_id\" != 1 AND \"document_id\" = 1"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 8, and combine that with a list of all driver IDs from the school_bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B0i9d_12.png", "TableImg_Wm9ed_5.png"], "original_data_index": 7537, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Could you give me a list of player IDs, including those of players who don't work as \"Product Consultant - MLCC\" and also those of players or coaches who started in 2012 or have a coach ID of 1 or less?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["14"], ["1"], ["2"], ["3"], ["6"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_9wb1m_14.png", "TableImg_6qdoa_7.png"], "original_data_index": 7541, "original_sql": "SELECT Player_ID FROM player WHERE Occupation <> \"Product Consultant - MLCC\" UNION ALL SELECT Player_ID FROM player_coach WHERE \"Starting_year\" = 2012 OR \"Coach_ID\" <= 1"} {"question": "What aircraft IDs, excluding ID 1, are present in the aircraft table and, excluding ID 3, are also present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vmy9r_5.png", "TableImg_Oo118_4.png"], "original_data_index": 7539, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you tell me the arrival date, the latest origin, the average flight number, the airline ID, the departure date, the latest destination, and the highest price for flights with a distance of 2606 and flight number 13, combined with the same information for flights that don't originate in Los Angeles?", "answer": {"columns": ["arrival_date", "MAX(origin)", "AVG(flno)", "aid", "departure_date", "MAX(destination)", "MAX(price)"], "index": [0, 1], "data": [["", "", "", "", "", "", ""], ["04/12/2005 10:03", "Chicago", "72.0", "9.0", "04/12/2005 08:32", "New York", "220.98"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_4clkt_10.png", "TableImg_12gml_10.png"], "original_data_index": 7540, "original_sql": "SELECT arrival_date, MAX(origin), AVG(flno), aid, departure_date, MAX(destination), MAX(price) FROM flight WHERE \"distance\" = 2606 AND \"flno\" = 13 UNION ALL SELECT arrival_date, MAX(origin), AVG(flno), aid, departure_date, MAX(destination), MAX(price) FROM flight WHERE origin != \"Los Angeles\""} {"question": "Can you give me the highest maker name and its ID, but only for those that are either not \"peugeaut\" or have an ID that isn't 13, and also are either \"triumph\" with an ID of 4 or less, or have a full name that isn't \"Fiat\"?", "answer": {"columns": ["MAX(Maker)", "Id"], "index": [0], "data": [["volvo", "21"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_C4qq2_22.png", "TableImg_Jhiul_22.png"], "original_data_index": 7538, "original_sql": "SELECT MAX(Maker), Id FROM car_makers WHERE Maker != \"peugeaut\" OR \"Id\" <> 13 INTERSECT SELECT MAX(Maker), Id FROM car_makers WHERE Maker = \"triumph\" AND \"Id\" <= 4 OR FullName != \"Fiat\""} {"question": "Which driver IDs, excluding driver ID 2, are also driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sb5ma_12.png", "TableImg_L7f10_5.png"], "original_data_index": 7542, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the common average of feature type names and sum of feature type codes in the Ref_Feature_Types table, excluding rows where the feature type code is \"Security\" and the feature type name is \"Securiyt, eg Burglar Alarm.\", and also excluding rows where the feature type name is \"Amenity, eg Pool.\"?", "answer": {"columns": ["AVG(feature_type_name)", "SUM(feature_type_code)"], "index": [0], "data": [["0", "0"]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Mbscr_2.png", "TableImg_Kq5n9_2.png"], "original_data_index": 7543, "original_sql": "SELECT AVG(feature_type_name), SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_code <> \"Security\" AND feature_type_name <> \"Securiyt, eg Burglar Alarm.\" INTERSECT SELECT AVG(feature_type_name), SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\""} {"question": "Can you list the district, delegate, party, first elected year, committee, counties represented, and election ID for all elections where the committee is Appropriations and the election ID is 5, or the party is less than 3, or the counties represented are not \"09.1 9A\", but exclude any elections with an election ID of 8?", "answer": {"columns": ["District", "Delegate", "Party", "First_Elected", "Committee", "Counties_Represented", "Election_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "Bates, Gail H. Gail H. Bates", "1", "2002", "Appropriations", "09.1 9A", "1"], ["1", "Miller, Warren E. Warren E. Miller", "1", "2003", "Economic Matters", "09.1 9A", "2"], ["1", "Pendergrass, Shane E. Shane Pendergrass", "4", "1994", "Health and Government Operations", "13", "6"], ["2", "Bobo, Elizabeth Elizabeth Bobo", "3", "1994", "Environmental Matters", "12.2 12B", "5"], ["2", "DeBoy, Steven J. Sr. Steven J. DeBoy, Sr.", "2", "2002", "Appropriations", "12.1 12A", "3"], ["3", "Malone, James E. Jr. James E. Malone, Jr.", "2", "1994", "Environmental Matters (Vice-Chair)", "12.1 12A", "4"], ["4", "Guzzone, Guy Guy Guzzone", "1", "2006", "Appropriations", "13", "7"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Nec6m_8.png", "TableImg_5e5iv_8.png"], "original_data_index": 7545, "original_sql": "SELECT District, Delegate, Party, First_Elected, Committee, Counties_Represented, Election_ID FROM election WHERE Committee = \"Appropriations\" AND \"Election_ID\" = 5 OR \"Party\" < 3 OR Counties_Represented <> \"09.1 9A\" EXCEPT SELECT District, Delegate, Party, First_Elected, Committee, Counties_Represented, Election_ID FROM election WHERE \"Election_ID\" = 8"} {"question": "What are the earliest date of birth and the alphabetically first last name for customers with the cell phone number 1-197-686-2849x8761 and an amount outstanding greater than 255, or a customer address ID less than or equal to 13, combined with the earliest date of birth and alphabetically first last name for staff members who either have the nickname santos45, or a staff ID less than or equal to 10 and a date joined staff not equal to 2016-05-01 02:22:45 and a staff address ID less than or equal to 2, or a date left staff equal to 2018-03-05 18:30:12 and a last name of Jast, or a date of birth equal to 1998-04-27 12:55:05?", "answer": {"columns": ["MIN(last_name)", "MAX(date_of_birth)"], "index": [0, 1], "data": [["Bernhard", "1998-12-15 13:24:40"], ["Durgan", "2015-08-01 13:22:43"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_She6q_15.png", "TableImg_Uz9zg_15.png"], "original_data_index": 7544, "original_sql": "SELECT MIN(last_name), MAX(date_of_birth) FROM Customers WHERE cell_mobile_phone_number = \"1-197-686-2849x8761\" AND \"amount_outstanding\" > 255.0 OR \"customer_address_id\" <= 13 UNION SELECT MIN(last_name), MAX(date_of_birth) FROM Staff WHERE nickname = \"santos45\" OR \"staff_id\" <= 10 AND date_joined_staff != \"2016-05-01 02:22:45\" AND \"staff_address_id\" <= 2 OR date_left_staff = \"2018-03-05 18:30:12\" AND last_name = \"Jast\" OR date_of_birth = \"1998-04-27 12:55:05\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver ID 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jjef2_12.png", "TableImg_Jk7s7_5.png"], "original_data_index": 7549, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me the Driver ID of drivers with ID 5, excluding the Driver IDs of school bus drivers with ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gw7f5_12.png", "TableImg_283zq_5.png"], "original_data_index": 7548, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, excluding driver ID 5, are in the driver table but not in the school_bus table, also excluding driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D49hv_12.png", "TableImg_3ng8e_5.png"], "original_data_index": 7546, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me the document type codes from the Documents table where either the receipt date is April 21, 2008 at 8:42:25 PM, the shipping agent code is \"SH\" and the document type code is not \"Paper\", or the document status code is not \"done\", or the other details are not \"x\", or the receipt number is \"79\", or the document ID is not 14, combined with the document type codes from the Ref_Document_Types table where the document type description is not \"u\" and the document type code is \"CD\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2], "data": [["CD"], ["Hard Drive"], ["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_5p652_15.png", "TableImg_Gc8ok_3.png"], "original_data_index": 7547, "original_sql": "SELECT document_type_code FROM Documents WHERE receipt_date = \"2008-04-21 20:42:25\" AND shipping_agent_code = \"SH\" AND document_type_code != \"Paper\" OR document_status_code <> \"done\" OR other_details != \"x\" OR receipt_number = \"79\" OR \"document_id\" <> 14 UNION SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description != \"u\" AND document_type_code = \"CD\""} {"question": "Which aircraft IDs are less than 4 and also equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7j41v_5.png", "TableImg_Ibgr9_4.png"], "original_data_index": 7551, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you list the aircraft IDs that are less than 1 from the aircraft table, combined with the aircraft IDs that are not equal to 1 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tcjee_5.png", "TableImg_4rg4h_4.png"], "original_data_index": 7552, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of aircraft IDs that are not equal to 4, and also less than or equal to 1, from both the aircraft and airport_aircraft datasets?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F1wb2_5.png", "TableImg_Hkoy6_4.png"], "original_data_index": 7550, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of driver IDs that are greater than 6, excluding any driver IDs from the school bus list that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xt3ny_12.png", "TableImg_Jrxfs_5.png"], "original_data_index": 7556, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 4 and also not equal to 7, considering only drivers who appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F7zdi_12.png", "TableImg_Ypcjk_5.png"], "original_data_index": 7553, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs that are less than 10, excluding the driver ID 4 if it appears in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wljfx_12.png", "TableImg_3pzox_5.png"], "original_data_index": 7554, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me the apartment feature 2, other feature 1, shop feature 1, apartment feature 1, property address, field feature 3, and other feature 3 from properties that meet both of these conditions: first, properties where apartment feature 1 is \"qui\" and the property address is not \"6837 Darien Views Apt. 475 South Maraview, KS 77770\" or field feature 3 is not \"None\" or apartment feature 2 is \"autem\" or other feature 3 is \"None\" or the room count is greater than 2 or the property type code is not \"Apartment\" or other property details is not \"None\" and house feature 3 is \"None\" and shop feature 2 is not \"None\" or apartment feature 3 is not \"None\"; and second, properties where the date on market is not \"1994-02-14 02:27:13\" and house feature 2 is not \"None\" or the property address is not \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" or field feature 2 is not \"None\" or other feature 2 is \"None\" or the vendor requested price is not 983.8596 or other property details is not \"None\" and apartment feature 3 is not \"None\" or the room count is greater than 8 and house feature 1 is not \"None\" or shop feature 3 is not \"None\" or shop feature 2 is \"None\" and the buyer offered price is less than 3520911.5258 and the agreed selling price is less than or equal to 244353758.1824 and other feature 1 is \"None\" and field feature 3 is not \"None\" and the date sold is not \"1981-06-26 21:28:28\" or other feature 3 is \"None\" and the property ID is less than or equal to 1 or the property type code is not \"Other\" or the property name is \"longacre\" and apartment feature 2 is not \"eos\" and house feature 3 is \"None\" and apartment feature 1 is not \"sed\" or field feature 1 is not \"None\"?", "answer": {"columns": ["apt_feature_2", "oth_feature_1", "shp_feature_1", "apt_feature_1", "property_address", "fld_feature_3", "oth_feature_3"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["adipisci", "", "", "nesciunt", "49578 Ayden Mountains\nNew Russellhaven, UT 46626", "", ""], ["aut", "", "", "fuga", "60845 Else Highway Apt. 826\nSouth Dougfort, CO 43200-4258", "", ""], ["autem", "", "", "qui", "743 Ephraim Greens\nAnniemouth, HI 47084-3853", "", ""], ["culpa", "", "", "sed", "6837 Darien Views Apt. 475\nSouth Maraview, KS 77770", "", ""], ["eos", "", "", "et", "1474 Dibbert Fields Suite 055\nSouth Renee, IN 58286-3097", "", ""], ["est", "", "", "est", "098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537", "", ""], ["est", "", "", "et", "2088 Bashirian Fork Suite 337\nFaustinoport, MT 16771-9320", "", ""], ["est", "", "", "quos", "092 Paucek Highway Apt. 772\nEast Erika, IA 61358", "", ""], ["et", "", "", "ut", "062 Micaela Court Apt. 707\nMargretville, WV 51628-3617", "", ""], ["iusto", "", "", "aut", "986 Hagenes Drives\nDraketon, UT 83411-3393", "", ""], ["odio", "", "", "fuga", "24365 Ulices Run\nHomenicktown, MD 88485-6198", "", ""], ["sequi", "", "", "quo", "2765 Schulist Stream\nLindmouth, UT 03391-3817", "", ""], ["sit", "", "", "enim", "107 Roob Courts\nErdmanburgh, IA 42926-0873", "", ""], ["suscipit", "", "", "aut", "4745 Emerson Stravenue Suite 829\nSouth Garret, IN 16772-5682", "", ""], ["vero", "", "", "consequatur", "084 Lakin Vista Apt. 394\nFishertown, MA 16876", "", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Mqx9b_15.png", "TableImg_Dbs17_15.png"], "original_data_index": 7555, "original_sql": "SELECT apt_feature_2, oth_feature_1, shp_feature_1, apt_feature_1, property_address, fld_feature_3, oth_feature_3 FROM Properties WHERE apt_feature_1 = \"qui\" AND property_address <> \"6837 Darien Views Apt. 475 South Maraview, KS 77770\" OR fld_feature_3 <> \"None\" OR apt_feature_2 = \"autem\" OR oth_feature_3 = \"None\" OR \"room_count\" > 2 OR property_type_code != \"Apartment\" OR other_property_details != \"None\" AND hse_feature_3 = \"None\" AND shp_feature_2 != \"None\" OR apt_feature_3 != \"None\" INTERSECT SELECT apt_feature_2, oth_feature_1, shp_feature_1, apt_feature_1, property_address, fld_feature_3, oth_feature_3 FROM Properties WHERE date_on_market != \"1994-02-14 02:27:13\" AND hse_feature_2 != \"None\" OR property_address <> \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" OR fld_feature_2 != \"None\" OR oth_feature_2 = \"None\" OR \"vendor_requested_price\" != 983.8596 OR other_property_details <> \"None\" AND apt_feature_3 <> \"None\" OR \"room_count\" > 8 AND hse_feature_1 != \"None\" OR shp_feature_3 <> \"None\" OR shp_feature_2 = \"None\" AND \"buyer_offered_price\" < 3520911.5258 AND \"agreed_selling_price\" <= 244353758.1824 AND oth_feature_1 = \"None\" AND fld_feature_3 <> \"None\" AND date_sold <> \"1981-06-26 21:28:28\" OR oth_feature_3 = \"None\" AND \"property_id\" <= 1 OR property_type_code <> \"Other\" OR property_name = \"longacre\" AND apt_feature_2 <> \"eos\" AND hse_feature_3 = \"None\" AND apt_feature_1 <> \"sed\" OR fld_feature_1 <> \"None\""} {"question": "Which driver IDs are both greater than or equal to 3 and also not equal to 3, considering driver IDs from both the driver and school_bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bomol_12.png", "TableImg_4p22l_5.png"], "original_data_index": 7559, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3 from the driver list and excluding driver ID 9 from the school bus list, combining both lists into one?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mgntp_12.png", "TableImg_80l2j_5.png"], "original_data_index": 7557, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 4, combined with a list of driver IDs from the school_bus table where each ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gxqqq_12.png", "TableImg_Zbf0s_5.png"], "original_data_index": 7560, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the number of ModelIds and the average Maker value for entries in the model list where either the ModelId is 4 or the Maker is greater than 6 and the Model is \"fiat\", combined with the number of ModelIds and average Maker value for entries where either the Maker is less than 4 or the ModelId is less than 17?", "answer": {"columns": ["COUNT(ModelId)", "AVG(Maker)"], "index": [0, 1], "data": [["2", "6.5"], ["17", "5.8235294118"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_9zr9e_36.png", "TableImg_Ae2c4_36.png"], "original_data_index": 7558, "original_sql": "SELECT COUNT(ModelId), AVG(Maker) FROM model_list WHERE \"ModelId\" = 4 OR \"Maker\" > 6 AND Model = \"fiat\" UNION SELECT COUNT(ModelId), AVG(Maker) FROM model_list WHERE \"Maker\" < 4 OR \"ModelId\" < 17"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 12 or greater, and those from the school bus table that are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9xvxa_12.png", "TableImg_Y46rm_5.png"], "original_data_index": 7562, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5, that appear in the driver table but not in the school_bus table, where driver ID 9 is also excluded from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1vney_12.png", "TableImg_Keoag_5.png"], "original_data_index": 7563, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the average lesson date, earliest lesson status code, staff ID, and number of lessons for staff IDs greater than 4 or vehicle IDs not equal to 1, combined with the same information for staff IDs less than 12?", "answer": {"columns": ["AVG(lesson_date)", "MIN(lesson_status_code)", "staff_id", "COUNT(lesson_id)"], "index": [0, 1], "data": [["2018", "Cancelled", "8", "11"], ["2018", "Cancelled", "8", "15"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Uyn3s_15.png", "TableImg_B0y88_15.png"], "original_data_index": 7561, "original_sql": "SELECT AVG(lesson_date), MIN(lesson_status_code), staff_id, COUNT(lesson_id) FROM Lessons WHERE \"staff_id\" > 4 OR \"vehicle_id\" != 1 UNION SELECT AVG(lesson_date), MIN(lesson_status_code), staff_id, COUNT(lesson_id) FROM Lessons WHERE \"staff_id\" < 12"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not 11 with those from the school bus table that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q0oj5_12.png", "TableImg_6teeo_5.png"], "original_data_index": 7564, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which aircraft IDs are less than 4 and also greater than 2, considering only the aircraft IDs that appear in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0vm42_5.png", "TableImg_94amb_4.png"], "original_data_index": 7567, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs that are greater than 9 and also not equal to 4, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bfv8z_12.png", "TableImg_7a5jl_5.png"], "original_data_index": 7565, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you tell me the alphabetically first employee name among those younger than 43, with an employee ID of 1 or less, and not from Leicester, combined with the alphabetically first shop name that's \"KuPS\" with fewer than 10770 products, located in the Arto Tolsa Areena district, not in Kuopio, and has a shop ID greater than 1, or a manager other than Olli Huttunen?", "answer": {"columns": ["MIN(Name)"], "index": [0, 1], "data": [["FC Honka"], ["George Chuter"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_Lkf3m_10.png", "TableImg_Wb7pb_9.png"], "original_data_index": 7566, "original_sql": "SELECT MIN(Name) FROM employee WHERE \"Age\" < 43 AND \"Employee_ID\" <= 1 AND City <> \"Leicester\" UNION SELECT MIN(Name) FROM shop WHERE Name = \"KuPS\" AND \"Number_products\" < 10770 AND District = \"Arto Tolsa Areena\" AND Location != \"Kuopio\" AND \"Shop_ID\" > 1 OR Manager_name <> \"Olli Huttunen\""} {"question": "Which driver IDs are both not equal to 1 and greater than 7, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T9gux_12.png", "TableImg_9tipp_5.png"], "original_data_index": 7568, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list all aircraft IDs, including aircraft ID 5 from the aircraft table and all aircraft IDs except 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R8a80_5.png", "TableImg_Qn95i_4.png"], "original_data_index": 7571, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of aircraft IDs, up to and including 5, that appear in the aircraft table, but are not aircraft IDs less than 1 that appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dqvrv_5.png", "TableImg_R0ll6_4.png"], "original_data_index": 7569, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you give me a list of driver IDs that are greater than 10 from the driver table, excluding any driver IDs from the school_bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mjtxh_12.png", "TableImg_O1vxz_5.png"], "original_data_index": 7572, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list all aircraft IDs that are greater than 5 from the aircraft table, and combine that with a list of all aircraft IDs that are not equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O6y39_5.png", "TableImg_Ekuht_4.png"], "original_data_index": 7570, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What is the maximum height of people taller than 187 cm, and what are the corresponding poker player IDs?", "answer": {"columns": ["MAX(T1.Height)", "Poker_Player_ID"], "index": [0], "data": [["207", "1"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Co3d2_7.png", "TableImg_776j5_5.png"], "original_data_index": 7576, "original_sql": "SELECT MAX(T1.Height), T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID = T2.People_ID WHERE Height > 187.0"} {"question": "Which driver IDs are not equal to 8 and also less than 4, considering only unique driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Grgz9_12.png", "TableImg_Bu870_5.png"], "original_data_index": 7574, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 9 or higher, combined with a list of driver IDs from the school bus table where the ID is 10 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S6d94_12.png", "TableImg_Iwqk8_5.png"], "original_data_index": 7575, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of aircraft IDs that are both aircraft IDs with the value 3 in the aircraft table and aircraft IDs with the value 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4ijzp_5.png", "TableImg_8f2o6_4.png"], "original_data_index": 7573, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 8 and also not equal to 7, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5em72_12.png", "TableImg_Nkhk7_5.png"], "original_data_index": 7580, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are greater than 7 and also appear as driver IDs in the school bus table, excluding driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2hs1g_12.png", "TableImg_Anq7w_5.png"], "original_data_index": 7579, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 12, and also those from the school_bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D60rd_12.png", "TableImg_Irw3z_5.png"], "original_data_index": 7578, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs appear exactly once as driver IDs in the driver table, specifically driver ID 7, but do not appear as driver ID 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5krgd_12.png", "TableImg_8rs66_5.png"], "original_data_index": 7577, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Could you give me the address IDs that are 9 or greater, excluding any address IDs that are less than 0?", "answer": {"columns": ["address_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["0"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Olmkg_10.png", "TableImg_Zmwcm_10.png"], "original_data_index": 7581, "original_sql": "SELECT address_id FROM Addresses WHERE \"address_id\" >= 9 NOT IN (SELECT address_id FROM Addresses WHERE \"address_id\" < 0)"} {"question": "Can you give me the year, branch ID, total pounds, and member ID from purchases that are both from branches other than branch 5 and have a total pounds greater than 430.29?", "answer": {"columns": ["Year", "Branch_ID", "Total_pounds", "Member_ID"], "index": [0, 1], "data": [["2017", "1", "988.09", "3"], ["2018", "3", "2013.32", "1"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_621k9_8.png", "TableImg_2ant4_8.png"], "original_data_index": 7583, "original_sql": "SELECT Year, Branch_ID, Total_pounds, Member_ID FROM purchase WHERE Branch_ID != \"5\" INTERSECT SELECT Year, Branch_ID, Total_pounds, Member_ID FROM purchase WHERE \"Total_pounds\" > 430.29"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, where each ID is less than 8 and appears at least once in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rx2lk_12.png", "TableImg_Dgtig_5.png"], "original_data_index": 7582, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S8pib_12.png", "TableImg_44h8k_5.png"], "original_data_index": 7584, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs where the ID is 6 from the driver table, combined with a list of driver IDs greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nmeeh_12.png", "TableImg_9vbxm_5.png"], "original_data_index": 7585, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list the aircraft IDs that are less than 3, and also list the aircraft IDs from the airport aircraft table that are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9x1wo_5.png", "TableImg_3s2he_4.png"], "original_data_index": 7587, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than or equal to 8, excluding those driver IDs that are also less than 4 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hyqzj_12.png", "TableImg_4wn1k_5.png"], "original_data_index": 7588, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, including those with the ID 11 from the driver table, and those with IDs less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aloih_12.png", "TableImg_Kg3ef_5.png"], "original_data_index": 7589, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are 11 or less, excluding any driver IDs that also appear in the school bus list, except for driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jemwg_12.png", "TableImg_Bwtul_5.png"], "original_data_index": 7590, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me the address IDs that are greater than or equal to 3, where the address details are not \"PT\", and are also not \"MX\"?", "answer": {"columns": ["address_id"], "index": [0], "data": [["7"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_1ool0_10.png", "TableImg_B71pl_10.png"], "original_data_index": 7591, "original_sql": "SELECT address_id FROM Addresses WHERE \"address_id\" >= 3 AND address_details != \"PT\" IN (SELECT address_id FROM Addresses WHERE address_details != \"MX\")"} {"question": "Can you give me a list of driver IDs that are less than 5, excluding any driver IDs that are also in the school bus list and are greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5lgmy_12.png", "TableImg_W0xho_5.png"], "original_data_index": 7592, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs appear in the driver table, excluding driver ID 5, and also appear in the school_bus table with driver ID 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8u7dm_12.png", "TableImg_K017z_5.png"], "original_data_index": 7593, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What is the average item ID of items where the ID is less than or equal to 3, or where the title is not \"apple\" and also not in the average item ID of items whose title is not \"shampoo\"?", "answer": {"columns": ["AVG(i_id)"], "index": [0], "data": [["3.5"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_R1axs_8.png", "TableImg_5g0j7_8.png"], "original_data_index": 7594, "original_sql": "SELECT AVG(i_id) FROM item WHERE \"i_id\" <= 3 OR title <> \"apple\" NOT IN (SELECT AVG(i_id) FROM item WHERE title <> \"shampoo\")"} {"question": "Which driver IDs are not equal to 2 and are also less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X6xzz_12.png", "TableImg_K5lgp_5.png"], "original_data_index": 7595, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 9, excluding any driver IDs that are also equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F32hm_12.png", "TableImg_H97um_5.png"], "original_data_index": 7596, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only aircraft IDs less than 5, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xiad7_5.png", "TableImg_9at9p_4.png"], "original_data_index": 7597, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are both equal to 10 in the driver table and greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T1ryy_12.png", "TableImg_43ylu_5.png"], "original_data_index": 7601, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 1 and those from the airport_aircraft table that are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zss4w_5.png", "TableImg_Lj5j3_4.png"], "original_data_index": 7598, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What is the smallest feature type code, excluding those with the name \"Securiyt, eg Burglar Alarm.\", and also the smallest feature type code when either the code is not \"Security\" or the name is not \"Amenity, eg Pool.\"?", "answer": {"columns": ["MIN(feature_type_code)"], "index": [0, 1], "data": [["Amenity"], ["Amenity"]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Qgbew_2.png", "TableImg_Klp7d_2.png"], "original_data_index": 7599, "original_sql": "SELECT MIN(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name <> \"Securiyt, eg Burglar Alarm.\" UNION ALL SELECT MIN(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_code != \"Security\" OR feature_type_name != \"Amenity, eg Pool.\""} {"question": "Can you list all continents from the continents table, excluding Australia and only including those with a ContId greater than 3, and also list the continent with ID 4 from the countries table, but only if the country name is Brazil and the CountryId is not 11?", "answer": {"columns": ["Continent"], "index": [0], "data": [["africa"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_Hh1er_5.png", "TableImg_Aio9w_15.png"], "original_data_index": 7600, "original_sql": "SELECT Continent FROM continents WHERE Continent != \"australia\" AND \"ContId\" > 3 UNION ALL SELECT Continent FROM countries WHERE \"Continent\" = 4 AND CountryName = \"brazil\" AND \"CountryId\" <> 11"} {"question": "What allergies, excluding nuts, are associated with allergy types other than food, but are not associated with any allergies besides ragweed or students with IDs less than 1021?", "answer": {"columns": ["Allergy"], "index": [0], "data": [["Bee Stings"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_S9qqp_14.png", "TableImg_Lhmt1_59.png"], "original_data_index": 7602, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType <> \"food\" AND Allergy <> \"Nuts\" EXCEPT SELECT Allergy FROM Has_Allergy WHERE Allergy != \"Ragweed\" OR \"StuID\" < 1021"} {"question": "Can you list the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are equal to 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uydx8_5.png", "TableImg_Ar7xy_4.png"], "original_data_index": 7604, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are also aircraft IDs that are greater than or equal to 3 and are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9vjud_5.png", "TableImg_Qimdt_4.png"], "original_data_index": 7606, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What is the largest airport name, first excluding those with IATA code \"BCN\" and located in \"Baltimore\", and then separately, considering all airports with an ID less than 6, or with IATA code \"BCN\", or not in \"Spain\", or not in \"Baltimore\", and finally combining the results to give me the largest name from each of those two groups?", "answer": {"columns": ["MAX(name)"], "index": [0], "data": [["Ted Stevens Airport"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Llul1_9.png", "TableImg_Riung_9.png"], "original_data_index": 7603, "original_sql": "SELECT MAX(name) FROM airport WHERE IATA <> \"BCN\" AND City <> \"Baltimore\" UNION SELECT MAX(name) FROM airport WHERE \"id\" < 6 OR IATA = \"BCN\" OR Country <> \"Spain\" OR City <> \"Baltimore\""} {"question": "What is the highest certificate ID where the employee ID is less than or equal to 141582651 and the certificate ID is not 5, combined with the highest flight ID where the price is not 235.98, or the origin is not Los Angeles, or the distance is less than or equal to 2551 and the arrival date is \"04/12/2005 03:55\", or the destination is not Washington D.C.?", "answer": {"columns": ["MAX(aid)"], "index": [0, 1], "data": [["12"], ["10"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_3ea0a_69.png", "TableImg_0h8hl_10.png"], "original_data_index": 7605, "original_sql": "SELECT MAX(aid) FROM certificate WHERE \"eid\" <= 141582651 AND \"aid\" != 5 UNION ALL SELECT MAX(aid) FROM flight WHERE \"price\" != 235.98 OR origin != \"Los Angeles\" OR \"distance\" <= 2551 AND arrival_date = \"04/12/2005 03:55\" OR destination != \"Washington D.C.\""} {"question": "Can you give me the weight, age, and type of pets, excluding those with PetID 2003, or a weight less than or equal to 12, or an age not equal to 2, or a type other than \"dog\", but then remove any results where the pet type is not \"cat\"?", "answer": {"columns": ["weight", "pet_age", "PetType"], "index": [0], "data": [["12", "3", "cat"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_Zth9p_3.png", "TableImg_Zisla_3.png"], "original_data_index": 7607, "original_sql": "SELECT weight, pet_age, PetType FROM Pets WHERE \"PetID\" <> 2003 OR \"weight\" <= 12.0 OR \"pet_age\" <> 2 OR PetType != \"dog\" EXCEPT SELECT weight, pet_age, PetType FROM Pets WHERE PetType != \"cat\""} {"question": "Can you give me a list of driver IDs that are greater than or equal to 2, excluding those driver IDs that are also greater than 10 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6pj4u_12.png", "TableImg_2h9fh_5.png"], "original_data_index": 7609, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs are both greater than or equal to 6 in the driver table and equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Se19p_12.png", "TableImg_Gn5iz_5.png"], "original_data_index": 7610, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the feature description, name, ID, and type code for all available features, excluding those with a description of \"Burglar Alarm\" or a name of \"BurglarAlarm\", and also include features with a description of \"Air Conditioning.\", a type code of \"Amenity\", a name other than \"BurglarAlarm\", and an ID less than 4?", "answer": {"columns": ["feature_description", "feature_name", "feature_id", "feature_type_code"], "index": [0, 1], "data": [["Air Conditioning.", "AirCon", "2", "Amenity"], ["Swimming Pool.", "Pool", "3", "Amenity"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_Wuqwl_3.png", "TableImg_0kjew_3.png"], "original_data_index": 7608, "original_sql": "SELECT feature_description, feature_name, feature_id, feature_type_code FROM Other_Available_Features WHERE feature_description <> \"Burglar Alarm\" OR feature_name <> \"BurglarAlarm\" UNION SELECT feature_description, feature_name, feature_id, feature_type_code FROM Other_Available_Features WHERE feature_description = \"Air Conditioning.\" AND feature_type_code = \"Amenity\" AND feature_name <> \"BurglarAlarm\" AND \"feature_id\" < 4"} {"question": "Can you list the aircraft IDs that are less than 3 from the aircraft table, combined with the aircraft IDs that are less than or equal to 5 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3elet_5.png", "TableImg_Bm4ou_4.png"], "original_data_index": 7611, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 3, and those from the school bus table where the ID is 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E7mdf_12.png", "TableImg_Tm6i4_5.png"], "original_data_index": 7615, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list the Aircraft IDs that are greater than or equal to 5 from the aircraft table, and also include the Aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zmdw1_5.png", "TableImg_2cf5r_4.png"], "original_data_index": 7614, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 7, with those from the school bus table including only driver IDs greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Un3cn_12.png", "TableImg_Js66q_5.png"], "original_data_index": 7612, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, from the driver table, but only those driver IDs that are not also in the school bus table where the driver ID is less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kq7oq_12.png", "TableImg_Lvdos_5.png"], "original_data_index": 7613, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs are both greater than or equal to 6 in the driver table and greater than or equal to 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2s86x_12.png", "TableImg_Mf974_5.png"], "original_data_index": 7619, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of album IDs where the album title is not \"A Matter of Life and Death\", combined with a list of media type IDs where the media type name is \"MPEG audio file\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_Gg8m7_347.png", "TableImg_J9tq0_5.png"], "original_data_index": 7616, "original_sql": "SELECT id FROM albums WHERE title != \"A Matter of Life and Death\" UNION SELECT id FROM media_types WHERE name = \"MPEG audio file\""} {"question": "Which driver IDs, excluding driver ID 6, appear in the driver table but not among driver IDs greater than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7lgiq_12.png", "TableImg_8x3r9_5.png"], "original_data_index": 7618, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list the distance and name for all aircraft that are either Airbus A340-300s or have a distance that isn't 2605, combined with the distance and name for all aircraft that aren't SAAB 340s?", "answer": {"columns": ["distance", "name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["30", "Schwitzer 2-33"], ["520", "Piper Archer III"], ["1502", "British Aerospace Jetstream 41"], ["1504", "Boeing 727"], ["1530", "Embraer ERJ-145"], ["1805", "Airbus A319"], ["2128", "SAAB 340"], ["2605", "Airbus A320"], ["3383", "Boeing 737-800"], ["4010", "Boeing 757-300"], ["4103", "Tupolev 154"], ["6441", "Boeing 777-300"], ["6475", "Boeing 767-400ER"], ["6900", "Lockheed L1011"], ["7120", "Airbus A340-300"], ["8430", "Boeing 747-400"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_026tz_16.png", "TableImg_Rg6u5_16.png"], "original_data_index": 7617, "original_sql": "SELECT distance, name FROM aircraft WHERE name = \"Airbus A340-300\" OR \"distance\" != 2605 UNION SELECT distance, name FROM aircraft WHERE name != \"SAAB 340\""} {"question": "Which driver IDs are both not equal to 9 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4m1id_12.png", "TableImg_9fqqr_5.png"], "original_data_index": 7620, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which aircraft IDs, excluding aircraft ID 5, are also aircraft ID 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4p6ji_5.png", "TableImg_Zr6tq_4.png"], "original_data_index": 7621, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 9, and those from the school bus table with driver IDs of 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dj8x9_12.png", "TableImg_Qagzs_5.png"], "original_data_index": 7623, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me the name, ID, nationality, graduation college, and age of all people who are either 31 years old or from the United States, along with the same information for people who did not graduate from Northeastern and are 27 years old or younger?", "answer": {"columns": ["Name", "People_ID", "Nationality", "Graduation_College", "Age"], "index": [0, 1, 2, 3, 4, 5], "data": [["Reggie Lewis", "1", "United States", "Northeastern", "27"], ["Brad Lohaus", "2", "United States", "Iowa", "25"], ["Darryl Kennedy", "4", "United States", "Oklahoma", "31"], ["Tim Naegeli", "6", "United States", "Wisconsin\u2013Stevens Point", "37"], ["Jerry Corcoran", "7", "United States", "Northeastern", "30"], ["Brad Lohaus", "2", "United States", "Iowa", "25"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_6mrfq_7.png", "TableImg_Tslx7_7.png"], "original_data_index": 7622, "original_sql": "SELECT Name, People_ID, Nationality, Graduation_College, Age FROM people WHERE \"Age\" = 31 OR Nationality = \"United States\" UNION ALL SELECT Name, People_ID, Nationality, Graduation_College, Age FROM people WHERE Graduation_College != \"Northeastern\" AND \"Age\" <= 27"} {"question": "Which aircraft IDs, other than 5, are present in both the aircraft table and the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mmwts_5.png", "TableImg_Dngre_4.png"], "original_data_index": 7625, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 6, that are in the driver table but not in the school bus table where the driver ID is 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pj238_12.png", "TableImg_J8fb2_5.png"], "original_data_index": 7626, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, from the driver table, but only those driver IDs that are not also in the school bus table where the driver ID is less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4okus_12.png", "TableImg_Oirnc_5.png"], "original_data_index": 7624, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What document status descriptions are both \"currently working on\" and not associated with an overdue code, or are different from \"currently working on\"?", "answer": {"columns": ["document_status_description"], "index": [0], "data": [["currently working on"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Yxk3y_3.png", "TableImg_Z14ki_3.png"], "original_data_index": 7629, "original_sql": "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description = \"currently working on\" INTERSECT SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code <> \"overdue\" OR document_status_description != \"currently working on\""} {"question": "Can you give me a list of driver IDs, including those that are equal to 6 from the driver table, and those that are less than 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xj58s_12.png", "TableImg_Nuzrh_5.png"], "original_data_index": 7630, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, where each ID is less than 8, excluding those driver IDs that are less than or equal to 4 and are also in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vkre9_12.png", "TableImg_Daj65_5.png"], "original_data_index": 7627, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are less than or equal to 9 from the driver table, combined with a list of driver IDs that are less than or equal to 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4xmvb_12.png", "TableImg_Rxgnm_5.png"], "original_data_index": 7628, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are greater than 1 and also greater than 9, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1j5nh_12.png", "TableImg_F7eil_5.png"], "original_data_index": 7633, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Could you list the description of each aircraft along with its corresponding ID from the airport?", "answer": {"columns": ["Description", "ID"], "index": [0, 1, 2, 3], "data": [["Heavy-lift helicopter", "1"], ["Light utility helicopter", "2"], ["Turboshaft utility helicopter", "3"], ["Tandem rotor helicopter", "4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6l9hx_5.png", "TableImg_Rh67j_4.png"], "original_data_index": 7634, "original_sql": "SELECT T1.Description, T2.ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 8, and those from the school bus table with driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sjuyj_12.png", "TableImg_H59pj_5.png"], "original_data_index": 7632, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 1, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gynnx_5.png", "TableImg_Jz36k_4.png"], "original_data_index": 7631, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs from the driver table, excluding driver ID 4, that are not also driver IDs less than 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nw943_12.png", "TableImg_7oa3w_5.png"], "original_data_index": 7636, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, including those that are exactly 12 from the driver table and those less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_61rso_12.png", "TableImg_Ciqux_5.png"], "original_data_index": 7637, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me the IDs of drivers with IDs greater than 6, excluding those driver IDs that are also in the school bus table and are greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bvq2i_12.png", "TableImg_Fh2nt_5.png"], "original_data_index": 7635, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the average shipping agent codes for each shipping agent name, both for agents whose code is not \"AL\" and whose description is not \"w\", and separately for agents whose description is \"q\"?", "answer": {"columns": ["shipping_agent_name", "AVG(shipping_agent_code)"], "index": [0, 1], "data": [["UPS", "0"], ["USPS", "0"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_H95bj_5.png", "TableImg_04phr_5.png"], "original_data_index": 7638, "original_sql": "SELECT shipping_agent_name, AVG(shipping_agent_code) FROM Ref_Shipping_Agents WHERE shipping_agent_code != \"AL\" AND shipping_agent_description != \"w\" UNION ALL SELECT shipping_agent_name, AVG(shipping_agent_code) FROM Ref_Shipping_Agents WHERE shipping_agent_description = \"q\""} {"question": "How many features are associated with each property, considering only features that are not described as \"odio\" and are not named \"Pool\", or if the feature description is \"Swimming Pool\"?", "answer": {"columns": ["COUNT(T1.feature_id)", "property_id"], "index": [0], "data": [["15", "15"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_50dnv_3.png", "TableImg_8kyvr_15.png"], "original_data_index": 7639, "original_sql": "SELECT COUNT(T1.feature_id), T2.property_id FROM Other_Available_Features as T1 JOIN Other_Property_Features as T2 ON T1.feature_id = T2.feature_id WHERE property_feature_description <> \"odio\" AND feature_name <> \"Pool\" OR feature_description = \"Swimming Pool.\""} {"question": "Can you list the aircraft IDs, including those with an ID of 1 from the aircraft table, and those with an ID of 3 or less from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K6fb1_5.png", "TableImg_9hnvv_4.png"], "original_data_index": 7640, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 12 and also greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pvy6o_12.png", "TableImg_Wj064_5.png"], "original_data_index": 7641, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you show me the Member ID, Branch ID, earliest year, and total pounds from the purchase table for purchases made in 2017, and also for purchases where the Branch ID is 1 and the total pounds are at least 402.1, or the Member ID is 2, or the year is not 2018?", "answer": {"columns": ["Member_ID", "Branch_ID", "MIN(Year)", "Total_pounds"], "index": [0, 1], "data": [["3", "1", "2017", "988.09"], ["3", "1", "2017", "988.09"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_D7lte_8.png", "TableImg_Bpfus_8.png"], "original_data_index": 7642, "original_sql": "SELECT Member_ID, Branch_ID, MIN(Year), Total_pounds FROM purchase WHERE Year = \"2017\" UNION ALL SELECT Member_ID, Branch_ID, MIN(Year), Total_pounds FROM purchase WHERE Branch_ID = \"1\" AND \"Total_pounds\" >= 402.1 OR \"Member_ID\" = 2 OR Year != \"2018\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ie2bd_12.png", "TableImg_Mommz_5.png"], "original_data_index": 7646, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What is the total of all Company IDs for companies with sales of at least 62.4 billion, that are not named Wells Fargo, have a Company ID of 8 or less, assets not equal to 213 billion, and a market value of at least 107.5 billion, combined with the total of all Company IDs for companies with assets of 331.1 billion or a market value of at least 201.9 billion?", "answer": {"columns": ["SUM(Company_ID)"], "index": [0, 1], "data": [["36"], ["69"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_59i9n_19.png", "TableImg_Avi9v_19.png"], "original_data_index": 7647, "original_sql": "SELECT SUM(Company_ID) FROM company WHERE \"Sales_in_Billion\" >= 62.4 AND Name <> \"Wells Fargo\" AND \"Company_ID\" <= 8.0 AND \"Assets_in_Billion\" != 213.0 AND \"Market_Value_in_Billion\" >= 107.5 UNION ALL SELECT SUM(Company_ID) FROM company WHERE \"Assets_in_Billion\" = 331.1 OR \"Market_Value_in_Billion\" >= 201.9"} {"question": "Can you give me a list of album IDs where the artist ID is 197 or the album ID is 29 or less, combined with a list of media type IDs that are 5 or less?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["262"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_7km77_347.png", "TableImg_Qe05b_5.png"], "original_data_index": 7648, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" = 197 OR \"id\" <= 29 UNION SELECT id FROM media_types WHERE \"id\" <= 5"} {"question": "Can you list the driver IDs that are greater than or equal to 7 from the driver table, and combine that with a list of driver IDs that are greater than or equal to 9 from the school_bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pneer_12.png", "TableImg_Eghau_5.png"], "original_data_index": 7649, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of employee IDs for employees in Sale who are 32 or younger, combined with a list of employee IDs from hiring records that started in 2012 and are not associated with shop ID 1?", "answer": {"columns": ["Employee_ID"], "index": [0, 1], "data": [["4"], ["6"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Gikt2_10.png", "TableImg_6fdms_7.png"], "original_data_index": 7650, "original_sql": "SELECT Employee_ID FROM employee WHERE City = \"Sale\" AND \"Age\" <= 32 UNION SELECT Employee_ID FROM hiring WHERE Start_from = \"2012\" AND \"Shop_ID\" != 1"} {"question": "Could you list the Aircraft IDs that are less than 2 when grouped in the aircraft table, but also less than or equal to 3 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U9btr_5.png", "TableImg_Tj942_4.png"], "original_data_index": 7651, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which driver IDs are greater than 2 and also greater than 3 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9mh79_12.png", "TableImg_Fgxll_5.png"], "original_data_index": 7652, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 8 and not equal to 3, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4vy8w_12.png", "TableImg_H5g6w_5.png"], "original_data_index": 7653, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are both equal to 9 and greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7gxga_12.png", "TableImg_4l1ws_5.png"], "original_data_index": 7654, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the lowest rank among coaches who are either not male and associated with a club ID of 3 or higher, or have a coach ID of 3 or higher, excluding the lowest rank among coaches who are associated with a club ID greater than 1 or are male?", "answer": {"columns": ["MIN(Rank)"], "index": [0], "data": [["3"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_N4vcf_5.png", "TableImg_1k1wg_5.png"], "original_data_index": 7644, "original_sql": "SELECT MIN(Rank) FROM coach WHERE Gender <> \"M\" AND \"Club_ID\" >= 3 OR \"Coach_ID\" >= 3 EXCEPT SELECT MIN(Rank) FROM coach WHERE \"Club_ID\" > 1 OR Gender = \"M\""} {"question": "Can you list all branch names that are either not in London and have a Branch ID less than 6, or are not named Cochrane, along with all member names that don't have a Level of 6?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Alexandre"], ["Popert"], ["Stanley"], ["Zytogorski"], ["Taverner"], ["Saint Amant"], ["Brooke Greville"], ["Micah Johnson"], ["Matt Lentz"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_Pnj59_8.png", "TableImg_Ql86y_10.png"], "original_data_index": 7645, "original_sql": "SELECT Name FROM branch WHERE City <> \"London\" AND \"Branch_ID\" < 6 OR Name <> \"Cochrane\" UNION ALL SELECT Name FROM member WHERE \"Level\" != 6"} {"question": "What is the smallest aircraft name that is both not 6441 in distance and also at least 520 in distance, excluding the Lockheed L1011?", "answer": {"columns": ["MIN(name)"], "index": [0], "data": [["Airbus A319"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Iliwp_16.png", "TableImg_Jve87_16.png"], "original_data_index": 7643, "original_sql": "SELECT MIN(name) FROM aircraft WHERE \"distance\" <> 6441 INTERSECT SELECT MIN(name) FROM aircraft WHERE \"distance\" >= 520 AND name <> \"Lockheed L1011\""} {"question": "Can you give me a list of driver IDs that are less than 12, excluding those driver IDs that are also less than or equal to 3 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pobdx_12.png", "TableImg_Kmu3t_5.png"], "original_data_index": 7658, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of aircraft IDs that are less than 3, excluding those aircraft IDs that also appear in the airport aircraft list with an ID of 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wc4i6_5.png", "TableImg_884zk_4.png"], "original_data_index": 7659, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 9, and those from the school bus table that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Klabt_12.png", "TableImg_91dd5_5.png"], "original_data_index": 7660, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list all the aircraft IDs from the aircraft table that are greater than or equal to 4, and combine that with a list of all aircraft IDs from the airport_aircraft table that are greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q8g4d_5.png", "TableImg_9ys3a_4.png"], "original_data_index": 7661, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of vehicle IDs that are 3 or greater and not a truck, combined with a list of vehicle IDs that are greater than 2?", "answer": {"columns": ["vehicle_id"], "index": [0, 1], "data": [["3"], ["3"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Pctdn_3.png", "TableImg_Lsla5_3.png"], "original_data_index": 7662, "original_sql": "SELECT vehicle_id FROM Vehicles WHERE \"vehicle_id\" >= 3 AND vehicle_details <> \"Truck\" UNION ALL SELECT vehicle_id FROM Vehicles WHERE \"vehicle_id\" > 2"} {"question": "Which driver IDs are present in both the driver list (excluding driver 8) and the school bus list (excluding driver 4)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Trnl1_12.png", "TableImg_8m7dv_5.png"], "original_data_index": 7663, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you tell me the store name, average store ID, ranking, and average type for stores that either have a store ID of 2 and a ranking of 9 or higher, or are not a City Mall type, or are named Rogersville and have a number of product categories not equal to 1170, combined with the store name, average store ID, ranking, and average type for stores that are not Village Stores or have a store ID of 3 or higher and are not named Blackville?", "answer": {"columns": ["Store_Name", "AVG(Store_ID)", "Ranking", "AVG(Type)"], "index": [0, 1], "data": [["Miramichi", "3", "2", "0"], ["Neguac", "3", "3", "0"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_Secrk_5.png", "TableImg_3p8ld_5.png"], "original_data_index": 7664, "original_sql": "SELECT Store_Name, AVG(Store_ID), Ranking, AVG(Type) FROM store WHERE \"Store_ID\" = 2 AND \"Ranking\" >= 9 OR Type <> \"City Mall\" OR Store_Name = \"Rogersville\" AND \"Number_of_product_category\" != 1170.0 UNION SELECT Store_Name, AVG(Store_ID), Ranking, AVG(Type) FROM store WHERE Type != \"Village Store\" OR \"Store_ID\" >= 3 AND Store_Name <> \"Blackville\""} {"question": "Can you give me a list of driver IDs that are 11 or less, excluding any driver IDs greater than 10 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_95svd_12.png", "TableImg_891w9_5.png"], "original_data_index": 7665, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the distance and ID for aircraft with a distance less than 4103 and a name other than Boeing 747-400 and an ID less than or equal to 8, along with the distance and ID for flights with a distance less than or equal to 802?", "answer": {"columns": ["distance", "aid"], "index": [0, 1, 2, 3, 4, 5], "data": [["3383", "2"], ["1502", "4"], ["1530", "5"], ["2128", "6"], ["520", "7"], ["802", "10"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_Pb4vn_16.png", "TableImg_8o3li_10.png"], "original_data_index": 7666, "original_sql": "SELECT distance, aid FROM aircraft WHERE \"distance\" < 4103 AND name <> \"Boeing 747-400\" AND \"aid\" <= 8 UNION ALL SELECT distance, aid FROM flight WHERE \"distance\" <= 802"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 4, that are not also aircraft IDs, excluding aircraft ID 5, found in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yscjh_5.png", "TableImg_Pk8tw_4.png"], "original_data_index": 7656, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you list all the aircraft IDs, combining those from the aircraft table that aren't 3 with those from the airport_aircraft table that are 3 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_09pn2_5.png", "TableImg_Lbarw_4.png"], "original_data_index": 7657, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What is the highest book ID for books titled \"Gemini Blood\" or those that don't have 12 issues and aren't written by Dave Gibbons, or have a book ID less than 10, combined with the highest book ID for books that have exactly 12 issues, aren't titled \"Cyberella\", and don't have a book ID of 8?", "answer": {"columns": ["MAX(Book_ID)"], "index": [0, 1], "data": [["10"], ["9"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_V4b7z_10.png", "TableImg_K5iy6_10.png"], "original_data_index": 7655, "original_sql": "SELECT MAX(Book_ID) FROM book WHERE Title = \"Gemini Blood\" OR \"Issues\" <> 12.0 AND Writer != \"Dave Gibbons\" OR \"Book_ID\" < 10 UNION ALL SELECT MAX(Book_ID) FROM book WHERE \"Issues\" = 12.0 AND Title != \"Cyberella\" AND \"Book_ID\" <> 8"} {"question": "Can you give me a list of driver IDs that are not 7, where each ID appears at least once in the driver table, excluding any driver IDs that are greater than 9 and appear at least once in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tntrn_12.png", "TableImg_Z2vno_5.png"], "original_data_index": 7667, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which aircraft have an ID of 1 and also have an ID less than or equal to 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6kg5y_5.png", "TableImg_Iknbd_4.png"], "original_data_index": 7669, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than 2, combined with a list of driver IDs from the school_bus table where the ID is not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V93y5_12.png", "TableImg_Pzdci_5.png"], "original_data_index": 7668, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver has an ID of 4 and also has a driver ID less than or equal to 10 on a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fg9p6_12.png", "TableImg_Myrss_5.png"], "original_data_index": 7670, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 2, from both the aircraft and airport_aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1q65f_5.png", "TableImg_J6mqf_4.png"], "original_data_index": 7672, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1 from the driver table and driver ID 7 from the school_bus table, making sure there are no duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1g8dw_12.png", "TableImg_U00ff_5.png"], "original_data_index": 7671, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list the aircraft IDs that are less than or equal to 2, excluding those aircraft IDs that are also greater than 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V10nf_5.png", "TableImg_5y03f_4.png"], "original_data_index": 7674, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 1, combined with a list of driver IDs from the school_bus table that are less than or equal to 10, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2wius_12.png", "TableImg_Gjxgg_5.png"], "original_data_index": 7673, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list all aircraft IDs that are greater than or equal to 5 from the aircraft table, and also list all aircraft IDs that are greater than or equal to 1 from the airport_aircraft table, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hjc48_5.png", "TableImg_Bm44e_4.png"], "original_data_index": 7677, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you list the aircraft IDs that are less than 1, and also list the aircraft IDs from the airport aircraft table that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R5td1_5.png", "TableImg_K1ry7_4.png"], "original_data_index": 7675, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me the largest People ID from the 'people' table where either the height is at least 193 cm, or the birth date is not May 26, 1986 and the name is not Roman Bragin, or the People ID is 7, or the nationality is Russia, but only if it's also the largest Poker Player ID from the 'poker_player' table where either the earnings are greater than 596462, or the money rank is not 141 and the final tables made are less than 19, or the Poker Player ID is greater than 1?", "answer": {"columns": ["MAX(People_ID)"], "index": [0], "data": [["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Ppnhs_7.png", "TableImg_Cfohq_5.png"], "original_data_index": 7676, "original_sql": "SELECT MAX(People_ID) FROM people WHERE \"Height\" >= 193.0 OR Birth_Date != \"May 26, 1986\" AND Name <> \"Roman Bragin\" OR \"People_ID\" = 7 OR Nationality = \"Russia\" INTERSECT SELECT MAX(People_ID) FROM poker_player WHERE \"Earnings\" > 596462.0 OR \"Money_Rank\" != 141.0 AND \"Final_Table_Made\" < 19.0 OR \"Poker_Player_ID\" > 1"} {"question": "What are the bed types for room IBD, and also the bed types for any room that isn't decorated in a traditional style?", "answer": {"columns": ["bedType"], "index": [0, 1, 2], "data": [["Double"], ["King"], ["Queen"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_T3pwo_10.png", "TableImg_Dib2j_10.png"], "original_data_index": 7678, "original_sql": "SELECT bedType FROM Rooms WHERE RoomId = \"IBD\" UNION SELECT bedType FROM Rooms WHERE decor <> \"traditional\""} {"question": "Can you list all address IDs and their details, including those with address details equal to \"ES\", combined with all other addresses where the address details are not \"ES\" or the address ID is not 0?", "answer": {"columns": ["address_id", "address_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["0", "IT"], ["1", "MX"], ["2", "DE"], ["3", "ES"], ["4", "ES"], ["5", "IE"], ["6", "US"], ["7", "PT"], ["8", "IE"], ["9", "MX"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_7w2kd_10.png", "TableImg_9n8gf_10.png"], "original_data_index": 7679, "original_sql": "SELECT address_id, address_details FROM Addresses WHERE address_details = \"ES\" UNION SELECT address_id, address_details FROM Addresses WHERE address_details <> \"ES\" OR \"address_id\" <> 0"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 3, and those from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Epv6p_12.png", "TableImg_Oxz45_5.png"], "original_data_index": 7680, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are not equal to 2 and are also less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uedi0_12.png", "TableImg_Fahr4_5.png"], "original_data_index": 7681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the driver IDs that are greater than 7 from the driver table, combined with the driver IDs that are less than 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0scl7_12.png", "TableImg_Ytru5_5.png"], "original_data_index": 7682, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D7caj_12.png", "TableImg_Hhmc9_5.png"], "original_data_index": 7683, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me the Driver ID from the driver table, where the Driver ID is 1, excluding any Driver IDs from the school_bus table that are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6a4ul_12.png", "TableImg_3ulqn_5.png"], "original_data_index": 7687, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the aircraft IDs that are less than 4 from the aircraft table, and also include the aircraft ID that is exactly 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dr172_5.png", "TableImg_0hq7n_4.png"], "original_data_index": 7685, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs that are equal to 7 from the driver table, combined with a list of driver IDs that are not equal to 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tvfa2_12.png", "TableImg_B3rc1_5.png"], "original_data_index": 7688, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are greater than 2, but exclude any driver IDs from the school bus list that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zbeoy_12.png", "TableImg_K01vf_5.png"], "original_data_index": 7689, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list all the continents from the continents table where the continent ID is greater than 5 and the continent name is not Asia, and also include the continent from the countries table where the country name is Russia or the country ID is less than or equal to 10?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["2"], ["3"], ["2"], ["2"], ["2"], ["3"], ["2"], ["4"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_S7t04_5.png", "TableImg_Ro08f_15.png"], "original_data_index": 7690, "original_sql": "SELECT Continent FROM continents WHERE \"ContId\" > 5 AND Continent != \"asia\" UNION ALL SELECT Continent FROM countries WHERE CountryName = \"russia\" OR \"CountryId\" <= 10"} {"question": "What is the sum of Club IDs for clubs that either started in 2009 or later, or have a Club ID less than 4, combined with the sum of Club IDs from match results where either the number of small silver medals is 10 or more, or the number of gold medals is not 12, the points are not 66, the rank is 4 or higher, the Club ID is 5, and the number of big silver medals is less than 7, or the number of bronze medals is 8 or more?", "answer": {"columns": ["SUM(Club_ID)"], "index": [0, 1], "data": [["12"], ["12"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_8wfav_6.png", "TableImg_16liq_6.png"], "original_data_index": 7684, "original_sql": "SELECT SUM(Club_ID) FROM club WHERE \"Start_year\" >= 2009 OR \"Club_ID\" < 4 UNION ALL SELECT SUM(Club_ID) FROM match_result WHERE \"Small_Silver\" >= 10 OR \"Gold\" != 12 AND \"Points\" != 66 AND \"Rank\" >= 4 AND \"Club_ID\" = 5 AND \"Big_Silver\" < 7 OR \"Bronze\" >= 8"} {"question": "Can you give me the IDs of drivers who have IDs less than or equal to 10 and also have IDs greater than 7 in the school bus data?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q7bur_12.png", "TableImg_Mj80g_5.png"], "original_data_index": 7691, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 7, excluding any driver IDs that are equal to 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zgh7q_12.png", "TableImg_0mbzd_5.png"], "original_data_index": 7692, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs, excluding driver ID 10, are also driver IDs that equal 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G8n6e_12.png", "TableImg_Rg72b_5.png"], "original_data_index": 7694, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me the party affiliation and name of drivers who meet these conditions: either their ID is less than 8, or they don't live in East Hartford and are older than 40, or their name isn't Minnie Gonzalez; and also, their ID isn't 1, or they aren't affiliated with the Rep party?", "answer": {"columns": ["Party", "Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["Dem", "Angel Acre"], ["Dem", "Brandon McGee"], ["Dem", "Douglas McCrory"], ["Dem", "Edwin Vargas"], ["Dem", "Geoff Luxenberg"], ["Dem", "Henry Genga"], ["Dem", "Jason Rojas"], ["Dem", "Matthew Ritter"], ["Dem", "Minnie Gonzalez"], ["Dem", "Tim Larson"], ["Rep", "Dan Carter"], ["Rep", "Timothy Ackert"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_80ehv_12.png", "TableImg_If0yd_12.png"], "original_data_index": 7693, "original_sql": "SELECT Party, Name FROM driver WHERE \"Driver_ID\" < 8 OR Home_city <> \"East Hartford\" AND \"Age\" > 40 OR Name <> \"Minnie Gonzalez\" INTERSECT SELECT Party, Name FROM driver WHERE \"Driver_ID\" <> 1 OR Party != \"Rep\""} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 6, with those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Joofz_12.png", "TableImg_4zees_5.png"], "original_data_index": 7695, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of user IDs from reviews with ratings of 10 or less and an associated ID of 4 or more, combined with a list of user IDs for users named Emily?", "answer": {"columns": ["u_id"], "index": [0, 1, 2], "data": [["1"], ["2"], ["7"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Unpug_7.png", "TableImg_Dij4j_7.png"], "original_data_index": 7696, "original_sql": "SELECT u_id FROM review WHERE \"rating\" <= 10 AND \"a_id\" >= 4 UNION SELECT u_id FROM useracct WHERE name = \"Emily\""} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 3, and then from the airport_aircraft table including only aircraft IDs up to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sm1lr_5.png", "TableImg_2tb7b_4.png"], "original_data_index": 7697, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, where each listed driver ID is greater than 1 and appears more than once in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rgd9i_12.png", "TableImg_Hu5hi_5.png"], "original_data_index": 7698, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs, excluding driver ID 6, appear in the driver table but not in the school_bus table where the driver ID is 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vghom_12.png", "TableImg_I7zth_5.png"], "original_data_index": 7701, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are not 10 from the driver table, but only include those IDs that are also less than 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8qf6v_12.png", "TableImg_8ft6t_5.png"], "original_data_index": 7699, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are less than 5 from the driver table, combined with a list of driver IDs that are greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bkk9c_12.png", "TableImg_H97lx_5.png"], "original_data_index": 7700, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table with driver IDs of 4 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_02llr_12.png", "TableImg_A286u_5.png"], "original_data_index": 7704, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs that are less than or equal to 4, excluding any driver IDs that are not equal to 3 and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C1ff1_12.png", "TableImg_7os9e_5.png"], "original_data_index": 7702, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me the driver IDs that are both less than or equal to 6 and not equal to 9, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zli36_12.png", "TableImg_H4wm0_5.png"], "original_data_index": 7705, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the smallest PetID from the Has_Pet table where the PetID is at least 2001 or the StuID is not 1001, excluding the smallest PetID from the Pets table where the pet is not a dog, the PetID is 2002, and the pet's age is at least 3?", "answer": {"columns": ["MIN(PetID)"], "index": [0], "data": [["2001"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Uuv7f_3.png", "TableImg_5uq2u_3.png"], "original_data_index": 7703, "original_sql": "SELECT MIN(PetID) FROM Has_Pet WHERE \"PetID\" >= 2001 OR \"StuID\" <> 1001 EXCEPT SELECT MIN(PetID) FROM Pets WHERE PetType != \"dog\" AND \"PetID\" = 2002 AND \"pet_age\" >= 3"} {"question": "Can you give me a list of driver IDs, first from the driver table excluding driver ID 7, and then from the school_bus table including only driver IDs less than 7, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ekpmm_12.png", "TableImg_5uh2m_5.png"], "original_data_index": 7708, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the sum of school IDs for schools that are not private or are not 4th grade, combined with the sum of school IDs from the school bus table where the school ID is greater than 1, or the driver ID is not 3, or the driver is not full-time and has not worked for 3 years?", "answer": {"columns": ["SUM(School_ID)"], "index": [0, 1], "data": [["20"], ["28"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_S3pru_7.png", "TableImg_Kzqob_5.png"], "original_data_index": 7706, "original_sql": "SELECT SUM(School_ID) FROM school WHERE Type != \"Private\" OR Grade <> \"4th grade\" UNION SELECT SUM(School_ID) FROM school_bus WHERE \"School_ID\" > 1 OR \"Driver_ID\" <> 3 OR If_full_time = \"F\" AND \"Years_Working\" <> 3"} {"question": "Could you give me the document name, highest template ID, average other details, and document ID for all documents, excluding those with document descriptions not equal to \"r\" and document IDs greater than 651512, and including only those documents where the document name isn't \"Summer Show\", the document description isn't \"h\", or the template ID is less than or equal to 1?", "answer": {"columns": ["Document_Name", "MAX(Template_ID)", "AVG(Other_Details)", "Document_ID"], "index": [0], "data": [["Understanding DB", "25", "", "1"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_U5zgw_15.png", "TableImg_Jiq3g_15.png"], "original_data_index": 7707, "original_sql": "SELECT Document_Name, MAX(Template_ID), AVG(Other_Details), Document_ID FROM Documents WHERE Document_Name != \"Summer Show\" OR Document_Description != \"h\" OR \"Template_ID\" <= 1 EXCEPT SELECT Document_Name, MAX(Template_ID), AVG(Other_Details), Document_ID FROM Documents WHERE Document_Description != \"r\" AND \"Document_ID\" > 651512"} {"question": "Can you give me a list of driver IDs that appear in both the driver table, excluding driver ID 10, and the school bus table, including only driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3uerr_12.png", "TableImg_Q6gth_5.png"], "original_data_index": 7709, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs, excluding driver ID 9, are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q66fb_12.png", "TableImg_35re8_5.png"], "original_data_index": 7711, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are 11 or greater, excluding any driver IDs less than 9 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_33cuc_12.png", "TableImg_Ountu_5.png"], "original_data_index": 7710, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list all the role codes from employees who are not named Kenyon, or have \"h\" in their other details and an employee ID less than or equal to 1, or have a role code of \"PT\", along with all the role codes from roles that don't have \"Photo\" as their description?", "answer": {"columns": ["role_code"], "index": [0, 1, 2, 3], "data": [["ED"], ["MG"], ["PR"], ["PT"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_8jydu_6.png", "TableImg_6nub9_4.png"], "original_data_index": 7712, "original_sql": "SELECT role_code FROM Employees WHERE employee_name <> \"Kenyon\" OR other_details = \"h\" AND \"employee_id\" <= 1 OR role_code = \"PT\" UNION SELECT role_code FROM Roles WHERE role_description <> \"Photo\""} {"question": "Can you show me the Template ID, Document Name, the sum of Document Descriptions, the earliest Other Details, and Document ID from the Documents table, combining two sets of results: first, where the Document ID is greater than 76, or the Document Name is \"Do not panic\", or the Template ID is less than or equal to 6 and Other Details is \"None\"; and second, where the Template ID is less than or equal to 25, or the Document Name is not \"How Google people work\"?", "answer": {"columns": ["Template_ID", "Document_Name", "SUM(Document_Description)", "MIN(Other_Details)", "Document_ID"], "index": [0, 1], "data": [["11", "About Korea", "0", "", "385906526"], ["11", "About Korea", "0", "", "385906526"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_1iz3r_15.png", "TableImg_V93ku_15.png"], "original_data_index": 7713, "original_sql": "SELECT Template_ID, Document_Name, SUM(Document_Description), MIN(Other_Details), Document_ID FROM Documents WHERE \"Document_ID\" > 76 OR Document_Name = \"Do not panic\" OR \"Template_ID\" <= 6 AND Other_Details = \"None\" UNION ALL SELECT Template_ID, Document_Name, SUM(Document_Description), MIN(Other_Details), Document_ID FROM Documents WHERE \"Template_ID\" <= 25 OR Document_Name <> \"How Google people work\""} {"question": "What is the sum of the People IDs for individuals named Brad Lohaus, combined with the sum of People IDs for those who are not from the United States, or are 34 or younger, or have a People ID of 7 or greater, or did not graduate from Oklahoma, or are not named Darryl Kennedy?", "answer": {"columns": ["SUM(People_ID)"], "index": [0, 1], "data": [["2"], ["28"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Kwdjm_7.png", "TableImg_Lsr0b_7.png"], "original_data_index": 7715, "original_sql": "SELECT SUM(People_ID) FROM people WHERE Name = \"Brad Lohaus\" UNION ALL SELECT SUM(People_ID) FROM people WHERE Nationality != \"United States\" OR \"Age\" <= 34 OR \"People_ID\" >= 7 OR Graduation_College != \"Oklahoma\" OR Name != \"Darryl Kennedy\""} {"question": "Can you list all the animal allergies from the Allergy_Type table, and also list all allergies, except for Tree Pollen, from the Has_Allergy table for students with an ID less than 1010?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["Cat"], ["Dog"], ["Rodent"], ["Bee Stings"], ["Cat"], ["Shellfish"], ["Dog"], ["Nuts"], ["Nuts"], ["Nuts"], ["Ragweed"], ["Grass Pollen"], ["Eggs"], ["Milk"], ["Shellfish"], ["Anchovies"], ["Cat"], ["Dog"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_Ba0n9_14.png", "TableImg_Jc2v0_59.png"], "original_data_index": 7719, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType = \"animal\" UNION ALL SELECT Allergy FROM Has_Allergy WHERE \"StuID\" < 1010 AND Allergy != \"Tree Pollen\""} {"question": "Can you give me a list of driver IDs that are less than 7 and also not equal to 4, considering only the unique driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B6r9r_12.png", "TableImg_Ulz0x_5.png"], "original_data_index": 7716, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are less than 12 and also not equal to 3, considering only the driver IDs that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ul4fl_12.png", "TableImg_K8jlo_5.png"], "original_data_index": 7718, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs less than or equal to 9, excluding any driver IDs that appear in the school bus list, except for driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q4kuc_12.png", "TableImg_Xo6xy_5.png"], "original_data_index": 7720, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What aircraft IDs appear exactly once in the aircraft table and are not aircraft ID 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gwf3d_5.png", "TableImg_Ivkyk_4.png"], "original_data_index": 7721, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What is the average store ID for stores in the district table with an ID of 2 or greater, excluding the average store ID for products in the store_product table where the store ID is not 3?", "answer": {"columns": ["AVG(Store_ID)"], "index": [0], "data": [["3.5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_G0oy0_5.png", "TableImg_Uo0bi_15.png"], "original_data_index": 7722, "original_sql": "SELECT AVG(Store_ID) FROM store_district WHERE \"Store_ID\" >= 2 EXCEPT SELECT AVG(Store_ID) FROM store_product WHERE \"Store_ID\" <> 3"} {"question": "Can you give me a list of driver IDs that are not equal to 10, where each ID appears at least once in the driver table, excluding any driver IDs that are less than or equal to 3 and appear at least once in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Klgxg_12.png", "TableImg_H1mvn_5.png"], "original_data_index": 7724, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Could you give me a list of district IDs from the district table, excluding Kasur District and including those headquartered in Gujrat City or with a city population not equal to 365198 or a city area of 10 or more, but then remove any district IDs that are also in the store_district table where the store ID is less than 4 and the district ID is greater than 11?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Kyf15_15.png", "TableImg_Joj61_5.png"], "original_data_index": 7723, "original_sql": "SELECT District_ID FROM district WHERE District_name != \"Kasur District\" OR Headquartered_City = \"Gujrat City\" AND \"City_Population\" != 365198.0 OR \"City_Area\" >= 10.0 EXCEPT SELECT District_ID FROM store_district WHERE \"Store_ID\" < 4 AND \"District_ID\" > 11"} {"question": "Can you give me a list of driver IDs from the driver table where the driver ID is 8 or greater, combined with a list of driver IDs from the school bus table where the driver ID is exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5esu6_12.png", "TableImg_P1j2h_5.png"], "original_data_index": 7725, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What aircraft IDs, excluding ID 3, are in the aircraft table but not in the airport_aircraft table, also excluding ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nz3r4_5.png", "TableImg_Putl5_4.png"], "original_data_index": 7726, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of aircraft IDs, including those from the aircraft table that aren't 4, and those from the airport_aircraft table that are 1 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_D3x8z_5.png", "TableImg_S9jto_4.png"], "original_data_index": 7727, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of driver IDs that are 12 or less, and also not equal to 4, based on the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O79si_12.png", "TableImg_Dmwgf_5.png"], "original_data_index": 7728, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, combining those that are not equal to 10 from the driver table with those greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Em7xu_12.png", "TableImg_Uyytg_5.png"], "original_data_index": 7731, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs that are greater than 1 and also not equal to 7, considering only the unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jp891_12.png", "TableImg_Nfttg_5.png"], "original_data_index": 7729, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those less than 4 from the driver list and those greater than or equal to 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_76gtg_12.png", "TableImg_Of0hm_5.png"], "original_data_index": 7732, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 4, and then from the airport_aircraft table including only aircraft IDs up to 2, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K7alr_5.png", "TableImg_K3acv_4.png"], "original_data_index": 7730, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Could you give me a list of driver IDs that are both less than or equal to 11 and also greater than 9, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_453uy_12.png", "TableImg_Dl4yz_5.png"], "original_data_index": 7733, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me the sex, city code, last name, first name, student ID, age, advisor, and major for all students who meet both of these conditions: first, their student ID is 1005 or greater, their major is 50 or less, their age is not 21, their first name is not Paul, their advisor is less than 8772, their city code is BAL, and their last name is not Lee; and second, their last name is not Prater or their sex is male?", "answer": {"columns": ["Sex", "city_code", "LName", "Fname", "StuID", "Age", "Advisor", "Major"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["F", "BAL", "Nelson", "Jandy", "1008", "20", "9172", "600"], ["F", "BAL", "Smith", "Linda", "1001", "18", "1121", "600"], ["F", "HKG", "Lee", "Susan", "1015", "16", "8721", "600"], ["F", "PHL", "Smith", "Sarah", "1031", "20", "8772", "550"], ["F", "PIT", "Apap", "Lisa", "1007", "18", "8918", "600"], ["F", "SFO", "Cheng", "Lisa", "1030", "21", "2311", "550"], ["F", "WAS", "Schmidt", "Sarah", "1035", "26", "5718", "50"], ["M", "ATL", "Brown", "Eric", "1032", "20", "8772", "550"], ["M", "BAL", "Schultz", "Andy", "1006", "18", "1148", "600"], ["M", "BOS", "Epp", "Eric", "1034", "18", "5718", "50"], ["M", "DAL", "Norris", "Charles", "1014", "18", "8741", "600"], ["M", "DET", "Schwartz", "Mark", "1016", "17", "2192", "600"], ["M", "HKG", "Pang", "Eric", "1026", "19", "7134", "520"], ["M", "HOU", "Lee", "Derek", "1010", "17", "2192", "600"], ["M", "LON", "Wilson", "Bruce", "1017", "27", "1148", "600"], ["M", "LOS", "Brody", "Paul", "1027", "18", "8723", "520"], ["M", "NAR", "Simms", "William", "1033", "18", "8772", "550"], ["M", "NYC", "Andreou", "George", "1021", "19", "8722", "520"], ["M", "NYC", "Shieber", "David", "1023", "20", "8722", "520"], ["M", "NYC", "Thornton", "Ian", "1020", "22", "7271", "520"], ["M", "PEK", "Han", "Jun", "1029", "17", "2311", "100"], ["M", "PHL", "Adams", "David", "1011", "22", "1148", "600"], ["M", "PHL", "Woods", "Michael", "1022", "17", "8722", "540"], ["M", "PIT", "Davis", "Steven", "1012", "20", "7723", "600"], ["M", "PIT", "Goldman", "Mark", "1025", "18", "7134", "520"], ["M", "PIT", "Leighton", "Michael", "1018", "20", "1121", "600"], ["M", "ROC", "Rugh", "Eric", "1028", "20", "2311", "550"], ["M", "WAS", "Pang", "Arthur", "1019", "18", "2192", "600"], ["M", "YYZ", "Gompers", "Paul", "1005", "26", "1121", "600"], ["M", "YYZ", "Tai", "Eric", "1009", "19", "2192", "600"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Xfuj8_34.png", "TableImg_8uxsf_34.png"], "original_data_index": 7734, "original_sql": "SELECT Sex, city_code, LName, Fname, StuID, Age, Advisor, Major FROM Student WHERE \"StuID\" >= 1005 OR \"Major\" <= 50 OR \"Age\" <> 21 AND Fname != \"Paul\" AND \"Advisor\" < 8772 AND city_code = \"BAL\" AND LName != \"Lee\" INTERSECT SELECT Sex, city_code, LName, Fname, StuID, Age, Advisor, Major FROM Student WHERE LName != \"Prater\" OR Sex = \"M\""} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 7, excluding any driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sz43y_12.png", "TableImg_Vh8dj_5.png"], "original_data_index": 7737, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs less than 7 that appear in the driver table, excluding those driver IDs less than 4 that appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5vqxx_12.png", "TableImg_2dw7j_5.png"], "original_data_index": 7735, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What is the difference between the total student IDs of those with any allergy other than eggs or a student ID not equal to 1018, and the total student IDs of students who don't have major 550, or are not 19, or have a student ID that is not 1014, and whose advisor is not 7134, or are not female, and whose first name is Eric, and whose city code is not PHL, or whose last name is not Kim?", "answer": {"columns": ["SUM(StuID)"], "index": [0], "data": [["59892"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_8sf8s_59.png", "TableImg_Y8kp6_34.png"], "original_data_index": 7736, "original_sql": "SELECT SUM(StuID) FROM Has_Allergy WHERE Allergy <> \"Eggs\" OR \"StuID\" != 1018 EXCEPT SELECT SUM(StuID) FROM Student WHERE \"Major\" != 550 OR \"Age\" != 19 OR \"StuID\" <> 1014 AND \"Advisor\" != 7134 OR Sex <> \"F\" AND Fname = \"Eric\" AND city_code != \"PHL\" OR LName <> \"Kim\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 11 and also greater than 7, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4w326_12.png", "TableImg_10fwg_5.png"], "original_data_index": 7738, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the aircraft IDs that are equal to 4 in the aircraft table, combined with the aircraft IDs that are not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V2qpx_5.png", "TableImg_Yfkwj_4.png"], "original_data_index": 7740, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding any driver IDs that are also in the school bus list and are greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V35nf_12.png", "TableImg_Kj1xi_5.png"], "original_data_index": 7739, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list the driver IDs, including those from the driver table that are greater than 4 and those from the school_bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pbpzw_12.png", "TableImg_Faf1v_5.png"], "original_data_index": 7741, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you find the earliest starting year, coach ID, and player ID from the player_coach table, combining two sets of results: one where the starting year is 2011 or later and the coach ID is less than 5, and another where the starting year is 2010 or earlier, or the coach ID is 2, or the player ID is not 1?", "answer": {"columns": ["MIN(Starting_year)", "Coach_ID", "Player_ID"], "index": [0, 1], "data": [["2011", "1", "2"], ["2010", "1", "1"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_Pa3ya_7.png", "TableImg_Bhxoc_7.png"], "original_data_index": 7742, "original_sql": "SELECT MIN(Starting_year), Coach_ID, Player_ID FROM player_coach WHERE \"Starting_year\" >= 2011 AND \"Coach_ID\" < 5 UNION ALL SELECT MIN(Starting_year), Coach_ID, Player_ID FROM player_coach WHERE \"Starting_year\" <= 2010 OR \"Coach_ID\" = 2 OR \"Player_ID\" <> 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 9 or greater, combined with driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8dd1c_12.png", "TableImg_5klv0_5.png"], "original_data_index": 7743, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are less than 10 and also appear in the school bus records, excluding driver ID 10 from those records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_631up_12.png", "TableImg_Hdncc_5.png"], "original_data_index": 7746, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are less than 4 and also less than or equal to 3, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dsmlo_12.png", "TableImg_Us7bl_5.png"], "original_data_index": 7744, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of employee IDs, including those who have handled at least four copies in the circulation history, and also those who are named Erling and don't have the role code \"PR\"?", "answer": {"columns": ["employee_id"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["1"], ["2"], ["2"], ["8"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_N08gt_4.png", "TableImg_6czvo_6.png"], "original_data_index": 7747, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"copy_number\" >= 4 UNION ALL SELECT employee_id FROM Employees WHERE role_code != \"PR\" AND employee_name = \"Erling\""} {"question": "Can you give me the driver IDs that are both less than or equal to 11 in the driver table and less than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tudcd_12.png", "TableImg_Kjdmj_5.png"], "original_data_index": 7745, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "How many aircraft are associated with each airport?", "answer": {"columns": ["COUNT(T1.Aircraft_ID)", "Airport_ID"], "index": [0], "data": [["4", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xshad_5.png", "TableImg_Tq3gw_4.png"], "original_data_index": 7751, "original_sql": "SELECT COUNT(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs less than or equal to 3, excluding any driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Maep1_12.png", "TableImg_6l912_5.png"], "original_data_index": 7748, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which aircraft IDs are not equal to 3 and appear in the aircraft table, and are also not equal to 2 and appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5gz9r_5.png", "TableImg_Licao_4.png"], "original_data_index": 7750, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 6, and those from the school bus table with driver IDs up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M8qtc_12.png", "TableImg_Kyo46_5.png"], "original_data_index": 7749, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 12, and also include driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ww5tv_12.png", "TableImg_Pr09q_5.png"], "original_data_index": 7753, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are 4 or less from the driver table, excluding any driver IDs that are 10 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q0b85_12.png", "TableImg_R7hjg_5.png"], "original_data_index": 7752, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me the IDs of drivers that are both less than 12 and greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jaoqf_12.png", "TableImg_003gm_5.png"], "original_data_index": 7754, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list the aircraft IDs that are greater than or equal to 2 when grouped in the aircraft table, and also list the aircraft IDs that are less than or equal to 3 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xbv4k_5.png", "TableImg_Xzzy6_4.png"], "original_data_index": 7755, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Could you list the company IDs from the company table where the assets in billions are not 213 and the company ID is greater than 5, combined with the company IDs from the employment table where the people ID is less than 1?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["19"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Ztkdf_19.png", "TableImg_Ywaob_5.png"], "original_data_index": 7756, "original_sql": "SELECT Company_ID FROM company WHERE \"Assets_in_Billion\" <> 213.0 AND \"Company_ID\" > 5.0 UNION ALL SELECT Company_ID FROM employment WHERE \"People_ID\" < 1"} {"question": "Can you list the aircraft IDs, up to and including 4, that are present in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ognzz_5.png", "TableImg_Fnykk_4.png"], "original_data_index": 7758, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list the aircraft IDs that are less than or equal to 3, excluding those aircraft IDs that are also greater than or equal to 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6k9r4_5.png", "TableImg_8rflj_4.png"], "original_data_index": 7759, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me the shop name, the number of shop IDs, the number of locations, the average district value, and the number of products for shops that are either in the Wikl\u00f6f Holding Arena district but not in Jakobstad and are not named KuPS, or have a manager other than Mika Laurikainen; combined with the same information for shops that either have a manager other than Mika Lehkosuo and are not in the Jakobstads Centralplan district, or are not in Espoo and have 10770 or fewer products?", "answer": {"columns": ["Name", "COUNT(Shop_ID)", "COUNT(Location)", "AVG(District)", "Number_products"], "index": [0], "data": [["FC Haka", "8", "8", "0", "3516"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_7tql6_9.png", "TableImg_Lqgv6_9.png"], "original_data_index": 7757, "original_sql": "SELECT Name, COUNT(Shop_ID), COUNT(Location), AVG(District), Number_products FROM shop WHERE District = \"Wikl\u00f6f Holding Arena\" AND Location != \"Jakobstad\" AND Name <> \"KuPS\" OR Manager_name != \"Mika Laurikainen\" UNION SELECT Name, COUNT(Shop_ID), COUNT(Location), AVG(District), Number_products FROM shop WHERE Manager_name <> \"Mika Lehkosuo\" AND District <> \"Jakobstads Centralplan\" OR Location <> \"Espoo\" AND \"Number_products\" <= 10770"} {"question": "Which driver IDs, excluding driver ID 9, are not also driver IDs less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N11e9_12.png", "TableImg_Hwnir_5.png"], "original_data_index": 7760, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Could you give me a list of document IDs from the Documents table where the shipping agent code is \"FE\" or the document ID is less than 24, but exclude any document IDs that are also found in the Documents_Mailed table where the mailed_to_address_id is less than or equal to 7?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["15"], ["17"], ["23"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Le6rd_15.png", "TableImg_Zh8cy_14.png"], "original_data_index": 7763, "original_sql": "SELECT document_id FROM Documents WHERE shipping_agent_code = \"FE\" OR \"document_id\" < 24 EXCEPT SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <= 7"} {"question": "What is the total of all mailing dates where the mailed to address ID is 2 or greater, combined with the total of all mailing dates where the mailing date is January 14, 1982 at 5:50:54 AM, or the mailed to address ID is greater than 3, or the document ID is 4 or greater?", "answer": {"columns": ["SUM(mailing_date)"], "index": [0, 1], "data": [["23868"], ["27880"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_L37ip_14.png", "TableImg_R5191_14.png"], "original_data_index": 7761, "original_sql": "SELECT SUM(mailing_date) FROM Documents_Mailed WHERE \"mailed_to_address_id\" >= 2 UNION ALL SELECT SUM(mailing_date) FROM Documents_Mailed WHERE mailing_date = \"1982-01-14 05:50:54\" OR \"mailed_to_address_id\" > 3 OR \"document_id\" >= 4"} {"question": "Can you give me the latest opening year, latest city, street address, membership amount, and name for branches that meet certain criteria, excluding those that meet other specific criteria? The first set of criteria includes branches with an ID less than 5 that opened in 2009, have a membership amount not equal to 11, and are not on Oaks Crescent, or are not in London. The second set of criteria includes branches with an ID of 7, or a membership amount not equal to 31, that opened in 2012, are not in London, and are not on Abbey Rise.", "answer": {"columns": ["MAX(Open_year)", "MAX(City)", "Address_road", "membership_amount", "Name"], "index": [0], "data": [["2014", "Oxford", "Abbey Rise", "7", "Zytogorski"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_P7cqk_8.png", "TableImg_Vkf9u_8.png"], "original_data_index": 7762, "original_sql": "SELECT MAX(Open_year), MAX(City), Address_road, membership_amount, Name FROM branch WHERE \"Branch_ID\" < 5 AND Open_year = \"2009\" AND membership_amount <> \"11\" AND Address_road <> \"Oaks Crescent\" OR City <> \"London\" EXCEPT SELECT MAX(Open_year), MAX(City), Address_road, membership_amount, Name FROM branch WHERE \"Branch_ID\" = 7 OR membership_amount <> \"31\" AND Open_year = \"2012\" AND City <> \"London\" AND Address_road <> \"Abbey Rise\""} {"question": "Can you show me the number of domestic passengers and the airport ID for each airport?", "answer": {"columns": ["Domestic_Passengers", "Airport_ID"], "index": [0, 1, 2, 3], "data": [["5562516", "1"], ["3730963", "2"], ["1471538", "6"], ["1171605", "9"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Cyrkk_10.png", "TableImg_9imj3_4.png"], "original_data_index": 7764, "original_sql": "SELECT T1.Domestic_Passengers, T2.Airport_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Which driver IDs, excluding driver ID 1, are also school bus driver IDs, excluding school bus driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9eczo_12.png", "TableImg_Taq90_5.png"], "original_data_index": 7767, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs, excluding driver ID 9, are not also driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pdeks_12.png", "TableImg_Rji8i_5.png"], "original_data_index": 7765, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 1, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4gtrd_12.png", "TableImg_5m5om_5.png"], "original_data_index": 7766, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What is the smallest contestant number for contestants named \"Loraine NygrenTania Mattioli\" or whose contestant number is not 8, and what is the smallest contestant number for all other contestants?", "answer": {"columns": ["MIN(contestant_number)"], "index": [0], "data": [["1"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Jm1dc_11.png", "TableImg_M4w7d_11.png"], "original_data_index": 7770, "original_sql": "SELECT MIN(contestant_number) FROM CONTESTANTS WHERE contestant_name = \"Loraine NygrenTania Mattioli\" OR \"contestant_number\" <> 8 UNION SELECT MIN(contestant_number) FROM CONTESTANTS WHERE contestant_name != \"Loraine NygrenTania Mattioli\""} {"question": "Can you give me a list of driver IDs that are less than 4 from the driver table, combined with a list of driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vugr3_12.png", "TableImg_J4ccl_5.png"], "original_data_index": 7768, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you show me the price, origin, distance, arrival date, and airline ID for all flights where the flight number is less than 76 and the airline ID is 6, combined with the price, origin, distance, arrival date, and airline ID for all flights that don't go to Tokyo?", "answer": {"columns": ["price", "origin", "distance", "arrival_date", "aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["235.98", "Los Angeles", "2308", "04/12/2005 09:40", "1"], ["220.98", "Los Angeles", "1749", "04/12/2005 08:45", "3"], ["182.0", "Los Angeles", "1251", "04/12/2005 07:05", "2"], ["261.56", "Los Angeles", "2606", "04/12/2005 05:03", "6"], ["278.56", "Los Angeles", "7487", "04/12/2005 11:10", "3"], ["375.23", "Los Angeles", "2551", "04/12/2005 11:15", "7"], ["425.98", "Los Angeles", "2551", "04/12/2005 03:18", "5"], ["220.98", "Chicago", "1749", "04/12/2005 10:03", "9"], ["202.45", "Chicago", "802", "04/12/2005 12:02", "10"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_0uotc_10.png", "TableImg_Vtilx_10.png"], "original_data_index": 7771, "original_sql": "SELECT price, origin, distance, arrival_date, aid FROM flight WHERE \"flno\" < 76 AND \"aid\" = 6 UNION ALL SELECT price, origin, distance, arrival_date, aid FROM flight WHERE destination != \"Tokyo\""} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 8, combined with a list of driver IDs from the school_bus table where each ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Peu5u_12.png", "TableImg_Vvd9e_5.png"], "original_data_index": 7769, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs appear exactly once in the driver table and are equal to 1, but do not appear in the school bus table with a driver ID not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3o6p9_12.png", "TableImg_76d3a_5.png"], "original_data_index": 7775, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list all the copy numbers from the draft copies table where the document ID is greater than 10 or the copy number is at least 4, and also include all copy numbers where the document ID is exactly 20?", "answer": {"columns": ["copy_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["5"], ["6"], ["15"], ["10"], ["4"], ["5"], ["15"], ["10"], ["15"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_O1wp6_8.png", "TableImg_Tfs2m_8.png"], "original_data_index": 7774, "original_sql": "SELECT copy_number FROM Draft_Copies WHERE \"document_id\" > 10 OR \"copy_number\" >= 4 UNION ALL SELECT copy_number FROM Draft_Copies WHERE \"document_id\" = 20"} {"question": "Can you give me the property IDs that satisfy these two conditions: first, they must have a property feature description that's not \"earum\" and either have a property ID of 3 or greater, or a feature ID that's not 4; and second, they must also be properties that were put on the market on \"1976-06-10 20:25:38\" and either have a selling price that's not 5.0, a property ID that's not 14, a shp_feature_3 that's not \"None\", or a combination of fld_feature_3 being \"None\", fld_feature_2 not being \"None\", and oth_feature_3 not being \"None\", or a combination of hse_feature_3 being \"None\", other_property_details being \"None\", hse_feature_2 not being \"None\", and apt_feature_2 not being \"vero\"?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["3"], ["4"], ["6"], ["7"], ["9"], ["11"], ["13"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_M7rp3_15.png", "TableImg_Lkwe3_15.png"], "original_data_index": 7773, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE property_feature_description <> \"earum\" AND \"property_id\" >= 3 OR \"feature_id\" != 4 INTERSECT SELECT property_id FROM Properties WHERE date_on_market = \"1976-06-10 20:25:38\" AND \"agreed_selling_price\" <> 5.0 OR \"property_id\" <> 14 OR shp_feature_3 <> \"None\" OR fld_feature_3 = \"None\" AND fld_feature_2 != \"None\" AND oth_feature_3 != \"None\" AND hse_feature_3 = \"None\" OR other_property_details = \"None\" AND hse_feature_2 <> \"None\" AND apt_feature_2 <> \"vero\""} {"question": "What is the last car maker in alphabetical order from the car_makers table, excluding \"gm\" and where the country code is \"1\" or the full name is \"Daimler Benz\", combined with the last car maker in alphabetical order from the model_list table, excluding \"chevrolet\" models?", "answer": {"columns": ["MAX(Maker)"], "index": [0, 1], "data": [["23"], ["ford"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Adkzd_22.png", "TableImg_0p3ua_36.png"], "original_data_index": 7772, "original_sql": "SELECT MAX(Maker) FROM car_makers WHERE Maker <> \"gm\" AND Country = \"1\" OR FullName = \"Daimler Benz\" UNION SELECT MAX(Maker) FROM model_list WHERE Model != \"chevrolet\""} {"question": "Can you list the aircraft IDs that are less than 3 when grouped in the aircraft table, but also not equal to 1 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_41ybh_5.png", "TableImg_Ou5oi_4.png"], "original_data_index": 7779, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me the lowest member ID and branch ID from the membership register for branches, excluding records from 2016 or where the member ID is 4 or less and the branch ID is 5, combined with the lowest member ID and branch ID from purchases where the total amount isn't 430.29?", "answer": {"columns": ["MIN(Member_ID)", "Branch_ID"], "index": [0, 1], "data": [["1", "3"], ["3", "1"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_5vxvg_8.png", "TableImg_Fc289_8.png"], "original_data_index": 7780, "original_sql": "SELECT MIN(Member_ID), Branch_ID FROM membership_register_branch WHERE Register_Year != \"2016\" OR \"Member_ID\" <= 4 AND Branch_ID = \"5\" UNION SELECT MIN(Member_ID), Branch_ID FROM purchase WHERE \"Total_pounds\" <> 430.29"} {"question": "Which employees from Wasps did not receive an evaluation award in any year other than 2016?", "answer": {"columns": ["Employee_ID"], "index": [0, 1], "data": [["5"], ["8"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_X327h_10.png", "TableImg_5kxg0_6.png"], "original_data_index": 7781, "original_sql": "SELECT Employee_ID FROM employee WHERE City = \"Wasps\" EXCEPT SELECT Employee_ID FROM evaluation WHERE Year_awarded != \"2016\""} {"question": "Can you list all aircraft IDs, first from the aircraft table excluding aircraft ID 2, and then from the airport_aircraft table including only aircraft IDs less than 2, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9boh3_5.png", "TableImg_32ts7_4.png"], "original_data_index": 7782, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Could you give me the item IDs of items titled \"orange\" that also have reviews where either the user ID is not 2, or the author ID is 2 and the item ID is at least 7?", "answer": {"columns": ["i_id"], "index": [0], "data": [["1"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Ltbik_8.png", "TableImg_Wa1np_7.png"], "original_data_index": 7783, "original_sql": "SELECT i_id FROM item WHERE title = \"orange\" INTERSECT SELECT i_id FROM review WHERE \"u_id\" != 2 OR \"a_id\" = 2 AND \"i_id\" >= 7"} {"question": "Can you tell me the youngest age, driver ID, number of home cities, name, and largest party size for drivers where the driver ID is 9 or higher, or the name is Minnie Gonzalez, combined with the same information for drivers where the name is not Brandon McGee, or the driver ID is 6 or lower, or the home city is not Manchester, or the party is not Democrat?", "answer": {"columns": ["MIN(Age)", "Driver_ID", "COUNT(Home_city)", "Name", "MAX(Party)"], "index": [0, 1], "data": [["30", "2", "12", "Dan Carter", "Rep"], ["36", "3", "5", "Minnie Gonzalez", "Dem"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_Zma6j_12.png", "TableImg_Fb43j_12.png"], "original_data_index": 7784, "original_sql": "SELECT MIN(Age), Driver_ID, COUNT(Home_city), Name, MAX(Party) FROM driver WHERE \"Driver_ID\" >= 9 OR Name = \"Minnie Gonzalez\" UNION SELECT MIN(Age), Driver_ID, COUNT(Home_city), Name, MAX(Party) FROM driver WHERE Name != \"Brandon McGee\" OR \"Driver_ID\" <= 6 OR Home_city != \"Manchester\" OR Party != \"Dem\""} {"question": "What is the average version number of templates where either the effective date from is not November 12, 2005, and the effective date to is August 8, 2008, or the template details are not empty and the template ID is at least 23, excluding the average version number of templates where either the template ID is not 4 or the version number is less than 5 and the template details are empty?", "answer": {"columns": ["AVG(Version_Number)"], "index": [0], "data": [["6"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_Cb36x_20.png", "TableImg_Pbaf9_20.png"], "original_data_index": 7785, "original_sql": "SELECT AVG(Version_Number) FROM Templates WHERE Date_Effective_From != \"2005-11-12 07:09:48\" AND Date_Effective_To = \"2008-08-08 18:36:43\" OR Template_Details != \"\" AND \"Template_ID\" >= 23 EXCEPT SELECT AVG(Version_Number) FROM Templates WHERE \"Template_ID\" != 4 OR \"Version_Number\" < 5 AND Template_Details = \"\""} {"question": "Which driver IDs are both greater than or equal to 9 and also not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zmid3_12.png", "TableImg_77ulm_5.png"], "original_data_index": 7786, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me the school IDs for schools that meet these criteria: either their name isn't Glenn, their ID is 3, and their mascot isn't Redskins, or their football class isn't AA, or they are in County 75 Starke and their IHSAA class is AAA, but excluding any school IDs found in the endowment table where the amount is 8.43?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_F6a05_8.png", "TableImg_Fx4iy_11.png"], "original_data_index": 7787, "original_sql": "SELECT School_id FROM School WHERE School_name <> \"Glenn\" AND School_id = \"3\" AND Mascot != \"Redskins\" OR IHSAA_Football_Class != \"AA\" OR County = \"75 Starke\" AND IHSAA_Class = \"AAA\" EXCEPT SELECT School_id FROM endowment WHERE \"amount\" = 8.43"} {"question": "Can you list all the \"other details\" for employees named Jordyn, as well as all \"other details\" that are equal to \"b\", and then also list the \"other details\" for all employees who are not named Jordyn?", "answer": {"columns": ["other_details"], "index": [0, 1, 2, 3, 4], "data": [["b"], ["f"], ["h"], ["u"], ["v"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_Obe33_6.png", "TableImg_Zv385_6.png"], "original_data_index": 7776, "original_sql": "SELECT other_details FROM Employees WHERE employee_name = \"Jordyn\" OR other_details = \"b\" UNION SELECT other_details FROM Employees WHERE employee_name <> \"Jordyn\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 12 from the driver table and driver ID 10 from the school_bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mwvq2_12.png", "TableImg_Y0bhi_5.png"], "original_data_index": 7777, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are not 12, and also including driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oefbb_12.png", "TableImg_O2fkl_5.png"], "original_data_index": 7778, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are both less than or equal to 6 in the driver table and less than or equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7jjlp_12.png", "TableImg_S9d78_5.png"], "original_data_index": 7789, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs less than or equal to 12, excluding those driver IDs that are not equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bi3p5_12.png", "TableImg_Ktip7_5.png"], "original_data_index": 7791, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 7, excluding any driver IDs from the school_bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Alhmf_12.png", "TableImg_Wvm06_5.png"], "original_data_index": 7790, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs that are equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pwu3a_12.png", "TableImg_Unenf_5.png"], "original_data_index": 7788, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs greater than or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ugco3_12.png", "TableImg_A953b_5.png"], "original_data_index": 7792, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are greater than 4 from the driver table, combined with a list of driver IDs that are greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Esttj_12.png", "TableImg_5eytg_5.png"], "original_data_index": 7793, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Could you give me a list of driver IDs, including those that are exactly 11 from the driver table, and those less than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4yux2_12.png", "TableImg_4e198_5.png"], "original_data_index": 7794, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you tell me the average distance for each aircraft ID, considering only aircraft with IDs greater than or equal to 13 and names that aren't Boeing 737-800, combined with the average distance for each aircraft ID from flights departing on \"04/12/2005 09:00\" with flight numbers less than or equal to 33, or aircraft IDs that aren't 6, or distances of 802, or prices greater than 220.98 originating from Chicago?", "answer": {"columns": ["aid", "AVG(distance)"], "index": [0, 1], "data": [["13", "1486.0"], ["1", "2880.6666666667"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_F4an1_16.png", "TableImg_C56ji_10.png"], "original_data_index": 7795, "original_sql": "SELECT aid, AVG(distance) FROM aircraft WHERE \"aid\" >= 13 AND name != \"Boeing 737-800\" UNION ALL SELECT aid, AVG(distance) FROM flight WHERE departure_date = \"04/12/2005 09:00\" AND \"flno\" <= 33 OR \"aid\" != 6 OR \"distance\" = 802 OR \"price\" > 220.98 AND origin = \"Chicago\""} {"question": "Can you give me a list of driver IDs that are not 6, and are also less than or equal to 4, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sck1w_12.png", "TableImg_Pmxw5_5.png"], "original_data_index": 7798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs that are equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bsype_12.png", "TableImg_Z8xgy_5.png"], "original_data_index": 7797, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which aircraft IDs are both greater than or equal to 1 when looking at aircraft, and less than or equal to 1 when looking at airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8nxpj_5.png", "TableImg_Jywlh_4.png"], "original_data_index": 7796, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me the Driver ID of drivers with ID 10, excluding any Driver IDs less than 9 that are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xln9g_12.png", "TableImg_9iphl_5.png"], "original_data_index": 7799, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me the Aircraft IDs that appear exactly as 4 in the aircraft table, but are not present with an ID of 1 or greater in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dh41v_5.png", "TableImg_Mojfo_4.png"], "original_data_index": 7800, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of all the driver IDs, combining those from the driver table where the ID is 10 or greater, with those from the school bus table where the ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wz11i_12.png", "TableImg_Can1w_5.png"], "original_data_index": 7803, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs from the driver table that are 10 or greater, excluding any driver IDs from the school bus table that are equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_81oqh_12.png", "TableImg_Hnu4m_5.png"], "original_data_index": 7802, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the document IDs that are both not of the \"Hard Drive\" type, were not received on \"1996-05-31 06:51:58\", and are not document ID 7, and also have a draft number less than or equal to 8, or a copy number greater than or equal to 4, or a document ID greater than or equal to 1?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["10"], ["20"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Q0sgf_15.png", "TableImg_Mloaj_8.png"], "original_data_index": 7801, "original_sql": "SELECT document_id FROM Documents WHERE document_type_code <> \"Hard Drive\" AND receipt_date <> \"1996-05-31 06:51:58\" AND \"document_id\" <> 7 INTERSECT SELECT document_id FROM Draft_Copies WHERE \"draft_number\" <= 8 OR \"copy_number\" >= 4 OR \"document_id\" >= 1"} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 2, but also excluding any driver IDs that appear in the school_bus table and are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kkw2y_12.png", "TableImg_Qyxt8_5.png"], "original_data_index": 7806, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 2, combined with a list of driver IDs from the school_bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8zuux_12.png", "TableImg_Eadhh_5.png"], "original_data_index": 7807, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you find the lowest copy number, draft number, and document ID from the Circulation History where the document ID is at least 2, the copy number is 15, or the draft number is 20, and combine that with the lowest copy number, draft number, and document ID from the Draft Copies where the draft number is not 12 or the document ID is not 20?", "answer": {"columns": ["MIN(copy_number)", "draft_number", "document_id"], "index": [0, 1], "data": [["4", "1", "2"], ["4", "1", "2"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_S3jqe_4.png", "TableImg_Ead41_8.png"], "original_data_index": 7805, "original_sql": "SELECT MIN(copy_number), draft_number, document_id FROM Circulation_History WHERE \"document_id\" >= 2 OR \"copy_number\" = 15 OR \"draft_number\" = 20 UNION ALL SELECT MIN(copy_number), draft_number, document_id FROM Draft_Copies WHERE \"draft_number\" <> 12 OR \"document_id\" != 20"} {"question": "Could you list the document status codes and descriptions that are either not \"currently working on\" or have a code of \"working\", but exclude any that have a document status code of \"working\"?", "answer": {"columns": ["document_status_code", "document_status_description"], "index": [0, 1], "data": [["done", "mailed"], ["overdue", "mailed late"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Byfkr_3.png", "TableImg_9pbzu_3.png"], "original_data_index": 7808, "original_sql": "SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_description != \"currently working on\" OR document_status_code = \"working\" INTERSECT SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_code != \"working\""} {"question": "Can you give me a list of driver IDs, including those that are not 12 from the driver table, and those less than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ujbg7_12.png", "TableImg_N1n12_5.png"], "original_data_index": 7809, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are 10 or less, excluding any driver IDs that are 10 or greater and also appear in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ad1jw_12.png", "TableImg_Icw2e_5.png"], "original_data_index": 7810, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are 9 or less, excluding any driver IDs that are also 4 or less and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bx48p_12.png", "TableImg_63xef_5.png"], "original_data_index": 7811, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you list the aircraft IDs that are less than or equal to 5, excluding those aircraft IDs that are not equal to 1 and are found in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z8e3q_5.png", "TableImg_Ne4fs_4.png"], "original_data_index": 7812, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which driver IDs are both not equal to 3 and also greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oqh49_12.png", "TableImg_1mkeu_5.png"], "original_data_index": 7813, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me the IDs of drivers with IDs less than 5, excluding the IDs of school bus drivers with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J7ms6_12.png", "TableImg_Ojvgc_5.png"], "original_data_index": 7814, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of IDs, including airport IDs for airports with the IATA code \"BCN\" but not named \"Akureyri Airport\", and flight IDs for flights where the company ID is 9 and either the altitude is greater than 3650, or the velocity is less than or equal to 240 and the airport ID is less than or equal to 1, or the pilot isn't \"Thompson\", or the ID is 4, or the date isn't \"July 16, 1965\" and the vehicle flight number isn't \"M2-F1 #21\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["10"], ["11"], ["12"], ["13"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Ctxpa_9.png", "TableImg_Lp4vv_13.png"], "original_data_index": 7815, "original_sql": "SELECT id FROM airport WHERE IATA = \"BCN\" AND name <> \"Akureyri Airport\" UNION SELECT id FROM flight WHERE \"company_id\" = 9 AND \"Altitude\" > 3650.0 OR \"Velocity\" <= 240.0 AND \"airport_id\" <= 1 OR Pilot != \"Thompson\" OR \"id\" = 4 OR Date != \"July 16, 1965\" AND Vehicle_Flight_number <> \"M2-F1 #21\""} {"question": "Which driver IDs, excluding driver ID 11, are not also driver IDs excluding driver ID 9 that are associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5vo6s_12.png", "TableImg_Ozvnp_5.png"], "original_data_index": 7818, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the aircraft IDs that are less than 2 from the aircraft table, and also list the aircraft IDs that are not equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3vl3e_5.png", "TableImg_29c40_4.png"], "original_data_index": 7817, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 8, combined with all the driver IDs from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G2boh_12.png", "TableImg_7sk24_5.png"], "original_data_index": 7819, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, from the driver table, but then remove any driver IDs that are also in the school bus table and are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0cn1z_12.png", "TableImg_0jm76_5.png"], "original_data_index": 7816, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 2, and combine that with a list of all aircraft IDs from the airport aircraft, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vrbbb_5.png", "TableImg_Vov8x_4.png"], "original_data_index": 7821, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Could you give me a list of branch IDs that meet these conditions: the branch opened in 2014 and is located in Oxford, but isn't named Stanley, or the branch's address isn't on Brampton Road and the membership amount isn't 56, and the branch ID isn't 6, excluding any branch IDs that aren't 1 in the membership register or have a register year that isn't 2017, or have a member ID less than 7?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Usjgs_8.png", "TableImg_Nwlpm_8.png"], "original_data_index": 7822, "original_sql": "SELECT Branch_ID FROM branch WHERE Open_year = \"2014\" AND City = \"Oxford\" AND Name != \"Stanley\" OR Address_road != \"Brampton Road\" AND membership_amount <> \"56\" AND \"Branch_ID\" <> 6 EXCEPT SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID <> \"1\" AND Register_Year != \"2017\" OR \"Member_ID\" < 7"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 9, excluding any driver IDs that are not equal to 9 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q94f0_12.png", "TableImg_6d27d_5.png"], "original_data_index": 7823, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list the department IDs and temporary acting statuses from the management table, including those where either the temporary acting status is not \"Yes\" or the head ID is not 5 and the department ID is greater than 2, along with those where the temporary acting status is not \"Yes\" and the head ID is not 5 or the department ID is greater than 2?", "answer": {"columns": ["department_ID", "temporary_acting"], "index": [0, 1, 2, 3, 4, 5], "data": [["15", "Yes"], ["7", "No"], ["11", "No"], ["15", "Yes"], ["7", "No"], ["11", "No"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_M9cbw_5.png", "TableImg_Bsnww_5.png"], "original_data_index": 7820, "original_sql": "SELECT department_ID, temporary_acting FROM management WHERE temporary_acting <> \"Yes\" OR \"head_ID\" != 5 AND \"department_ID\" > 2 UNION ALL SELECT department_ID, temporary_acting FROM management WHERE temporary_acting <> \"Yes\" AND \"head_ID\" != 5 OR \"department_ID\" > 2"} {"question": "Can you give me a list of driver IDs that are less than or equal to 2, excluding any driver IDs that are greater than 7 and also appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tsw3m_12.png", "TableImg_B2v27_5.png"], "original_data_index": 7827, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver has an ID of 7, but is not a driver with an ID of 4 who drives a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lsj4s_12.png", "TableImg_X7mmj_5.png"], "original_data_index": 7825, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 12, and those from the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ou45y_12.png", "TableImg_6u5r4_5.png"], "original_data_index": 7826, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list all the template type descriptions, including those that are not advertisements or have a template type code of \"CV\", and also including those that are not \"CV\"?", "answer": {"columns": ["Template_Type_Description"], "index": [0, 1, 2, 3, 4], "data": [["Advertisement"], ["Book"], ["CV"], ["Paper"], ["Presentation"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Vgh95_5.png", "TableImg_Dmwl2_5.png"], "original_data_index": 7824, "original_sql": "SELECT Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Description != \"Advertisement\" OR Template_Type_Code = \"CV\" UNION SELECT Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Description <> \"CV\""} {"question": "What is the total number of transit passengers for each aircraft?", "answer": {"columns": ["SUM(T1.Transit_Passengers)", "Aircraft_ID"], "index": [0], "data": [["281011", "2"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_6trdm_10.png", "TableImg_J21k5_4.png"], "original_data_index": 7831, "original_sql": "SELECT SUM(T1.Transit_Passengers), T2.Aircraft_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Which driver IDs are both not equal to 4 and also less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hsx73_12.png", "TableImg_Cry4k_5.png"], "original_data_index": 7829, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school_bus table where the ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J0qox_12.png", "TableImg_06vs6_5.png"], "original_data_index": 7830, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of property IDs from the Other_Property_Features table where the feature ID is less than 2 or the property ID is less than or equal to 1, but excluding any property IDs from the Properties table that meet a complex set of criteria involving address, price, features, dates, property type, room count, and property name?", "answer": {"columns": ["property_id"], "index": [0], "data": [["1"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_Ax273_15.png", "TableImg_6q17z_15.png"], "original_data_index": 7828, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"feature_id\" < 2 OR \"property_id\" <= 1 EXCEPT SELECT property_id FROM Properties WHERE \"property_id\" >= 8 AND property_address = \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" OR \"buyer_offered_price\" <> 13991131.434 AND fld_feature_3 = \"None\" OR apt_feature_3 != \"None\" OR fld_feature_1 <> \"None\" AND fld_feature_2 != \"None\" AND other_property_details <> \"None\" OR oth_feature_2 = \"None\" AND date_on_market = \"1978-05-15 10:53:37\" AND \"vendor_requested_price\" >= 2198735.095 AND property_type_code != \"Other\" AND apt_feature_1 <> \"ut\" AND date_sold <> \"1973-02-24 02:56:06\" OR hse_feature_1 <> \"None\" OR \"room_count\" <= 2 OR oth_feature_3 != \"None\" AND hse_feature_3 != \"None\" AND property_name <> \"riverside\""} {"question": "Which driver IDs are greater than or equal to 6, but are not driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lbqno_12.png", "TableImg_Kylc1_5.png"], "original_data_index": 7834, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of aircraft IDs, including those that appear in the aircraft table with an ID of 2, and those that appear in the airport_aircraft table with an ID that is not 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Khqxk_5.png", "TableImg_Tpffn_4.png"], "original_data_index": 7835, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of driver IDs where either the driver ID is 9, or the driver ID is less than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S9p6r_12.png", "TableImg_Rmhz4_5.png"], "original_data_index": 7832, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 7 and also not equal to 3, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6gl43_12.png", "TableImg_X61o0_5.png"], "original_data_index": 7833, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which aircraft have an ID of 4, excluding those aircraft that are associated with airports and have an ID less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_07h3w_5.png", "TableImg_Vf1ua_4.png"], "original_data_index": 7837, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Which aircraft have an ID of 1 and also have an ID less than 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mppze_5.png", "TableImg_T8roi_4.png"], "original_data_index": 7836, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs that are less than 5 and also less than or equal to 3, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ej12_12.png", "TableImg_Qi2yc_5.png"], "original_data_index": 7839, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are 8 or greater, but only those that are not also driver IDs of school buses where the driver ID is 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D3ovr_12.png", "TableImg_9qkvp_5.png"], "original_data_index": 7838, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What is the minimum age of heads in department 15, along with their head IDs?", "answer": {"columns": ["MIN(T1.age)", "head_ID"], "index": [0], "data": [["52", "4"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Psyfw_10.png", "TableImg_H7qj3_5.png"], "original_data_index": 7843, "original_sql": "SELECT MIN(T1.age), T2.head_ID FROM head as T1 JOIN management as T2 ON T1.head_ID = T2.head_ID WHERE \"department_ID\" = 15"} {"question": "Can you give me a list of driver IDs that are less than 3, excluding any driver IDs that are also in the school bus list and are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hlx9d_12.png", "TableImg_Twyja_5.png"], "original_data_index": 7842, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What is the difference between the number of temporary acting managers and the highest department ID for departments with an ID of 2 or less and head ID of 10 or less, excluding those who are not marked as \"No\", and the number of temporary acting managers and the highest department ID for departments with a head ID greater than 10 or a department ID less than 2, or those who are not marked as \"Yes\"?", "answer": {"columns": ["COUNT(temporary_acting)", "MAX(department_ID)"], "index": [0], "data": [["2", "2"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_Sxcny_5.png", "TableImg_Mog9n_5.png"], "original_data_index": 7841, "original_sql": "SELECT COUNT(temporary_acting), MAX(department_ID) FROM management WHERE \"department_ID\" <= 2 AND \"head_ID\" <= 10 AND temporary_acting <> \"No\" EXCEPT SELECT COUNT(temporary_acting), MAX(department_ID) FROM management WHERE \"head_ID\" > 10 AND \"department_ID\" < 2 OR temporary_acting != \"Yes\""} {"question": "Can you give me the last name, the total advisor number, and the number of majors for students, combining two sets of results: first, those who are not student ID 1031 and whose advisor number is 8772 or less and are younger than 17, or are from city code HKG, or whose last name is Han; and second, those whose first name is David, or are not from city code BAL, or are older than 20 and have major 600 and are not male, or whose last name is not Apap, or whose advisor number is greater than 1148 and are not student ID 1019?", "answer": {"columns": ["LName", "SUM(Advisor)", "COUNT(Major)"], "index": [0, 1], "data": [["Kim", "25878", "4"], ["Smith", "191161", "34"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Ahbuk_34.png", "TableImg_Kyl91_34.png"], "original_data_index": 7840, "original_sql": "SELECT LName, SUM(Advisor), COUNT(Major) FROM Student WHERE \"StuID\" != 1031 AND \"Advisor\" <= 8772 AND \"Age\" < 17 OR city_code = \"HKG\" OR LName = \"Han\" UNION ALL SELECT LName, SUM(Advisor), COUNT(Major) FROM Student WHERE Fname = \"David\" OR city_code <> \"BAL\" OR \"Age\" > 20 AND \"Major\" = 600 AND Sex <> \"M\" OR LName <> \"Apap\" OR \"Advisor\" > 1148 AND \"StuID\" <> 1019"} {"question": "What is the sum of contestant numbers for all contestants except Tabatha Gehling, combined with the sum of contestant numbers from votes where the vote ID is 1, or the contestant number is greater than 2 and the state is NJ?", "answer": {"columns": ["SUM(contestant_number)"], "index": [0, 1], "data": [["7"], ["64"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_Eemyl_11.png", "TableImg_Mpecn_4.png"], "original_data_index": 7846, "original_sql": "SELECT SUM(contestant_number) FROM CONTESTANTS WHERE contestant_name <> \"Tabatha Gehling\" UNION SELECT SUM(contestant_number) FROM VOTES WHERE \"vote_id\" = 1 OR \"contestant_number\" > 2 AND state = \"NJ \""} {"question": "Can you give me the IDs of drivers with IDs less than 4, excluding those driver IDs that are also less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nn32i_12.png", "TableImg_79c8w_5.png"], "original_data_index": 7844, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of customer IDs from the Customers table, including those that aren't 15 and didn't become customers on November 16, 2015 at 10:52 PM, or whose first name is Sigrid, combined with a list of customer IDs from the Lessons table for lessons that are completed and not at 9 o'clock?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["5"], ["3"], ["13"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_R84uz_15.png", "TableImg_7s4cr_15.png"], "original_data_index": 7845, "original_sql": "SELECT customer_id FROM Customers WHERE \"customer_id\" != 15 AND date_became_customer <> \"2015-11-16 22:52:14\" OR first_name = \"Sigrid\" UNION ALL SELECT customer_id FROM Lessons WHERE lesson_status_code = \"Completed\" AND lesson_time != \"9\""} {"question": "Which driver IDs are greater than 8 and also not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ybwb_12.png", "TableImg_Df13z_5.png"], "original_data_index": 7848, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are greater than 1 and also not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xuxy8_12.png", "TableImg_0b17c_5.png"], "original_data_index": 7849, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are less than 5 from the driver table, combined with a list of driver IDs that are greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7l8jd_12.png", "TableImg_Sjhja_5.png"], "original_data_index": 7850, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs from the driver table, excluding driver ID 6, that are not also driver IDs in the school_bus table where the driver ID is greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Csctc_12.png", "TableImg_Wtsb0_5.png"], "original_data_index": 7847, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs, including those that are equal to 8 from the driver table, and those less than 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_123f4_12.png", "TableImg_T4ppm_5.png"], "original_data_index": 7853, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are greater than 1 and also appear in the list of school bus driver IDs, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G7scx_12.png", "TableImg_521rx_5.png"], "original_data_index": 7852, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are either exactly 10 from the driver table, or less than or equal to 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gwkf5_12.png", "TableImg_Mtksd_5.png"], "original_data_index": 7854, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list all driver IDs that are less than 10 from the driver table, and combine that with a list of driver IDs less than 4 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ko8ti_12.png", "TableImg_T277r_5.png"], "original_data_index": 7851, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10 and those from the school_bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_469lr_12.png", "TableImg_W72fp_5.png"], "original_data_index": 7857, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me the Aircraft ID that appears in the aircraft table, specifically ID 5, but only if it doesn't appear in the airport_aircraft table with an ID greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8ejks_5.png", "TableImg_Vlnm8_4.png"], "original_data_index": 7856, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you give me the total Publication ID, average price, publisher, and total Book ID for publications where either the Publication ID is not 2 and the price is 3,000,000, or the publication date is April 2007, combined with the total Publication ID, average price, publisher, and total Book ID for publications where the Publication ID is 7 or greater and the publisher is Pearson?", "answer": {"columns": ["SUM(Publication_ID)", "AVG(Price)", "Publisher", "SUM(Book_ID)"], "index": [0, 1], "data": [["16.0", "2666666.6666666665", "Wiley", "22.0"], ["", "", "", ""]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_T34j5_7.png", "TableImg_Lolap_7.png"], "original_data_index": 7855, "original_sql": "SELECT SUM(Publication_ID), AVG(Price), Publisher, SUM(Book_ID) FROM publication WHERE \"Publication_ID\" <> 2 AND \"Price\" = 3000000.0 OR Publication_Date = \"April 2007\" UNION ALL SELECT SUM(Publication_ID), AVG(Price), Publisher, SUM(Book_ID) FROM publication WHERE \"Publication_ID\" >= 7 AND Publisher = \"Pearson\""} {"question": "Could you give me a list of document IDs that either aren't 2, or have a draft number greater than 2 and a copy number less than or equal to 10 and an employee ID greater than 1, combined with document IDs that have a copy number greater than 15 and a draft number less than or equal to 2, or an employee ID that isn't 8, or aren't 10?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["10"], ["20"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_V8ca5_4.png", "TableImg_Gwc9l_4.png"], "original_data_index": 7858, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" != 2 OR \"draft_number\" > 2 AND \"copy_number\" <= 10 AND \"employee_id\" > 1 UNION SELECT document_id FROM Circulation_History WHERE \"copy_number\" > 15 AND \"draft_number\" <= 2 OR \"employee_id\" != 8 OR \"document_id\" <> 10"} {"question": "Which aircraft IDs, that are less than 4, are also aircraft IDs that equal 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_787lw_5.png", "TableImg_Twylx_4.png"], "original_data_index": 7859, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs that are less than 4, but not if they are also less than or equal to 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q3o0z_12.png", "TableImg_Dnyau_5.png"], "original_data_index": 7862, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs appear in both the list of drivers excluding driver 3 and the list of school bus drivers that only includes driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fg5f2_12.png", "TableImg_0g8yn_5.png"], "original_data_index": 7861, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the driver IDs that are equal to 12 from the driver table, excluding any driver IDs that are equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sswgs_12.png", "TableImg_At16l_5.png"], "original_data_index": 7860, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are not 4 and are also less than 10, considering the drivers in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y9wa7_12.png", "TableImg_3rvpa_5.png"], "original_data_index": 7866, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are not equal to 8, but only include those that are not also driver IDs greater than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G8ijr_12.png", "TableImg_Lle8z_5.png"], "original_data_index": 7867, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are both greater than 5 and not equal to 10, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ortqy_12.png", "TableImg_G1lvi_5.png"], "original_data_index": 7868, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the Company ID, People ID, and Year Working for all employment records where either the People ID is 3 or greater, or the Company ID is 13 or greater and the Year Working is 1 or greater, but excluding any records where either the Year Working is 4 or greater, or the Company ID is less than 11?", "answer": {"columns": ["Company_ID", "People_ID", "Year_working"], "index": [0, 1, 2], "data": [["11", "3", "2"], ["13", "2", "3"], ["15", "1", "1"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_Jl0ho_5.png", "TableImg_F6opj_5.png"], "original_data_index": 7869, "original_sql": "SELECT Company_ID, People_ID, Year_working FROM employment WHERE \"People_ID\" >= 3 OR \"Company_ID\" >= 13 AND \"Year_working\" >= 1 EXCEPT SELECT Company_ID, People_ID, Year_working FROM employment WHERE \"Year_working\" >= 4 OR \"Company_ID\" < 11"} {"question": "Can you give me a list of aircraft IDs, including aircraft ID 1 from the aircraft table and aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jti4d_5.png", "TableImg_Cstzn_4.png"], "original_data_index": 7870, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 3, excluding any driver IDs that are equal to 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qe8z4_12.png", "TableImg_Tbt50_5.png"], "original_data_index": 7871, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list all the head IDs from the head table where the age is 50 or older, or the head ID is 8 or greater and they weren't born in Alabama, combined with all the head IDs from the management table where the department ID is not 7 or their temporary acting status is \"No\"?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["5"], ["4"], ["6"], ["3"], ["10"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Cdfvs_10.png", "TableImg_K41s0_5.png"], "original_data_index": 7872, "original_sql": "SELECT head_ID FROM head WHERE \"age\" >= 50.0 OR \"head_ID\" >= 8 AND born_state != \"Alabama\" UNION ALL SELECT head_ID FROM management WHERE \"department_ID\" <> 7 OR temporary_acting = \"No\""} {"question": "Can you give me a list of driver IDs that are greater than 7 from the driver table and combine that with a list of driver IDs that are greater than 4 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cjnaw_12.png", "TableImg_L874v_5.png"], "original_data_index": 7873, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, where each ID is 5 or greater, but only include those IDs that are not in the list of school bus driver IDs, excluding the ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Onnfa_12.png", "TableImg_D5ezw_5.png"], "original_data_index": 7874, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are less than 7 and also appear as driver IDs in the school bus table, but excluding driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O6p0u_12.png", "TableImg_Myblc_5.png"], "original_data_index": 7864, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 6, combined with a list of driver IDs from the school_bus table where the ID is greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S65rs_12.png", "TableImg_Jfr87_5.png"], "original_data_index": 7863, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 2, combined with a list of driver IDs from the school_bus table where each ID is less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oshz0_12.png", "TableImg_Olz6o_5.png"], "original_data_index": 7865, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are less than 10, excluding those driver IDs that are less than or equal to 3 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2rbfc_12.png", "TableImg_P00qe_5.png"], "original_data_index": 7878, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the aircraft IDs that are less than or equal to 2 and are also not equal to 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vibv4_5.png", "TableImg_9ik67_4.png"], "original_data_index": 7876, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, but only if they are not also aircraft IDs that appear in the airport_aircraft table with an ID greater than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xx6gk_5.png", "TableImg_Emlx6_4.png"], "original_data_index": 7877, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of aircraft IDs from the aircraft table where the ID is 4 or higher, combined with a list of aircraft IDs from the airport_aircraft table where the ID is exactly 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wqqnk_5.png", "TableImg_U7cwk_4.png"], "original_data_index": 7875, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you list the aircraft IDs that are less than 2 from the aircraft table, and also include the aircraft ID that equals 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5fo62_5.png", "TableImg_Sutck_4.png"], "original_data_index": 7880, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 1, that are not aircraft ID 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6fef4_5.png", "TableImg_Dmisz_4.png"], "original_data_index": 7882, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs that are greater than 6, excluding those driver IDs that are also greater than 4 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hip7t_12.png", "TableImg_Ds78b_5.png"], "original_data_index": 7881, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me the People ID, Year Working, and Company ID from the employment table for people with IDs less than 4 and company IDs less than 13, along with the People ID, Year Working, and Company ID for those who worked in a year other than 3, have a People ID greater than 1, and a Company ID less than 7?", "answer": {"columns": ["People_ID", "Year_working", "Company_ID"], "index": [0], "data": [["3", "2", "11"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_Opt4x_5.png", "TableImg_Slymr_5.png"], "original_data_index": 7879, "original_sql": "SELECT People_ID, Year_working, Company_ID FROM employment WHERE \"People_ID\" < 4 AND \"Company_ID\" < 13 UNION ALL SELECT People_ID, Year_working, Company_ID FROM employment WHERE \"Year_working\" <> 3 AND \"People_ID\" > 1 AND \"Company_ID\" < 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 12 or higher, and those from the school bus table that are greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xmx91_12.png", "TableImg_Fnpp3_5.png"], "original_data_index": 7884, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 12, excluding driver ID 9 if it's in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2y0ni_12.png", "TableImg_Nqedu_5.png"], "original_data_index": 7883, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_44mhq_12.png", "TableImg_Axzjp_5.png"], "original_data_index": 7886, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the highest age of drivers and their corresponding school IDs, considering only drivers named Brandon McGee, or those with a count of years working equal to 2, or those who are not 52 years old, not full-time, not from Coventry, belong to the Dem party, and have a school ID greater than 7?", "answer": {"columns": ["MAX(T1.Age)", "School_ID"], "index": [0], "data": [["", ""]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cs6f2_12.png", "TableImg_V5hdn_5.png"], "original_data_index": 7885, "original_sql": "SELECT MAX(T1.Age), T2.School_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Name = \"Brandon McGee\" OR COUNT(Years_Working) = 2 OR Age <> 52 AND If_full_time <> \"T\" AND Home_city <> \"Coventry\" AND Party = \"Dem\" AND School_ID > 7"} {"question": "Could you list all contestant numbers, including those from contestants with numbers 11 or higher, and also those from votes where the vote ID is not 5 and either the state is not CA, or the phone number is greater than 5112677315, or the creation date is not 2018-03-09 19:03:40 and the contestant number is 3 or higher?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2, 3], "data": [["11"], ["2"], ["3"], ["3"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_Ly609_11.png", "TableImg_Qce5z_4.png"], "original_data_index": 7888, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE \"contestant_number\" >= 11 UNION ALL SELECT contestant_number FROM VOTES WHERE \"vote_id\" != 5 AND state <> \"CA\" OR \"phone_number\" > 5112677315 OR created <> \"2018-03-09 19:03:40\" AND \"contestant_number\" >= 3"} {"question": "Can you give me a list of driver IDs that are greater than 7 from the driver table, excluding any driver IDs less than or equal to 7 that are in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ktjt4_12.png", "TableImg_8ip49_5.png"], "original_data_index": 7894, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the IDs of drivers with IDs less than 7, excluding those drivers who also have IDs of 4 or greater and are associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M5ygb_12.png", "TableImg_P5c5l_5.png"], "original_data_index": 7892, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the rank, club ID, and coach ID for all coaches where the coach ID is less than 4, the gender is not male, or the rank is 5 or higher, combined with the rank, club ID, and coach ID for all coaches where the coach ID is greater than 4?", "answer": {"columns": ["Rank", "Club_ID", "Coach_ID"], "index": [0, 1, 2, 3], "data": [["1", "1", "1"], ["2", "1", "2"], ["3", "3", "3"], ["5", "1", "5"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Yivcb_5.png", "TableImg_Zuuvi_5.png"], "original_data_index": 7893, "original_sql": "SELECT Rank, Club_ID, Coach_ID FROM coach WHERE \"Coach_ID\" < 4 OR Gender != \"M\" OR \"Rank\" >= 5 UNION SELECT Rank, Club_ID, Coach_ID FROM coach WHERE \"Coach_ID\" > 4"} {"question": "Can you give me a list of company names from the company table where either the assets are greater than 1873.9 billion, the company ID is greater than 2, the sales are less than 87.6 billion, or the name isn't \"Citigroup\" and the headquarters isn't in the UK and the industry isn't \"Oil and gas\" and the profits are exactly 25.1 billion, or the market value is exactly 201.9 billion, combined with a list of names from the people table where the name isn't \"Tim Naegeli\" and the graduation college isn't \"Virginia\", or the nationality isn't the United Kingdom and the age is less than 30, or the people ID is greater than 4?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["Agricultural Bank of China"], ["BP"], ["Berkshire Hathaway"], ["Brad Lohaus"], ["Chevron"], ["China Construction Bank"], ["Citigroup"], ["Darryl Kennedy"], ["David Butler"], ["Gazprom"], ["General Electric"], ["HSBC"], ["Industrial and Commercial Bank of China"], ["JPMorgan Chase"], ["Jerry Corcoran"], ["PetroChina"], ["Petrobras"], ["Reggie Lewis"], ["Royal Dutch Shell"], ["Tim Naegeli"], ["Total"], ["Volkswagen Group"], ["Walmart"], ["Wells Fargo"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_R2n0n_19.png", "TableImg_1p4zw_7.png"], "original_data_index": 7891, "original_sql": "SELECT Name FROM company WHERE \"Assets_in_Billion\" > 1873.9 OR \"Company_ID\" > 2.0 OR \"Sales_in_Billion\" < 87.6 OR Name <> \"Citigroup\" AND Headquarters <> \"UK\" AND Industry <> \"Oil and gas\" AND \"Profits_in_Billion\" = 25.1 OR \"Market_Value_in_Billion\" = 201.9 UNION SELECT Name FROM people WHERE Name != \"Tim Naegeli\" AND Graduation_College != \"Virginia\" OR Nationality != \"United Kindom\" AND \"Age\" < 30 OR \"People_ID\" > 4"} {"question": "Can you tell me the alphabetically last aircraft name from the aircraft table, considering only aircraft with a distance of 3383 or more, excluding those with an aid of 8, or aircraft whose name is not \"British Aerospace Jetstream 41\", combined with the alphabetically last employee name from the employee table, considering only employees whose name is not \"James Smith\" or whose salary is 212156?", "answer": {"columns": ["MAX(name)"], "index": [0, 1], "data": [["Tupolev 154"], ["William Ward"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Gncch_16.png", "TableImg_Emesz_31.png"], "original_data_index": 7895, "original_sql": "SELECT MAX(name) FROM aircraft WHERE \"distance\" >= 3383 AND \"aid\" <> 8 OR name != \"British Aerospace Jetstream 41\" UNION ALL SELECT MAX(name) FROM employee WHERE name != \"James Smith\" OR \"salary\" = 212156"} {"question": "Is the number of reviews for item 5 the same as the number of user accounts with ID 2?", "answer": {"columns": ["COUNT(u_id)"], "index": [0], "data": [["1"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Esk9o_7.png", "TableImg_Lnjxf_7.png"], "original_data_index": 7898, "original_sql": "SELECT COUNT(u_id) FROM review WHERE \"i_id\" = 5 INTERSECT SELECT COUNT(u_id) FROM useracct WHERE \"u_id\" = 2"} {"question": "Which driver has an ID of 6, but does not have an ID of 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9qttr_12.png", "TableImg_Ed7gu_5.png"], "original_data_index": 7897, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2iil7_12.png", "TableImg_6jotz_5.png"], "original_data_index": 7896, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What aircraft IDs, excluding ID 5, are present in the aircraft table but not in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sk06r_5.png", "TableImg_S329r_4.png"], "original_data_index": 7899, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Could you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those driver IDs that are also greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J45q8_12.png", "TableImg_31o98_5.png"], "original_data_index": 7900, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list all the driver IDs that are less than 7 from the driver table, combined with all the driver IDs that are less than 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8nv31_12.png", "TableImg_Etgl2_5.png"], "original_data_index": 7901, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 5, and also list the aircraft IDs from the airport_aircraft table that are not equal to 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Or5i0_5.png", "TableImg_Pcahy_4.png"], "original_data_index": 7902, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you list the aircraft IDs that are greater than or equal to 5, and also list the aircraft IDs from the airport aircraft table that are greater than 3, combining both lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ig2mr_5.png", "TableImg_0bhai_4.png"], "original_data_index": 7903, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs that are greater than 4, but exclude any driver IDs that also appear in the school bus table, unless that driver ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8iyxp_12.png", "TableImg_Yi0g4_5.png"], "original_data_index": 7906, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 1, that appear in the aircraft table but not in the airport_aircraft table, also excluding aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2udgt_5.png", "TableImg_5hkof_4.png"], "original_data_index": 7904, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me the IDs of drivers with an ID of 1 or less, excluding those drivers who also have an ID less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bnnyh_12.png", "TableImg_Ahrnj_5.png"], "original_data_index": 7907, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me the Club IDs that meet these two conditions: First, the club's description isn't \"Refurbish computers; teach kids and adults about computer basics.\" or the club is located in \"AKW\" and named \"Bootup Baltimore\" and also has a ClubID less than or equal to 4. Second, the Club ID is associated with a member with StuID 1010 or the ClubID is greater than 1?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Jzk8u_4.png", "TableImg_01c9r_4.png"], "original_data_index": 7905, "original_sql": "SELECT ClubID FROM Club WHERE ClubDesc != \"Refurbish computers; teach kids and adults about computer basics.\" OR ClubLocation = \"AKW\" AND ClubName = \"Bootup Baltimore\" AND \"ClubID\" <= 4 INTERSECT SELECT ClubID FROM Member_of_club WHERE \"StuID\" = 1010 OR \"ClubID\" > 1"} {"question": "Which aircraft IDs, excluding aircraft ID 2, are also among the aircraft IDs that are less than or equal to 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9d85h_5.png", "TableImg_Yu2w4_4.png"], "original_data_index": 7908, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 6 and those from the school_bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F0b2e_12.png", "TableImg_Pd6lh_5.png"], "original_data_index": 7910, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are 5 or greater from the driver table, combined with a list of driver IDs that are greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vvmdy_12.png", "TableImg_Xnhmy_5.png"], "original_data_index": 7909, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me the head IDs that are both not associated with the name \"Jeff Maggert\" and are also associated with a department ID greater than 15 or a temporary acting status of \"No\"?", "answer": {"columns": ["head_ID"], "index": [0, 1], "data": [["3"], ["10"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_S7nx2_10.png", "TableImg_Pi6cv_5.png"], "original_data_index": 7911, "original_sql": "SELECT head_ID FROM head WHERE name <> \"Jeff Maggert\" INTERSECT SELECT head_ID FROM management WHERE \"department_ID\" > 15 OR temporary_acting = \"No\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Frc1z_5.png", "TableImg_4k7dc_4.png"], "original_data_index": 7914, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs that are greater than 6, but not less than 9, considering only the driver IDs that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fl042_12.png", "TableImg_Sgqnn_5.png"], "original_data_index": 7912, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 3, but only if they are not also aircraft IDs less than or equal to 5 that appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9522x_5.png", "TableImg_Kdksv_4.png"], "original_data_index": 7913, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 12 or greater, and those from the school bus table where the ID is 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C4g2v_12.png", "TableImg_0b1o9_5.png"], "original_data_index": 7915, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 1, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2zfcb_5.png", "TableImg_Kmr3r_4.png"], "original_data_index": 7916, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are both greater than or equal to 1 and present in the driver table, and also greater than or equal to 10 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q9533_12.png", "TableImg_A7qsj_5.png"], "original_data_index": 7918, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 5 or greater, and those from the school bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J33qf_12.png", "TableImg_Wtmd1_5.png"], "original_data_index": 7917, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs, excluding driver ID 2, are also driver IDs of school buses, excluding school bus driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dc9ks_12.png", "TableImg_Y576v_5.png"], "original_data_index": 7920, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 6 with those from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Thm14_12.png", "TableImg_Ir4n7_5.png"], "original_data_index": 7921, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver IDs greater than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P9ct5_12.png", "TableImg_Akl8j_5.png"], "original_data_index": 7919, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, including driver ID 11 from the driver table and all driver IDs except 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fsixw_12.png", "TableImg_Mx4sf_5.png"], "original_data_index": 7922, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 2 and those from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dtpdb_12.png", "TableImg_48pdn_5.png"], "original_data_index": 7923, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the earnings, people IDs, and poker player IDs for all poker players who either have a best finish less than 2 and didn't make 19 final tables, or have earnings less than 596462, combined with those who either don't have a money rank of 166, or have a people ID less than 6 and a best finish less than 2?", "answer": {"columns": ["Earnings", "People_ID", "Poker_Player_ID"], "index": [0, 1, 2, 3, 4], "data": [["104871", "5", "3"], ["142800", "7", "5"], ["189233", "2", "2"], ["476090", "1", "1"], ["596462", "6", "4"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_94hui_5.png", "TableImg_V7bxo_5.png"], "original_data_index": 7924, "original_sql": "SELECT Earnings, People_ID, Poker_Player_ID FROM poker_player WHERE \"Best_Finish\" < 2.0 AND \"Final_Table_Made\" <> 19.0 OR \"Earnings\" < 596462.0 UNION SELECT Earnings, People_ID, Poker_Player_ID FROM poker_player WHERE \"Money_Rank\" != 166.0 OR \"People_ID\" < 6 AND \"Best_Finish\" < 2.0"} {"question": "Can you give me a list of driver IDs that are 10 or greater from the driver table, excluding any driver IDs that are 7 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F2dbq_12.png", "TableImg_Lva7r_5.png"], "original_data_index": 7925, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs less than or equal to 9, excluding any driver IDs from the school bus list that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mped9_12.png", "TableImg_Sc52t_5.png"], "original_data_index": 7926, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of aircraft IDs that are not equal to 3, and also less than 2, based on the aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ymy29_5.png", "TableImg_D0ilj_4.png"], "original_data_index": 7929, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Could you list the description of each aircraft along with its corresponding aircraft ID?", "answer": {"columns": ["Description", "Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["Turboshaft utility helicopter", "2"], ["Light utility helicopter", "1"], ["Heavy-lift helicopter", "5"], ["Tandem rotor helicopter", "3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Isesk_5.png", "TableImg_Tpxb8_4.png"], "original_data_index": 7930, "original_sql": "SELECT T1.Description, T2.Aircraft_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 10, and those from the school_bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lemsf_12.png", "TableImg_0x4ml_5.png"], "original_data_index": 7928, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 1, and those from the school bus table with driver IDs of 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Femj9_12.png", "TableImg_Gxpy4_5.png"], "original_data_index": 7927, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are both greater than or equal to 10 in the driver table and less than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tnv6p_12.png", "TableImg_Us0nt_5.png"], "original_data_index": 7932, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list the aircraft IDs that are less than 5, excluding any aircraft IDs from the airport aircraft list that are 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O43b3_5.png", "TableImg_Dt7v5_4.png"], "original_data_index": 7934, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me the flight number, pilot, company ID, date, airport ID, altitude, and velocity for all flights where either the flight ID is not 7, the date is July 16, 1965, or the altitude is at least 3650, the pilot isn't Peterson, the flight number isn't M2-F1 #61, and the velocity is at least 240, combined with all flights where either the pilot isn't Peterson and the flight number isn't M2-F1 #73, or the date is March 28, 1966?", "answer": {"columns": ["Vehicle_Flight_number", "Pilot", "company_id", "Date", "airport_id", "Altitude", "Velocity"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["M2-F1 #0", "Thompson", "2", "1963-03-01 00:00:00", "1", "0", "135"], ["M2-F1 #1", "Thompson", "3", "1963-08-16 00:00:00", "2", "3650", "240"], ["M2-F1 #6", "Thompson", "4", "1963-09-03 00:00:00", "2", "3650", "240"], ["M2-F1 #13", "Thompson", "4", "1963-10-25 00:00:00", "3", "3650", "240"], ["M2-F1 #14", "Thompson", "5", "1963-11-08 00:00:00", "4", "3650", "240"], ["M2-F1 #21", "Thompson", "6", "1964-01-29 00:00:00", "4", "3650", "240"], ["M2-F1 #39", "Peterson", "13", "1964-05-19 00:00:00", "2", "3650", "240"], ["M2-F1 #61", "Thompson", "11", "1965-07-16 00:00:00", "6", "3650", "240"], ["M2-F1 #64", "Thompson", "1", "1965-08-30 00:00:00", "9", "3650", "240"], ["M2-F1 #70", "Thompson", "5", "1965-10-08 00:00:00", "4", "3650", "240"], ["M2-F1 #71", "Thompson", "7", "1966-03-28 00:00:00", "6", "3650", "240"], ["M2-F1 #73", "Peterson", "9", "1966-08-04 00:00:00", "8", "3650", "240"], ["M2-F1 #0", "Thompson", "2", "1963-03-01 00:00:00", "1", "0", "135"], ["M2-F1 #1", "Thompson", "3", "1963-08-16 00:00:00", "2", "3650", "240"], ["M2-F1 #6", "Thompson", "4", "1963-09-03 00:00:00", "2", "3650", "240"], ["M2-F1 #13", "Thompson", "4", "1963-10-25 00:00:00", "3", "3650", "240"], ["M2-F1 #14", "Thompson", "5", "1963-11-08 00:00:00", "4", "3650", "240"], ["M2-F1 #21", "Thompson", "6", "1964-01-29 00:00:00", "4", "3650", "240"], ["M2-F1 #61", "Thompson", "11", "1965-07-16 00:00:00", "6", "3650", "240"], ["M2-F1 #64", "Thompson", "1", "1965-08-30 00:00:00", "9", "3650", "240"], ["M2-F1 #70", "Thompson", "5", "1965-10-08 00:00:00", "4", "3650", "240"], ["M2-F1 #71", "Thompson", "7", "1966-03-28 00:00:00", "6", "3650", "240"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_6e3sf_13.png", "TableImg_0wu5t_13.png"], "original_data_index": 7931, "original_sql": "SELECT Vehicle_Flight_number, Pilot, company_id, Date, airport_id, Altitude, Velocity FROM flight WHERE \"id\" != 7 OR Date = \"July 16, 1965\" OR \"Altitude\" >= 3650.0 AND Pilot != \"Peterson\" AND Vehicle_Flight_number <> \"M2-F1 #61\" AND \"Velocity\" >= 240.0 UNION ALL SELECT Vehicle_Flight_number, Pilot, company_id, Date, airport_id, Altitude, Velocity FROM flight WHERE Pilot != \"Peterson\" AND Vehicle_Flight_number <> \"M2-F1 #73\" OR Date = \"March 28, 1966\""} {"question": "Can you give me a list of customer IDs, excluding those who have a vehicle ID of 2 or more, or a lesson status code other than \"Cancelled\", from customers who either didn't become customers on \"2016-11-30 10:37:41\", aren't classified as \"Bad Customer\", have an email address other than \"asha.kilback@example.org\" and a birthdate other than \"1998-09-18 04:45:01\", don't have an amount outstanding of 9500.0, have a cell phone number other than \"+57(9)4602098297\" and a customer ID other than 2 and a first name other than \"Estelle\", or have a phone number of \"1-673-962-8158x7646\"?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["4"], ["7"], ["9"], ["12"], ["14"], ["15"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_P5mes_15.png", "TableImg_Xy27x_15.png"], "original_data_index": 7933, "original_sql": "SELECT customer_id FROM Customers WHERE date_became_customer != \"2016-11-30 10:37:41\" OR customer_status_code <> \"Bad Customer\" OR email_address <> \"asha.kilback@example.org\" AND date_of_birth <> \"1998-09-18 04:45:01\" OR \"amount_outstanding\" != 9500.0 OR cell_mobile_phone_number <> \"+57(9)4602098297\" AND \"customer_id\" <> 2 AND first_name <> \"Estelle\" OR phone_number = \"1-673-962-8158x7646\" EXCEPT SELECT customer_id FROM Lessons WHERE \"vehicle_id\" >= 2 OR lesson_status_code <> \"Cancelled\""} {"question": "Which aircraft have an ID of 2 in the aircraft table, but do not have an ID other than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gra7t_5.png", "TableImg_Szela_4.png"], "original_data_index": 7937, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 3 or greater, and those from the school bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H9nge_12.png", "TableImg_5n1wv_5.png"], "original_data_index": 7935, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me the Driver ID, years working, and full-time status for school bus drivers who have a Driver ID of 7 or higher, and who also either work full-time, have a Driver ID other than 7, have worked for 6 years, or are associated with a school ID less than 7?", "answer": {"columns": ["Driver_ID", "Years_Working", "If_full_time"], "index": [0, 1, 2], "data": [["7", "8", "T"], ["9", "2", "T"], ["10", "10", "F"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_Tscwj_5.png", "TableImg_0ptf0_5.png"], "original_data_index": 7936, "original_sql": "SELECT Driver_ID, Years_Working, If_full_time FROM school_bus WHERE \"Driver_ID\" >= 7 INTERSECT SELECT Driver_ID, Years_Working, If_full_time FROM school_bus WHERE If_full_time = \"T\" OR \"Driver_ID\" != 7 OR \"Years_Working\" = 6 OR \"School_ID\" < 7"} {"question": "Can you give me a list of student IDs from the Has_Pet table, including those with a PetID of 2002 or higher, or a StuID greater than 1001, and also including student ID 1002?", "answer": {"columns": ["StuID"], "index": [0], "data": [["1002"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_28vwn_3.png", "TableImg_J6f6k_3.png"], "original_data_index": 7938, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"PetID\" >= 2002 OR \"StuID\" > 1001 UNION SELECT StuID FROM Has_Pet WHERE \"StuID\" = 1002"} {"question": "Which driver IDs are both greater than or equal to 5 in the driver table and equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rqge9_12.png", "TableImg_E5zf0_5.png"], "original_data_index": 7942, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs from the driver table that are 5 or greater, excluding any driver IDs from the school bus table that are 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wmgtk_12.png", "TableImg_R91q2_5.png"], "original_data_index": 7940, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the aircraft IDs that are greater than or equal to 3 from the aircraft table, and combine that with a list of aircraft IDs that are not equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sicxa_5.png", "TableImg_4qv64_4.png"], "original_data_index": 7939, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the average contestant number and total state value for votes where the contestant number is 5 or greater, the phone number is less than 6209222712, the creation time is not 2018-03-09 19:03:40, or the vote ID is not 5, excluding the average contestant number and total state value for votes where the creation time is not 2018-03-09 19:03:36 and the state is not NY?", "answer": {"columns": ["AVG(contestant_number)", "SUM(state)"], "index": [0], "data": [["3.25", "0"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_4am18_4.png", "TableImg_D8ysi_4.png"], "original_data_index": 7941, "original_sql": "SELECT AVG(contestant_number), SUM(state) FROM VOTES WHERE \"contestant_number\" >= 5 AND \"phone_number\" < 6209222712 OR created != \"2018-03-09 19:03:40\" OR \"vote_id\" != 5 EXCEPT SELECT AVG(contestant_number), SUM(state) FROM VOTES WHERE created <> \"2018-03-09 19:03:36\" AND state != \"NY\""} {"question": "Can you list the aircraft IDs that are greater than or equal to 1, excluding those aircraft IDs that are not equal to 3 and are found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tzwcq_5.png", "TableImg_T8mw2_4.png"], "original_data_index": 7944, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are 3 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_00ncx_12.png", "TableImg_Ooou7_5.png"], "original_data_index": 7945, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you list all the document type codes from the Documents table where the document status is not \"done\", or the document ID is greater than or equal to 4 and the document type code is not \"Paper\", or the other details are not \"n\" and the shipping agent code is not \"UP\", combined with all the document type codes from the Ref_Document_Types table where the document type description is not \"f\" or the document type code is \"Hard Drive\"?", "answer": {"columns": ["document_type_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["CD"], ["Paper"], ["Paper"], ["CD"], ["Paper"], ["Hard Drive"], ["CD"], ["CD"], ["CD"], ["Paper"], ["Paper"], ["Hard Drive"], ["Hard Drive"], ["Hard Drive"], ["CD"], ["Paper"], ["Hard Drive"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Meh79_15.png", "TableImg_Hyxuq_3.png"], "original_data_index": 7943, "original_sql": "SELECT document_type_code FROM Documents WHERE document_status_code <> \"done\" OR \"document_id\" >= 4 AND document_type_code != \"Paper\" OR other_details <> \"n\" AND shipping_agent_code != \"UP\" UNION ALL SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description <> \"f\" OR document_type_code = \"Hard Drive\""} {"question": "Can you give me a list of driver IDs that are less than 9, excluding those driver IDs from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eg1ac_12.png", "TableImg_4ux9g_5.png"], "original_data_index": 7946, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 6, combined with a list of driver IDs from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V2mhx_12.png", "TableImg_Pi5et_5.png"], "original_data_index": 7949, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, including driver ID 8 from the driver table and all driver IDs except 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0xjan_12.png", "TableImg_Frnz2_5.png"], "original_data_index": 7947, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs less than or equal to 10, excluding those driver IDs that are also in the school bus list and are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wi5pt_12.png", "TableImg_Ren6j_5.png"], "original_data_index": 7948, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the aircraft IDs that are less than 2 from the aircraft table, and combine that with a list of aircraft IDs that are greater than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yk0k3_5.png", "TableImg_Uqr2y_4.png"], "original_data_index": 7951, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 5, and also list all the aircraft IDs from the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y672b_5.png", "TableImg_Hpva1_4.png"], "original_data_index": 7953, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me the IDs of drivers, up to ID 7, who are drivers but not school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mrjtf_12.png", "TableImg_33y1q_5.png"], "original_data_index": 7952, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of customer IDs, including those who didn't use Direct Debit and didn't make a payment on March 20, 2018 at 9:38 PM, combined with those who didn't use Direct Debit and didn't make a payment on February 19, 2018 at 9:06 AM, and either paid less than $1708.18 or are not customer ID 14?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Ima4n_15.png", "TableImg_Nrzes_15.png"], "original_data_index": 7950, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE payment_method_code <> \"Direct Debit\" AND datetime_payment <> \"2018-03-20 21:38:41\" UNION SELECT customer_id FROM Customer_Payments WHERE payment_method_code <> \"Direct Debit\" AND datetime_payment <> \"2018-02-19 09:06:29\" AND \"amount_payment\" < 1708.18 OR \"customer_id\" != 14"} {"question": "Which aircraft IDs, less than or equal to 1, are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O3426_5.png", "TableImg_Swopn_4.png"], "original_data_index": 7955, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Which driver has an ID of 9, but is not a driver with an ID less than 7 who drives a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J45f6_12.png", "TableImg_Kuv40_5.png"], "original_data_index": 7956, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the County ID, Zip code, and Population for all counties, excluding those with Zip code \"D09\", and then further exclude any counties with County ID 1, Zip code not equal to \"D21\", and County name \"Manning\", or those with a population of 13300?", "answer": {"columns": ["County_Id", "Zip_code", "Population"], "index": [0, 1, 2], "data": [["1", "D21", "21000"], ["2", "D08", "90000"], ["3", "D02", "79000"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_1zihd_5.png", "TableImg_Whpzy_5.png"], "original_data_index": 7954, "original_sql": "SELECT County_Id, Zip_code, Population FROM county WHERE Zip_code <> \"D09\" EXCEPT SELECT County_Id, Zip_code, Population FROM county WHERE \"County_Id\" = 1 AND Zip_code <> \"D21\" AND County_name = \"Manning\" OR \"Population\" = 13300.0"} {"question": "Can you show me the payment amount, customer ID, payment date and time, and payment method for customers with IDs up to 3, but exclude any payments that weren't made by direct debit, or had an amount of 1708.18, or occurred at a different time than March 18, 2018, 1:48:13 PM if the customer ID is greater than 13?", "answer": {"columns": ["amount_payment", "customer_id", "datetime_payment", "payment_method_code"], "index": [0, 1], "data": [["8180.26", "2", "2018-02-24 10:07:05", "Direct Debit"], ["9886.62", "1", "2018-03-18 13:48:13", "Direct Debit"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_4thc3_15.png", "TableImg_B08yp_15.png"], "original_data_index": 7957, "original_sql": "SELECT amount_payment, customer_id, datetime_payment, payment_method_code FROM Customer_Payments WHERE \"customer_id\" <= 3 EXCEPT SELECT amount_payment, customer_id, datetime_payment, payment_method_code FROM Customer_Payments WHERE payment_method_code <> \"Direct Debit\" OR \"amount_payment\" = 1708.18 OR datetime_payment <> \"2018-03-18 13:48:13\" AND \"customer_id\" > 13"} {"question": "What are the aircraft IDs that are greater than or equal to 1, excluding those aircraft IDs less than 3 that are present in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5wpyk_5.png", "TableImg_Xoffi_4.png"], "original_data_index": 7960, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of all member IDs, including those members who are at level 6 and also those members from the membership register whose ID is 7 or less and who didn't register in 2016?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["3"], ["6"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_At1nr_10.png", "TableImg_6foi6_8.png"], "original_data_index": 7958, "original_sql": "SELECT Member_ID FROM member WHERE \"Level\" = 6 UNION ALL SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" <= 7 AND Register_Year <> \"2016\""} {"question": "Can you find the smallest Pet ID, weight, and pet type for pets where either the Pet ID is 2001, or the weight is 12.0 and the pet type is dog and the pet age is a specific value? Also, can you combine that with the smallest Pet ID, weight, and pet type for pets where the weight is less than 13.4 or the pet type is not cat?", "answer": {"columns": ["MIN(PetID)", "weight", "PetType"], "index": [0], "data": [["2001", "12", "cat"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_E52my_3.png", "TableImg_Tgzng_3.png"], "original_data_index": 7959, "original_sql": "SELECT MIN(PetID), weight, PetType FROM Pets WHERE \"PetID\" = 2001 OR \"weight\" = 12.0 AND PetType = \"dog\" AND \"pet_age\" = 2 UNION SELECT MIN(PetID), weight, PetType FROM Pets WHERE \"weight\" < 13.4 OR PetType != \"cat\""} {"question": "Can you give me a list of driver IDs, including driver ID 2 from the driver table, and all driver IDs except 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kvs1i_12.png", "TableImg_Hnsjv_5.png"], "original_data_index": 7962, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of member and branch IDs, combining those from membership registrations in 2017, excluding member ID 5, with those from purchases where either the branch ID isn't 6 or the total purchase amount is no more than 20.99, or the member ID isn't 3?", "answer": {"columns": ["Member_ID", "Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "3"], ["2", "2"], ["2", "3"], ["2", "5"], ["3", "1"], ["4", "1"], ["6", "6"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_7zfcm_8.png", "TableImg_Dkapo_8.png"], "original_data_index": 7961, "original_sql": "SELECT Member_ID, Branch_ID FROM membership_register_branch WHERE \"Member_ID\" <> 5 AND Register_Year = \"2017\" UNION SELECT Member_ID, Branch_ID FROM purchase WHERE Branch_ID <> \"6\" AND \"Total_pounds\" <= 20.99 OR \"Member_ID\" <> 3"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 5, excluding any driver IDs from the school bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dt9su_12.png", "TableImg_Tnq9n_5.png"], "original_data_index": 7964, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list the country ID and country name for all countries where the continent number is less than 3 and the country ID is less than 5, or where the country name is not \"france\", combined with the country ID and country name for countries where the country ID is greater than or equal to 8, the continent number is greater than 1, and the country name is \"uk\"?", "answer": {"columns": ["CountryId", "CountryName"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "usa"], ["2", "germany"], ["3", "france"], ["4", "japan"], ["5", "italy"], ["6", "sweden"], ["7", "uk"], ["8", "korea"], ["9", "russia"], ["10", "nigeria"], ["11", "australia"], ["12", "new zealand"], ["13", "egypt"], ["14", "mexico"], ["15", "brazil"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_Oysms_15.png", "TableImg_E1uz1_15.png"], "original_data_index": 7963, "original_sql": "SELECT CountryId, CountryName FROM countries WHERE \"Continent\" < 3 AND \"CountryId\" < 5 OR CountryName != \"france\" UNION SELECT CountryId, CountryName FROM countries WHERE \"CountryId\" >= 8 AND \"Continent\" > 1 AND CountryName = \"uk\""} {"question": "Can you give me a list of Aircraft IDs that are greater than 1 from the aircraft table, combined with a list of Aircraft IDs that are greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fiz3q_5.png", "TableImg_R9iqr_4.png"], "original_data_index": 7967, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs are both less than or equal to 9 and present in the driver table, and also less than or equal to 10 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mkhcr_12.png", "TableImg_4lida_5.png"], "original_data_index": 7968, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are greater than 10, but not including any driver IDs that are greater than or equal to 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hsphy_12.png", "TableImg_2m7f4_5.png"], "original_data_index": 7966, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me the advisor, first name, major, age, and city code of male students who are 18 years old and whose first name isn't Jun, excluding those who are 17 or younger and live in NYC and whose last name isn't Cheng, or those whose first name isn't Sarah and whose advisor number is greater than 8423?", "answer": {"columns": ["Advisor", "Fname", "Major", "Age", "city_code"], "index": [0, 1, 2, 3], "data": [["1148", "Andy", "600", "18", "BAL"], ["2192", "Arthur", "600", "18", "WAS"], ["5718", "Eric", "50", "18", "BOS"], ["7134", "Mark", "520", "18", "PIT"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Wwwo1_34.png", "TableImg_2oaqw_34.png"], "original_data_index": 7965, "original_sql": "SELECT Advisor, Fname, Major, Age, city_code FROM Student WHERE Sex = \"M\" AND Fname <> \"Jun\" AND \"Age\" = 18 EXCEPT SELECT Advisor, Fname, Major, Age, city_code FROM Student WHERE \"Age\" <= 17 AND city_code = \"NYC\" AND LName <> \"Cheng\" OR Fname <> \"Sarah\" AND \"Advisor\" > 8423"} {"question": "Can you list the aircraft IDs that are less than 5 from the aircraft table, and also list the aircraft IDs that are greater than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vt6dz_5.png", "TableImg_Cehg5_4.png"], "original_data_index": 7969, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs that are less than 5, excluding any driver IDs that are also 3 or greater and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vynb0_12.png", "TableImg_Zm1u1_5.png"], "original_data_index": 7971, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of aircraft IDs, excluding ID 2, that appear in the aircraft table, but are not in the airport_aircraft table, also excluding ID 1 from that table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lbz5k_5.png", "TableImg_Txh4d_4.png"], "original_data_index": 7970, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What is the alphabetically first state from the AREA_CODE_STATE table, excluding Tennessee, or where the area code is less than 979, combined with the alphabetically first state from the VOTES table, excluding entries created on \"2018-03-09 19:03:39\" and New York, or where the phone number is less than 7182887233, or where the vote ID is not 5?", "answer": {"columns": ["MIN(state)"], "index": [0, 1], "data": [["AK"], ["CA"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Xhfe4_305.png", "TableImg_3pl9z_4.png"], "original_data_index": 7972, "original_sql": "SELECT MIN(state) FROM AREA_CODE_STATE WHERE state <> \"TN\" OR \"area_code\" < 979 UNION ALL SELECT MIN(state) FROM VOTES WHERE created <> \"2018-03-09 19:03:39\" AND state <> \"NY\" OR \"phone_number\" < 7182887233 OR \"vote_id\" <> 5"} {"question": "Can you give me a list of driver IDs less than 9 that are in the driver table, excluding any driver IDs that are not equal to 9 and are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dx587_12.png", "TableImg_Qgule_5.png"], "original_data_index": 7975, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs, excluding driver ID 7, are also driver IDs greater than 4 that are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4840q_12.png", "TableImg_X9qxt_5.png"], "original_data_index": 7973, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are less than 12 from the driver table, combined with a list of driver IDs that are less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fykm2_12.png", "TableImg_5piza_5.png"], "original_data_index": 7974, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Could you list all the zip codes from the county table where the population is less than or equal to 21000, excluding zip code D02, and also include all zip codes where the population is not 13300?", "answer": {"columns": ["Zip_code"], "index": [0, 1, 2, 3, 4], "data": [["D02"], ["D08"], ["D09"], ["D11"], ["D21"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_8m10b_5.png", "TableImg_Qg2pv_5.png"], "original_data_index": 7976, "original_sql": "SELECT Zip_code FROM county WHERE \"Population\" <= 21000.0 AND Zip_code <> \"D02\" UNION SELECT Zip_code FROM county WHERE \"Population\" <> 13300.0"} {"question": "Can you give me a list of driver IDs, combining those from the driver table, excluding driver ID 2, with those from the school bus table, but only including driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2p176_12.png", "TableImg_Sp4yh_5.png"], "original_data_index": 7977, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of document IDs for documents that are either in \"working\" status or have other details that aren't \"j\", combined with document IDs from draft copies that have a draft number greater than 9 or a document ID of 2?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_0pvxi_15.png", "TableImg_Ud4oi_8.png"], "original_data_index": 7978, "original_sql": "SELECT document_id FROM Documents WHERE document_status_code = \"working\" OR other_details <> \"j\" UNION SELECT document_id FROM Draft_Copies WHERE \"draft_number\" > 9 OR \"document_id\" = 2"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than 3, and combine that with a list of driver IDs from the school_bus table where the ID is not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ciigv_12.png", "TableImg_Aogmn_5.png"], "original_data_index": 7980, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are less than 11 from the driver table, excluding any driver IDs less than 7 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7cf9k_12.png", "TableImg_E1me4_5.png"], "original_data_index": 7979, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the sum of item IDs for items that are not shampoo or have an item ID less than or equal to zero, combined with the sum of item IDs from reviews where the user ID is greater than or equal to one or the agent ID is greater than seven?", "answer": {"columns": ["SUM(i_id)"], "index": [0, 1], "data": [["25"], ["28"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_6cu6v_8.png", "TableImg_Up15r_7.png"], "original_data_index": 7984, "original_sql": "SELECT SUM(i_id) FROM item WHERE title != \"shampoo\" OR \"i_id\" <= 0 UNION SELECT SUM(i_id) FROM review WHERE \"u_id\" >= 1 OR \"a_id\" > 7"} {"question": "Can you give me the flight IDs that meet both of these conditions: first, the company ID is 7 or higher, or the pilot is Thompson, or the altitude is above 3650, or the date is not January 29, 1964; and second, the operating company name is not Cathay Pacific Catering Services (HK) Limited?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_6ubsc_13.png", "TableImg_Cwbxd_14.png"], "original_data_index": 7985, "original_sql": "SELECT id FROM flight WHERE \"company_id\" >= 7 AND Pilot = \"Thompson\" OR \"Altitude\" > 3650.0 OR Vehicle_Flight_number != \"M2-F1 #1\" OR Date <> \"January 29, 1964\" INTERSECT SELECT id FROM operate_company WHERE name <> \"Cathay Pacific Catering Services (HK) Limited\""} {"question": "Can you list the Aircraft IDs, excluding ID 1, from the aircraft table, and combine that with a list of Aircraft ID 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6dr99_5.png", "TableImg_Soc8v_4.png"], "original_data_index": 7986, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 2, and those from the school bus table with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P99m3_12.png", "TableImg_U9skw_5.png"], "original_data_index": 7987, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list all the driver IDs that are greater than 11 from the driver table, and combine that with a list of all driver IDs greater than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wh2xv_12.png", "TableImg_Goxvy_5.png"], "original_data_index": 7988, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver has an ID of 2, but is not a driver with an ID less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_20pud_12.png", "TableImg_Urtrq_5.png"], "original_data_index": 7989, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 2, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R263w_12.png", "TableImg_D9v1v_5.png"], "original_data_index": 7990, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are greater than or equal to 1, combined with the aircraft IDs from the airport_aircraft table that are greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_20ogq_5.png", "TableImg_9sbcj_4.png"], "original_data_index": 7991, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "For each district ID, how many district IDs are there, excluding those with the name \"Khanewal District\"?", "answer": {"columns": ["COUNT(T1.District_ID)", "District_ID"], "index": [0], "data": [["3", "11"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_4qkl8_15.png", "TableImg_1mrxo_5.png"], "original_data_index": 7992, "original_sql": "SELECT COUNT(T1.District_ID), T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE District_name <> \"Khanewal District\""} {"question": "Which driver IDs, excluding driver ID 6, appear in the driver table but not in the school_bus table, also excluding driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pbaam_12.png", "TableImg_Od8uu_5.png"], "original_data_index": 7981, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the aircraft IDs from the aircraft table that are greater than or equal to 4, and also list the aircraft IDs from the airport_aircraft table that are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3zu5z_5.png", "TableImg_Upspq_4.png"], "original_data_index": 7983, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are also in the school bus list, except for driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N42wu_12.png", "TableImg_X5cdu_5.png"], "original_data_index": 7982, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs, excluding driver ID 9, are in the driver table but not in the school bus table for driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tttcr_12.png", "TableImg_Mg43x_5.png"], "original_data_index": 7994, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the sum of employee IDs for employees with an ID greater than 4 or who live in Bath, combined with the sum of employee IDs from evaluations where the bonus is not 3000?", "answer": {"columns": ["SUM(Employee_ID)"], "index": [0, 1], "data": [["47"], ["24"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Aki1l_10.png", "TableImg_Immsd_6.png"], "original_data_index": 7996, "original_sql": "SELECT SUM(Employee_ID) FROM employee WHERE \"Employee_ID\" > 4 OR City = \"Bath\" UNION ALL SELECT SUM(Employee_ID) FROM evaluation WHERE \"Bonus\" <> 3000.0"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver ID 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B4v4g_12.png", "TableImg_907dq_5.png"], "original_data_index": 7995, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you show me the lowest Book IDs and their corresponding issue numbers for books written by Christopher Hinz with more than 9 issues, combined with the lowest Book IDs and issue numbers for books that either don't have 12 issues, aren't titled \"Dead Corps\", or are written by Garth Ennis and have a Book ID of 3?", "answer": {"columns": ["MIN(Book_ID)", "Issues"], "index": [0, 1], "data": [["", ""], ["1.0", "6.0"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_Ia4h8_10.png", "TableImg_Ntnul_10.png"], "original_data_index": 7993, "original_sql": "SELECT MIN(Book_ID), Issues FROM book WHERE Writer = \"Christopher Hinz\" AND \"Issues\" > 9.0 UNION SELECT MIN(Book_ID), Issues FROM book WHERE \"Issues\" != 12.0 OR Title <> \"Dead Corps\" OR \"Book_ID\" = 3 AND Writer = \"Garth Ennis\""} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 6, and those from the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bg993_12.png", "TableImg_8cief_5.png"], "original_data_index": 7997, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which aircraft have an Aircraft_ID of 3 and also have an Aircraft_ID greater than 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5fr8e_5.png", "TableImg_Yygki_4.png"], "original_data_index": 7998, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs, excluding driver ID 4, in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yuw3x_12.png", "TableImg_I3naa_5.png"], "original_data_index": 7999, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs, excluding driver ID 5, are present in the driver table but not in the school bus table, where we only consider driver IDs less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mmtmc_12.png", "TableImg_4em1v_5.png"], "original_data_index": 8001, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the position, student ID, and club ID for members who are either vice-presidents, have a student ID that isn't 1001, or belong to a club with an ID less than 1, but only if they also belong to a club with an ID that isn't 4?", "answer": {"columns": ["Position", "StuID", "ClubID"], "index": [0, 1], "data": [["CTO", "1008", "2"], ["Teaching Coordinator", "1010", "1"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_Vwjfm_4.png", "TableImg_D5c0v_4.png"], "original_data_index": 8000, "original_sql": "SELECT Position, StuID, ClubID FROM Member_of_club WHERE Position = \"Vice-President\" OR \"StuID\" <> 1001 OR \"ClubID\" < 1 INTERSECT SELECT Position, StuID, ClubID FROM Member_of_club WHERE \"ClubID\" <> 4"} {"question": "Which driver IDs are present in the driver table, excluding driver ID 9, but not present in the school_bus table where the driver ID is greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ogwb3_12.png", "TableImg_9nadc_5.png"], "original_data_index": 8005, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that appear in the driver table but not in the school_bus table, where driver ID 3 is excluded from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hrc84_12.png", "TableImg_T9mjx_5.png"], "original_data_index": 8004, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me the IDs of items that either have an ID of 3 or less, or have a title that isn't \"apple\" and also isn't among the IDs of items with titles other than \"shampoo\"?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3], "data": [["0"], ["1"], ["2"], ["3"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_O16si_8.png", "TableImg_Pmnqw_8.png"], "original_data_index": 8003, "original_sql": "SELECT i_id FROM item WHERE \"i_id\" <= 3 OR title <> \"apple\" NOT IN (SELECT i_id FROM item WHERE title <> \"shampoo\")"} {"question": "Can you give me the document ID, mailed-to address ID, and mailing date for all records where either the mailing date is not November 7th, 1992 at 3:03 PM or the mailed-to address ID is less than 4, combined with all records where the mailing date is May 22nd, 1999 at 11:21 PM and the document ID is 7, or the mailed-to address ID is less than 8?", "answer": {"columns": ["document_id", "mailed_to_address_id", "mailing_date"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["2", "8", "1977-04-01 17:03:50"], ["4", "3", "1992-11-07 15:03:41"], ["4", "9", "1973-02-21 10:17:01"], ["7", "5", "1979-09-21 10:30:52"], ["10", "3", "1993-05-24 22:13:48"], ["12", "0", "1999-05-22 23:21:07"], ["12", "7", "2007-01-01 22:32:11"], ["12", "8", "2007-03-20 05:22:01"], ["13", "4", "1991-05-27 14:17:37"], ["14", "5", "1986-05-16 06:25:33"], ["20", "2", "2010-11-04 04:00:16"], ["20", "7", "1982-01-14 05:50:54"], ["23", "8", "1971-11-03 12:32:14"], ["24", "0", "2013-01-27 03:29:31"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_Aoo4i_14.png", "TableImg_99xhs_14.png"], "original_data_index": 8002, "original_sql": "SELECT document_id, mailed_to_address_id, mailing_date FROM Documents_Mailed WHERE mailing_date != \"1992-11-07 15:03:41\" OR \"mailed_to_address_id\" < 4 UNION SELECT document_id, mailed_to_address_id, mailing_date FROM Documents_Mailed WHERE mailing_date = \"1999-05-22 23:21:07\" AND \"document_id\" = 7 OR \"mailed_to_address_id\" < 8"} {"question": "Which driver IDs, excluding driver ID 11, are also driver IDs in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gefmu_12.png", "TableImg_Mjgu6_5.png"], "original_data_index": 8009, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me the Aircraft IDs that are both less than or equal to 5 in the aircraft table and greater than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yhp1p_5.png", "TableImg_5knmv_4.png"], "original_data_index": 8008, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs that are less than 8, excluding any driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vpwsb_12.png", "TableImg_X4g9j_5.png"], "original_data_index": 8007, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the maximum city, the number of employees, and the name for employees named George Chuter, or whose age is less than or equal to 29, or whose employee ID is less than or equal to 8, excluding the maximum city, number of employees, and name for employees older than 29, not named Lee Mears, and not from Leicester?", "answer": {"columns": ["MAX(City)", "COUNT(Employee_ID)", "Name"], "index": [0], "data": [["Wasps", "8", "Tim Payne"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Oq65s_10.png", "TableImg_5rmqv_10.png"], "original_data_index": 8006, "original_sql": "SELECT MAX(City), COUNT(Employee_ID), Name FROM employee WHERE Name = \"George Chuter\" OR \"Age\" <= 29 OR \"Employee_ID\" <= 8 EXCEPT SELECT MAX(City), COUNT(Employee_ID), Name FROM employee WHERE \"Age\" > 29 AND Name != \"Lee Mears\" AND City <> \"Leicester\""} {"question": "Can you list the aircraft IDs, including those from the aircraft table where the ID is 1 or greater, and those from the airport_aircraft table where the ID is not 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6des8_5.png", "TableImg_0vwo6_4.png"], "original_data_index": 8012, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of aircraft IDs from the aircraft table that are greater than or equal to 4, excluding any aircraft IDs from the airport_aircraft table that are equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wv7bb_5.png", "TableImg_H1088_4.png"], "original_data_index": 8010, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are greater than or equal to 8, but not less than or equal to 9 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D3olw_12.png", "TableImg_Mrtsf_5.png"], "original_data_index": 8015, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list the start year, club name, region, and club ID for Gefle IF, and also for any clubs with a start year not equal to 2011, or a club ID of 6 or greater, that are not named AIK and are located in the USA?", "answer": {"columns": ["Start_year", "Club_name", "Region", "Club_ID"], "index": [0, 1, 2, 3, 4], "data": [["1998", "BK H\u00e4cken", "UK", "2"], ["2000", "Halmstads BK", "Russia", "5"], ["2001", "Gefle IF", "Korea", "4"], ["2005", "Djurg\u00e5rdens IF", "USA", "3"], ["2009", "AIK", "USA", "1"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Ca7zn_6.png", "TableImg_2ezla_6.png"], "original_data_index": 8013, "original_sql": "SELECT Start_year, Club_name, Region, Club_ID FROM club WHERE Club_name = \"Gefle IF\" UNION SELECT Start_year, Club_name, Region, Club_ID FROM club WHERE \"Start_year\" <> 2011 OR \"Club_ID\" >= 6 AND Club_name != \"AIK\" AND Region = \"USA\""} {"question": "Can you give me a list of aircraft IDs that are less than 5 and appear in the aircraft table, but also appear in the airport_aircraft table with an ID that is not 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cbyj3_5.png", "TableImg_Vfbpj_4.png"], "original_data_index": 8016, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you show me the sex, the minimum advisor number, age, the minimum student ID, the minimum major, and the sum of last names for students, combining two sets of results: first, those where the major is 550 and the last name isn't Brown and the advisor isn't 8423, or the sex isn't female and the student ID isn't 1028 and the first name isn't William, or the age isn't 20, or the city code is CHI; and second, those where the student ID isn't 1023 or the city code isn't PIT?", "answer": {"columns": ["Sex", "MIN(Advisor)", "Age", "MIN(StuID)", "MIN(Major)", "SUM(LName)"], "index": [0, 1], "data": [["M", "1121", "18", "1001", "50", "0"], ["M", "1121", "18", "1001", "50", "0"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_P7fi6_34.png", "TableImg_P9tpw_34.png"], "original_data_index": 8014, "original_sql": "SELECT Sex, MIN(Advisor), Age, MIN(StuID), MIN(Major), SUM(LName) FROM Student WHERE \"Major\" = 550 AND LName <> \"Brown\" AND \"Advisor\" != 8423 OR Sex <> \"F\" AND \"StuID\" <> 1028 AND Fname != \"William\" OR \"Age\" <> 20 OR city_code = \"CHI\" UNION ALL SELECT Sex, MIN(Advisor), Age, MIN(StuID), MIN(Major), SUM(LName) FROM Student WHERE \"StuID\" != 1023 OR city_code != \"PIT\""} {"question": "Can you give me the document IDs from the drafts that either have draft details of \"k\" or a draft number less than 4, but exclude any document IDs from mailed documents that are greater than or equal to 10, were not mailed on \"1979-09-21 10:30:52\", and were not mailed to address ID 5?", "answer": {"columns": ["document_id"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Upnis_15.png", "TableImg_A01ni_14.png"], "original_data_index": 8017, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details = \"k\" OR \"draft_number\" < 4 EXCEPT SELECT document_id FROM Documents_Mailed WHERE \"document_id\" >= 10 AND mailing_date <> \"1979-09-21 10:30:52\" AND \"mailed_to_address_id\" <> 5"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rzotc_12.png", "TableImg_Ksgr1_5.png"], "original_data_index": 8018, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What is the smallest document ID from the circulation history, excluding document ID 1 and including only records where the employee ID is at least 1, the copy number is greater than 10, or the draft number is greater than 1, after removing the smallest document ID from documents mailed where the document ID is greater than 2?", "answer": {"columns": ["MIN(document_id)"], "index": [0], "data": [["1"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Qqimp_4.png", "TableImg_Mr27s_14.png"], "original_data_index": 8019, "original_sql": "SELECT MIN(document_id) FROM Circulation_History WHERE \"document_id\" <> 1 AND \"employee_id\" >= 1 OR \"copy_number\" > 10 OR \"draft_number\" > 1 EXCEPT SELECT MIN(document_id) FROM Documents_Mailed WHERE \"document_id\" > 2"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 1, and those from the airport_aircraft table that are less than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Exzhd_5.png", "TableImg_Cbau9_4.png"], "original_data_index": 8020, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 10 and also greater than 7, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ussg5_12.png", "TableImg_Whjxj_5.png"], "original_data_index": 8021, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are not 4, and also including all driver IDs from the school_bus table that are 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V3cas_12.png", "TableImg_54vc8_5.png"], "original_data_index": 8022, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs that are not equal to 6 from the driver table, but only include those driver IDs that are also greater than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Au5i8_12.png", "TableImg_Ez5n3_5.png"], "original_data_index": 8023, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list the aircraft IDs that are both greater than or equal to 5 in the aircraft table and not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1ku9z_5.png", "TableImg_4an4t_4.png"], "original_data_index": 8025, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 8, and those from the school_bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zidwm_12.png", "TableImg_P2upa_5.png"], "original_data_index": 8027, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Could you give me the People IDs of individuals who are both under 31 years old and didn't graduate from Iowa, and who also either didn't graduate from California, are named Tom Sheehey, or have a People ID of 7 or higher?", "answer": {"columns": ["People_ID"], "index": [0, 1], "data": [["1"], ["7"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Rr5g0_7.png", "TableImg_Wq5af_7.png"], "original_data_index": 8026, "original_sql": "SELECT People_ID FROM people WHERE \"Age\" < 31 AND Graduation_College <> \"Iowa\" INTERSECT SELECT People_ID FROM people WHERE Graduation_College <> \"California\" OR Name = \"Tom Sheehey\" OR \"People_ID\" >= 7"} {"question": "Can you give me the total pounds, branch ID, and member ID from the purchase table for purchases where the total pounds is less than or equal to 343.76, and also include the total pounds, branch ID, and member ID for all purchases where either the member ID is not 3 or the total pounds is not 321.13 and the branch ID is 1?", "answer": {"columns": ["Total_pounds", "Branch_ID", "Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["321.13", "5", "2"], ["20.99", "1", "4"], ["343.76", "5", "3"], ["232.09", "6", "6"], ["2013.32", "3", "1"], ["321.13", "5", "2"], ["988.09", "1", "3"], ["20.99", "1", "4"], ["232.09", "6", "6"], ["402.1", "2", "2"], ["430.29", "3", "2"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_Hujo6_8.png", "TableImg_2155n_8.png"], "original_data_index": 8024, "original_sql": "SELECT Total_pounds, Branch_ID, Member_ID FROM purchase WHERE \"Total_pounds\" <= 343.76 UNION ALL SELECT Total_pounds, Branch_ID, Member_ID FROM purchase WHERE \"Member_ID\" != 3 OR \"Total_pounds\" <> 321.13 AND Branch_ID = \"1\""} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are exactly 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O8s6d_12.png", "TableImg_Isf7x_5.png"], "original_data_index": 8029, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs, greater than 11, are present in the driver table but not in the school_bus table if we only consider driver IDs greater than 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7qrok_12.png", "TableImg_U1pfs_5.png"], "original_data_index": 8030, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are greater than 3, excluding those driver IDs that are also greater than 4 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Alfzf_12.png", "TableImg_6f6pa_5.png"], "original_data_index": 8028, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are less than or equal to 12, excluding those driver IDs that are greater than 10 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cuupn_12.png", "TableImg_Rv21v_5.png"], "original_data_index": 8031, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me the smallest country name, the total of the country IDs, and the continent for countries where the country name is Germany or any country ID is greater than 5, combined with the same information for countries where the country ID is less than 13 or the continent is not equal to 2?", "answer": {"columns": ["MIN(CountryName)", "SUM(CountryId)", "Continent"], "index": [0, 1], "data": [["australia", "107", "5"], ["australia", "120", "5"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_5m0w1_15.png", "TableImg_Coc4t_15.png"], "original_data_index": 8032, "original_sql": "SELECT MIN(CountryName), SUM(CountryId), Continent FROM countries WHERE CountryName = \"germany\" OR \"CountryId\" > 5 UNION SELECT MIN(CountryName), SUM(CountryId), Continent FROM countries WHERE \"CountryId\" < 13 OR \"Continent\" <> 2"} {"question": "Which driver has an ID of 9 and also drives a school bus, but not one with an ID of 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K9rrj_12.png", "TableImg_Qwgt4_5.png"], "original_data_index": 8033, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me the store and product IDs for products with an ID of 4 or higher, or stores with an ID of 1 or higher, excluding those products with an ID of 4 or lower?", "answer": {"columns": ["Store_ID", "Product_ID"], "index": [0, 1, 2], "data": [["1", "6"], ["2", "6"], ["5", "6"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_0c3ou_15.png", "TableImg_48lj7_15.png"], "original_data_index": 8036, "original_sql": "SELECT Store_ID, Product_ID FROM store_product WHERE \"Product_ID\" >= 4 OR \"Store_ID\" >= 1 EXCEPT SELECT Store_ID, Product_ID FROM store_product WHERE \"Product_ID\" <= 4"} {"question": "Can you give me a list of all Driver IDs, excluding 10, from the driver table, combined with the Driver ID 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vytf0_12.png", "TableImg_Zv0up_5.png"], "original_data_index": 8034, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of item IDs, combining those that aren't item ID 4 and don't have the title \"shampoo\" with those that are either item ID less than 4 or have a user ID greater than 2 and a rank that isn't 5?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["0"], ["1"], ["2"], ["3"], ["5"], ["6"], ["7"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Rm3w7_8.png", "TableImg_Nprbs_7.png"], "original_data_index": 8035, "original_sql": "SELECT i_id FROM item WHERE \"i_id\" != 4 AND title <> \"shampoo\" UNION SELECT i_id FROM review WHERE \"i_id\" < 4 OR \"u_id\" > 2 AND \"rank\" != 5"} {"question": "Which driver IDs are both not equal to 3 and also greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8vs75_12.png", "TableImg_3l53j_5.png"], "original_data_index": 8037, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 8, and those from the school bus table with driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ap0a2_12.png", "TableImg_49k7h_5.png"], "original_data_index": 8038, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list all aircraft IDs that are greater than 4, and also list all aircraft IDs from the airport aircraft that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kcqza_5.png", "TableImg_C66ki_4.png"], "original_data_index": 8040, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you list the aircraft IDs that are less than 4 from the aircraft table, and combine that with a list of aircraft IDs that are greater than or equal to 1 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Toj1s_5.png", "TableImg_Yywrl_4.png"], "original_data_index": 8039, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What aircraft IDs are equal to 1 in the aircraft table, excluding those aircraft IDs that are equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ih4k6_5.png", "TableImg_E7cbf_4.png"], "original_data_index": 8042, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs that are equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rafze_12.png", "TableImg_Khpke_5.png"], "original_data_index": 8043, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are 10 or greater from the driver table, excluding any driver IDs that are 7 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Neyuq_12.png", "TableImg_Isrtz_5.png"], "original_data_index": 8041, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 5 with those from the school bus table that are 10 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nefpq_12.png", "TableImg_Un23u_5.png"], "original_data_index": 8044, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3 from the driver table and excluding driver ID 7 from the school bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qkl4f_12.png", "TableImg_05bkq_5.png"], "original_data_index": 8048, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs, excluding driver ID 9, are not also driver IDs less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Viaoi_12.png", "TableImg_Tv6c9_5.png"], "original_data_index": 8047, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you list the driver IDs from the driver table that are less than or equal to 2, and also include driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tttz1_12.png", "TableImg_Qz2pl_5.png"], "original_data_index": 8046, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of document IDs, including those not mailed to address ID 5, and also those mailed to any address ID greater than 0 or with a document ID not equal to 12?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["20"], ["23"], ["24"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_A5aqk_14.png", "TableImg_P3xi4_14.png"], "original_data_index": 8045, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <> 5 UNION SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" > 0 OR \"document_id\" != 12"} {"question": "What is the largest company name, excluding Citigroup or those in the Oil and Gas industry with sales not equal to 102.6 billion, combined with the largest name from people who are not from the United States?", "answer": {"columns": ["MAX(Name)"], "index": [0, 1], "data": [["Tom Sheehey"], ["Wells Fargo"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_8bxpy_19.png", "TableImg_L3n2r_7.png"], "original_data_index": 8052, "original_sql": "SELECT MAX(Name) FROM company WHERE Name <> \"Citigroup\" OR Industry = \"Oil and gas\" AND \"Sales_in_Billion\" <> 102.6 UNION SELECT MAX(Name) FROM people WHERE Nationality <> \"United States\""} {"question": "Can you give me a list of all aircraft IDs, excluding aircraft ID 3, from both the aircraft and airport_aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A87wc_5.png", "TableImg_Jg6i8_4.png"], "original_data_index": 8050, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 1, that are present in the aircraft table but not in the airport_aircraft table, where aircraft ID 5 is excluded from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4ppw9_5.png", "TableImg_6fp17_4.png"], "original_data_index": 8049, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What is the total freight in metric tons for each airport?", "answer": {"columns": ["SUM(T1.Freight_Metric_Tonnes)", "Airport_ID"], "index": [0], "data": [["1516951", "1"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_J7xgi_10.png", "TableImg_X3anr_4.png"], "original_data_index": 8051, "original_sql": "SELECT SUM(T1.Freight_Metric_Tonnes), T2.Airport_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 2, and those from the airport_aircraft table that are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eq44i_5.png", "TableImg_Hms6r_4.png"], "original_data_index": 8056, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 11 and also not equal to 10, considering only the unique driver IDs from both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wqvvc_12.png", "TableImg_1k3ai_5.png"], "original_data_index": 8057, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 1 or greater, combined with those from the school bus table where the ID is not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bx86b_12.png", "TableImg_27uzc_5.png"], "original_data_index": 8058, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10 from the driver table and excluding driver ID 3 from the school_bus table, combining the results and removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ynfl5_12.png", "TableImg_E6ou3_5.png"], "original_data_index": 8059, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, including driver ID 2 from the driver table and any driver IDs greater than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["2"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_08kuk_12.png", "TableImg_Z9nir_5.png"], "original_data_index": 8060, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you find the smallest flight ID and the pilot for flights, grouped by vehicle flight number, where either the flight velocity is greater than 240 or the pilot is Thompson, and the flight either departs from airport BLL, has an altitude not equal to 3650, or an airport ID not equal to 1; or the airport name is Bergen Airport; or the company ID is greater than or equal to 11 and the country is Belgium and the velocity is not equal to 240 and the date is October 25, 1963; or the city is Akureyri; or the pilot is not Thompson?", "answer": {"columns": ["MIN(T1.id)", "Pilot"], "index": [0, 1], "data": [["1", "Thompson"], ["6", "Thompson"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Ik5rc_9.png", "TableImg_Lfxpr_13.png"], "original_data_index": 8061, "original_sql": "SELECT MIN(T1.id), T2.Pilot FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA = \"BLL\" AND \"Altitude\" <> 3650.0 AND \"airport_id\" <> 1 OR name = \"Bergen Airport\" OR \"company_id\" >= 11 AND Country = \"Belgium\" AND \"Velocity\" <> 240.0 AND Date = \"October 25, 1963\" OR City = \"Akureyri\" OR Pilot <> \"Thompson\" GROUP BY Vehicle_Flight_number HAVING Velocity > 240.0 OR Pilot = \"Thompson\""} {"question": "Which driver IDs are both greater than 1 and also greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_32jck_12.png", "TableImg_8v38c_5.png"], "original_data_index": 8062, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are either exactly 12 from the driver table, or greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5jrta_12.png", "TableImg_Ln394_5.png"], "original_data_index": 8063, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs excluding driver ID 10, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E0tr1_12.png", "TableImg_Ol68s_5.png"], "original_data_index": 8064, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, combining those that are not equal to 2 from the driver table with those greater than 4 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rc05b_12.png", "TableImg_0l8ox_5.png"], "original_data_index": 8054, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the aircraft IDs that are greater than or equal to 1, excluding those aircraft IDs that are less than 3 and are associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C4979_5.png", "TableImg_6yb4a_4.png"], "original_data_index": 8055, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs that are less than 2 from the driver table, combined with a list of driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6l86s_12.png", "TableImg_Vm8fx_5.png"], "original_data_index": 8053, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "How many districts, excluding Khanewal District, are headquartered in each city, but only showing cities other than Bahawalnagar City that have at least one store and a population greater than 314617?", "answer": {"columns": ["COUNT(T1.District_ID)", "District_ID"], "index": [0], "data": [["1", "3"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_S17mz_15.png", "TableImg_Hjq8e_5.png"], "original_data_index": 8068, "original_sql": "SELECT COUNT(T1.District_ID), T2.District_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE District_name <> \"Khanewal District\" GROUP BY Headquartered_City HAVING Headquartered_City <> \"Bahawalnagar City\" AND Store_ID >= 1 AND City_Population > 314617.0"} {"question": "Can you list the aircraft IDs that are less than 1, and also list the aircraft IDs from the airport aircraft table that are equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Egztx_5.png", "TableImg_0hlzw_4.png"], "original_data_index": 8066, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 3, that appear in the aircraft table but not in the airport_aircraft table when we only consider aircraft ID 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hymyg_5.png", "TableImg_Ytslw_4.png"], "original_data_index": 8067, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of user IDs, including those that are not 2 or have the name Helen, and also including user IDs that are 2 but do not have the name Nancy?", "answer": {"columns": ["u_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["2"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_Ns99f_7.png", "TableImg_Mrpev_7.png"], "original_data_index": 8065, "original_sql": "SELECT u_id FROM useracct WHERE \"u_id\" != 2 OR name = \"Helen\" UNION ALL SELECT u_id FROM useracct WHERE \"u_id\" = 2 AND name != \"Nancy\""} {"question": "Which driver IDs appear in both the list of drivers who are not driver 4 and the list of school bus drivers who are driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sysoe_12.png", "TableImg_0c7ou_5.png"], "original_data_index": 8071, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are equal to 6 in the driver table, but not less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_688ub_12.png", "TableImg_E4o9u_5.png"], "original_data_index": 8072, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you list all driver IDs that are less than or equal to 11 from the driver table, and combine that with a list of all driver IDs that are greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zssuj_12.png", "TableImg_Uuiu4_5.png"], "original_data_index": 8069, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are also among the aircraft IDs that are less than or equal to 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A1ebf_5.png", "TableImg_91lgq_4.png"], "original_data_index": 8070, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me the IDs of drivers, where each ID is greater than 3, excluding the IDs of school bus drivers where each ID is less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uiq9z_12.png", "TableImg_T8ajn_5.png"], "original_data_index": 8074, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Could you give me a list of driver IDs, considering only drivers who are either under 40, have an ID of 10, are not affiliated with the \"Rep\" party, or are named Edwin Vargas, but excluding any driver IDs that are also associated with school buses where the driver isn't full-time, the driver ID isn't 3, or the school ID is 1 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B4hst_12.png", "TableImg_Mlliu_5.png"], "original_data_index": 8075, "original_sql": "SELECT Driver_ID FROM driver WHERE \"Age\" < 40 OR \"Driver_ID\" = 10 OR Party <> \"Rep\" OR Name = \"Edwin Vargas\" EXCEPT SELECT Driver_ID FROM school_bus WHERE If_full_time != \"T\" OR \"Driver_ID\" <> 3 OR \"School_ID\" >= 1"} {"question": "Could you list the districts of shops where either the manager isn't Kai Nyyss\u00f6nen and the number of products is 10000, or the shop name is FC Haka, or the shop ID is greater than 3, or the district isn't Arto Tolsa Areena, combined with the districts of shops where the shop ID is less than or equal to 6, the name isn't FF Jaro, and the manager is Mika Lehkosuo?", "answer": {"columns": ["District"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Arto Tolsa Areena"], ["Finnair Stadium"], ["Jakobstads Centralplan"], ["Lahden Stadion"], ["Magnum Areena"], ["Tapiolan Urheilupuisto"], ["Tehtaan kentt\u00e4"], ["Veritas Stadion"], ["Wikl\u00f6f Holding Arena"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_H0424_9.png", "TableImg_7md16_9.png"], "original_data_index": 8073, "original_sql": "SELECT District FROM shop WHERE Manager_name != \"Kai Nyyss\u00f6nen\" AND \"Number_products\" = 10000 OR Name = \"FC Haka\" OR \"Shop_ID\" > 3 OR District <> \"Arto Tolsa Areena\" UNION SELECT District FROM shop WHERE \"Shop_ID\" <= 6 AND Name <> \"FF Jaro\" AND Manager_name = \"Mika Lehkosuo\""} {"question": "Which driver IDs are both greater than or equal to 7 in the driver table and greater than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Faqe1_12.png", "TableImg_63nf5_5.png"], "original_data_index": 8077, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you list all the document IDs from the circulation history where the draft number is less than 17 or the employee ID is 8, and also include all the document IDs from the documents table where the other details are \"n\" or the shipping agent code is \"UP\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["20"], ["1"], ["2"], ["1"], ["3"], ["10"], ["12"], ["13"], ["15"], ["20"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_1ymyz_4.png", "TableImg_Iwldt_15.png"], "original_data_index": 8079, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"draft_number\" < 17 OR \"employee_id\" = 8 UNION ALL SELECT document_id FROM Documents WHERE other_details = \"n\" OR shipping_agent_code = \"UP\""} {"question": "What is the smallest document ID from the Documents table where the receipt date is not 2005-09-30 00:10:02, or the other details are not \"q\", or the shipping agent code is \"FE\", or the document ID is less than or equal to 25, combined with the smallest document ID from the Documents_Mailed table where the mailing date is not 1982-01-14 05:50:54, the mailed to address ID is not 2, and the document ID is less than or equal to 4?", "answer": {"columns": ["MIN(document_id)"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_U1r4v_15.png", "TableImg_R8ttt_14.png"], "original_data_index": 8078, "original_sql": "SELECT MIN(document_id) FROM Documents WHERE receipt_date != \"2005-09-30 00:10:02\" OR other_details != \"q\" OR shipping_agent_code = \"FE\" OR \"document_id\" <= 25 UNION ALL SELECT MIN(document_id) FROM Documents_Mailed WHERE mailing_date != \"1982-01-14 05:50:54\" AND \"mailed_to_address_id\" != 2 AND \"document_id\" <= 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that appear in the driver table but not in the school_bus table, where we also exclude driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0lco5_12.png", "TableImg_Rgnhs_5.png"], "original_data_index": 8076, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you tell me the nationality, highest graduation college, and number of people for those who either graduated from Northeastern, are named Tim Naegeli, or are from the United Kingdom and not person ID 5 or age 37, combined with the same information for those who are 37 years old, didn't graduate from Northeastern, or have a person ID less than 1 and are not from the United States and are not named David Butler?", "answer": {"columns": ["Nationality", "MAX(Graduation_College)", "COUNT(Name)"], "index": [0, 1], "data": [["United States", "Wisconsin\u2013Stevens Point", "5"], ["United States", "Wisconsin\u2013Stevens Point", "7"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Nrh42_7.png", "TableImg_32vs1_7.png"], "original_data_index": 8080, "original_sql": "SELECT Nationality, MAX(Graduation_College), COUNT(Name) FROM people WHERE Graduation_College = \"Northeastern\" OR Name = \"Tim Naegeli\" OR Nationality = \"United Kindom\" AND \"People_ID\" != 5 OR \"Age\" <> 37 UNION SELECT Nationality, MAX(Graduation_College), COUNT(Name) FROM people WHERE \"Age\" = 37 OR Graduation_College != \"Northeastern\" OR \"People_ID\" < 1 AND Nationality != \"United States\" AND Name != \"David Butler\""} {"question": "Can you give me a list of driver IDs that are greater than or equal to 9, excluding those driver IDs that are also greater than 10 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0tkca_12.png", "TableImg_Up1ff_5.png"], "original_data_index": 8083, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the aircraft IDs that are not equal to 2, excluding those aircraft IDs that are also not equal to 1 and are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ml4xp_5.png", "TableImg_C6cy4_4.png"], "original_data_index": 8084, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you list all the driver IDs, combining those from the driver table that are greater than 10 with those from the school_bus table that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8vx0r_12.png", "TableImg_0n976_5.png"], "original_data_index": 8081, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which store IDs are less than or equal to 5 in the district store table, excluding those store IDs that are greater than or equal to 5 and associated with product ID 2 in the store product table?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_X3kny_5.png", "TableImg_Z1enc_15.png"], "original_data_index": 8085, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" <= 5 EXCEPT SELECT Store_ID FROM store_product WHERE \"Store_ID\" >= 5 AND \"Product_ID\" = 2"} {"question": "Can you give me a list of driver IDs that are 12 or higher, excluding any driver IDs less than 10 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zn3jy_12.png", "TableImg_8mj6u_5.png"], "original_data_index": 8086, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 2, combined with a list of driver IDs from the school_bus table where each ID is not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3avil_12.png", "TableImg_0xklk_5.png"], "original_data_index": 8089, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 2, excluding those driver IDs that are less than 9 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U6pin_12.png", "TableImg_Mhc11_5.png"], "original_data_index": 8088, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Could you give me a list of Branch IDs, including those from branches that aren't in London and aren't named Saint Amant, but opened in 2009, as well as those from the membership register where the Member ID is 5 or less, the register year isn't 2017, and the Branch ID is 5?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2], "data": [["4"], ["8"], ["5"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Tzmlp_8.png", "TableImg_Lhlke_8.png"], "original_data_index": 8087, "original_sql": "SELECT Branch_ID FROM branch WHERE City != \"London\" AND Name != \"Saint Amant\" AND Open_year = \"2009\" UNION SELECT Branch_ID FROM membership_register_branch WHERE \"Member_ID\" <= 5 AND Register_Year <> \"2017\" AND Branch_ID = \"5\""} {"question": "Can you give me the airport ID and altitude for flights, grouped by altitude, but only showing results where the pilot isn't Thompson, the company ID is 5 or greater, the city isn't Brussels, or the date isn't August 4, 1966, or the ICAO isn't ENBR, or the country is Spain and the altitude is 3650, or the airport ID is 2 or less and the velocity is less than 240, or the IATA isn't AMS?", "answer": {"columns": ["id", "Altitude"], "index": [0, 1], "data": [["1", "0"], ["2", "3650"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Ab1b4_9.png", "TableImg_71xek_13.png"], "original_data_index": 8090, "original_sql": "SELECT T1.id, T2.Altitude FROM airport as T1 JOIN flight as T2 ON T1.id == T2.id GROUP BY Altitude HAVING Pilot <> \"Thompson\" AND company_id >= 5 AND City <> \"Brussels\" OR Date <> \"August 4, 1966\" AND ICAO <> \"ENBR\" OR Country = \"Spain\" AND Altitude = 3650.0 OR airport_id <= 2 AND Velocity < 240.0 OR IATA <> \"AMS\""} {"question": "Can you give me a list of driver IDs that are both greater than 7 and also not equal to 3, considering only the unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qw89n_12.png", "TableImg_7bet1_5.png"], "original_data_index": 8091, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of employee IDs for employees who either don't have the name Lee Mears, or have an employee ID of 6, or are not 28 years old, but excluding those employees whose IDs are not 1 and whose bonus is not 3000?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_0eehn_10.png", "TableImg_4kbyq_6.png"], "original_data_index": 8092, "original_sql": "SELECT Employee_ID FROM employee WHERE Name != \"Lee Mears\" OR \"Employee_ID\" = 6 OR \"Age\" != 28 EXCEPT SELECT Employee_ID FROM evaluation WHERE Employee_ID != \"1\" AND \"Bonus\" <> 3000.0"} {"question": "Which regions are listed in the club table both for clubs with a Club_ID greater than 5 or a region that isn't the USA, and for clubs with the name Halmstads BK, a Start_year of 2005 or earlier, a Club_ID that isn't 1, or a region that isn't Korea?", "answer": {"columns": ["Region"], "index": [0, 1, 2, 3], "data": [["France"], ["Korea"], ["Russia"], ["UK"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_5az5f_6.png", "TableImg_Ke4xk_6.png"], "original_data_index": 8093, "original_sql": "SELECT Region FROM club WHERE \"Club_ID\" > 5 OR Region <> \"USA\" INTERSECT SELECT Region FROM club WHERE Club_name = \"Halmstads BK\" OR \"Start_year\" <= 2005 OR \"Club_ID\" != 1 OR Region <> \"Korea\""} {"question": "Can you give me a list of driver IDs that are less than 7 and also not equal to 3, considering only the unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vqpdf_12.png", "TableImg_0nu7t_5.png"], "original_data_index": 8096, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are both less than or equal to 3 and present in the driver table, and also less than or equal to 7 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oequv_12.png", "TableImg_Fzvu8_5.png"], "original_data_index": 8095, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are 9 or less, but exclude any driver IDs that are less than 3, considering only drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fjbkw_12.png", "TableImg_O6t90_5.png"], "original_data_index": 8094, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list the driver IDs that are greater than 8 from the driver table, combined with the driver IDs that are less than 10 from the school_bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dd5dr_12.png", "TableImg_Dqdno_5.png"], "original_data_index": 8097, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 5, excluding any driver IDs that appear in the school_bus table unless that ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rblul_12.png", "TableImg_52tmn_5.png"], "original_data_index": 8100, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me the IDs of drivers with an ID of 4 or less, excluding those driver IDs that are also less than 9 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gncls_12.png", "TableImg_2h7ev_5.png"], "original_data_index": 8098, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 1, combined with a list of driver IDs from the school_bus table where the ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xsfkd_12.png", "TableImg_5tuw6_5.png"], "original_data_index": 8099, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 9 or higher, combined with a list of driver IDs from the school_bus table where the ID is 10 or higher, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Asxh8_12.png", "TableImg_Avjoo_5.png"], "original_data_index": 8101, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which aircraft IDs are not equal to 1 and appear in the aircraft table, and are also not equal to 2 and appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_104jm_5.png", "TableImg_Icaj3_4.png"], "original_data_index": 8103, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you list the aircraft IDs that are less than 5 from the aircraft table, combined with the aircraft IDs that are not equal to 5 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lb4z1_5.png", "TableImg_60e4x_4.png"], "original_data_index": 8102, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me a list of driver IDs that are less than or equal to 4 from the driver table, but only include those IDs that are also not equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H3i1z_12.png", "TableImg_73phr_5.png"], "original_data_index": 8104, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are also aircraft IDs less than or equal to 2 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fl96e_5.png", "TableImg_3tdeo_4.png"], "original_data_index": 8108, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs greater than 9 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T6ad6_12.png", "TableImg_9bd8f_5.png"], "original_data_index": 8105, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me the Club IDs and Ranks from the coach table, excluding female coaches or those with a Coach ID of 4 or higher and a Rank of 3 or lower, and then remove any Club IDs and Ranks that also appear in the match_result table where the Club ID is not 2 and Bronze is 7, or the Rank is 3 or lower, or Gold is not 5 and Points is 168 or lower and Big Silver is 9 or lower, or Small Silver is not 16?", "answer": {"columns": ["Club_ID", "Rank"], "index": [0, 1], "data": [["1", "5"], ["3", "4"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_09e4q_5.png", "TableImg_Wvw3r_6.png"], "original_data_index": 8106, "original_sql": "SELECT Club_ID, Rank FROM coach WHERE Gender <> \"F\" OR \"Coach_ID\" >= 4 AND \"Rank\" <= 3 EXCEPT SELECT Club_ID, Rank FROM match_result WHERE \"Club_ID\" <> 2 AND \"Bronze\" = 7 OR \"Rank\" <= 3 OR \"Gold\" != 5 AND \"Points\" <= 168 AND \"Big_Silver\" <= 9 OR \"Small_Silver\" != 16"} {"question": "Can you give me the endowment ID, amount, and school ID for all endowments that don't have an endowment ID of 9, combined with the endowment ID, amount, and school ID for endowments where the donator's name isn't Duarte, the school ID is less than 3, and the endowment ID is 5 or greater?", "answer": {"columns": ["endowment_id", "amount", "School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1", "9.51", "1"], ["2", "9.83", "2"], ["3", "9.55", "3"], ["4", "9.73", "3"], ["5", "9.05", "3"], ["6", "8.99", "4"], ["7", "8.85", "4"], ["8", "8.53", "5"], ["10", "8.82", "7"], ["11", "8.33", "8"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_E2epn_11.png", "TableImg_95squ_11.png"], "original_data_index": 8107, "original_sql": "SELECT endowment_id, amount, School_id FROM endowment WHERE \"endowment_id\" <> 9 UNION SELECT endowment_id, amount, School_id FROM endowment WHERE donator_name <> \"Duarte\" AND \"School_id\" < 3 AND \"endowment_id\" >= 5"} {"question": "Which driver has an ID of 8, excluding any drivers who also have an ID of 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Btnmd_12.png", "TableImg_4mjh2_5.png"], "original_data_index": 8112, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the aircraft IDs that are less than or equal to 2, combining the lists from both the aircraft and airport aircraft tables, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vuvyb_5.png", "TableImg_37a4n_4.png"], "original_data_index": 8113, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, from the driver table, but remove any driver IDs from that list that are also in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J215z_12.png", "TableImg_Ag9nr_5.png"], "original_data_index": 8114, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are both greater than or equal to 5 in the driver table and equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gklsf_12.png", "TableImg_2qvb6_5.png"], "original_data_index": 8115, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list all the driver IDs from the driver table that are greater than or equal to 3, and combine that with a list of all driver IDs from the school_bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bkcvv_12.png", "TableImg_Yoibq_5.png"], "original_data_index": 8116, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of employee names where the employee is 30 years old or younger, combined with a list of shop names that are either not located in Valkeakoski but are in the Finnair Stadium district, or have a manager other than Kai Nyyss\u00f6nen and are not named KuPS and have 6000 or fewer products, or have a shop ID greater than 3?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Andrew Sheridan"], ["FC Haka"], ["FC Honka"], ["FC Inter"], ["FC KooTeePee"], ["FC Lahti"], ["FF Jaro"], ["George Chuter"], ["HJK"], ["IFK Mariehamn"], ["Jason Hobson"], ["KuPS"], ["Lee Mears"], ["Matt Stevens"], ["Tim Payne"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_2bhln_10.png", "TableImg_K3v8p_9.png"], "original_data_index": 8117, "original_sql": "SELECT Name FROM employee WHERE \"Age\" <= 30 UNION SELECT Name FROM shop WHERE Location != \"Valkeakoski\" AND District = \"Finnair Stadium\" OR Manager_name != \"Kai Nyyss\u00f6nen\" AND Name <> \"KuPS\" AND \"Number_products\" <= 6000 OR \"Shop_ID\" > 3"} {"question": "Which driver has an ID of 9 and is also a driver for a school bus with a driver ID of 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ra3e8_12.png", "TableImg_X85ap_5.png"], "original_data_index": 8118, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 10, and those from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ecsv_12.png", "TableImg_0xl7f_5.png"], "original_data_index": 8119, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Could you give me a list of document IDs that either have draft details marked as \"w\" with a draft number of 10 and a document ID less than 1, or were mailed on January 1st, 2007 at 10:32 PM, or were mailed to an address ID of 7 or less?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["20"], ["24"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_7vuff_15.png", "TableImg_C47eo_14.png"], "original_data_index": 8120, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details = \"w\" AND \"draft_number\" = 10 AND \"document_id\" < 1 UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date = \"2007-01-01 22:32:11\" OR \"mailed_to_address_id\" <= 7"} {"question": "Which driver IDs are greater than 4 and also not equal to 3, considering only unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hbbsx_12.png", "TableImg_80kow_5.png"], "original_data_index": 8111, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the total budget percentages budgeted that appear in both of these sets: one where the total budget percentage invested isn't 2.7, the year is before 2005, or the budgeted amount is at least 74849 and the total budget percentage budgeted isn't 2.0; and another where the total budget percentage invested is greater than 2.7, or the total budget percentage budgeted is greater than 2.0 and the invested amount is not 8335, or the year is 2004 or later?", "answer": {"columns": ["total_budget_percent_budgeted"], "index": [0, 1], "data": [["2.0"], ["2.4"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Oaqt0_8.png", "TableImg_Cwkzw_8.png"], "original_data_index": 8109, "original_sql": "SELECT total_budget_percent_budgeted FROM budget WHERE \"total_budget_percent_invested\" <> 2.7 OR \"Year\" < 2005 OR \"Budgeted\" >= 74849 AND \"total_budget_percent_budgeted\" != 2.0 INTERSECT SELECT total_budget_percent_budgeted FROM budget WHERE \"total_budget_percent_invested\" > 2.7 OR \"total_budget_percent_budgeted\" > 2.0 AND \"Invested\" != 8335 OR \"Year\" >= 2004"} {"question": "Can you give me the IDs of airports that either don't have the IATA code \"BLL\", or don't have the ICAO code \"EBBR\", or are not in Amsterdam and Norway, and also have an ID of 9, but exclude the IDs of flights that either have an airport ID greater than or equal to 2 and an ID of 5, or have a pilot named Peterson, or have a velocity greater than 240 and a vehicle flight number that is not \"M2-F1 #33\" and a company ID that is not 4, or have a date of May 19, 1964?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["9"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_S7a4m_9.png", "TableImg_Wzvc9_13.png"], "original_data_index": 8110, "original_sql": "SELECT id FROM airport WHERE IATA <> \"BLL\" OR ICAO != \"EBBR\" OR City <> \"Amsterdam\" AND Country <> \"Norway\" AND \"id\" = 9 EXCEPT SELECT id FROM flight WHERE \"airport_id\" >= 2 AND \"id\" = 5 OR Pilot = \"Peterson\" OR \"Velocity\" > 240.0 AND Vehicle_Flight_number <> \"M2-F1 #33\" AND \"company_id\" <> 4 OR Date = \"May 19, 1964\""} {"question": "Can you give me a list of aircraft IDs that are both less than or equal to 5 and also not equal to 1, considering only aircraft IDs that appear in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z8g78_5.png", "TableImg_Vhwtz_4.png"], "original_data_index": 8122, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs, excluding driver ID 6, are also bus driver IDs, excluding bus driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yn3ct_12.png", "TableImg_E30nb_5.png"], "original_data_index": 8124, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs less than or equal to 9, excluding those driver IDs that appear in the school bus list where the driver ID is not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dfh8e_12.png", "TableImg_Gnsri_5.png"], "original_data_index": 8123, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 2, but not if that same ID is also in a list of driver IDs from the school bus table where those IDs are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N9ll5_12.png", "TableImg_F1e9i_5.png"], "original_data_index": 8121, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the driver IDs that are less than or equal to 12 from the driver table, combined with the driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uqvzj_12.png", "TableImg_Nck29_5.png"], "original_data_index": 8125, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are not equal to 4 and are also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ym891_12.png", "TableImg_Bxs9s_5.png"], "original_data_index": 8126, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the Aircraft ID, specifically if it's 5, from the aircraft table, but only if that same ID is not less than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lzi0n_5.png", "TableImg_Fwrlm_4.png"], "original_data_index": 8127, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you give me the driver IDs that are less than or equal to 1, excluding any driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S34et_12.png", "TableImg_3tlcc_5.png"], "original_data_index": 8128, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list all aircraft IDs that are equal to 3 from the aircraft table, and combine that with a list of all aircraft IDs that are not equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_14l35_5.png", "TableImg_Gvvt7_4.png"], "original_data_index": 8132, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What aircraft IDs are both greater than or equal to 1 in the aircraft table and greater than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9y64v_5.png", "TableImg_5zc7l_4.png"], "original_data_index": 8133, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you list the pilot, velocity, and altitude for all flights, excluding those flown by Thompson, belonging to companies other than company 11, and with an ID less than 13, but then remove any flights from that list that have a non-zero altitude and belong to company 2?", "answer": {"columns": ["Pilot", "Velocity", "Altitude"], "index": [0], "data": [["Peterson", "240", "3650"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_F8h33_13.png", "TableImg_U3yt5_13.png"], "original_data_index": 8134, "original_sql": "SELECT Pilot, Velocity, Altitude FROM flight WHERE Pilot != \"Thompson\" AND \"company_id\" <> 11 AND \"id\" < 13 EXCEPT SELECT Pilot, Velocity, Altitude FROM flight WHERE \"Altitude\" != 0.0 AND \"company_id\" = 2"} {"question": "Could you give me a list of People IDs, including those of people whose height is at least 207, and also those of poker players whose ID is greater than 1 and money rank is 154, or whose best finish is 1 or less?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["1"], ["5"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_6jth0_7.png", "TableImg_0twdt_5.png"], "original_data_index": 8135, "original_sql": "SELECT People_ID FROM people WHERE \"Height\" >= 207.0 UNION ALL SELECT People_ID FROM poker_player WHERE \"Poker_Player_ID\" > 1 AND \"Money_Rank\" = 154.0 OR \"Best_Finish\" <= 1.0"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 8, excluding any driver IDs that appear in the school_bus table where the driver ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9h7a6_12.png", "TableImg_Qo15i_5.png"], "original_data_index": 8136, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 10, excluding driver ID 4 if it appears in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ioaq_12.png", "TableImg_1ldov_5.png"], "original_data_index": 8129, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me the staff IDs that are both associated with lessons that weren't cancelled or didn't occur on March 7, 2018 at 11:53:32 AM, or had a lesson ID of 3 and didn't occur at 9 AM, and who also joined the staff on October 21, 2017 at 5:20:57 PM?", "answer": {"columns": ["staff_id"], "index": [0], "data": [["4"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_388sw_15.png", "TableImg_Y184b_15.png"], "original_data_index": 8130, "original_sql": "SELECT staff_id FROM Lessons WHERE lesson_status_code <> \"Cancelled\" OR lesson_date != \"2018-03-07 11:53:32\" OR \"lesson_id\" = 3 AND lesson_time != \"9\" INTERSECT SELECT staff_id FROM Staff WHERE date_joined_staff = \"2017-10-21 17:20:57\""} {"question": "Can you give me a list of driver IDs that are less than 8 from the driver table, combined with a list of driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ombuc_12.png", "TableImg_Rlpa9_5.png"], "original_data_index": 8138, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the rank and item ID from the reviews, including those where the author ID is not 2 and the item ID is 7 or less, along with the rank and item ID from reviews where the item ID is not 1 or the rating is greater than 7?", "answer": {"columns": ["rank", "i_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1", "1"], ["5", "3"], ["3", "4"], ["4", "5"], ["7", "7"], ["6", "7"], ["1", "1"], ["3", "4"], ["7", "7"], ["4", "5"], ["5", "3"], ["6", "7"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_31qyw_7.png", "TableImg_Pi60t_7.png"], "original_data_index": 8139, "original_sql": "SELECT rank, i_id FROM review WHERE \"a_id\" != 2 AND \"i_id\" <= 7 UNION ALL SELECT rank, i_id FROM review WHERE \"i_id\" != 1 OR \"rating\" > 7"} {"question": "Which driver IDs are both greater than or equal to 2 and present in the driver table, and also greater than 7 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5tpax_12.png", "TableImg_E6p2v_5.png"], "original_data_index": 8140, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are present in both the list of drivers excluding driver 9 and the list of school bus drivers with ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8146e_12.png", "TableImg_L634m_5.png"], "original_data_index": 8141, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 2, and combine that with a list of aircraft IDs from the airport_aircraft table that are less than or equal to 3, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ye0b_5.png", "TableImg_90br4_4.png"], "original_data_index": 8142, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which aircraft IDs are both less than or equal to 2 when grouped in the aircraft table and less than or equal to 5 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gfeki_5.png", "TableImg_3lqbn_4.png"], "original_data_index": 8143, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, including those less than 7 from the driver list and those greater than 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mnpxj_12.png", "TableImg_O1zsa_5.png"], "original_data_index": 8144, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list all driver IDs from the driver table that are less than or equal to 4, and combine that with a list of all driver IDs from the school_bus table that are less than or equal to 9, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qdfjk_12.png", "TableImg_Ftjdy_5.png"], "original_data_index": 8145, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me the driver ID that is equal to 4, excluding any driver IDs from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P9zka_12.png", "TableImg_Lmlag_5.png"], "original_data_index": 8146, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 1, and those from the school bus table with driver IDs greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ozcjp_12.png", "TableImg_64qwv_5.png"], "original_data_index": 8147, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Could you give me the property type codes that are both from properties matching a complex set of criteria regarding features, prices, addresses, dates, and IDs, and also from property types that are not described as apartments, flats, or condos?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3], "data": [["Field"], ["House"], ["Other"], ["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Reltg_15.png", "TableImg_Wq3jq_5.png"], "original_data_index": 8137, "original_sql": "SELECT property_type_code FROM Properties WHERE apt_feature_2 <> \"aut\" AND \"agreed_selling_price\" = 3344706.5755 AND oth_feature_1 <> \"None\" OR other_property_details = \"None\" AND apt_feature_1 <> \"aut\" OR \"vendor_requested_price\" <> 1337.0 OR hse_feature_3 <> \"None\" AND property_address != \"084 Lakin Vista Apt. 394 Fishertown, MA 16876\" AND shp_feature_1 != \"None\" AND apt_feature_3 = \"None\" OR date_sold <> \"1971-04-14 03:23:49\" OR shp_feature_2 <> \"None\" AND hse_feature_2 = \"None\" AND hse_feature_1 = \"None\" OR shp_feature_3 != \"None\" AND \"property_id\" != 3 INTERSECT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description <> \"Apartment, Flat, Condo, etc.\""} {"question": "Can you list the aircraft IDs, excluding ID 1, from the aircraft table, and combine that with a list of aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y67gf_5.png", "TableImg_Wyefo_4.png"], "original_data_index": 8151, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you list all aircraft IDs, excluding aircraft ID 1 from the aircraft table and excluding aircraft ID 2 from the airport_aircraft table, combining the results into a single list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N8fqy_5.png", "TableImg_Mq7bk_4.png"], "original_data_index": 8152, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7y4eo_12.png", "TableImg_5f3ap_5.png"], "original_data_index": 8149, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Could you list the driver IDs that are both greater than or equal to 1 and less than or equal to 10, considering only unique driver IDs from the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ulra0_12.png", "TableImg_Ecx1l_5.png"], "original_data_index": 8148, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 3, but also excluding any driver IDs that appear in the school_bus table with an ID less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H4glg_12.png", "TableImg_M002w_5.png"], "original_data_index": 8150, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me the last name, advisor, highest student ID, major, city code, first name, average age, and sex of students, excluding those who are male and whose last name is Nelson, or whose advisor is 8722 or higher, or whose major is 600 and age is 18 or older, but then remove the students who are not from PIT and not female, or whose first name is not Tracy, or whose student ID is 1003 or lower and last name is Han, or whose major is less than 600 and advisor is not 2311?", "answer": {"columns": ["LName", "Advisor", "MAX(StuID)", "Major", "city_code", "Fname", "AVG(Age)", "Sex"], "index": [0], "data": [["Simms", "8772", "1033", "550", "NAR", "William", "19.8181818182", "M"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Ga458_34.png", "TableImg_Osxuv_34.png"], "original_data_index": 8153, "original_sql": "SELECT LName, Advisor, MAX(StuID), Major, city_code, Fname, AVG(Age), Sex FROM Student WHERE Sex <> \"M\" AND LName = \"Nelson\" AND \"StuID\" < 1001 OR \"Advisor\" >= 8722 OR \"Major\" = 600 AND \"Age\" >= 18 EXCEPT SELECT LName, Advisor, MAX(StuID), Major, city_code, Fname, AVG(Age), Sex FROM Student WHERE city_code <> \"PIT\" AND Sex != \"F\" OR Fname != \"Tracy\" OR \"StuID\" <= 1003 AND LName = \"Han\" OR \"Major\" < 600 AND \"Advisor\" <> 2311"} {"question": "Can you give me the Driver ID that appears exactly once with the value 2 in the driver table, but only if it doesn't appear in the school_bus table with a value greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wc4xe_12.png", "TableImg_7b4vh_5.png"], "original_data_index": 8154, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, including driver ID 2 from the driver table and driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5l0p4_12.png", "TableImg_Yue4v_5.png"], "original_data_index": 8155, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the aircraft IDs that are less than or equal to 4, excluding the aircraft ID 3 if it exists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wml0f_5.png", "TableImg_90pkg_4.png"], "original_data_index": 8156, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Which driver IDs are greater than 1 and also not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2lns0_12.png", "TableImg_8cnl3_5.png"], "original_data_index": 8158, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of employee IDs, combining those from the employee table who are at least 29 years old and not from Sale, with those from the hiring table where the employee ID is not 3, and either the start date isn't 2010 or they are full-time?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_0xvbn_10.png", "TableImg_Wmcsh_7.png"], "original_data_index": 8157, "original_sql": "SELECT Employee_ID FROM employee WHERE \"Age\" >= 29 AND City <> \"Sale\" UNION SELECT Employee_ID FROM hiring WHERE \"Employee_ID\" != 3 AND Start_from != \"2010\" OR Is_full_time = \"T\""} {"question": "Can you give me a list of driver IDs that are less than 6, excluding any driver IDs that are also greater than 4 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6esl5_12.png", "TableImg_Y3v0w_5.png"], "original_data_index": 8159, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are both greater than or equal to 1 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0kw0n_12.png", "TableImg_9gbjn_5.png"], "original_data_index": 8161, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver has an ID of 8, but is not a driver with an ID other than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tjlcg_12.png", "TableImg_Lrjvm_5.png"], "original_data_index": 8162, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are 12 or greater, excluding the driver ID 3 if it's in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K11wh_12.png", "TableImg_Heevu_5.png"], "original_data_index": 8160, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of aircraft IDs, including those that are not equal to 1 from the aircraft table, and those that are equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vcesv_5.png", "TableImg_Qvzxc_4.png"], "original_data_index": 8163, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 5, excluding any driver IDs that are also in the school_bus table and are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ku97_12.png", "TableImg_8ldhb_5.png"], "original_data_index": 8166, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of aircraft IDs that are both greater than or equal to 1 and also not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y53ex_5.png", "TableImg_Cpfa8_4.png"], "original_data_index": 8164, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school_bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Br8tq_12.png", "TableImg_Oqtr6_5.png"], "original_data_index": 8167, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Could you give me the IDs of documents that either have a template ID of 20 or less, or have a document description of \"h\" and are not document ID 3, but excluding any document IDs that also appear in paragraphs with a paragraph ID that is not 1104059, a document ID greater than 80, and the paragraph text \"UK\"?", "answer": {"columns": ["Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["0"], ["3"], ["76"], ["80"], ["82"], ["2394"], ["3830"], ["801801"], ["3540024"], ["16514113"], ["385906526"]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_E5iwz_15.png", "TableImg_02nhu_15.png"], "original_data_index": 8165, "original_sql": "SELECT Document_ID FROM Documents WHERE \"Template_ID\" <= 20 OR Document_Description = \"h\" AND \"Document_ID\" <> 3 EXCEPT SELECT Document_ID FROM Paragraphs WHERE \"Paragraph_ID\" != 1104059 AND \"Document_ID\" > 80 AND Paragraph_Text = \"UK\""} {"question": "Which driver IDs appear exactly once in the driver table with the ID being 2, but do not appear in the school bus table with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gowv9_12.png", "TableImg_7c868_5.png"], "original_data_index": 8170, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list all aircraft IDs, including those from the aircraft table that are 5 or greater, and those from the airport_aircraft table that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bzdb1_5.png", "TableImg_Eyt32_4.png"], "original_data_index": 8171, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you list all the aid values from the certificate table where aid is less than 1 and eid is less than 567354612, and also list all the aid values from the flight table where the departure date is not \"04/12/2005 08:45\" and the destination and origin are not \"Los Angeles\"?", "answer": {"columns": ["aid"], "index": [0], "data": [["10"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_X37wy_69.png", "TableImg_53628_10.png"], "original_data_index": 8168, "original_sql": "SELECT aid FROM certificate WHERE \"aid\" < 1 AND \"eid\" < 567354612 UNION ALL SELECT aid FROM flight WHERE departure_date != \"04/12/2005 08:45\" AND destination <> \"Los Angeles\" AND origin <> \"Los Angeles\""} {"question": "Could you list the incorporation location, ID, type, name, principal activities, and group equity shareholding for all companies where the name is \"China Pacific Laundry Services\" or the ID is not 5 or the group equity shareholding is greater than 100, combined with all companies where the incorporation location is not \"Hong Kong\" or the ID is 1 and the type is not \"Subsidiary\" or the name is \"CLS Catering Services Limited\" or the group equity shareholding is greater than or equal to 18.77?", "answer": {"columns": ["Incorporated_in", "id", "Type", "name", "Principal_activities", "Group_Equity_Shareholding"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Canada", "14", "Joint Venture", "CLS Catering Services Limited", "Catering services", "30.0"], ["China", "1", "Corporate", "Air China", "Airline", "18.77"], ["China", "2", "Joint Venture", "Air China Cargo", "Cargo airline", "49.0"], ["Hong Kong", "3", "Joint Venture", "Air Hong Kong", "Cargo airline", "60.0"], ["Hong Kong", "4", "Subsidiary", "Dragonair", "Airline", "100.0"], ["Hong Kong", "5", "Subsidiary", "Cathay Pacific Cargo", "Cargo airline", "100.0"], ["Hong Kong", "6", "Subsidiary", "Cathay Pacific Catering Services (HK) Limited", "Catering services", "100.0"], ["Hong Kong", "7", "Subsidiary", "Cathay Pacific Services Limited", "Cargo", "100.0"], ["Hong Kong", "8", "Subsidiary", "Cathay Pacific Holidays", "Travel agency", "100.0"], ["Hong Kong", "9", "Subsidiary", "Dragonair Holidays", "Travel agency", "100.0"], ["Hong Kong", "10", "Subsidiary", "Hong Kong Airport Services", "Ground handling", "100.0"], ["Hong Kong", "11", "Subsidiary", "Vogue Laundry Service Limited", "Laundry", "100.0"], ["Taiwan", "12", "Joint Venture", "China Pacific Laundry Services", "Laundry", "45.0"], ["Vietnam", "13", "Joint Venture", "VN/CX Catering Services Limited", "Catering services", "40.0"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_42zsw_14.png", "TableImg_W9y8m_14.png"], "original_data_index": 8169, "original_sql": "SELECT Incorporated_in, id, Type, name, Principal_activities, Group_Equity_Shareholding FROM operate_company WHERE name = \"China Pacific Laundry Services\" OR \"id\" != 5 OR \"Group_Equity_Shareholding\" > 100.0 UNION SELECT Incorporated_in, id, Type, name, Principal_activities, Group_Equity_Shareholding FROM operate_company WHERE Incorporated_in <> \"Hong Kong\" OR \"id\" = 1 AND Type <> \"Subsidiary\" OR name = \"CLS Catering Services Limited\" OR \"Group_Equity_Shareholding\" >= 18.77"} {"question": "Can you list the student and pet IDs from the Has_Pet table where the pet ID is less than 2002 or the student ID is not 1001, but exclude any student and pet IDs where the student ID is less than 1001?", "answer": {"columns": ["StuID", "PetID"], "index": [0, 1, 2], "data": [["1001", "2001"], ["1002", "2002"], ["1002", "2003"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Hzrkd_3.png", "TableImg_Fzii0_3.png"], "original_data_index": 8173, "original_sql": "SELECT StuID, PetID FROM Has_Pet WHERE \"PetID\" < 2002 OR \"StuID\" != 1001 EXCEPT SELECT StuID, PetID FROM Has_Pet WHERE \"StuID\" < 1001"} {"question": "Can you list the aircraft IDs, excluding ID 5, that appear more than once in the aircraft table, but only if they are not aircraft IDs, excluding ID 3, that appear more than once in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iznx5_5.png", "TableImg_Z2s6l_4.png"], "original_data_index": 8172, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of People IDs from the employment table where either the working year is less than or equal to 4, or the Company ID is 15 and the People ID is 1, combined with a list of People IDs from the people table where the nationality is not the United Kingdom and the name is not Reggie Lewis and the People ID is not 1, or the graduation college is Virginia and the age is not 34?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_B2x49_5.png", "TableImg_1hhf6_7.png"], "original_data_index": 8174, "original_sql": "SELECT People_ID FROM employment WHERE \"Year_working\" <= 4 OR \"Company_ID\" = 15 AND \"People_ID\" = 1 UNION SELECT People_ID FROM people WHERE Nationality <> \"United Kindom\" AND Name <> \"Reggie Lewis\" AND \"People_ID\" <> 1 OR Graduation_College = \"Virginia\" AND \"Age\" != 34"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that are not also driver ID 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Njc8c_12.png", "TableImg_Gsm9b_5.png"], "original_data_index": 8175, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are both not equal to 8 and less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ckjif_12.png", "TableImg_Rlsci_5.png"], "original_data_index": 8179, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school_bus table with driver IDs up to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C7hjz_12.png", "TableImg_Ou0nf_5.png"], "original_data_index": 8180, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, where each ID is less than or equal to 9, but excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7zcqm_12.png", "TableImg_Qgaxc_5.png"], "original_data_index": 8181, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What is the highest branch ID and corresponding card number for branches and members, considering only those where the city is not London, the address road is Oaks Crescent, the branch ID is 2 or higher with an average level of 2 or higher and the hometown is Columbia, South Carolina, or the open year is not 2013 and the card number is not RE95?", "answer": {"columns": ["MAX(T1.Branch_ID)", "Card_Number"], "index": [0], "data": [["", ""]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_G5jz2_8.png", "TableImg_441jr_10.png"], "original_data_index": 8182, "original_sql": "SELECT MAX(T1.Branch_ID), T2.Card_Number FROM branch as T1 JOIN member as T2 ON T1.Name = T2.Name WHERE City <> \"London\" OR Address_road = \"Oaks Crescent\" OR Branch_ID >= 2 AND AVG(Level) >= 2 AND Hometown = \"Columbia, South Carolina\" OR Open_year <> \"2013\" AND Card_Number <> \"RE95\""} {"question": "Can you list all the aircraft IDs, including those that are equal to 1 from the aircraft table and those that are greater than or equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wf32i_5.png", "TableImg_Hqp8i_4.png"], "original_data_index": 8183, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me the major and last name of students, combining those who are not named Lee or Bruce, whose advisor isn't 7712, whose major isn't 100, and who aren't female, or are 19 or younger and not from Hong Kong, with those who are not named Lee, or whose first name isn't Tracy and major is 600, or whose student ID is less than 1016, are male, not from Chicago, and whose advisor isn't 7723?", "answer": {"columns": ["Major", "LName"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "data": [["50", "Epp"], ["50", "Schmidt"], ["100", "Han"], ["520", "Andreou"], ["520", "Brody"], ["520", "Goldman"], ["520", "Pang"], ["520", "Shieber"], ["520", "Thornton"], ["540", "Prater"], ["540", "Woods"], ["550", "Brown"], ["550", "Cheng"], ["550", "Rugh"], ["550", "Simms"], ["550", "Smith"], ["600", "Adams"], ["600", "Apap"], ["600", "Davis"], ["600", "Gompers"], ["600", "Jones"], ["600", "Kim"], ["600", "Kumar"], ["600", "Lee"], ["600", "Leighton"], ["600", "Nelson"], ["600", "Norris"], ["600", "Pang"], ["600", "Schultz"], ["600", "Schwartz"], ["600", "Smith"], ["600", "Tai"], ["600", "Wilson"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Xru7c_34.png", "TableImg_Ase6h_34.png"], "original_data_index": 8184, "original_sql": "SELECT Major, LName FROM Student WHERE LName != \"Lee\" AND Fname <> \"Bruce\" AND \"Advisor\" != 7712 AND \"Major\" <> 100 AND Sex <> \"F\" OR \"Age\" <= 19 AND city_code <> \"HKG\" UNION SELECT Major, LName FROM Student WHERE LName <> \"Lee\" OR Fname <> \"Tracy\" AND \"Major\" = 600 OR \"StuID\" < 1016 AND Sex = \"M\" AND city_code != \"CHI\" AND \"Advisor\" <> 7723"} {"question": "Which driver IDs are greater than or equal to 9, but are not driver ID's that are not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Erd02_12.png", "TableImg_Khmfa_5.png"], "original_data_index": 8185, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you list all aircraft IDs from both the aircraft and airport_aircraft tables, excluding aircraft ID 2, and showing each aircraft ID only once?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M2ub0_5.png", "TableImg_Irg02_4.png"], "original_data_index": 8186, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are both greater than or equal to 3 and also not equal to 3, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xonps_12.png", "TableImg_35dr3_5.png"], "original_data_index": 8187, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list all the aircraft IDs, excluding 5, from the aircraft table, and combine that with a list of aircraft IDs less than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cz8ms_5.png", "TableImg_F3w3z_4.png"], "original_data_index": 8189, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Could you give me a list of Store IDs for all Village Stores or stores with a ranking of 9, excluding those stores located in any district other than District 11?", "answer": {"columns": ["Store_ID"], "index": [0], "data": [["3"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_3w4p2_5.png", "TableImg_Fd626_5.png"], "original_data_index": 8190, "original_sql": "SELECT Store_ID FROM store WHERE Type = \"Village Store\" OR \"Ranking\" = 9 EXCEPT SELECT Store_ID FROM store_district WHERE \"District_ID\" != 11"} {"question": "Can you give me the maximum staff ID, maximum price, vehicle ID, lesson status code, average lesson date, customer ID, and the number of lessons from the Lessons table, excluding those where the vehicle ID is 3 or greater and the price is not 277, and including only those lessons where the staff ID is less than 11, or the lesson status is not cancelled and the price is less than or equal to 223, or the lesson ID is less than or equal to 2 and the customer ID is less than or equal to 8, or the lesson time is not 6, or the lesson date is not 2018-02-28 10:55:36 and the vehicle ID is not 2?", "answer": {"columns": ["MAX(staff_id)", "MAX(price)", "vehicle_id", "lesson_status_code", "AVG(lesson_date)", "customer_id", "COUNT(lesson_id)"], "index": [0], "data": [["15", "495", "2", "Cancelled", "2018", "2", "15"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_U1hb4_15.png", "TableImg_V4s0y_15.png"], "original_data_index": 8178, "original_sql": "SELECT MAX(staff_id), MAX(price), vehicle_id, lesson_status_code, AVG(lesson_date), customer_id, COUNT(lesson_id) FROM Lessons WHERE \"staff_id\" < 11 OR lesson_status_code <> \"Cancelled\" AND \"price\" <= 223.0 OR \"lesson_id\" <= 2 AND \"customer_id\" <= 8 OR lesson_time != \"6\" OR lesson_date <> \"2018-02-28 10:55:36\" AND \"vehicle_id\" <> 2 EXCEPT SELECT MAX(staff_id), MAX(price), vehicle_id, lesson_status_code, AVG(lesson_date), customer_id, COUNT(lesson_id) FROM Lessons WHERE \"vehicle_id\" >= 3 AND \"price\" <> 277.0"} {"question": "Can you show me the Big Silver, the lowest Small Silver, Bronze, Club ID, and Points from the match results, considering two sets of criteria: first, where Bronze is 7, Rank is greater than 5, Gold is at least 13, or Big Silver is greater than 14 while Club ID is 5 and Small Silver is 9; and second, where Points is not 89 and Club ID is not 2, or Bronze is greater than 10, or Rank is not 4, or Big Silver is not 7 while Gold is not 20, or Small Silver is 6?", "answer": {"columns": ["Big_Silver", "MIN(Small_Silver)", "Bronze", "Club_ID", "Points"], "index": [0, 1], "data": [["9", "4", "7", "3", "102"], ["9", "4", "7", "3", "102"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_E9tds_6.png", "TableImg_G8509_6.png"], "original_data_index": 8191, "original_sql": "SELECT Big_Silver, MIN(Small_Silver), Bronze, Club_ID, Points FROM match_result WHERE \"Bronze\" = 7 OR \"Rank\" > 5 OR \"Gold\" >= 13 OR \"Big_Silver\" > 14 AND \"Club_ID\" = 5 AND \"Small_Silver\" = 9 UNION ALL SELECT Big_Silver, MIN(Small_Silver), Bronze, Club_ID, Points FROM match_result WHERE \"Points\" != 89 AND \"Club_ID\" != 2 OR \"Bronze\" > 10 OR \"Rank\" <> 4 OR \"Big_Silver\" <> 7 AND \"Gold\" <> 20 OR \"Small_Silver\" = 6"} {"question": "Can you give me a list of document IDs that either have at least 5 copies, aren't document ID 10, and have a draft number greater than 1, or are from documents where the other details aren't \"u\" and the shipping agent code isn't \"US\", or the receipt number isn't \"69\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Vxt9t_4.png", "TableImg_Xnrjy_15.png"], "original_data_index": 8192, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"copy_number\" >= 5 AND \"document_id\" != 10 AND \"draft_number\" > 1 UNION SELECT document_id FROM Documents WHERE other_details != \"u\" AND shipping_agent_code <> \"US\" OR receipt_number != \"69\""} {"question": "Can you list all the parties from the election table where the district is not 4, combined with a list of parties from the party table where either the Party ID is 2 or greater and the Attorney General is not Eliot Spitzer and the year is after 1998, or the Comptroller is not Carl McCall, or the US Senator is Hillary Rodham Clinton and the Lieutenant Governor is David Paterson, or the party is not Independence?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["Democratic"], ["Independence"], ["Liberal"], ["Working Families"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Rba9s_8.png", "TableImg_1rjhe_7.png"], "original_data_index": 8193, "original_sql": "SELECT Party FROM election WHERE \"District\" <> 4 UNION SELECT Party FROM party WHERE \"Party_ID\" >= 2 AND Attorney_General <> \"Eliot Spitzer\" AND \"Year\" > 1998.0 OR Comptroller <> \"Carl McCall\" OR US_Senate = \"Hillary Rodham Clinton\" AND Lieutenant_Governor = \"David Paterson\" OR Party <> \"Independence\""} {"question": "Which aircraft have an ID of 1 and are also associated with airports, but not with an airport that has an ID of 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vl9z4_5.png", "TableImg_Nre8k_4.png"], "original_data_index": 8194, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you list the aircraft IDs that appear more than twice in the aircraft table, excluding those aircraft IDs that appear less than three times in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dtm3e_5.png", "TableImg_Pdk9v_4.png"], "original_data_index": 8195, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of aircraft IDs that are not equal to 2, excluding any aircraft IDs that are also in the airport aircraft list and are greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gyxso_5.png", "TableImg_Lcd5t_4.png"], "original_data_index": 8196, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of source user IDs that satisfy both of these conditions: first, the trust value is less than or equal to 1 or the source user ID is not 1; and second, the trust value is less than 10, or the target user ID is not 6, or the source user ID is not 3?", "answer": {"columns": ["source_u_id"], "index": [0, 1, 2], "data": [["2"], ["6"], ["7"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_K63iz_9.png", "TableImg_Tg7k9_9.png"], "original_data_index": 8197, "original_sql": "SELECT source_u_id FROM trust WHERE \"trust\" <= 1 OR \"source_u_id\" <> 1 INTERSECT SELECT source_u_id FROM trust WHERE \"trust\" < 10 OR \"target_u_id\" <> 6 OR \"source_u_id\" != 3"} {"question": "Could you give me the Driver IDs that are equal to 9 from the driver table, combined with the Driver IDs that are equal to 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3qae7_12.png", "TableImg_Lod6a_5.png"], "original_data_index": 8198, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 9, combined with a list of driver IDs from the school_bus table where each ID is not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ef9dy_12.png", "TableImg_7uxmf_5.png"], "original_data_index": 8201, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are equal to 6 in the driver table, but not less than or equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qetn2_12.png", "TableImg_D0msu_5.png"], "original_data_index": 8202, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 7, excluding any driver IDs that also appear in the school_bus table and are greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yvsf6_12.png", "TableImg_Jasei_5.png"], "original_data_index": 8203, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs, excluding driver ID 7, in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cowzm_12.png", "TableImg_Xuavx_5.png"], "original_data_index": 8204, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs, excluding driver ID 2, are also driver IDs that are equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qmjro_12.png", "TableImg_Xa5aq_5.png"], "original_data_index": 8188, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the aircraft IDs that are 3 or greater, excluding those aircraft IDs that are 2 or less from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8achp_5.png", "TableImg_Wfhv2_4.png"], "original_data_index": 8205, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_52zoi_5.png", "TableImg_R9lru_4.png"], "original_data_index": 8206, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs from the school bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1c4xp_12.png", "TableImg_8btkp_5.png"], "original_data_index": 8207, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What is the average branch ID for branches that meet certain criteria, excluding the average branch ID for purchases that meet other criteria?", "answer": {"columns": ["AVG(Branch_ID)"], "index": [0], "data": [["6"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Pbpzz_8.png", "TableImg_5bjc8_8.png"], "original_data_index": 8208, "original_sql": "SELECT AVG(Branch_ID) FROM branch WHERE \"Branch_ID\" > 8 AND Name = \"Zytogorski\" AND Address_road != \"Concord Road\" AND membership_amount = \"31\" OR City != \"London\" EXCEPT SELECT AVG(Branch_ID) FROM purchase WHERE Year <> \"2018\" AND Branch_ID = \"3\" OR \"Member_ID\" < 1 AND \"Total_pounds\" <> 20.99"} {"question": "Can you give me a list of driver IDs less than or equal to 8, excluding any driver IDs greater than 4 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fxe27_12.png", "TableImg_Kghdy_5.png"], "original_data_index": 8209, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 12 or greater, and those from the school bus table that are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S4pz3_12.png", "TableImg_Vkj2w_5.png"], "original_data_index": 8210, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are not 11 and are also greater than 4, considering only the unique driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pahs2_12.png", "TableImg_Dx8vr_5.png"], "original_data_index": 8200, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Could you list the driver IDs that are both less than or equal to 9 in the driver table and less than 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8agm1_12.png", "TableImg_Efm24_5.png"], "original_data_index": 8199, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs, other than 3, are present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xiyf7_12.png", "TableImg_V77kx_5.png"], "original_data_index": 8211, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of book IDs, titles, number of issues, and writers for all books where the writer is not Timothy Truman and the number of issues is 4, combined with a list of book IDs, titles, number of issues, and writers for all books where the title is not Sheva's War or the number of issues is greater than 5?", "answer": {"columns": ["Book_ID", "Title", "Issues", "Writer"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["2", "Bloody Mary", "4", "Garth Ennis"], ["3", "Bloody Mary : Lady Liberty", "4", "Garth Ennis"], ["6", "Dead Corps", "4", "Christopher Hinz"], ["1", "The Black Lamb", "6", "Timothy Truman"], ["2", "Bloody Mary", "4", "Garth Ennis"], ["3", "Bloody Mary : Lady Liberty", "4", "Garth Ennis"], ["4", "BrainBanx", "6", "Elaine Lee"], ["5", "Cyberella", "12", "Howard Chaykin"], ["6", "Dead Corps", "4", "Christopher Hinz"], ["7", "The Dome: Ground Zero", "1", "Dave Gibbons"], ["8", "Gemini Blood", "9", "Christopher Hinz"], ["9", "Michael Moorcock's Multiverse", "12", "Michael Moorcock"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_Rk5al_10.png", "TableImg_R6qrl_10.png"], "original_data_index": 8212, "original_sql": "SELECT Book_ID, Title, Issues, Writer FROM book WHERE Writer <> \"Timothy Truman\" AND \"Issues\" = 4.0 UNION ALL SELECT Book_ID, Title, Issues, Writer FROM book WHERE Title != \"Sheva's War\" OR \"Issues\" > 5.0"} {"question": "Can you list all animal allergies except for egg allergies, and also list all allergies for student ID 1005?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5], "data": [["Bee Stings"], ["Cat"], ["Dog"], ["Nuts"], ["Rodent"], ["Tree Pollen"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_6kqfc_14.png", "TableImg_960p2_59.png"], "original_data_index": 8214, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType = \"animal\" AND Allergy != \"Eggs\" UNION SELECT Allergy FROM Has_Allergy WHERE \"StuID\" = 1005"} {"question": "Could you list the driver IDs that are both greater than or equal to 7 and also less than or equal to 10, considering only the drivers that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ufuj6_12.png", "TableImg_Mb5di_5.png"], "original_data_index": 8213, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 10 and also appear in the list of school bus driver IDs, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jm5zm_12.png", "TableImg_F3e03_5.png"], "original_data_index": 8217, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 8 or higher, and those from the school bus table that are 10 or lower?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7toyu_12.png", "TableImg_Aakru_5.png"], "original_data_index": 8216, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 10, excluding any driver ID that is equal to 10 and also appears in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pxiox_12.png", "TableImg_Mh5ab_5.png"], "original_data_index": 8215, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of property type codes that meet certain criteria from the Properties table and also meet other criteria from the Ref_Property_Types table? Specifically, from the Properties table, I need properties where the shp_feature_3 is not \"None\", the date_on_market is not \"1978-05-15 10:53:37\", or the property_address is \"986 Hagenes Drives Draketon, UT 83411-3393\", or the hse_feature_2 is not \"None\", or the apt_feature_3 is \"None\" and the oth_feature_1 is not \"None\", or the apt_feature_1 is \"quos\" and the shp_feature_2 is \"None\" and the fld_feature_3 is not \"None\", or the fld_feature_2 is not \"None\", or the \"vendor_requested_price\" is less than or equal to 1337.0, and from the Ref_Property_Types table, I need property types where the property_type_code is not \"Shop\" or the property_type_description is \"Other, to be determined.\"?", "answer": {"columns": ["property_type_code"], "index": [0, 1], "data": [["Apartment"], ["Other"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Jnyo1_15.png", "TableImg_Peecn_5.png"], "original_data_index": 8218, "original_sql": "SELECT property_type_code FROM Properties WHERE shp_feature_3 != \"None\" AND date_on_market != \"1978-05-15 10:53:37\" OR property_address = \"986 Hagenes Drives Draketon, UT 83411-3393\" OR hse_feature_2 != \"None\" OR apt_feature_3 = \"None\" AND oth_feature_1 <> \"None\" OR apt_feature_1 = \"quos\" AND shp_feature_2 = \"None\" AND fld_feature_3 <> \"None\" OR fld_feature_2 <> \"None\" OR \"vendor_requested_price\" <= 1337.0 INTERSECT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code != \"Shop\" OR property_type_description = \"Other, to be determined.\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 12, and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8f7cj_12.png", "TableImg_87rvs_5.png"], "original_data_index": 8220, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are less than 1 from the driver table, combined with a list of driver IDs that are not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ch8ez_12.png", "TableImg_Nn2o6_5.png"], "original_data_index": 8221, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Could you list the District IDs from the district table where the City Area isn't 22, the Headquartered City is Bhakkar City, the District name isn't Jhang District, and the City Population is 328512, combined with the District IDs from the store_district table where the District ID is less than 15 and the Store ID is greater than 2?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["11"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Getv8_15.png", "TableImg_Wggzr_5.png"], "original_data_index": 8219, "original_sql": "SELECT District_ID FROM district WHERE \"City_Area\" <> 22.0 AND Headquartered_City = \"Bhakkar City\" AND District_name != \"Jhang District\" AND \"City_Population\" = 328512.0 UNION SELECT District_ID FROM store_district WHERE \"District_ID\" < 15 AND \"Store_ID\" > 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or greater, and those from the school bus table that are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mgeov_12.png", "TableImg_Ea5w3_5.png"], "original_data_index": 8224, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are 12 or greater, excluding those driver IDs that are not equal to 4 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8pifu_12.png", "TableImg_W834b_5.png"], "original_data_index": 8223, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are not equal to 12 from the driver table, excluding any driver IDs greater than 3 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N1q7x_12.png", "TableImg_J90gp_5.png"], "original_data_index": 8225, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs that are less than or equal to 3 and also not equal to 4, considering only the driver IDs that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T4gm5_12.png", "TableImg_S6cio_5.png"], "original_data_index": 8226, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you list the aircraft IDs that are greater than 4 from the aircraft table, and also list the aircraft IDs that are less than or equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9bj9v_5.png", "TableImg_5ong5_4.png"], "original_data_index": 8222, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs that are both less than 6 and also less than or equal to 3, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2docv_12.png", "TableImg_Epyl4_5.png"], "original_data_index": 8232, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the School ID, full-time status, and Driver ID for all school bus records where either the driver is not full-time and has worked for 2 years or less and the School ID is not 7, or where the Driver ID is 3, combined with all school bus records where the School ID is not 3, or the driver has worked for 6 years or less, or the driver is not full-time?", "answer": {"columns": ["School_ID", "If_full_time", "Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4", "T", "3"], ["1", "F", "10"], ["5", "T", "7"], ["3", "T", "4"], ["7", "T", "9"], ["4", "T", "3"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_2vnye_5.png", "TableImg_Rjhtg_5.png"], "original_data_index": 8230, "original_sql": "SELECT School_ID, If_full_time, Driver_ID FROM school_bus WHERE If_full_time <> \"T\" AND \"Years_Working\" <= 2 AND \"School_ID\" <> 7 OR \"Driver_ID\" = 3 UNION ALL SELECT School_ID, If_full_time, Driver_ID FROM school_bus WHERE \"School_ID\" != 3 OR \"Years_Working\" <= 6 OR If_full_time <> \"T\""} {"question": "Could you list the branch names that meet either of these conditions: they weren't opened in 2015 and aren't on Oaks Crescent, or their Branch ID is less than 5, or their membership amount is 56, they're in London, and their name isn't Taverner, but exclude any names that are also member names where the member isn't from Simpsonville, South Carolina, or their level is 6?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Alexandre"], ["Brooke Greville"], ["Cochrane"], ["Popert"], ["Stanley"], ["Taverner"], ["Zytogorski"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_8hoh1_8.png", "TableImg_Wkw98_10.png"], "original_data_index": 8233, "original_sql": "SELECT Name FROM branch WHERE Open_year <> \"2015\" AND Address_road <> \"Oaks Crescent\" OR \"Branch_ID\" < 5 OR membership_amount = \"56\" AND City = \"London\" AND Name <> \"Taverner\" EXCEPT SELECT Name FROM member WHERE Hometown != \"Simpsonville, South Carolina\" OR \"Level\" = 6"} {"question": "Can you give me a list of driver IDs that are greater than 11, excluding any driver IDs that are less than or equal to 10 and are also associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hlpdz_12.png", "TableImg_0eknt_5.png"], "original_data_index": 8234, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of property type codes from properties that meet a long list of criteria related to features, dates, names, prices, addresses, and other details, combined with a list of property type codes from the property types reference table that are not \"Apartment\" and have the description \"House, Bungalow, etc.\"?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["House"], ["House"], ["Other"], ["Field"], ["Apartment"], ["Shop"], ["Shop"], ["Apartment"], ["Apartment"], ["Apartment"], ["Other"], ["Apartment"], ["Other"], ["Other"], ["Apartment"], ["House"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_K376r_15.png", "TableImg_Rft4p_5.png"], "original_data_index": 8235, "original_sql": "SELECT property_type_code FROM Properties WHERE fld_feature_1 <> \"None\" OR \"property_id\" = 13 AND date_on_market = \"2003-12-25 16:13:19\" OR fld_feature_3 = \"None\" OR apt_feature_2 <> \"odio\" OR fld_feature_2 <> \"None\" AND oth_feature_1 <> \"None\" AND shp_feature_1 <> \"None\" OR property_type_code = \"Other\" OR apt_feature_1 != \"fuga\" OR hse_feature_1 <> \"None\" AND hse_feature_3 <> \"None\" AND date_sold <> \"1971-04-14 03:23:49\" OR property_name = \"avalon\" AND \"room_count\" <= 7 OR \"vendor_requested_price\" <> 661536468.4429 AND property_address <> \"098 Tremaine Highway Suite 569 South Wilford, NJ 46587-3537\" AND oth_feature_2 = \"None\" AND shp_feature_2 = \"None\" OR \"buyer_offered_price\" >= 11375259.502 OR \"agreed_selling_price\" <> 456840888.16 OR shp_feature_3 <> \"None\" AND other_property_details <> \"None\" AND hse_feature_2 != \"None\" OR apt_feature_3 != \"None\" UNION ALL SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> \"Apartment\" AND property_type_description = \"House, Bungalow, etc.\""} {"question": "Can you give me a list of driver IDs that are greater than 10 from the driver table, excluding any driver IDs greater than 7 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gm127_12.png", "TableImg_Pybuf_5.png"], "original_data_index": 8236, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are both less than or equal to 8 in the driver table and less than or equal to 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ioexn_12.png", "TableImg_11vje_5.png"], "original_data_index": 8237, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are greater than 1, but not including any driver IDs from the school bus list that are 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pli7s_12.png", "TableImg_4sk2q_5.png"], "original_data_index": 8238, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What security features are available, excluding those that are also classified as amenities?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Security"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_T9xw8_3.png", "TableImg_Nj8us_2.png"], "original_data_index": 8239, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE feature_type_code = \"Security\" EXCEPT SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_code = \"Amenity\""} {"question": "Can you give me a list of driver IDs less than or equal to 10, excluding those driver IDs that are also in the school bus list and less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yc7k5_12.png", "TableImg_Fpbqw_5.png"], "original_data_index": 8241, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of customer IDs from the Customers table where either the first name is not Sigrid, the amount outstanding is not 9443, or the date they became a customer wasn't March 18, 2016 at 6:14 AM, and their customer address ID is 9, or their last name isn't Schmeler and their customer ID is 4, combined with a list of customer IDs from the Lessons table where the price is less than or equal to 492, the vehicle ID isn't 2, and the staff ID is less than or equal to 4, or the lesson status code isn't Cancelled, or the lesson ID is less than 11 and the customer ID isn't 8, or the lesson time isn't 5, or the lesson date isn't March 7, 2018 at 11:53 AM?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["6"], ["8"], ["6"], ["8"], ["10"], ["5"], ["9"], ["3"], ["2"], ["2"], ["10"], ["11"], ["13"], ["3"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_70rao_15.png", "TableImg_Wmznp_15.png"], "original_data_index": 8240, "original_sql": "SELECT customer_id FROM Customers WHERE first_name <> \"Sigrid\" OR \"amount_outstanding\" != 9443.0 OR date_became_customer != \"2016-03-18 06:14:18\" AND \"customer_address_id\" = 9 OR last_name <> \"Schmeler\" AND \"customer_id\" = 4 UNION ALL SELECT customer_id FROM Lessons WHERE \"price\" <= 492.0 AND \"vehicle_id\" != 2 AND \"staff_id\" <= 4 OR lesson_status_code != \"Cancelled\" OR \"lesson_id\" < 11 AND \"customer_id\" != 8 OR lesson_time <> \"5\" OR lesson_date <> \"2018-03-07 11:53:32\""} {"question": "Can you give me the customer ID, status code, phone number, date of birth, average date they became a customer, first name, sum of last names, sum of customer address IDs, and mobile phone number for all customers with an outstanding amount not equal to 9500, excluding those customers whose information doesn't match records where the birthdate is not December 15, 1998, the address ID is less than 1, the first name is Genevieve, the email address is nichole59@example.com, and the status code is not \"Bad Customer,\" or where the last name is not Ortiz, the phone number is not (729)396-4354x3576, or the outstanding amount is not 2099?", "answer": {"columns": ["customer_id", "customer_status_code", "phone_number", "date_of_birth", "AVG(date_became_customer)", "first_name", "SUM(last_name)", "SUM(customer_address_id)", "cell_mobile_phone_number"], "index": [0], "data": [["1", "Bad Customer", "7278206718", "1998-12-15 13:24:40", "2016", "Carole", "0", "106", "861-638-9797"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_3x8hp_15.png", "TableImg_Cozjb_15.png"], "original_data_index": 8243, "original_sql": "SELECT customer_id, customer_status_code, phone_number, date_of_birth, AVG(date_became_customer), first_name, SUM(last_name), SUM(customer_address_id), cell_mobile_phone_number FROM Customers WHERE \"amount_outstanding\" <> 9500.0 EXCEPT SELECT customer_id, customer_status_code, phone_number, date_of_birth, AVG(date_became_customer), first_name, SUM(last_name), SUM(customer_address_id), cell_mobile_phone_number FROM Customers WHERE date_of_birth != \"1998-12-15 13:24:40\" AND \"customer_address_id\" < 1 AND first_name = \"Genevieve\" AND email_address = \"nichole59@example.com\" AND customer_status_code != \"Bad Customer\" OR last_name != \"Ortiz\" AND phone_number <> \"(729)396-4354x3576\" OR \"amount_outstanding\" != 2099.0"} {"question": "Could you give me a list of driver IDs, including driver ID 7 from the driver table and driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ajq0k_12.png", "TableImg_W3423_5.png"], "original_data_index": 8247, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of aircraft IDs that are greater than 4, and are also not equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_22o73_5.png", "TableImg_H3vre_4.png"], "original_data_index": 8245, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 2, and those from the airport_aircraft table that are less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4622h_5.png", "TableImg_Jkpto_4.png"], "original_data_index": 8249, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, including those that are not 11 from the driver table, and those that are less than or equal to 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pzjvr_12.png", "TableImg_Vqeuk_5.png"], "original_data_index": 8250, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are either greater than or equal to 6 from the driver table, or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U5a91_12.png", "TableImg_2ex7b_5.png"], "original_data_index": 8251, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 4, and also those from the airport_aircraft table that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_08njb_5.png", "TableImg_Pcawt_4.png"], "original_data_index": 8252, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you show me the age of drivers and their driver IDs, grouped by their political party, but only for those where the school ID is 7, or the driver's name isn't Douglas McCrory and they've worked for 2 years or less and are full-time, or they belong to the Democratic party, or they don't live in East Hartford, or they are 42 or older?", "answer": {"columns": ["Age", "Driver_ID"], "index": [0], "data": [["37", "10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bi8hw_12.png", "TableImg_Zca9f_5.png"], "original_data_index": 8253, "original_sql": "SELECT T1.Age, T2.Driver_ID FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID == T2.Driver_ID GROUP BY Party HAVING School_ID = 7 OR Name <> \"Douglas McCrory\" AND Years_Working <= 2 AND If_full_time = \"T\" OR Party = \"Dem\" OR Home_city <> \"East Hartford\" OR Age >= 42"} {"question": "Can you give me a list of driver IDs that are less than 12 and also not equal to 3, considering only unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nk6vu_12.png", "TableImg_Phnu3_5.png"], "original_data_index": 8254, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What is the smallest branch ID for branches that are not named Stanley, excluding the smallest branch IDs from the membership register that either have a member ID of 2 or a register year that is not 2016?", "answer": {"columns": ["MIN(Branch_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Yw8i6_8.png", "TableImg_Rjtlb_8.png"], "original_data_index": 8255, "original_sql": "SELECT MIN(Branch_ID) FROM branch WHERE Name != \"Stanley\" EXCEPT SELECT MIN(Branch_ID) FROM membership_register_branch WHERE \"Member_ID\" = 2 OR Register_Year <> \"2016\""} {"question": "Can you list the model and maker for all entries, excluding those with ModelId 26, and also include the model and maker for all entries where the model is not \"buick\"?", "answer": {"columns": ["Model", "Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35], "data": [["amc", "1"], ["audi", "2"], ["bmw", "3"], ["buick", "4"], ["cadillac", "4"], ["capri", "5"], ["chevrolet", "4"], ["chrysler", "6"], ["citroen", "7"], ["datsun", "8"], ["dodge", "6"], ["fiat", "9"], ["ford", "5"], ["hi", "10"], ["honda", "11"], ["hyundai", "23"], ["jeep", "6"], ["kia", "22"], ["mazda", "12"], ["mercedes", "13"], ["mercedes-benz", "13"], ["mercury", "5"], ["nissan", "8"], ["oldsmobile", "4"], ["opel", "14"], ["peugeot", "15"], ["plymouth", "6"], ["pontiac", "4"], ["renault", "16"], ["saab", "17"], ["scion", "19"], ["subaru", "18"], ["toyota", "19"], ["triumph", "20"], ["volkswagen", "2"], ["volvo", "21"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Kubkp_36.png", "TableImg_5to86_36.png"], "original_data_index": 8256, "original_sql": "SELECT Model, Maker FROM model_list WHERE \"ModelId\" != 26 UNION SELECT Model, Maker FROM model_list WHERE Model <> \"buick\""} {"question": "Which driver IDs are both greater than 6 and also equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kee5h_12.png", "TableImg_Bm6m7_5.png"], "original_data_index": 8257, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are greater than 7, but not including any driver IDs that are greater than or equal to 7 and also appear in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fnr8a_12.png", "TableImg_4n318_5.png"], "original_data_index": 8259, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What aircraft IDs, excluding ID 2, are present in the aircraft table but not in the airport_aircraft table, also excluding ID 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Azlx4_5.png", "TableImg_H22fc_4.png"], "original_data_index": 8246, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Could you give me a list of driver IDs from the driver table that are greater than or equal to 1, excluding any driver IDs that also appear in the school_bus table and are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A0qv2_12.png", "TableImg_Vspax_5.png"], "original_data_index": 8260, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of aircraft IDs, including aircraft ID 1 from the aircraft table and all aircraft IDs except 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ppuz_5.png", "TableImg_89nec_4.png"], "original_data_index": 8262, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7, and those from the school bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Szd6t_12.png", "TableImg_Kilez_5.png"], "original_data_index": 8263, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you list the names and user IDs for everyone named Terry, and also include the names and user IDs for everyone who isn't named Roxi or whose user ID is 3 or less?", "answer": {"columns": ["name", "u_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Terry", "3"], ["Helen", "1"], ["Mark", "2"], ["Terry", "3"], ["Nancy", "4"], ["Rosie", "5"], ["Emily", "7"]]}, "table_names": "['useracct' 'useracct']", "table_image_ids": ["TableImg_Einxz_7.png", "TableImg_W9zeh_7.png"], "original_data_index": 8266, "original_sql": "SELECT name, u_id FROM useracct WHERE name = \"Terry\" UNION ALL SELECT name, u_id FROM useracct WHERE name != \"Roxi\" OR \"u_id\" <= 3"} {"question": "Can you give me the Driver ID that appears exactly once in the driver table, specifically Driver ID 1, but is not a Driver ID less than 3 that appears exactly once in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_47ugk_12.png", "TableImg_Dpefo_5.png"], "original_data_index": 8267, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the IDs of all certificates that are not associated with event ID 269734834, excluding the IDs of all flights that departed on \"04/12/2005 05:30\"?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Ea8qn_69.png", "TableImg_31i8s_10.png"], "original_data_index": 8268, "original_sql": "SELECT aid FROM certificate WHERE \"eid\" != 269734834 EXCEPT SELECT aid FROM flight WHERE departure_date = \"04/12/2005 05:30\""} {"question": "Which driver has an ID of 6, but is not a driver with an ID of 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dlyzb_12.png", "TableImg_Zb0ni_5.png"], "original_data_index": 8269, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list the aircraft IDs that are greater than 4 from the aircraft table, and also list the aircraft IDs that are less than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Peou8_5.png", "TableImg_I4k6i_4.png"], "original_data_index": 8270, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What is the smallest property type code for properties where both shp_feature_2 and oth_feature_3 are \"None\", excluding the smallest property type codes from the property type reference table where the description is \"Other, to be determined.\" or the code is not \"Other\"?", "answer": {"columns": ["MIN(property_type_code)"], "index": [0], "data": [[""]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Z5rxq_15.png", "TableImg_02bjn_5.png"], "original_data_index": 8271, "original_sql": "SELECT MIN(property_type_code) FROM Properties WHERE shp_feature_2 = \"None\" AND oth_feature_3 = \"None\" EXCEPT SELECT MIN(property_type_code) FROM Ref_Property_Types WHERE property_type_description = \"Other, to be determined.\" OR property_type_code != \"Other\""} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs that are less than or equal to 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2puvg_12.png", "TableImg_Iwx5k_5.png"], "original_data_index": 8272, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Could you give me a list of head IDs, including those from the head table where the ID is 3 or greater, and also those from the management table where the temporary acting status is not \"Yes\"?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Rwm98_10.png", "TableImg_Anrmr_5.png"], "original_data_index": 8273, "original_sql": "SELECT head_ID FROM head WHERE \"head_ID\" >= 3 UNION SELECT head_ID FROM management WHERE temporary_acting != \"Yes\""} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are not 11, and also including driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wgjm2_12.png", "TableImg_8sfka_5.png"], "original_data_index": 8274, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 1 and are not equal to 10, considering all drivers and school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A0rg7_12.png", "TableImg_Pc4eb_5.png"], "original_data_index": 8275, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which aircraft have an ID of 5 and are also associated with airports that don't have an aircraft ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sidf0_5.png", "TableImg_3djf4_4.png"], "original_data_index": 8278, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What is the average continent value, considering only continents that are not Asia, and also considering only continents where the ContId is not 1?", "answer": {"columns": ["AVG(Continent)"], "index": [0], "data": [["0"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_T3529_5.png", "TableImg_9v37o_5.png"], "original_data_index": 8279, "original_sql": "SELECT AVG(Continent) FROM continents WHERE Continent <> \"asia\" INTERSECT SELECT AVG(Continent) FROM continents WHERE \"ContId\" <> 1"} {"question": "Which driver IDs are not equal to 3 and are also not equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_59n9d_12.png", "TableImg_Znsvn_5.png"], "original_data_index": 8280, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me the origin, latest arrival date, departure date, shortest distance, aid, earliest destination, and average price for flights, combining two sets of results: first, flights that either don't go to Chicago, don't depart on \"04/12/2005 09:15\", have a price greater than 278.56, don't originate in Los Angeles, don't have a flight number of 33, and have a distance less than 2551; and second, flights that either don't arrive on \"04/12/2005 12:02\" or have a price of 220.98 and go to Honolulu?", "answer": {"columns": ["origin", "MAX(arrival_date)", "departure_date", "MIN(distance)", "aid", "MIN(destination)", "AVG(price)"], "index": [0, 1], "data": [["Los Angeles", "04/12/2005 12:02", "04/12/2005 07:03", "802", "6", "Boston", "318.471"], ["Los Angeles", "04/12/2005 11:15", "04/12/2005 07:03", "1251", "6", "Boston", "331.3622222222"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Iwd8m_10.png", "TableImg_08cw5_10.png"], "original_data_index": 8281, "original_sql": "SELECT origin, MAX(arrival_date), departure_date, MIN(distance), aid, MIN(destination), AVG(price) FROM flight WHERE destination <> \"Chicago\" OR departure_date != \"04/12/2005 09:15\" OR \"price\" > 278.56 AND origin <> \"Los Angeles\" AND \"flno\" <> 33 AND \"distance\" < 2551 UNION ALL SELECT origin, MAX(arrival_date), departure_date, MIN(distance), aid, MIN(destination), AVG(price) FROM flight WHERE arrival_date != \"04/12/2005 12:02\" OR \"price\" = 220.98 AND destination = \"Honolulu\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 4, excluding any aircraft IDs from the airport_aircraft table that are less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hp9gz_5.png", "TableImg_E079i_4.png"], "original_data_index": 8282, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Could you give me a list of student IDs, including those who are members of clubs with a ClubID less than 1, as well as students who either don't have the last name Goldman and aren't male, or don't have the first name Bruce and are under 20, or are from the city code BAL, or have an advisor with an ID of 8772 or less?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_77gan_4.png", "TableImg_Yb3mv_34.png"], "original_data_index": 8283, "original_sql": "SELECT StuID FROM Member_of_club WHERE \"ClubID\" < 1 UNION ALL SELECT StuID FROM Student WHERE LName != \"Goldman\" AND Sex != \"M\" OR Fname != \"Bruce\" AND \"Age\" < 20 OR city_code = \"BAL\" OR \"Advisor\" <= 8772"} {"question": "Which driver IDs are both greater than 1 and also equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kk3hm_12.png", "TableImg_9kmlx_5.png"], "original_data_index": 8284, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Could you give me a list of driver IDs that are not 12 from the driver table, but only include those driver IDs that are also not 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D2gbl_12.png", "TableImg_Cgx2n_5.png"], "original_data_index": 8285, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are both less than or equal to 9 and present in the driver table, and also greater than or equal to 4 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R2unp_12.png", "TableImg_7msts_5.png"], "original_data_index": 8286, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10, and those from the school bus table that are less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bz7xb_12.png", "TableImg_Eawry_5.png"], "original_data_index": 8287, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5, that are not also driver IDs, excluding driver ID 7, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gbimz_12.png", "TableImg_F7407_5.png"], "original_data_index": 8277, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are not equal to 3, excluding any driver IDs that are also greater than 9 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xjqh1_12.png", "TableImg_Bb31t_5.png"], "original_data_index": 8293, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are 12 or less from the driver table, excluding those driver IDs that are less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Thucu_12.png", "TableImg_1834t_5.png"], "original_data_index": 8294, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which aircraft IDs, excluding ID 1, are present in the aircraft table and also, excluding ID 5, in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pckpf_5.png", "TableImg_Emsch_4.png"], "original_data_index": 8295, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 9, and those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0lb3j_12.png", "TableImg_Xg04g_5.png"], "original_data_index": 8296, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver has an ID of 7 and also drives a school bus with a driver ID that is not 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ozzch_12.png", "TableImg_Pke2o_5.png"], "original_data_index": 8297, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of aircraft IDs that are either greater than or equal to 15, or have a distance greater than or equal to 2128, combined with a list of aircraft IDs from certificates that have an eid greater than 355548984?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_U89x1_16.png", "TableImg_Ckgih_69.png"], "original_data_index": 8298, "original_sql": "SELECT aid FROM aircraft WHERE \"aid\" >= 15 OR \"distance\" >= 2128 UNION SELECT aid FROM certificate WHERE \"eid\" > 355548984"} {"question": "Could you give me the total number of ClubIDs and the individual ClubIDs for clubs that are not located in HHH, or are named \"Tennis Club\", or don't have \"Teaching Coordinator\" as a position?", "answer": {"columns": ["SUM(T1.ClubID)", "ClubID"], "index": [0], "data": [["8", "1"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Gcwek_4.png", "TableImg_Yyn67_4.png"], "original_data_index": 8299, "original_sql": "SELECT SUM(T1.ClubID), T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubLocation <> \"HHH\" OR ClubName = \"Tennis Club\" OR Position <> \"Teaching Coordinator\""} {"question": "Can you list the driver IDs, first from the driver table excluding driver ID 1, and then from the school bus table including only driver IDs of 3 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rdj1t_12.png", "TableImg_Az4j3_5.png"], "original_data_index": 8300, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 4, combined with a list of driver IDs from the school_bus table where the ID is greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6gbrt_12.png", "TableImg_Gy9kw_5.png"], "original_data_index": 8301, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which aircraft IDs are both less than or equal to 5 when considering all aircraft, and less than 2 when considering aircraft at airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yhtqd_5.png", "TableImg_6rexj_4.png"], "original_data_index": 8302, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What is the average role code for roles that are not photo roles or do not have the role code \"MG\", excluding the average role code for roles that are not manager roles and have the role code \"MG\"?", "answer": {"columns": ["AVG(role_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Yruyv_4.png", "TableImg_Fpks8_4.png"], "original_data_index": 8304, "original_sql": "SELECT AVG(role_code) FROM Roles WHERE role_description <> \"Photo\" OR role_code <> \"MG\" EXCEPT SELECT AVG(role_code) FROM Roles WHERE role_description <> \"Manager\" AND role_code = \"MG\""} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0jyk7_12.png", "TableImg_O675l_5.png"], "original_data_index": 8292, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are less than 3, excluding any driver IDs that are also greater than 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M85h6_12.png", "TableImg_83niz_5.png"], "original_data_index": 8305, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you tell me the age, the maximum name, and city for employees where either their employee ID is 9 or greater, or their age is 29 or greater, combined with the age, the maximum name, and city for employees where either their employee ID is not 7, or their age is greater than 29 and their name is Louis Deacon?", "answer": {"columns": ["Age", "MAX(Name)", "City"], "index": [0, 1], "data": [["29", "Tim Payne", "Wasps"], ["29", "Tim Payne", "Wasps"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Y2t2z_10.png", "TableImg_U5m61_10.png"], "original_data_index": 8306, "original_sql": "SELECT Age, MAX(Name), City FROM employee WHERE \"Employee_ID\" >= 9 OR \"Age\" >= 29 UNION ALL SELECT Age, MAX(Name), City FROM employee WHERE \"Employee_ID\" != 7 OR \"Age\" > 29 AND Name = \"Louis Deacon\""} {"question": "Can you give me the IDs that are both in flights on July 16, 1965 with airport IDs less than 9 and an altitude of 3650 or an ID greater than 5 or a Vehicle_Flight_number not equal to \"M2-F1 #1\", and also in operate_companies that are subsidiaries or have principal activities other than cargo airline or a name other than \"Air China\" or were not incorporated in Vietnam and have a Group Equity Shareholding of 30.0?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_Urc80_13.png", "TableImg_69viz_14.png"], "original_data_index": 8307, "original_sql": "SELECT id FROM flight WHERE Date = \"July 16, 1965\" AND \"airport_id\" < 9 AND \"Altitude\" = 3650.0 OR \"id\" > 5 OR Vehicle_Flight_number != \"M2-F1 #1\" INTERSECT SELECT id FROM operate_company WHERE Type = \"Subsidiary\" OR Principal_activities <> \"Cargo airline\" OR name <> \"Air China\" OR Incorporated_in != \"Vietnam\" AND \"Group_Equity_Shareholding\" = 30.0"} {"question": "Can you show me, for each street address, the number of branches, membership amounts, opening years, branch IDs, and cities, but only for addresses where there's at least one opening year and more than one branch ID, and the number of branch names isn't one; also, include the same counts for addresses where there's at least one city or branch ID, or where the opening year isn't one, the number of branch names is exactly one, and the number of membership amounts isn't one?", "answer": {"columns": ["Address_road", "COUNT(Name)", "COUNT(membership_amount)", "COUNT(Open_year)", "COUNT(Branch_ID)", "COUNT(City)"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Abbey Rise", "1", "1", "1", "1", "1"], ["Abbott Street", "1", "1", "1", "1", "1"], ["Brampton Road", "1", "1", "1", "1", "1"], ["Cecilia Avenue", "1", "1", "1", "1", "1"], ["Concord Road", "1", "1", "1", "1", "1"], ["Glebe Street", "1", "1", "1", "1", "1"], ["Oaks Crescent", "1", "1", "1", "1", "1"], ["Valleys Place", "1", "1", "1", "1", "1"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_7geug_8.png", "TableImg_5qsbd_8.png"], "original_data_index": 8308, "original_sql": "SELECT Address_road, COUNT(Name), COUNT(membership_amount), COUNT(Open_year), COUNT(Branch_ID), COUNT(City) FROM branch GROUP BY Address_road HAVING COUNT(Open_year) >= 1 AND COUNT(Branch_ID) > 1 AND COUNT(Name) <> 1 UNION ALL SELECT Address_road, COUNT(Name), COUNT(membership_amount), COUNT(Open_year), COUNT(Branch_ID), COUNT(City) FROM branch GROUP BY Address_road HAVING COUNT(City) >= 1 OR COUNT(Branch_ID) >= 1 OR COUNT(Open_year) != 1 AND COUNT(Name) = 1 AND COUNT(membership_amount) <> 1"} {"question": "Which driver IDs, excluding 10, are also driver IDs of school buses where those IDs are 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2luf5_12.png", "TableImg_D9qre_5.png"], "original_data_index": 8309, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you list all Driver IDs, including those from the driver table that are greater than or equal to 10, and those from the school_bus table that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_41tfi_12.png", "TableImg_S74bw_5.png"], "original_data_index": 8310, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 8, and also including driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O3b0x_12.png", "TableImg_Ifbrb_5.png"], "original_data_index": 8311, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the parties from the election table, excluding those parties from the party table where either the governor isn't Eliot Spitzer, the party isn't Democratic, there's no US Senate election, the year is after 2006, the party ID is 4 or less and the lieutenant governor is Jonathan Reiter, or the attorney general isn't Andrew Cuomo, but including only those parties from the election table where the party is greater than 2, the first elected year isn't 2006, the counties represented are \"09.1 9A\", or the election ID isn't 3 and the committee is \"Environmental Matters\"?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Nvksg_8.png", "TableImg_Urksp_7.png"], "original_data_index": 8312, "original_sql": "SELECT Party FROM election WHERE \"Party\" > 2 OR \"First_Elected\" != 2006.0 OR Counties_Represented = \"09.1 9A\" OR \"Election_ID\" != 3 AND Committee = \"Environmental Matters\" EXCEPT SELECT Party FROM party WHERE Governor <> \"Eliot Spitzer\" AND Party <> \"Democratic\" OR US_Senate = \"(no election)\" OR \"Year\" > 2006.0 OR \"Party_ID\" <= 4 AND Lieutenant_Governor = \"Jonathan Reiter\" OR Attorney_General != \"Andrew Cuomo\""} {"question": "Which driver IDs are both greater than 4 and present in the driver table, and also greater than 3 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_12poc_12.png", "TableImg_Bpygr_5.png"], "original_data_index": 8313, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the smallest shop ID from the hiring table where the employee ID is less than or equal to 6, and also, what is the smallest shop ID from the shop table where the manager's name is not Olli Huttunen?", "answer": {"columns": ["MIN(Shop_ID)"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_78dz4_7.png", "TableImg_N54k4_9.png"], "original_data_index": 8315, "original_sql": "SELECT MIN(Shop_ID) FROM hiring WHERE \"Employee_ID\" <= 6 UNION ALL SELECT MIN(Shop_ID) FROM shop WHERE Manager_name != \"Olli Huttunen\""} {"question": "Can you give me a list of aircraft IDs that are greater than 1, excluding any aircraft IDs from the airport aircraft list that are less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rss5m_5.png", "TableImg_4o5wl_4.png"], "original_data_index": 8314, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "How many allergies, excluding rodent allergies or including animal allergies, are listed in the allergy type table, plus how many allergies, excluding shellfish allergies, are listed in the has allergy table?", "answer": {"columns": ["COUNT(Allergy)"], "index": [0, 1], "data": [["14"], ["55"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_59qpi_14.png", "TableImg_9gvv1_59.png"], "original_data_index": 8317, "original_sql": "SELECT COUNT(Allergy) FROM Allergy_Type WHERE Allergy != \"Rodent\" OR AllergyType = \"animal\" UNION SELECT COUNT(Allergy) FROM Has_Allergy WHERE Allergy != \"Shellfish\""} {"question": "What is the sum of player IDs for players not residing in Winnipeg, combined with the sum of player IDs from the player-coach table where the coach ID is 5 or greater, the starting year is 2010 or earlier, or the player ID is not 10?", "answer": {"columns": ["SUM(Player_ID)"], "index": [0, 1], "data": [["26"], ["30"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_L1bpg_14.png", "TableImg_9a8st_7.png"], "original_data_index": 8318, "original_sql": "SELECT SUM(Player_ID) FROM player WHERE Residence != \"Winnipeg\" UNION ALL SELECT SUM(Player_ID) FROM player_coach WHERE \"Coach_ID\" >= 5 OR \"Starting_year\" <= 2010 OR \"Player_ID\" != 10"} {"question": "Which driver IDs are greater than 4 and also not equal to 3, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_82hkk_12.png", "TableImg_Smckx_5.png"], "original_data_index": 8321, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are not 6 and are also less than 7, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pyf7c_12.png", "TableImg_Akrjb_5.png"], "original_data_index": 8319, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me the Paragraph ID, Paragraph Text, and Document ID for all paragraphs where either the Other Details are not \"None\" or the Document ID is greater than or equal to 3540024 and the Paragraph ID is greater than 3708, combined with all paragraphs where the Paragraph ID is greater than 3708, or the Document ID is 16514113, or the Other Details are \"None\"?", "answer": {"columns": ["Paragraph_ID", "Paragraph_Text", "Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["9946", "Fiji", "385906526"], ["16615", "Japan", "80"], ["1104059", "Senegal", "3830"], ["243399026", "Indonesia", "651512"], ["280120913", "Ukraine", "2394"], ["510442723", "Korea", "2394"], ["571212310", "Brazil", "16514113"], ["608931827", "Micronesia", "80"], ["765713812", "Ireland", "16514113"], ["946335436", "Papua New Guinea", "3540024"]]}, "table_names": "['Paragraphs' 'Paragraphs']", "table_image_ids": ["TableImg_8ofpu_15.png", "TableImg_Xin53_15.png"], "original_data_index": 8320, "original_sql": "SELECT Paragraph_ID, Paragraph_Text, Document_ID FROM Paragraphs WHERE Other_Details <> \"None\" OR \"Document_ID\" >= 3540024 AND \"Paragraph_ID\" > 3708 UNION SELECT Paragraph_ID, Paragraph_Text, Document_ID FROM Paragraphs WHERE \"Paragraph_ID\" > 3708 OR \"Document_ID\" = 16514113 OR Other_Details = \"None\""} {"question": "Can you give me a list of driver IDs that are both less than or equal to 10 and appear in the driver table, and also less than 9 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M3buu_12.png", "TableImg_Qvflq_5.png"], "original_data_index": 8322, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are not equal to 2 and are also not equal to 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K53fg_12.png", "TableImg_3a8rz_5.png"], "original_data_index": 8323, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs, that are 3 or greater, are in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3jlqf_12.png", "TableImg_Cu5ta_5.png"], "original_data_index": 8324, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which aircraft have an ID of 5 and also appear in the airport aircraft list with an ID of 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uw33w_5.png", "TableImg_Qyapz_4.png"], "original_data_index": 8325, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 9, with those from the school bus table that are 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mhy1z_12.png", "TableImg_63bap_5.png"], "original_data_index": 8326, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 8, and those from the school bus table with driver IDs 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zwjbm_12.png", "TableImg_069v0_5.png"], "original_data_index": 8331, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me the head IDs of people who are not named Billy Mayfair and weren't born in Florida, or whose age is less than 43, combined with the head IDs from the management table where the head ID is less than 3 and they are temporarily acting?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["8"], ["9"], ["10"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_6djvr_10.png", "TableImg_Iuyeq_5.png"], "original_data_index": 8330, "original_sql": "SELECT head_ID FROM head WHERE name <> \"Billy Mayfair\" AND born_state <> \"Florida\" OR \"age\" < 43.0 UNION ALL SELECT head_ID FROM management WHERE \"head_ID\" < 3 AND temporary_acting = \"Yes\""} {"question": "Can you give me a list of Coach IDs from the coach table where the coach's name is not Joe Fabbri, or the coach is male, or their rank is 2 and their Coach ID is greater than 3 and their Club ID is greater than or equal to 3, combined with a list of Coach IDs from the player_coach table where the Coach ID is 1?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["4"], ["5"], ["1"], ["1"], ["1"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_Nvg2i_5.png", "TableImg_Ccnvd_7.png"], "original_data_index": 8333, "original_sql": "SELECT Coach_ID FROM coach WHERE Coach_name <> \"Joe Fabbri\" OR Gender = \"M\" OR \"Rank\" = 2 AND \"Coach_ID\" > 3 AND \"Club_ID\" >= 3 UNION ALL SELECT Coach_ID FROM player_coach WHERE \"Coach_ID\" = 1"} {"question": "Can you find the smallest flight ID and the corresponding company ID, considering flights associated with airports that are not Billund, or flights on January 29, 1964, or flights where the altitude is not more than 3650 and the ICAO code is not EBBR, the airport ID is greater than 2, and the airport name is Billund Airport, grouped by ICAO code, only including groups where the city is Akureyri, the company ID is less than 2, the airport name is not Ted Stevens Airport, the IATA code is BCN, the vehicle flight number is M2-F1 #61, or the velocity is at least 240 and the airport ID is not 3, or the pilot is Thompson and the altitude is not more than 3650, or the country is Netherlands and the ICAO code is LEBL?", "answer": {"columns": ["MIN(T1.id)", "company_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1", "2"], ["9", "11"], ["2", "3"], ["7", "11"], ["6", "6"], ["8", "13"], ["4", "4"], ["5", "5"], ["3", "4"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Ujj02_9.png", "TableImg_Tggqn_13.png"], "original_data_index": 8334, "original_sql": "SELECT MIN(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA <> \"BLL\" OR Date = \"January 29, 1964\" OR \"Altitude\" <= 3650.0 AND ICAO <> \"EBBR\" AND \"airport_id\" > 2 AND name = \"Billund Airport\" GROUP BY ICAO HAVING City = \"Akureyri\" AND company_id < 2 AND name <> \"Ted Stevens Airport\" AND IATA = \"BCN\" AND Vehicle_Flight_number = \"M2-F1 #61\" OR Velocity >= 240.0 AND airport_id <> 3 OR Pilot = \"Thompson\" AND Altitude <= 3650.0 OR Country = \"Netherlands\" AND ICAO = \"LEBL\""} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 3, excluding the IDs of school bus drivers with IDs less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Se9v3_12.png", "TableImg_D920j_5.png"], "original_data_index": 8335, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs from the driver table, but only those IDs that are 6 or greater, excluding any driver IDs that also appear in the school_bus table where those IDs are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_94i7x_12.png", "TableImg_Zqdt6_5.png"], "original_data_index": 8336, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs, excluding driver ID 12, are not also driver IDs excluding driver ID 4 that are associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I2c4q_12.png", "TableImg_54zzi_5.png"], "original_data_index": 8337, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the IDs of drivers with IDs less than 8, excluding those drivers who also have IDs other than 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nj9cc_12.png", "TableImg_1x4ev_5.png"], "original_data_index": 8338, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are exactly 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_19sjn_12.png", "TableImg_Zgq9o_5.png"], "original_data_index": 8339, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are both greater than 5 and present in the driver table, and also less than 10 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uhtlm_12.png", "TableImg_3v4i2_5.png"], "original_data_index": 8340, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me the creation dates that appear in both of these sets of votes: first, votes where either the phone number is at least 6209222712 or the contestant number isn't 2 and the creation date is \"2018-03-09 19:03:36\", and second, votes where either the contestant number is at least 3, or the state isn't \"CA\" and the creation date isn't \"2018-03-09 19:03:39\", or the phone number is at least 7148407040 and the vote ID isn't 3?", "answer": {"columns": ["created"], "index": [0, 1, 2], "data": [["2018-03-09 19:03:21"], ["2018-03-09 19:03:36"], ["2018-03-09 19:03:39"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_1zqmg_4.png", "TableImg_Wo839_4.png"], "original_data_index": 8341, "original_sql": "SELECT created FROM VOTES WHERE \"phone_number\" >= 6209222712 OR \"contestant_number\" <> 2 AND created = \"2018-03-09 19:03:36\" INTERSECT SELECT created FROM VOTES WHERE \"contestant_number\" >= 3 OR state <> \"CA\" AND created != \"2018-03-09 19:03:39\" OR \"phone_number\" >= 7148407040 AND \"vote_id\" != 3"} {"question": "Can you give me a list of People IDs, combining those from the people table where the birth date is not April 17, 1987 and the height is at least 205 cm, with those from the poker_player table where the Poker Player ID is 3, the number of final tables made is not 26, the earnings are no more than $189,233, and the People ID is greater than 5?", "answer": {"columns": ["People_ID"], "index": [0, 1], "data": [["1"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_5655c_7.png", "TableImg_1bdo1_5.png"], "original_data_index": 8343, "original_sql": "SELECT People_ID FROM people WHERE Birth_Date <> \"April 17, 1987\" AND \"Height\" >= 205.0 UNION ALL SELECT People_ID FROM poker_player WHERE \"Poker_Player_ID\" = 3 AND \"Final_Table_Made\" <> 26.0 AND \"Earnings\" <= 189233.0 AND \"People_ID\" > 5"} {"question": "Can you give me the writer, number of issues, and book ID for all books where either the number of issues is 1 and the book ID is 10 or greater, or the writer is not Dave Gibbons, combined with all books where either the title is not \"Bloody Mary : Lady Liberty\", the book ID is 5 or less, or the number of issues is greater than 12 and the writer is not Timothy Truman?", "answer": {"columns": ["Writer", "Issues", "Book_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["Timothy Truman", "6", "1"], ["Garth Ennis", "4", "2"], ["Garth Ennis", "4", "3"], ["Elaine Lee", "6", "4"], ["Howard Chaykin", "12", "5"], ["Christopher Hinz", "4", "6"], ["Christopher Hinz", "9", "8"], ["Michael Moorcock", "12", "9"], ["Christopher Moeller", "5", "10"], ["Timothy Truman", "6", "1"], ["Garth Ennis", "4", "2"], ["Garth Ennis", "4", "3"], ["Elaine Lee", "6", "4"], ["Howard Chaykin", "12", "5"], ["Christopher Hinz", "4", "6"], ["Dave Gibbons", "1", "7"], ["Christopher Hinz", "9", "8"], ["Michael Moorcock", "12", "9"], ["Christopher Moeller", "5", "10"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_Ocf35_10.png", "TableImg_U5l1u_10.png"], "original_data_index": 8332, "original_sql": "SELECT Writer, Issues, Book_ID FROM book WHERE \"Issues\" = 1.0 AND \"Book_ID\" >= 10 OR Writer <> \"Dave Gibbons\" UNION ALL SELECT Writer, Issues, Book_ID FROM book WHERE Title <> \"Bloody Mary : Lady Liberty\" OR \"Book_ID\" <= 5 OR \"Issues\" > 12.0 AND Writer != \"Timothy Truman\""} {"question": "Can you give me a list of driver IDs that are not equal to 3 and are also less than or equal to 7, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L4586_12.png", "TableImg_Gybgv_5.png"], "original_data_index": 8344, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the Book IDs from the book table, excluding those where the title is \"Gemini Blood\" and the Book ID is not 7, or where the writer is not \"Christopher Hinz\", except for those Book IDs found in the publication table where the price is less than or equal to 15000000 and the publisher is \"Bertelsmann\" and the Publication ID is 4 and the Book ID is less than 3, or the publication date is not \"March 2008\"?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["6"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_Kx4hi_10.png", "TableImg_Rby7y_7.png"], "original_data_index": 8345, "original_sql": "SELECT Book_ID FROM book WHERE Title != \"Gemini Blood\" AND \"Book_ID\" <> 7 OR Writer != \"Christopher Hinz\" EXCEPT SELECT Book_ID FROM publication WHERE \"Price\" <= 15000000.0 AND Publisher = \"Bertelsmann\" AND \"Publication_ID\" = 4 AND \"Book_ID\" < 3 OR Publication_Date <> \"March 2008\""} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are not 8, and also including driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ou2y9_12.png", "TableImg_Yeywn_5.png"], "original_data_index": 8347, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 9, but exclude any driver IDs greater than 7 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ah921_12.png", "TableImg_Yrqef_5.png"], "original_data_index": 8346, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "How many school IDs are associated with each driver whose ID is less than 10, who has worked for 10 years or less, and is not full-time, where the school ID is 4 or greater, excluding the counts and driver IDs for those who have worked less than 8 years?", "answer": {"columns": ["COUNT(School_ID)", "Driver_ID"], "index": [0], "data": [["0", ""]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_Wrysu_5.png", "TableImg_T8u54_5.png"], "original_data_index": 8348, "original_sql": "SELECT COUNT(School_ID), Driver_ID FROM school_bus WHERE \"Years_Working\" <= 10 AND If_full_time <> \"T\" AND \"Driver_ID\" < 10 AND \"School_ID\" >= 4 EXCEPT SELECT COUNT(School_ID), Driver_ID FROM school_bus WHERE \"Years_Working\" < 8"} {"question": "Can you give me a list of driver IDs that are less than 12 from the driver table, combined with a list of driver IDs that are not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jguix_12.png", "TableImg_Pnj7s_5.png"], "original_data_index": 8349, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are both greater than or equal to 7 in the driver table and less than 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R0pke_12.png", "TableImg_Dwqj1_5.png"], "original_data_index": 8350, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are not equal to 5, excluding any driver IDs that are less than or equal to 3 and also appear in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Owr5s_12.png", "TableImg_Kdcsm_5.png"], "original_data_index": 8351, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 10, and those from the school bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gq2mb_12.png", "TableImg_Rdljh_5.png"], "original_data_index": 8353, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you tell me the street address and highest branch ID for branches that either have a branch ID of 7 and aren't on Brampton Road and aren't named Brooke Greville, or are in Oxford, or didn't open in 2014 and have a membership amount of 7, combined with the street address and highest branch ID for branches that either opened in 2012 and have a branch ID of 8 or higher, or aren't on Valleys Place, or don't have a membership amount of 56 and aren't named Brooke Greville?", "answer": {"columns": ["Address_road", "MAX(Branch_ID)"], "index": [0], "data": [["Glebe Street", "8"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_2ydt6_8.png", "TableImg_59xq9_8.png"], "original_data_index": 8352, "original_sql": "SELECT Address_road, MAX(Branch_ID) FROM branch WHERE \"Branch_ID\" = 7 AND Address_road <> \"Brampton Road\" AND Name <> \"Brooke Greville\" OR City = \"Oxford\" OR Open_year <> \"2014\" AND membership_amount = \"7\" UNION SELECT Address_road, MAX(Branch_ID) FROM branch WHERE Open_year = \"2012\" AND \"Branch_ID\" >= 8 OR Address_road <> \"Valleys Place\" OR membership_amount <> \"56\" AND Name != \"Brooke Greville\""} {"question": "Can you give me the Club IDs that are both from clubs in Korea or clubs not named Djurg\u00e5rdens IF that started after 2001 or have an ID greater than 2, and also associated with coaches having an ID of 5 or greater?", "answer": {"columns": ["Club_ID"], "index": [0], "data": [["1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_0ierw_6.png", "TableImg_1uu5i_5.png"], "original_data_index": 8342, "original_sql": "SELECT Club_ID FROM club WHERE Region = \"Korea\" OR Club_name != \"Djurg\u00e5rdens IF\" AND \"Start_year\" > 2001 OR \"Club_ID\" > 2 INTERSECT SELECT Club_ID FROM coach WHERE \"Coach_ID\" >= 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9izhk_12.png", "TableImg_Asfao_5.png"], "original_data_index": 8355, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of ranks from match results, combined with a list of ranks from players who are not sponsored by Churchill, are retired, or have a different number of votes than 7190, are not female, don't live in Winnipeg, aren't named Fiona Shiells, or have a player ID other than 1, and whose rank is \"2nd\"?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["1st"], ["2nd"], ["3rd"], ["4th"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Fpdlu_6.png", "TableImg_Pnufr_14.png"], "original_data_index": 8356, "original_sql": "SELECT Rank FROM match_result WHERE \"Big_Silver\" >= 7 UNION SELECT Rank FROM player WHERE Rank = \"2nd\" AND Sponsor_name <> \"Churchill\" AND Occupation = \"Retired\" OR \"Votes\" != 7190 OR Gender != \"F\" AND Residence <> \"Winnipeg\" OR Player_name != \"Fiona Shiells\" AND \"Player_ID\" != 1"} {"question": "Can you list the Aircraft IDs that are greater than 3 from the aircraft table, and combine that with a list of Aircraft IDs that are not equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xphqr_5.png", "TableImg_6o85y_4.png"], "original_data_index": 8354, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What is the sum of document IDs from the Documents table where the document type code is not \"CD\" or the receipt number is not \"37\", combined with the sum of document IDs from the Draft_Copies table where the copy number is greater than or equal to 6, or the document ID is not 12, or the draft number is 9?", "answer": {"columns": ["SUM(document_id)"], "index": [0, 1], "data": [["175"], ["74"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Tp0sy_15.png", "TableImg_Dfohd_8.png"], "original_data_index": 8357, "original_sql": "SELECT SUM(document_id) FROM Documents WHERE document_type_code != \"CD\" OR receipt_number <> \"37\" UNION ALL SELECT SUM(document_id) FROM Draft_Copies WHERE \"copy_number\" >= 6 OR \"document_id\" != 12 OR \"draft_number\" = 9"} {"question": "Can you give me a list of aircraft IDs that are less than 5, excluding any aircraft IDs greater than 5 that are associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dbdb5_5.png", "TableImg_2up3r_4.png"], "original_data_index": 8361, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 5, combined with all the driver IDs from the school_bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hsktf_12.png", "TableImg_Nvw1n_5.png"], "original_data_index": 8358, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list all driver IDs from the driver table that are less than or equal to 2, and combine that with a list of all driver IDs from the school_bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7cryk_12.png", "TableImg_7g6zk_5.png"], "original_data_index": 8360, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me the phone number, vote ID, and creation date from the votes table, including entries where the vote ID is not 2 or the contestant number is less than 5, combined with entries where the creation date is not 2018-03-09 19:03:36, the phone number is at least 5112677315 and the vote ID is 1, or the contestant number is 2 and the state is not NJ?", "answer": {"columns": ["phone_number", "vote_id", "created"], "index": [0, 1, 2, 3, 4], "data": [["7182887233", "1", "2018-03-09 19:03:21"], ["7148407040", "2", "2018-03-09 19:03:36"], ["6209222712", "3", "2018-03-09 19:03:39"], ["5112677315", "5", "2018-03-09 19:03:40"], ["7182887233", "1", "2018-03-09 19:03:21"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_I4zin_4.png", "TableImg_Qbh2l_4.png"], "original_data_index": 8359, "original_sql": "SELECT phone_number, vote_id, created FROM VOTES WHERE \"vote_id\" <> 2 OR \"contestant_number\" < 5 UNION ALL SELECT phone_number, vote_id, created FROM VOTES WHERE created != \"2018-03-09 19:03:36\" AND \"phone_number\" >= 5112677315 AND \"vote_id\" = 1 OR \"contestant_number\" = 2 AND state != \"NJ \""} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table, and all driver IDs except 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xpw7j_12.png", "TableImg_0c17l_5.png"], "original_data_index": 8362, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me the driver IDs that are both less than 10 and also equal to 7, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ci7pg_12.png", "TableImg_G8dna_5.png"], "original_data_index": 8364, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 5, combined with a list of driver IDs from the school_bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ys4vw_12.png", "TableImg_Cpics_5.png"], "original_data_index": 8363, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are both not equal to 5 and also less than 10, considering only those IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4bi45_12.png", "TableImg_Klaqu_5.png"], "original_data_index": 8365, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 2 or greater, and those from the school bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K4ofj_12.png", "TableImg_Iqs6s_5.png"], "original_data_index": 8368, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me the Aircraft IDs that are equal to 5 in the aircraft table, excluding any Aircraft IDs less than or equal to 1 that appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O0fw9_5.png", "TableImg_Fdphz_4.png"], "original_data_index": 8367, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me the School IDs and endowment IDs for endowments that either don't have an endowment ID of 6 or have a donator named \"Com. Dom. En Estados Unidos\", but exclude any School IDs and endowment IDs where the donator name is not \"Com. Dom. En Estados Unidos\"?", "answer": {"columns": ["School_id", "endowment_id"], "index": [0], "data": [["6", "9"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_6lq05_11.png", "TableImg_Pvd6m_11.png"], "original_data_index": 8366, "original_sql": "SELECT School_id, endowment_id FROM endowment WHERE \"endowment_id\" <> 6 OR donator_name = \"Com. Dom. En Estados Unidos\" EXCEPT SELECT School_id, endowment_id FROM endowment WHERE donator_name <> \"Com. Dom. En Estados Unidos\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 2, and those from the school bus table that are equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_756xu_12.png", "TableImg_5g0c9_5.png"], "original_data_index": 8369, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs that are also equal to 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oete5_12.png", "TableImg_Jebk1_5.png"], "original_data_index": 8371, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me the Comptroller, Governor, Year, US Senator, Lieutenant Governor, Party, and Attorney General from the partyparty table where the Comptroller isn't Alan Hevesi, the Lieutenant Governor is Dennis Mehiel, the US Senator isn't Hillary Rodham Clinton, and the Attorney General isn't Eliot Spitzer, or where the Party ID is less than 5 and the Year is before 2006 and the Governor isn't Betsy McCaughey Ross, but only if they also meet the criteria of not having David Paterson as Lieutenant Governor, or not having Alan Hevesi as Comptroller and not having Andrew Cuomo as Attorney General, or not having the year as 2006 and not having Hillary Rodham Clinton as US Senator, or having a Party ID of 2 or less and not being part of the Liberal party?", "answer": {"columns": ["Comptroller", "Governor", "Year", "US_Senate", "Lieutenant_Governor", "Party", "Attorney_General"], "index": [0, 1, 2], "data": [["Alan Hevesi", "Carl McCall", "2002", "(no election)", "Dennis Mehiel", "Democratic", "Eliot Spitzer"], ["Carl McCall", "Peter Vallone", "1998", "Charles Schumer", "Sandra Frankel", "Democratic", "Eliot Spitzer"], ["John Faso", "Tom Golisano", "2002", "(no election)", "Mary Donohue", "Independence", "Eliot Spitzer"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Ap8ge_7.png", "TableImg_09ca1_7.png"], "original_data_index": 8374, "original_sql": "SELECT Comptroller, Governor, Year, US_Senate, Lieutenant_Governor, Party, Attorney_General FROM party WHERE Comptroller <> \"Alan Hevesi\" AND Lieutenant_Governor = \"Dennis Mehiel\" AND US_Senate <> \"Hillary Rodham Clinton\" AND Attorney_General != \"Eliot Spitzer\" OR \"Party_ID\" < 5 AND \"Year\" < 2006.0 AND Governor != \"Betsy McCaughey Ross\" INTERSECT SELECT Comptroller, Governor, Year, US_Senate, Lieutenant_Governor, Party, Attorney_General FROM party WHERE Lieutenant_Governor <> \"David Paterson\" OR Comptroller <> \"Alan Hevesi\" AND Attorney_General <> \"Andrew Cuomo\" OR \"Year\" != 2006.0 AND US_Senate <> \"Hillary Rodham Clinton\" OR \"Party_ID\" <= 2 AND Party <> \"Liberal\""} {"question": "Which driver IDs are both greater than 6 and appear in the driver table, and also greater than or equal to 3 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5zlnk_12.png", "TableImg_K36yh_5.png"], "original_data_index": 8376, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are not equal to 2 from the driver table, but are also less than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqhaj_12.png", "TableImg_Mbu6g_5.png"], "original_data_index": 8377, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What is the average student ID for students with allergies other than nuts, combined with the average student ID for students whose advisor number is less than or equal to 8722, student ID is greater than 1011, first name is not Stacy, and last name is Kumar?", "answer": {"columns": ["AVG(StuID)"], "index": [0, 1], "data": [["1014.7708333333"], [""]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_26ktq_59.png", "TableImg_Al0uf_34.png"], "original_data_index": 8375, "original_sql": "SELECT AVG(StuID) FROM Has_Allergy WHERE Allergy != \"Nuts\" UNION ALL SELECT AVG(StuID) FROM Student WHERE \"Advisor\" <= 8722 AND \"StuID\" > 1011 AND Fname <> \"Stacy\" AND LName = \"Kumar\""} {"question": "Can you give me a list of driver IDs that are less than 4 from the driver table, combined with a list of driver IDs that are not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q46z0_12.png", "TableImg_Msech_5.png"], "original_data_index": 8378, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list all the driver IDs that are less than 3, combining the unique IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Daqgy_12.png", "TableImg_Gtnre_5.png"], "original_data_index": 8379, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 7, and those from the school_bus table where the ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xdrxg_12.png", "TableImg_Hzpsc_5.png"], "original_data_index": 8380, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are less than 6 and also not equal to 3, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U1nz2_12.png", "TableImg_Mwagv_5.png"], "original_data_index": 8381, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the driver IDs that are less than or equal to 10 from the driver table, and also list the driver IDs that are less than or equal to 7 from the school bus table, combining the two lists into one?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M604m_12.png", "TableImg_1cxsg_5.png"], "original_data_index": 8382, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which aircraft IDs are both greater than or equal to 2 and present in the aircraft table, and also less than or equal to 5 and present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7l092_5.png", "TableImg_51m8h_4.png"], "original_data_index": 8384, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding ID 2, and then from the airport_aircraft table including only those with IDs up to 5, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C03ku_5.png", "TableImg_Ldh21_4.png"], "original_data_index": 8383, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of aircraft IDs that are less than 3, excluding those aircraft IDs that are less than or equal to 1 and are also associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2f8sh_5.png", "TableImg_Li7kg_4.png"], "original_data_index": 8385, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me the document IDs from the Documents table, excluding those in the Draft_Copies table, where the Documents meet at least one of these conditions: the receipt date isn't April 3rd, 2015 at 9:36 AM, the document ID is greater than 12, or the document type isn't \"Hard Drive\" and the document status isn't \"overdue\"; and excluding the document IDs from Draft_Copies where the draft number is greater than 20 and the document ID isn't 12?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Hwtwz_15.png", "TableImg_4kmxe_8.png"], "original_data_index": 8390, "original_sql": "SELECT document_id FROM Documents WHERE receipt_date != \"2015-04-03 09:36:19\" OR \"document_id\" > 12 OR document_type_code <> \"Hard Drive\" AND document_status_code <> \"overdue\" EXCEPT SELECT document_id FROM Draft_Copies WHERE \"draft_number\" > 20 AND \"document_id\" != 12"} {"question": "Could you list the name, distance, and aid for all aircraft that either have a distance of 6475, are named \"Lockheed L1011\", or have an aid of 13, and also include the name, distance, and aid for all aircraft named \"Boeing 777-300\"?", "answer": {"columns": ["name", "distance", "aid"], "index": [0, 1, 2, 3], "data": [["Lockheed L1011", "6900", "9"], ["Boeing 767-400ER", "6475", "12"], ["Airbus A320", "2605", "13"], ["Boeing 777-300", "6441", "11"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_6ftfl_16.png", "TableImg_1tgn0_16.png"], "original_data_index": 8389, "original_sql": "SELECT name, distance, aid FROM aircraft WHERE \"distance\" = 6475 OR name = \"Lockheed L1011\" OR \"aid\" = 13 UNION ALL SELECT name, distance, aid FROM aircraft WHERE name = \"Boeing 777-300\""} {"question": "Which aircraft IDs are present in the aircraft table, excluding aircraft ID 3, and also have an aircraft ID of 2 or greater in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7nz7i_5.png", "TableImg_Lw1p1_4.png"], "original_data_index": 8392, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 5, combined with a list of driver IDs from the school_bus table that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ngsk_12.png", "TableImg_Gtxym_5.png"], "original_data_index": 8393, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 5 with those from the school bus table excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0p797_12.png", "TableImg_Axvhw_5.png"], "original_data_index": 8394, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are both equal to 9 in the driver table and less than 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dporp_12.png", "TableImg_Fnmka_5.png"], "original_data_index": 8395, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs less than 7 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Icg84_12.png", "TableImg_7yw6l_5.png"], "original_data_index": 8396, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list all driver IDs that are less than 3, including those from the driver table and the school bus table, but only showing each ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqebt_12.png", "TableImg_Sm5fy_5.png"], "original_data_index": 8397, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of Driver IDs, including those from the driver table that are greater than 1 and those from the school_bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lxhf0_12.png", "TableImg_2d5zw_5.png"], "original_data_index": 8398, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 11, combined with a list of driver IDs from the school_bus table where the ID is not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tyd4p_12.png", "TableImg_X95du_5.png"], "original_data_index": 8399, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me the role codes that are common between employees who aren't named Erling or don't have \"f\" in other details, or whose role code isn't MG and whose employee ID is less than 7, and roles where the description is \"Proof Manager\" or the role code isn't ED?", "answer": {"columns": ["role_code"], "index": [0, 1], "data": [["PR"], ["PT"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_Fix11_6.png", "TableImg_Jdf8s_4.png"], "original_data_index": 8400, "original_sql": "SELECT role_code FROM Employees WHERE employee_name != \"Erling\" AND other_details != \"f\" OR role_code != \"MG\" AND \"employee_id\" < 7 INTERSECT SELECT role_code FROM Roles WHERE role_description = \"Proof Manager\" OR role_code != \"ED\""} {"question": "What are the highest product ID and the number of stores, considering only stores that aren't store 2 or products with an ID greater than 6, and also considering only stores that aren't store 1 or products with an ID less than 3?", "answer": {"columns": ["MAX(Product_ID)", "COUNT(Store_ID)"], "index": [0, 1], "data": [["6", "12"], ["6", "12"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Vamit_15.png", "TableImg_Ylhiu_15.png"], "original_data_index": 8391, "original_sql": "SELECT MAX(Product_ID), COUNT(Store_ID) FROM store_product WHERE \"Store_ID\" != 2 OR \"Product_ID\" > 6 UNION ALL SELECT MAX(Product_ID), COUNT(Store_ID) FROM store_product WHERE \"Store_ID\" <> 1 OR \"Product_ID\" < 3"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 4, but not including any driver IDs that are also in the school bus list and are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pznl2_12.png", "TableImg_Ydnde_5.png"], "original_data_index": 8402, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 9, and those from the school bus table that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G4ddp_12.png", "TableImg_Zyq27_5.png"], "original_data_index": 8403, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list whether the bus drivers are full-time if their ID is 10 or less, and also list whether the bus drivers are full-time if they are not marked as \"T\"?", "answer": {"columns": ["If_full_time"], "index": [0, 1], "data": [["F"], ["T"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_37ogt_5.png", "TableImg_Kes1e_5.png"], "original_data_index": 8404, "original_sql": "SELECT If_full_time FROM school_bus WHERE \"Driver_ID\" <= 10 UNION SELECT If_full_time FROM school_bus WHERE If_full_time != \"T\""} {"question": "Can you list the department IDs and temporary acting status for all entries in the management table where the department ID is not 15, and also include the department IDs and temporary acting status for all entries where the department ID is greater than 7?", "answer": {"columns": ["department_ID", "temporary_acting"], "index": [0, 1, 2, 3, 4, 5], "data": [["2", "Yes"], ["2", "Yes"], ["7", "No"], ["11", "No"], ["11", "No"], ["15", "Yes"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_1q2gg_5.png", "TableImg_F1t82_5.png"], "original_data_index": 8405, "original_sql": "SELECT department_ID, temporary_acting FROM management WHERE \"department_ID\" != 15 UNION ALL SELECT department_ID, temporary_acting FROM management WHERE \"department_ID\" > 7"} {"question": "What is the highest model name from the car names table where the MakeId is less than or equal to 26, combined with the highest model name from the model list table where the ModelId is less than or equal to 20 or the model name is not \"volvo\"?", "answer": {"columns": ["MAX(Model)"], "index": [0], "data": [["volkswagen"]]}, "table_names": "['car_names' 'model_list']", "table_image_ids": ["TableImg_3g2pm_406.png", "TableImg_Jalx7_36.png"], "original_data_index": 8406, "original_sql": "SELECT MAX(Model) FROM car_names WHERE \"MakeId\" <= 26 UNION SELECT MAX(Model) FROM model_list WHERE \"ModelId\" <= 20 OR Model <> \"volvo\""} {"question": "Which driver IDs, that are at least 6, are not also school bus driver IDs that are at least 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2d4zb_12.png", "TableImg_Omzkq_5.png"], "original_data_index": 8407, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are less than 4 from the driver table, combined with a list of driver IDs that are exactly 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Huxws_12.png", "TableImg_R8a5p_5.png"], "original_data_index": 8408, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those driver IDs that are also less than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hoi71_12.png", "TableImg_Is16a_5.png"], "original_data_index": 8401, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the student ID, major, city code, and first name for all students, excluding those with a student ID greater than 1034, but including any student who either has a major of 600 or higher, or a first name other than Jun and a student ID of 1015 or higher, or an age of 20 or younger and an advisor number of 2311 or lower, or a last name other than Simms, or is male and not from PIT?", "answer": {"columns": ["StuID", "Major", "city_code", "Fname"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32], "data": [["1001", "600", "BAL", "Linda"], ["1002", "600", "HKG", "Tracy"], ["1003", "600", "WAS", "Shiela"], ["1004", "600", "CHI", "Dinesh"], ["1005", "600", "YYZ", "Paul"], ["1006", "600", "BAL", "Andy"], ["1007", "600", "PIT", "Lisa"], ["1008", "600", "BAL", "Jandy"], ["1009", "600", "YYZ", "Eric"], ["1010", "600", "HOU", "Derek"], ["1011", "600", "PHL", "David"], ["1012", "600", "PIT", "Steven"], ["1014", "600", "DAL", "Charles"], ["1015", "600", "HKG", "Susan"], ["1016", "600", "DET", "Mark"], ["1017", "600", "LON", "Bruce"], ["1018", "600", "PIT", "Michael"], ["1019", "600", "WAS", "Arthur"], ["1020", "520", "NYC", "Ian"], ["1021", "520", "NYC", "George"], ["1022", "540", "PHL", "Michael"], ["1023", "520", "NYC", "David"], ["1024", "540", "BAL", "Stacy"], ["1025", "520", "PIT", "Mark"], ["1026", "520", "HKG", "Eric"], ["1027", "520", "LOS", "Paul"], ["1028", "550", "ROC", "Eric"], ["1029", "100", "PEK", "Jun"], ["1030", "550", "SFO", "Lisa"], ["1031", "550", "PHL", "Sarah"], ["1032", "550", "ATL", "Eric"], ["1033", "550", "NAR", "William"], ["1034", "50", "BOS", "Eric"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_77n0w_34.png", "TableImg_Dgjsl_34.png"], "original_data_index": 8412, "original_sql": "SELECT StuID, Major, city_code, Fname FROM Student WHERE \"Major\" >= 600 OR Fname != \"Jun\" AND \"StuID\" >= 1015 OR \"Age\" <= 20 AND \"Advisor\" <= 2311 OR LName != \"Simms\" OR Sex = \"M\" AND city_code != \"PIT\" EXCEPT SELECT StuID, Major, city_code, Fname FROM Student WHERE \"StuID\" > 1034"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is less than or equal to 7, combined with a list of driver IDs from the school_bus table where the ID is not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sr1uy_12.png", "TableImg_4ewkl_5.png"], "original_data_index": 8413, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including driver ID 6 from the driver table and all driver IDs less than 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L7t70_12.png", "TableImg_Jygd0_5.png"], "original_data_index": 8414, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are greater than 5, but only include those that are not also driver IDs greater than or equal to 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D31qf_12.png", "TableImg_N1zdv_5.png"], "original_data_index": 8415, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 2, that are in the aircraft table but not in the airport_aircraft table, where only aircraft IDs greater than 2 are considered in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qbql3_5.png", "TableImg_H95uz_4.png"], "original_data_index": 8416, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Could you list the property IDs that either have feature ID 3 or are not of the 'Other' property type, have a property ID greater than 10, have a value other than \"None\" for oth_feature_3, and have a value other than \"None\" for fld_feature_1?", "answer": {"columns": ["property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["15"], ["6"], ["4"], ["9"], ["6"], ["6"], ["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"], ["15"]]}, "table_names": "['Other_Property_Features' 'Properties']", "table_image_ids": ["TableImg_H9q1w_15.png", "TableImg_46llr_15.png"], "original_data_index": 8417, "original_sql": "SELECT property_id FROM Other_Property_Features WHERE \"feature_id\" = 3 UNION ALL SELECT property_id FROM Properties WHERE property_type_code != \"Other\" OR \"property_id\" > 10 AND oth_feature_3 != \"None\" AND fld_feature_1 <> \"None\""} {"question": "Can you give me a list of driver IDs, excluding those equal to 4, that are greater than 8 and appear in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Strjx_12.png", "TableImg_Lhrm0_5.png"], "original_data_index": 8418, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are greater than 3, excluding those driver IDs that are also less than or equal to 10 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V3pxz_12.png", "TableImg_6e19s_5.png"], "original_data_index": 8419, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list all aircraft IDs, including aircraft ID 1 from the aircraft table and all aircraft IDs except 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O8l40_5.png", "TableImg_Cipit_4.png"], "original_data_index": 8420, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list all the aircraft IDs, including those from the aircraft table that are greater than or equal to 4 and those from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_25sop_5.png", "TableImg_T1jt3_4.png"], "original_data_index": 8421, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Which driver IDs, excluding driver ID 6, are present in the driver table but not in the school_bus table, also excluding driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U4z2u_12.png", "TableImg_X77au_5.png"], "original_data_index": 8422, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the highest album ID, excluding the album titled \"House of Pain\", and what is the highest genre ID when the ID is 16?", "answer": {"columns": ["MAX(id)"], "index": [0, 1], "data": [["347"], ["16"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Lhp01_347.png", "TableImg_Fanqi_25.png"], "original_data_index": 8425, "original_sql": "SELECT MAX(id) FROM albums WHERE title <> \"House of Pain\" UNION ALL SELECT MAX(id) FROM genres WHERE \"id\" = 16"} {"question": "Can you show me the market value in billions and years working for companies, grouped by profits in billions, but only for groups where sales in billions are at least 433.5, or the years working are at least 1 and profits in billions are greater than 21.5, or the people ID is less than 4?", "answer": {"columns": ["Market_Value_in_Billion", "Year_working"], "index": [0, 1, 2], "data": [["201.9", "3"], ["147.4", "2"], ["159.8", "1"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_68kd7_19.png", "TableImg_7228y_5.png"], "original_data_index": 8428, "original_sql": "SELECT T1.Market_Value_in_Billion, T2.Year_working FROM company as T1 JOIN employment as T2 ON T1.Company_ID == T2.Company_ID GROUP BY Profits_in_Billion HAVING Sales_in_Billion >= 433.5 OR Year_working >= 1 AND Profits_in_Billion > 21.5 OR People_ID < 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 10, and those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E4oxe_12.png", "TableImg_6l6zq_5.png"], "original_data_index": 8429, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you show me the maximum disk loading and aircraft name for all aircraft where either the maximum gross weight is not 123,500 lb (56,000 kg) or the total disk area is 497 ft\u00b2 (46.2 m\u00b2) and the description is not \"Heavy-lift helicopter\", combined with the maximum disk loading and aircraft name for all aircraft where the total disk area is 872 ft\u00b2 (81.1 m\u00b2) or the aircraft ID is greater than 5 or the maximum disk loading is not 2.6 lb/ft\u00b2 (14 kg/m\u00b2) or the description is \"Light utility helicopter\" and the aircraft name is not \"Mil Mi-26\"?", "answer": {"columns": ["Max_disk_Loading", "Aircraft"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2.6 lb/ft\u00b2 (14 kg/m\u00b2)", "Robinson R-22"], ["3.7 lb/ft\u00b2 (18 kg/m\u00b2)", "Bell 206B3 JetRanger"], ["8.8 lb/ft\u00b2 (43 kg/m\u00b2)", "CH-47D Chinook"], ["15 lb/ft\u00b2 (72 kg/m\u00b2)", "CH-53E Super Stallion"], ["2.6 lb/ft\u00b2 (14 kg/m\u00b2)", "Robinson R-22"], ["3.7 lb/ft\u00b2 (18 kg/m\u00b2)", "Bell 206B3 JetRanger"], ["8.8 lb/ft\u00b2 (43 kg/m\u00b2)", "CH-47D Chinook"], ["14.5 lb/ft\u00b2 (71 kg/m\u00b2)", "Mil Mi-26"], ["15 lb/ft\u00b2 (72 kg/m\u00b2)", "CH-53E Super Stallion"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Yj4yy_5.png", "TableImg_Imz7i_5.png"], "original_data_index": 8430, "original_sql": "SELECT Max_disk_Loading, Aircraft FROM aircraft WHERE Max_Gross_Weight <> \"123,500 lb (56,000 kg)\" OR Total_disk_area = \"497 ft\u00b2 (46.2 m\u00b2)\" AND Description <> \"Heavy-lift helicopter\" UNION ALL SELECT Max_disk_Loading, Aircraft FROM aircraft WHERE Total_disk_area = \"872 ft\u00b2 (81.1 m\u00b2)\" OR \"Aircraft_ID\" > 5 OR Max_disk_Loading <> \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" OR Description = \"Light utility helicopter\" AND Aircraft != \"Mil Mi-26\""} {"question": "Which item titles are not \"cup\" and also have an i_id that is not 1 or are not named \"blue hoodie\"?", "answer": {"columns": ["title"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["apple"], ["avocado"], ["blue hoodie"], ["comb"], ["orange"], ["pear"], ["shampoo"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_G1jnu_8.png", "TableImg_7j8yw_8.png"], "original_data_index": 8433, "original_sql": "SELECT title FROM item WHERE title != \"cup\" INTERSECT SELECT title FROM item WHERE \"i_id\" <> 1 OR title != \"blue hoodie\""} {"question": "Which driver IDs, other than 9, are present in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L68uf_12.png", "TableImg_7tel3_5.png"], "original_data_index": 8434, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs less than or equal to 6, excluding any driver IDs that are not equal to 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4k6h1_12.png", "TableImg_M9a5q_5.png"], "original_data_index": 8435, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are both not equal to 5 and also less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ckepm_12.png", "TableImg_Movjj_5.png"], "original_data_index": 8436, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the aircraft IDs from the aircraft table that are greater than or equal to 4, and combine that with a list of aircraft IDs from the airport_aircraft table that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_848uy_5.png", "TableImg_Eg2ym_4.png"], "original_data_index": 8437, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 4, but then remove any aircraft IDs from that list that also appear in the airport_aircraft table with an ID of 3 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uxkhd_5.png", "TableImg_Trgce_4.png"], "original_data_index": 8432, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of store IDs that are either located in a city mall or sell products other than product ID 6?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_Bkbqg_5.png", "TableImg_Jv81e_15.png"], "original_data_index": 8440, "original_sql": "SELECT Store_ID FROM store WHERE Type = \"City Mall\" UNION SELECT Store_ID FROM store_product WHERE \"Product_ID\" != 6"} {"question": "Can you give me a list of driver IDs, excluding driver ID 1 from the driver table, combined with a list of driver IDs, excluding driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xf3nb_12.png", "TableImg_9p7jy_5.png"], "original_data_index": 8441, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you show me the sales in billions, industry, largest company name, number of companies, smallest company ID, number of profitable companies, and largest headquarters for all companies, first excluding those in the banking industry, and then including only those with profits of 21.5 billion or less?", "answer": {"columns": ["Sales_in_Billion", "Industry", "MAX(Name)", "COUNT(Assets_in_Billion)", "MIN(Company_ID)", "COUNT(Profits_in_Billion)", "MAX(Headquarters)"], "index": [0, 1], "data": [["433.5", "Oil and gas", "Walmart", "12", "1", "12", "USA"], ["110.8", "Banking", "Wells Fargo", "13", "2", "13", "USA"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_94db6_19.png", "TableImg_Tpsv5_19.png"], "original_data_index": 8442, "original_sql": "SELECT Sales_in_Billion, Industry, MAX(Name), COUNT(Assets_in_Billion), MIN(Company_ID), COUNT(Profits_in_Billion), MAX(Headquarters) FROM company WHERE Industry != \"Banking\" UNION ALL SELECT Sales_in_Billion, Industry, MAX(Name), COUNT(Assets_in_Billion), MIN(Company_ID), COUNT(Profits_in_Billion), MAX(Headquarters) FROM company WHERE \"Profits_in_Billion\" <= 21.5"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 8, and those from the school bus table with driver IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z2v9u_12.png", "TableImg_Ggrnv_5.png"], "original_data_index": 8443, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 2 or greater, and those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rli5z_12.png", "TableImg_U54z1_5.png"], "original_data_index": 8444, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Could you please list the draft numbers and document IDs that appear both in the Document_Drafts table where the draft details are not \"a\" and the draft number is greater than 10, and in the Draft_Copies table where the draft number is greater than or equal to 9 and the document ID is 10?", "answer": {"columns": ["draft_number", "document_id"], "index": [0], "data": [["20", "10"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_Ikztx_15.png", "TableImg_Xicil_8.png"], "original_data_index": 8445, "original_sql": "SELECT draft_number, document_id FROM Document_Drafts WHERE draft_details != \"a\" AND \"draft_number\" > 10 INTERSECT SELECT draft_number, document_id FROM Draft_Copies WHERE \"draft_number\" >= 9 AND \"document_id\" = 10"} {"question": "Can you give me the property type codes that appear in both the list of properties with certain feature combinations, price ranges, and address details, and the list of property types excluding \"Other, to be determined\" and \"Apartment\"?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3, 4], "data": [["Apartment"], ["Field"], ["House"], ["Other"], ["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Zl1hj_15.png", "TableImg_W182y_5.png"], "original_data_index": 8446, "original_sql": "SELECT property_type_code FROM Properties WHERE apt_feature_2 != \"est\" OR shp_feature_1 <> \"None\" AND fld_feature_1 = \"None\" AND hse_feature_2 <> \"None\" OR apt_feature_1 <> \"et\" OR date_on_market <> \"1986-12-31 10:05:32\" AND oth_feature_2 = \"None\" OR \"buyer_offered_price\" < 0.0 AND property_type_code <> \"Apartment\" OR hse_feature_3 <> \"None\" OR oth_feature_1 <> \"None\" AND \"property_id\" <> 3 AND other_property_details = \"None\" AND date_sold != \"1997-01-07 19:52:45\" AND property_address <> \"986 Hagenes Drives Draketon, UT 83411-3393\" AND fld_feature_2 != \"None\" AND shp_feature_3 <> \"None\" OR hse_feature_1 <> \"None\" AND \"vendor_requested_price\" <> 6713620.9 AND property_name != \"parc coliseum\" INTERSECT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description <> \"Other, to be determined.\" OR property_type_code != \"Apartment\""} {"question": "Which aircraft IDs, excluding aircraft ID 2, are also aircraft IDs that are greater than or equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dh0y7_5.png", "TableImg_D5rmx_4.png"], "original_data_index": 8447, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of properties, including their apt_feature_1, the minimum oth_feature_1, property_id, the maximum property_type_code, the minimum apt_feature_2, fld_feature_2, date_sold, the average shp_feature_2, apt_feature_3, shp_feature_1, fld_feature_3, the count of room_count, hse_feature_1, agreed_selling_price, other_property_details, property_address, fld_feature_1, the maximum oth_feature_3, the minimum vendor_requested_price, the sum of property_name, the count of hse_feature_3, the maximum shp_feature_3, and buyer_offered_price, considering properties where the property_id is less than or equal to 7, or where certain feature fields and details don't have specific values like \"None\", \"Field\", or specific numbers and dates, and can you combine this with a similar list of properties where different feature fields, details, and dates don't match certain values or fall within specific criteria?", "answer": {"columns": ["apt_feature_1", "MIN(oth_feature_1)", "property_id", "MAX(property_type_code)", "MIN(apt_feature_2)", "fld_feature_2", "date_sold", "AVG(shp_feature_2)", "apt_feature_3", "shp_feature_1", "fld_feature_3", "COUNT(room_count)", "hse_feature_1", "agreed_selling_price", "other_property_details", "property_address", "fld_feature_1", "MAX(oth_feature_3)", "MIN(vendor_requested_price)", "SUM(property_name)", "COUNT(hse_feature_3)", "MAX(shp_feature_3)", "buyer_offered_price"], "index": [0], "data": [["aut", "", "15", "Shop", "adipisci", "", "1984-02-01 19:54:54", "", "", "", "", "15", "", "2574", "", "986 Hagenes Drives\nDraketon, UT 83411-3393", "", "", "13.4715", "0", "0", "", "27537286"]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_6cyce_15.png", "TableImg_57zxs_15.png"], "original_data_index": 8448, "original_sql": "SELECT apt_feature_1, MIN(oth_feature_1), property_id, MAX(property_type_code), MIN(apt_feature_2), fld_feature_2, date_sold, AVG(shp_feature_2), apt_feature_3, shp_feature_1, fld_feature_3, COUNT(room_count), hse_feature_1, agreed_selling_price, other_property_details, property_address, fld_feature_1, MAX(oth_feature_3), MIN(vendor_requested_price), SUM(property_name), COUNT(hse_feature_3), MAX(shp_feature_3), buyer_offered_price FROM Properties WHERE \"property_id\" <= 7 OR property_type_code != \"Field\" AND oth_feature_1 != \"None\" AND fld_feature_3 != \"None\" AND shp_feature_2 <> \"None\" OR oth_feature_3 != \"None\" OR fld_feature_2 != \"None\" AND \"room_count\" != 2 OR shp_feature_1 = \"None\" AND date_sold = \"2012-08-19 07:36:57\" AND apt_feature_1 <> \"aut\" AND other_property_details <> \"None\" AND property_name <> \"longacre\" OR apt_feature_3 != \"None\" OR \"vendor_requested_price\" <> 983.8596 OR \"agreed_selling_price\" >= 44132.4621 AND property_address != \"4745 Emerson Stravenue Suite 829 South Garret, IN 16772-5682\" OR shp_feature_3 <> \"None\" AND fld_feature_1 <> \"None\" OR oth_feature_2 = \"None\" AND \"buyer_offered_price\" <> 2.0 AND hse_feature_2 = \"None\" OR apt_feature_2 != \"est\" AND hse_feature_3 = \"None\" AND date_on_market = \"1978-05-15 10:53:37\" UNION SELECT apt_feature_1, MIN(oth_feature_1), property_id, MAX(property_type_code), MIN(apt_feature_2), fld_feature_2, date_sold, AVG(shp_feature_2), apt_feature_3, shp_feature_1, fld_feature_3, COUNT(room_count), hse_feature_1, agreed_selling_price, other_property_details, property_address, fld_feature_1, MAX(oth_feature_3), MIN(vendor_requested_price), SUM(property_name), COUNT(hse_feature_3), MAX(shp_feature_3), buyer_offered_price FROM Properties WHERE date_sold != \"1971-04-14 03:23:49\" OR shp_feature_3 != \"None\" AND apt_feature_1 = \"et\" OR hse_feature_2 = \"None\" AND fld_feature_2 != \"None\" OR \"buyer_offered_price\" >= 2.0 OR oth_feature_2 != \"None\" AND property_type_code = \"Other\" AND property_address != \"6837 Darien Views Apt. 475 South Maraview, KS 77770\" AND oth_feature_3 = \"None\" OR shp_feature_1 = \"None\" AND \"vendor_requested_price\" = 661536468.4429 AND hse_feature_3 = \"None\" OR \"room_count\" > 2 OR apt_feature_3 <> \"None\" AND property_name <> \"parc coliseum\" AND hse_feature_1 != \"None\" AND \"property_id\" = 12 OR \"agreed_selling_price\" <> 4514.807 AND shp_feature_2 <> \"None\" AND oth_feature_1 = \"None\" OR date_on_market = \"1994-02-14 02:27:13\" AND fld_feature_1 <> \"None\" OR apt_feature_2 != \"iusto\" AND fld_feature_3 = \"None\" OR other_property_details != \"None\""} {"question": "Can you give me a list of aircraft IDs that are greater than 4, and also not equal to 2, based on the aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M1tet_5.png", "TableImg_Gbqro_4.png"], "original_data_index": 8449, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you list the aircraft IDs from the aircraft table where the aircraft ID is 2, combined with the aircraft IDs from the airport_aircraft table where the aircraft ID is less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G3p3c_5.png", "TableImg_Jpz5o_4.png"], "original_data_index": 8438, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs, that are 6 or greater, are not also driver IDs in the school bus table, excluding driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ik5z2_12.png", "TableImg_7ch9p_5.png"], "original_data_index": 8454, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Could you give me a list of driver IDs, including those with ID 11 from the driver table, and those with IDs less than 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ynkwb_12.png", "TableImg_20xp4_5.png"], "original_data_index": 8457, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 9, excluding any driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ov117_12.png", "TableImg_Vws5u_5.png"], "original_data_index": 8456, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 3 with those from the school bus table excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Il5yc_12.png", "TableImg_P16x6_5.png"], "original_data_index": 8459, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What is the highest employee ID for employees who aren't named Phil Vickery and are 29 or younger, and also, what is the highest employee ID for evaluations where the bonus is less than 4000 or the employee ID isn't 7?", "answer": {"columns": ["MAX(Employee_ID)"], "index": [0, 1], "data": [["7"], ["7"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Qvtrg_10.png", "TableImg_Zwy1e_6.png"], "original_data_index": 8460, "original_sql": "SELECT MAX(Employee_ID) FROM employee WHERE Name <> \"Phil Vickery\" AND \"Age\" <= 29 UNION ALL SELECT MAX(Employee_ID) FROM evaluation WHERE \"Bonus\" < 4000.0 OR Employee_ID != \"7\""} {"question": "Can you list the home city and party affiliation for all drivers who either aren't named Dan Carter and aren't 46 years old and are Democrats, or live in Hartford, or have a driver ID of 6 or higher, along with the home city and party affiliation for all drivers older than 46?", "answer": {"columns": ["Home_city", "Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["Hartford", "Dem"], ["Hartford", "Dem"], ["Hartford", "Dem"], ["Hartford", "Dem"], ["Hartford", "Dem"], ["Hartford", "Dem"], ["Coventry", "Rep"], ["East Hartford", "Dem"], ["East Hartford", "Dem"], ["East Hartford", "Dem"], ["Manchester", "Dem"], ["Hartford", "Dem"], ["Manchester", "Dem"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_Twngz_12.png", "TableImg_N08j6_12.png"], "original_data_index": 8461, "original_sql": "SELECT Home_city, Party FROM driver WHERE Name != \"Dan Carter\" AND \"Age\" <> 46 AND Party = \"Dem\" OR Home_city = \"Hartford\" OR \"Driver_ID\" >= 6 UNION ALL SELECT Home_city, Party FROM driver WHERE \"Age\" > 46"} {"question": "Which vehicle IDs are associated with lessons on \"2018-03-05 18:05:31\" or for customer ID 5, and are also associated with vehicles that are not vans and have a vehicle ID of 2?", "answer": {"columns": ["vehicle_id"], "index": [0], "data": [["2"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_6yuz0_15.png", "TableImg_2nu6p_3.png"], "original_data_index": 8463, "original_sql": "SELECT vehicle_id FROM Lessons WHERE lesson_date = \"2018-03-05 18:05:31\" OR \"customer_id\" = 5 INTERSECT SELECT vehicle_id FROM Vehicles WHERE vehicle_details != \"Van\" AND \"vehicle_id\" = 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 12, and those from the school_bus table excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qw48r_12.png", "TableImg_60o6u_5.png"], "original_data_index": 8462, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of airport and flight IDs, including airport IDs that are not 1, or don't have an IATA code of AMS, or are not in the United States and Boston, along with flight IDs where the altitude is less than or equal to 3650 on August 30, 1965, or the vehicle flight number is not M2-F1 #1, or the velocity is greater than 240 and the ID is greater than or equal to 6 and the company ID is not 7, or the pilot is Thompson?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Seatk_9.png", "TableImg_27pi1_13.png"], "original_data_index": 8464, "original_sql": "SELECT id FROM airport WHERE \"id\" != 1 OR IATA <> \"AMS\" OR Country <> \"United States\" AND City != \"Boston\" UNION ALL SELECT id FROM flight WHERE \"Altitude\" <= 3650.0 AND Date = \"August 30, 1965\" OR Vehicle_Flight_number <> \"M2-F1 #1\" OR \"Velocity\" > 240.0 AND \"id\" >= 6 AND \"company_id\" != 7 OR Pilot = \"Thompson\""} {"question": "Can you give me a list of driver IDs, including driver ID 3 from the driver table and driver ID 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X4j9x_12.png", "TableImg_Z7fy5_5.png"], "original_data_index": 8465, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are both greater than or equal to 6 in the driver table and less than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sgjm5_12.png", "TableImg_Gmwxz_5.png"], "original_data_index": 8466, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of writers that includes Michael Moorcock and also any writers where the number of issues is less than 4, combined with a list of all writers except for Christopher Hinz?", "answer": {"columns": ["Writer"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Christopher Moeller"], ["Dave Gibbons"], ["Elaine Lee"], ["Garth Ennis"], ["Howard Chaykin"], ["Michael Moorcock"], ["Timothy Truman"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_0r6oj_10.png", "TableImg_Dbrv5_10.png"], "original_data_index": 8467, "original_sql": "SELECT Writer FROM book WHERE Writer = \"Michael Moorcock\" OR \"Issues\" < 4.0 UNION SELECT Writer FROM book WHERE Writer <> \"Christopher Hinz\""} {"question": "Can you give me a list of driver IDs that are greater than 6, excluding those driver IDs that are also greater than or equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lambv_12.png", "TableImg_9sx4x_5.png"], "original_data_index": 8468, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs where each ID is greater than 2 from the driver table, combined with a list of driver IDs where each ID is not equal to 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nxld4_12.png", "TableImg_6l9oz_5.png"], "original_data_index": 8473, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the Aircraft IDs and corresponding Airport IDs from the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID", "Airport_ID"], "index": [0, 1, 2, 3], "data": [["2", "1"], ["1", "2"], ["5", "6"], ["3", "9"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hwyk0_5.png", "TableImg_F9nsz_4.png"], "original_data_index": 8472, "original_sql": "SELECT T1.Aircraft_ID, T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Which driver IDs, excluding driver ID 9, are present in the driver table but not in the school_bus table for driver IDs less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jsddj_12.png", "TableImg_Yk4ui_5.png"], "original_data_index": 8475, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs, excluding driver ID 4, are also driver IDs that are greater than or equal to 10 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ij3ok_12.png", "TableImg_48ggv_5.png"], "original_data_index": 8476, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are both not equal to 8 and less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_01l3t_12.png", "TableImg_W3f70_5.png"], "original_data_index": 8477, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the average ranking and creation year for \"Labor\" departments with no more than 71436 employees and a Department ID of 12, excluding those created in 1789, or those with a ranking of at least 10, or a budget that isn't 62.8 billion, only including creation years where the average ranking is at least 10, but then remove any creation years and average rankings where the Department ID is no more than 4 or the department name isn't \"Agriculture\" and the average ranking is at least 14?", "answer": {"columns": ["Creation", "AVG(Ranking)"], "index": [0, 1, 2, 3], "data": [["1965", "10"], ["1966", "11"], ["1977", "12"], ["1979", "13"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Vd7qq_15.png", "TableImg_Cs6wq_15.png"], "original_data_index": 8478, "original_sql": "SELECT Creation, AVG(Ranking) FROM department WHERE Creation != \"1789\" AND Name = \"Labor\" AND \"Num_Employees\" <= 71436.0 AND \"Department_ID\" = 12 OR \"Ranking\" >= 10 OR \"Budget_in_Billions\" != 62.8 GROUP BY Creation HAVING AVG(Ranking) >= 10.0 EXCEPT SELECT Creation, AVG(Ranking) FROM department WHERE \"Department_ID\" <= 4 OR Name != \"Agriculture\" GROUP BY Creation HAVING AVG(Ranking) >= 14.0"} {"question": "Could you give me a list of Company IDs, including those for companies named Walmart and also those from the employment table where the People ID is greater than 7 and the Company ID is less than or equal to 17?", "answer": {"columns": ["Company_ID"], "index": [0], "data": [["16"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_81ae0_19.png", "TableImg_Jk13m_5.png"], "original_data_index": 8479, "original_sql": "SELECT Company_ID FROM company WHERE Name = \"Walmart\" UNION ALL SELECT Company_ID FROM employment WHERE \"People_ID\" > 7 AND \"Company_ID\" <= 17"} {"question": "Can you give me the zip code, population, county name, and county ID for all counties with a population of 13,300 or less, combined with the zip code, population, county name, and county ID for counties where the county ID is 4 and the county name isn't Howard, or the zip code is D11, or the population isn't 21,000?", "answer": {"columns": ["Zip_code", "Population", "County_name", "County_Id"], "index": [0, 1, 2, 3], "data": [["D02", "79000", "Colony", "3"], ["D08", "90000", "Baltimore County", "2"], ["D09", "87200", "Mansfield", "4"], ["D11", "13300", "Manning", "5"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_Whhua_5.png", "TableImg_8fnbo_5.png"], "original_data_index": 8480, "original_sql": "SELECT Zip_code, Population, County_name, County_Id FROM county WHERE \"Population\" <= 13300.0 UNION SELECT Zip_code, Population, County_name, County_Id FROM county WHERE \"County_Id\" = 4 AND County_name <> \"Howard\" OR Zip_code = \"D11\" OR \"Population\" != 21000.0"} {"question": "Can you give me a list of driver IDs that are at least 10, where each ID appears at least once in the driver table, but the same driver ID is not greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nh817_12.png", "TableImg_7cy7l_5.png"], "original_data_index": 8481, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which driver IDs, excluding driver ID 2, are also driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_26n60_12.png", "TableImg_A8epm_5.png"], "original_data_index": 8482, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs less than 9 from the driver table, excluding any driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yk497_12.png", "TableImg_M4fhi_5.png"], "original_data_index": 8483, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me the item IDs from the item table where the title is not \"comb\" and the item ID is less than or equal to 6, but exclude any item IDs that also appear in the review table where the item ID is not 3?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3], "data": [["0"], ["2"], ["3"], ["6"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_0mjzd_8.png", "TableImg_P6jil_7.png"], "original_data_index": 8474, "original_sql": "SELECT i_id FROM item WHERE title != \"comb\" AND \"i_id\" <= 6 EXCEPT SELECT i_id FROM review WHERE \"i_id\" <> 3"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding ID 2, and then from the airport_aircraft table including only those less than 5, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zc7fo_5.png", "TableImg_Nk7xa_4.png"], "original_data_index": 8485, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are present in the driver table, excluding driver ID 9, but are not present in the school_bus table for driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3orjs_12.png", "TableImg_Fh0in_5.png"], "original_data_index": 8486, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you please list the lesson ID, date, and time for all lessons where either the vehicle ID is greater than 1, or the price isn't 495, the time is 2, the status isn't completed, and the staff ID is 5, or the customer ID isn't 2 and the lesson ID is greater than 11, along with all lessons where the price isn't 231, the staff ID is 8 or greater, the date isn't March 7th, 2018 at 4:12:36 PM, or the status isn't cancelled?", "answer": {"columns": ["lesson_id", "lesson_date", "lesson_time"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["1", "2018-02-28 10:55:36", "5"], ["2", "2018-03-07 16:12:36", "6"], ["3", "2018-03-03 15:10:16", "3"], ["4", "2018-03-17 19:02:07", "9"], ["5", "2018-03-12 00:41:59", "9"], ["6", "2018-03-07 22:03:49", "6"], ["8", "2018-03-21 06:48:45", "2"], ["9", "2018-03-05 20:05:33", "9"], ["10", "2018-02-26 02:36:35", "4"], ["12", "2018-03-16 07:08:52", "2"], ["13", "2018-03-05 18:05:31", "5"], ["14", "2018-03-07 11:53:32", "5"], ["15", "2018-03-06 21:48:51", "9"], ["1", "2018-02-28 10:55:36", "5"], ["2", "2018-03-07 16:12:36", "6"], ["3", "2018-03-03 15:10:16", "3"], ["4", "2018-03-17 19:02:07", "9"], ["5", "2018-03-12 00:41:59", "9"], ["6", "2018-03-07 22:03:49", "6"], ["7", "2018-03-08 16:05:05", "9"], ["8", "2018-03-21 06:48:45", "2"], ["9", "2018-03-05 20:05:33", "9"], ["10", "2018-02-26 02:36:35", "4"], ["11", "2018-03-04 06:55:46", "2"], ["12", "2018-03-16 07:08:52", "2"], ["13", "2018-03-05 18:05:31", "5"], ["14", "2018-03-07 11:53:32", "5"], ["15", "2018-03-06 21:48:51", "9"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Rui1c_15.png", "TableImg_Zvuwj_15.png"], "original_data_index": 8487, "original_sql": "SELECT lesson_id, lesson_date, lesson_time FROM Lessons WHERE \"vehicle_id\" > 1 OR \"price\" != 495.0 AND lesson_time = \"2\" AND lesson_status_code != \"Completed\" AND \"staff_id\" = 5 OR \"customer_id\" != 2 AND \"lesson_id\" > 11 UNION ALL SELECT lesson_id, lesson_date, lesson_time FROM Lessons WHERE \"price\" != 231.0 OR \"staff_id\" >= 8 OR lesson_date != \"2018-03-07 16:12:36\" OR lesson_status_code != \"Cancelled\""} {"question": "Which driver IDs, excluding driver ID 7, are present in both the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8t1gb_12.png", "TableImg_Lxhvu_5.png"], "original_data_index": 8488, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs that are 5 or less, and also not equal to 4, from both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ob55_12.png", "TableImg_Sfj71_5.png"], "original_data_index": 8489, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are both greater than 3 and also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xgagd_12.png", "TableImg_8ukxt_5.png"], "original_data_index": 8492, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the address ID, birth date, start date, nickname, staff ID, last name, and first name of staff members who either live at address ID 3 and weren't born on May 17, 1994, or whose middle name isn't Amara and didn't start on December 22, 2017, combined with those whose last name isn't Hermann, or whose first name is Simeon and nickname isn't lsenger, or who live at address ID 7, have Sherwood as their middle name, and have a staff ID less than 12?", "answer": {"columns": ["staff_address_id", "date_of_birth", "date_joined_staff", "nickname", "staff_id", "last_name", "first_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "2000-06-13 18:09:11", "2016-05-01 02:22:45", "nicholaus92", "11", "Jast", "Winnifred"], ["1", "2003-01-16 06:29:11", "2017-10-21 17:20:57", "lsenger", "4", "Hermann", "Rebekah"], ["1", "2004-05-19 14:11:13", "2016-11-13 20:44:23", "norma73", "13", "Mraz", "Ernestina"], ["1", "2005-05-02 06:23:36", "2016-05-26 00:55:07", "gabe21", "8", "Durgan", "Titus"], ["2", "1996-09-24 09:51:42", "2016-06-05 22:22:23", "sbrown", "10", "Rogahn", "Jaleel"], ["3", "1997-03-29 10:55:45", "2017-02-20 18:45:20", "weissnat.vincenzo", "15", "Turner", "Simeon"], ["3", "2015-08-01 13:22:43", "2016-06-06 08:54:28", "santos45", "2", "Weissnat", "Camylle"], ["4", "1995-06-03 08:09:17", "2017-12-22 03:06:32", "ymiller", "9", "Doyle", "Margie"], ["5", "1994-05-17 05:32:11", "2018-01-02 12:24:24", "ynader", "3", "Mertz", "Kaitlin"], ["6", "2000-11-16 06:55:12", "2017-08-30 15:08:37", "bkunze", "14", "Kuphal", "Ludie"], ["7", "1996-03-09 08:19:49", "2016-11-05 01:43:52", "edwin.hudson", "12", "Carroll", "Lincoln"], ["12", "1998-04-27 12:55:05", "2017-08-27 19:19:44", "bogisich.geovany", "6", "Maggio", "Eulalia"], ["13", "2007-06-11 20:03:28", "2017-06-04 14:30:41", "weldon.kling", "7", "Macejkovic", "Queenie"], ["14", "2010-12-08 16:55:14", "2017-04-27 03:21:26", "thompson.constantin", "1", "Sawayn", "Janessa"], ["14", "2015-08-10 11:37:39", "2016-05-16 20:56:53", "ledner.jamie", "5", "Herzog", "Jedidiah"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_1mpc5_15.png", "TableImg_Vggs7_15.png"], "original_data_index": 8490, "original_sql": "SELECT staff_address_id, date_of_birth, date_joined_staff, nickname, staff_id, last_name, first_name FROM Staff WHERE \"staff_address_id\" = 3 AND date_of_birth != \"1994-05-17 05:32:11\" OR middle_name <> \"Amara\" AND date_joined_staff <> \"2017-12-22 03:06:32\" UNION SELECT staff_address_id, date_of_birth, date_joined_staff, nickname, staff_id, last_name, first_name FROM Staff WHERE last_name != \"Hermann\" OR first_name = \"Simeon\" AND nickname != \"lsenger\" OR \"staff_address_id\" = 7 AND middle_name = \"Sherwood\" AND \"staff_id\" < 12"} {"question": "Which driver IDs appear exactly once as driver IDs in the driver table, specifically driver ID 8, but not as driver ID 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ac27t_12.png", "TableImg_848bk_5.png"], "original_data_index": 8491, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you tell me the latest opening year and name of branches that either opened in 2009, are not in Oxford, or have a Branch ID of 6 or higher, along with the latest opening year and name of branches that are not on Oaks Crescent?", "answer": {"columns": ["MAX(Open_year)", "Name"], "index": [0], "data": [["2015", "Saint Amant"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_R53e0_8.png", "TableImg_8vse5_8.png"], "original_data_index": 8493, "original_sql": "SELECT MAX(Open_year), Name FROM branch WHERE Open_year = \"2009\" OR City != \"Oxford\" OR \"Branch_ID\" >= 6 UNION SELECT MAX(Open_year), Name FROM branch WHERE Address_road != \"Oaks Crescent\""} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 3, excluding any driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ztgcz_12.png", "TableImg_2c9fu_5.png"], "original_data_index": 8495, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, including driver ID 2 from the driver table and any driver IDs less than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rbb5i_12.png", "TableImg_J5u6j_5.png"], "original_data_index": 8498, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 8, combined with a list of driver IDs from the school_bus table where each ID is less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_557qh_12.png", "TableImg_Hip6m_5.png"], "original_data_index": 8499, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are both less than or equal to 4 and present in the driver table, and also less than 9 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_26lrq_12.png", "TableImg_Meub2_5.png"], "original_data_index": 8500, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list the driver IDs that are greater than or equal to 2 from the driver table, and combine that with a list of driver IDs that are less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9tcsw_12.png", "TableImg_Gzr6c_5.png"], "original_data_index": 8501, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of aircraft IDs that are less than 5, where each ID appears only once, excluding any aircraft IDs that also appear in the airport aircraft list, except for the aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jslu8_5.png", "TableImg_4u7ft_4.png"], "original_data_index": 8502, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Which aircraft, excluding aircraft with ID 3, are also aircraft with ID 1 found at the airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9y0vj_5.png", "TableImg_Jcqn2_4.png"], "original_data_index": 8503, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those driver IDs that are also not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wgamp_12.png", "TableImg_9yrkv_5.png"], "original_data_index": 8504, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 2, and those from the school_bus table with driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S6p79_12.png", "TableImg_Do4z8_5.png"], "original_data_index": 8505, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me the IDs of drivers that appear more than twice in the driver table, excluding those driver IDs that appear more than four times in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ii1ax_12.png", "TableImg_Nqnxd_5.png"], "original_data_index": 8506, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of employee IDs from the circulation history where either the draft number is 17 and the employee ID is not 2, or the copy number is 15, combined with a list of employee IDs from the employees table where the role code is not \"ED\" and the other details are not \"b\"?", "answer": {"columns": ["employee_id"], "index": [0, 1, 2], "data": [["8"], ["7"], ["8"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_Pv6l2_4.png", "TableImg_O7d2t_6.png"], "original_data_index": 8507, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"draft_number\" = 17 AND \"employee_id\" != 2 OR \"copy_number\" = 15 UNION ALL SELECT employee_id FROM Employees WHERE role_code <> \"ED\" AND other_details != \"b\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7pvx8_12.png", "TableImg_Dlcre_5.png"], "original_data_index": 8509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list all the aircraft IDs, combining those from the aircraft table that are not equal to 3 with those from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kck6d_5.png", "TableImg_3gnx1_4.png"], "original_data_index": 8510, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What is the highest document ID from the drafts table where the draft number is 12 or greater, and also the highest document ID from the mailed documents table where the mailed-to address ID is 8 or greater?", "answer": {"columns": ["MAX(document_id)"], "index": [0, 1], "data": [["20"], ["23"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Excz2_15.png", "TableImg_N4sv5_14.png"], "original_data_index": 8511, "original_sql": "SELECT MAX(document_id) FROM Document_Drafts WHERE \"draft_number\" >= 12 UNION ALL SELECT MAX(document_id) FROM Documents_Mailed WHERE \"mailed_to_address_id\" >= 8"} {"question": "Can you give me a list of driver IDs that are greater than 5, excluding those driver IDs that are also greater than or equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qpxhk_12.png", "TableImg_Qt80r_5.png"], "original_data_index": 8512, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list all aircraft IDs, including those from the aircraft table that are greater than or equal to 5, and those from the airport_aircraft table that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fv0or_5.png", "TableImg_5l2zd_4.png"], "original_data_index": 8520, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me the Aircraft IDs that are equal to 1 in the aircraft table, excluding the Aircraft IDs from the airport_aircraft table where the Driver ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xrugc_12.png", "TableImg_2sh1p_5.png"], "original_data_index": 8526, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including driver ID 7 from the driver table and all driver IDs except 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q8x76_12.png", "TableImg_7pp7z_5.png"], "original_data_index": 8525, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Could you give me a list of document IDs from the Documents table, excluding those received on \"2017-07-02 17:39:09\" with a receipt number of \"19\" and document type code of \"CD\", but only for documents shipped by \"UP\", and then remove any document IDs that are also in the Documents_Mailed table where the mailing date isn't \"1992-11-07 15:03:41\" and the document ID is less than or equal to 2?", "answer": {"columns": ["document_id"], "index": [0, 1, 2], "data": [["3"], ["10"], ["20"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Ow0yt_15.png", "TableImg_Hhnje_14.png"], "original_data_index": 8534, "original_sql": "SELECT document_id FROM Documents WHERE receipt_date != \"2017-07-02 17:39:09\" AND receipt_number <> \"19\" AND shipping_agent_code = \"UP\" AND document_type_code != \"CD\" EXCEPT SELECT document_id FROM Documents_Mailed WHERE mailing_date != \"1992-11-07 15:03:41\" AND \"document_id\" <= 2"} {"question": "Which aircraft IDs are not equal to 1 and appear in the aircraft table, and are also not equal to 2 and appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yfstj_5.png", "TableImg_Pa3bp_4.png"], "original_data_index": 8540, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Could you give me the IDs of documents that either have an ID less than 2394, have details other than \"None\", or have a template ID of 20 or greater, but excluding any document IDs that are also in the list of paragraphs with document IDs greater than 2394 and details not equal to \"None\"?", "answer": {"columns": ["Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["0"], ["1"], ["3"], ["76"], ["80"], ["82"], ["50123"], ["651512"], ["16514113"]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_Dkjr9_15.png", "TableImg_Dljgw_15.png"], "original_data_index": 8546, "original_sql": "SELECT Document_ID FROM Documents WHERE \"Document_ID\" < 2394 OR Other_Details <> \"None\" OR \"Template_ID\" >= 20 EXCEPT SELECT Document_ID FROM Paragraphs WHERE \"Document_ID\" > 2394 AND Other_Details != \"None\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or less, and those from the school bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R6f4a_12.png", "TableImg_7f6hb_5.png"], "original_data_index": 8545, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are in both the driver list, excluding driver 8, and the school bus list, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1t161_12.png", "TableImg_9jmjv_5.png"], "original_data_index": 6997, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs, excluding 10 from the drivers, and including 7 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rvw36_12.png", "TableImg_Eo79a_5.png"], "original_data_index": 6996, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the Driver IDs that are not 6 from the driver table, and also the Driver IDs less than 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ihxzr_12.png", "TableImg_Swr7s_5.png"], "original_data_index": 6994, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the highest branch ID and the membership level for branches on Glebe Street that were not opened in 2009?", "answer": {"columns": ["MAX(T1.Branch_ID)", "Level"], "index": [0], "data": [["", ""]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_9rha6_8.png", "TableImg_T2x24_10.png"], "original_data_index": 7231, "original_sql": "SELECT MAX(T1.Branch_ID), T2.Level FROM branch as T1 JOIN member as T2 ON T1.Name = T2.Name WHERE Open_year <> \"2009\" AND Address_road = \"Glebe Street\""} {"question": "For schools that satisfy both of the following criteria, what are their location, school name, and IHSAA class? First, they are either not in Bremen, or not class A, or have an enrollment of 316, or are in '20 Elkhart' county and not school ID 8, or have an IHSAA Football Class of AAA. Second, they are also either not in IHSAA Class AAA, or have an enrollment of 605 or less and are not named LaVille.", "answer": {"columns": ["Location", "School_name", "IHSAA_Class"], "index": [0, 1, 2, 3, 4, 5], "data": [["Bourbon", "Triton", "A"], ["Bremen", "Bremen", "AA"], ["Culver", "Culver Community", "A"], ["Elkhart", "Jimtown", "AAA"], ["Lakeville", "LaVille", "AA"], ["Walkerton", "Glenn", "AAA"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Cbzqf_8.png", "TableImg_Ld12r_8.png"], "original_data_index": 7069, "original_sql": "SELECT Location, School_name, IHSAA_Class FROM School WHERE Location != \"Bremen\" OR IHSAA_Class <> \"A\" OR \"Enrollment\" = 316 OR County = \"20 Elkhart\" AND School_id != \"8\" OR IHSAA_Football_Class = \"AAA\" INTERSECT SELECT Location, School_name, IHSAA_Class FROM School WHERE IHSAA_Class <> \"AAA\" OR \"Enrollment\" <= 605 AND School_name != \"LaVille\""} {"question": "What are the driver IDs that are greater than 8 or are exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kx3td_12.png", "TableImg_Bz1co_5.png"], "original_data_index": 7357, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are not 8 in the driver table, or are 9 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dvwet_12.png", "TableImg_Sls5y_5.png"], "original_data_index": 7475, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the price, publication date, publisher, book ID, and publication ID of all publications that are either not from June 2006, cost exactly 6 million, have a book ID of 4 or less, and are not from Springer Nature, or cost more than 3 million, have a book ID of 7 or less, are not from April 2007, or are not from Bertelsmann?", "answer": {"columns": ["Price", "Publication_Date", "Publisher", "Book_ID", "Publication_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6000000", "March 2008", "Thomson Reuters", "3", "2"], ["15000000", "August 2008", "Pearson", "1", "1"], ["6000000", "March 2008", "Thomson Reuters", "3", "2"], ["4100000", "June 2006", "Wiley", "4", "3"], ["3000000", "October 2005", "Wiley", "5", "4"], ["3000000", "August 2008", "Springer Nature", "7", "5"], ["2000000", "March 2007", "Pearson", "9", "6"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_Bjfxt_7.png", "TableImg_56hnk_7.png"], "original_data_index": 7288, "original_sql": "SELECT Price, Publication_Date, Publisher, Book_ID, Publication_ID FROM publication WHERE Publication_Date <> \"June 2006\" AND \"Price\" = 6000000.0 AND \"Book_ID\" <= 4 AND Publisher <> \"Springer Nature\" UNION ALL SELECT Price, Publication_Date, Publisher, Book_ID, Publication_ID FROM publication WHERE \"Price\" > 3000000.0 OR \"Book_ID\" <= 7 OR Publication_Date != \"April 2007\" OR Publisher != \"Bertelsmann\""} {"question": "What driver IDs are either greater than 2 in the driver records or not equal to 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8jyx1_12.png", "TableImg_W0fac_5.png"], "original_data_index": 7586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What aircraft IDs are both aircraft ID 1 and also less than aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y6zww_5.png", "TableImg_22wht_4.png"], "original_data_index": 7503, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the average People ID, Company ID, and count of working years for employment records where either the person's ID is greater than 4 or it's not their second year of work, but only show me those results that are unique compared to employment records excluding company 13?", "answer": {"columns": ["AVG(People_ID)", "Company_ID", "COUNT(Year_working)"], "index": [0], "data": [["3.5", "13", "4"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_S79jz_5.png", "TableImg_Yr9iw_5.png"], "original_data_index": 7508, "original_sql": "SELECT AVG(People_ID), Company_ID, COUNT(Year_working) FROM employment WHERE \"People_ID\" > 4 OR \"Year_working\" != 2 EXCEPT SELECT AVG(People_ID), Company_ID, COUNT(Year_working) FROM employment WHERE \"Company_ID\" <> 13"} {"question": "Which aircraft IDs, of 2 or greater, are in the aircraft table but not in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4izlg_5.png", "TableImg_K62li_4.png"], "original_data_index": 7686, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Could you list the IDs of car makers that are not named 'Subaru', or are maker 'subaru' with ID 5, or are not from country '5', along with the IDs of cars that have horsepower other than '110', weight up to 2910, and engine displacement not equal to 151.0?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["54"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["79"], ["85"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["109"], ["110"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["125"], ["126"], ["127"], ["128"], ["131"], ["134"], ["135"], ["137"], ["138"], ["139"], ["140"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["175"], ["176"], ["178"], ["179"], ["180"], ["181"], ["183"], ["185"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["203"], ["204"], ["205"], ["206"], ["211"], ["212"], ["213"], ["214"], ["224"], ["225"], ["226"], ["227"], ["228"], ["241"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["252"], ["253"], ["254"], ["255"], ["256"], ["263"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["281"], ["282"], ["284"], ["286"], ["287"], ["290"], ["301"], ["302"], ["303"], ["304"], ["309"], ["310"], ["311"], ["312"], ["314"], ["315"], ["317"], ["318"], ["319"], ["320"], ["322"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["348"], ["350"], ["351"], ["352"], ["353"], ["354"], ["355"], ["356"], ["357"], ["358"], ["359"], ["360"], ["361"], ["362"], ["363"], ["364"], ["365"], ["366"], ["370"], ["376"], ["377"], ["378"], ["379"], ["380"], ["382"], ["384"], ["385"], ["386"], ["387"], ["388"], ["389"], ["390"], ["391"], ["392"], ["393"], ["394"], ["397"], ["398"], ["399"], ["400"], ["402"], ["403"], ["404"], ["405"], ["406"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Bdnj1_22.png", "TableImg_Zrl9e_406.png"], "original_data_index": 7714, "original_sql": "SELECT Id FROM car_makers WHERE FullName <> \"Subaru\" OR \"Id\" = 5 AND Maker = \"subaru\" OR Country <> \"5\" UNION ALL SELECT Id FROM cars_data WHERE Horsepower <> \"110\" AND \"Weight\" <= 2910 AND \"Edispl\" <> 151.0"} {"question": "What are the document IDs for document 24, or for documents mailed to addresses with IDs less than 5, excluding those mailed on February 21, 1973 at 10:17 AM?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["10"], ["12"], ["13"], ["20"], ["24"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_D5lfl_15.png", "TableImg_73y4t_14.png"], "original_data_index": 7717, "original_sql": "SELECT document_id FROM Documents WHERE \"document_id\" = 24 UNION SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" < 5 AND mailing_date != \"1973-02-21 10:17:01\""} {"question": "What are the driver IDs, excluding ID 3, that are drivers but not school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0fjwh_12.png", "TableImg_Yyztr_5.png"], "original_data_index": 7804, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are less than 8, excluding 7, and are listed as both a driver and a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Czgze_12.png", "TableImg_Y7v3b_5.png"], "original_data_index": 7887, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What Driver IDs are greater than 4 or are equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqt42_12.png", "TableImg_9hemc_5.png"], "original_data_index": 7889, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "For 'Djurg\u00e5rdens IF' clubs founded in the USA since 1998, which ones do not have any female coaches?", "answer": {"columns": ["Club_ID"], "index": [0], "data": [["3"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_U5q7s_6.png", "TableImg_8ud0p_5.png"], "original_data_index": 8011, "original_sql": "SELECT Club_ID FROM club WHERE Club_name = \"Djurg\u00e5rdens IF\" AND \"Start_year\" >= 1998 AND Region = \"USA\" EXCEPT SELECT Club_ID FROM coach WHERE Gender != \"M\""} {"question": "What driver IDs are 10 or greater, but not among the driver IDs that are 3 or less in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0cx9d_12.png", "TableImg_Qyqkr_5.png"], "original_data_index": 7890, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What aircraft IDs are number 5 in the aircraft table, or number 3 or higher in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zsfrf_5.png", "TableImg_Wsi4v_4.png"], "original_data_index": 8082, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Which driver IDs less than 2 are in the driver list but not in the school bus list of driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xor7x_12.png", "TableImg_1b43d_5.png"], "original_data_index": 8131, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are listed in both the driver and school bus records and are also less than 6?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_962zg_12.png", "TableImg_Rit9k_5.png"], "original_data_index": 8176, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are at least 2, or are specifically ID 3 in the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y3e64_12.png", "TableImg_Me81y_5.png"], "original_data_index": 8177, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Tell me the driver IDs that are either 7 or less from the drivers, or not 3 from the school buses.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D35vi_12.png", "TableImg_207l8_5.png"], "original_data_index": 8227, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the first name, count of mobile phone numbers, amount outstanding, customer ID, customer since date, address ID, average last name, and sum of birth dates for customers who fulfill at least one of two very specific sets of conditions based on various customer details? Please combine the results from both sets of conditions into one list.", "answer": {"columns": ["first_name", "COUNT(cell_mobile_phone_number)", "amount_outstanding", "customer_id", "date_became_customer", "customer_address_id", "AVG(last_name)", "SUM(date_of_birth)"], "index": [0, 1], "data": [["Clara", "10", "9443", "3", "2016-04-08 00:28:15", "10", "0", "19944"], ["Carole", "9", "255", "1", "2016-05-11 17:03:48", "13", "0", "17954"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_R4wl1_15.png", "TableImg_92g83_15.png"], "original_data_index": 8242, "original_sql": "SELECT first_name, COUNT(cell_mobile_phone_number), amount_outstanding, customer_id, date_became_customer, customer_address_id, AVG(last_name), SUM(date_of_birth) FROM Customers WHERE \"amount_outstanding\" > 9332.0 OR phone_number = \"1-875-045-0806\" AND email_address != \"myrl.lind@example.net\" OR first_name = \"Jordy\" AND last_name <> \"Goodwin\" OR date_of_birth != \"1998-09-18 04:45:01\" AND customer_status_code != \"Bad Customer\" OR date_became_customer = \"2015-06-24 03:50:04\" AND \"customer_id\" <= 13 AND cell_mobile_phone_number <> \"1-387-258-1016x96963\" OR \"customer_address_id\" <= 1 UNION ALL SELECT first_name, COUNT(cell_mobile_phone_number), amount_outstanding, customer_id, date_became_customer, customer_address_id, AVG(last_name), SUM(date_of_birth) FROM Customers WHERE date_became_customer = \"2016-03-18 06:14:18\" AND last_name != \"Leuschke\" AND phone_number = \"1-618-535-9750\" AND \"customer_address_id\" != 10 AND cell_mobile_phone_number != \"1-401-108-8016x078\" AND email_address != \"karina.carroll@example.net\" AND first_name <> \"Marina\" OR customer_status_code <> \"Good Customer\""} {"question": "What driver IDs are number 9 in the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yyy7j_12.png", "TableImg_D1bps_5.png"], "original_data_index": 8231, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What Driver IDs are greater than 3 for drivers or not equal to 4 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6wv17_12.png", "TableImg_Jf9wu_5.png"], "original_data_index": 8244, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What driver IDs are on both the driver and school bus lists and are 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0ahkk_12.png", "TableImg_H6zoj_5.png"], "original_data_index": 8229, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are either less than 10 in the driver list or not equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nt1go_12.png", "TableImg_Tcejf_5.png"], "original_data_index": 8248, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "List driver ID 4 from the drivers and all driver IDs other than 7 from the school buses.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_82zc3_12.png", "TableImg_Brgql_5.png"], "original_data_index": 8258, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What driver IDs are not 5 from the driver records, or are greater than 4 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9nvah_12.png", "TableImg_Tx1o8_5.png"], "original_data_index": 8261, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What property feature descriptions and property IDs are there that meet these two requirements: first, the feature ID is not 4, or the description is 'corrupti', or the property ID is greater than 15; and second, the property ID is not 11?", "answer": {"columns": ["property_feature_description", "property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["ad", "1"], ["autem", "13"], ["corrupti", "6"], ["cumque", "3"], ["dolorem", "15"], ["doloribus", "6"], ["et", "6"], ["hic", "7"], ["illo", "6"], ["odio", "4"], ["quo", "9"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_G600k_15.png", "TableImg_Tgjmf_15.png"], "original_data_index": 8264, "original_sql": "SELECT property_feature_description, property_id FROM Other_Property_Features WHERE \"feature_id\" != 4 OR property_feature_description = \"corrupti\" OR \"property_id\" > 15 INTERSECT SELECT property_feature_description, property_id FROM Other_Property_Features WHERE \"property_id\" <> 11"} {"question": "What driver IDs, other than 9, are drivers but not school bus drivers with IDs up to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lnrek_12.png", "TableImg_Irw7x_5.png"], "original_data_index": 8276, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What types of schools are either named 'State Elementary School Menteng 01', located in 'Los Angeles, California', not 'Private', or have a School ID of 1?", "answer": {"columns": ["Type"], "index": [0, 1, 2, 3, 4], "data": [["Public"], ["Private"], ["Public"], ["Private Catholic"], ["Public"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Ugsko_7.png", "TableImg_Xx2zr_7.png"], "original_data_index": 8289, "original_sql": "SELECT Type FROM school WHERE School = \"State Elementary School Menteng 01\" OR Location = \"Los Angeles, California\" UNION ALL SELECT Type FROM school WHERE Type <> \"Private\" OR \"School_ID\" = 1"} {"question": "What driver IDs are in both the driver table (for drivers with IDs up to 11) and the school bus table (for drivers with ID 3)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Op6dx_12.png", "TableImg_Wr2ax_5.png"], "original_data_index": 8265, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "List the ID, name, and distance of aircraft that either have an ID greater than 6, or have a distance of 1530 or more, or are a 'Boeing 757-300', except for the 'Boeing 757-300' with ID 6.", "answer": {"columns": ["aid", "name", "distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["7", "Piper Archer III", "520"], ["8", "Tupolev 154", "4103"], ["9", "Lockheed L1011", "6900"], ["10", "Boeing 757-300", "4010"], ["11", "Boeing 777-300", "6441"], ["12", "Boeing 767-400ER", "6475"], ["13", "Airbus A320", "2605"], ["14", "Airbus A319", "1805"], ["15", "Boeing 727", "1504"], ["16", "Schwitzer 2-33", "30"], ["1", "Boeing 747-400", "8430"], ["2", "Boeing 737-800", "3383"], ["3", "Airbus A340-300", "7120"], ["5", "Embraer ERJ-145", "1530"], ["6", "SAAB 340", "2128"], ["8", "Tupolev 154", "4103"], ["9", "Lockheed L1011", "6900"], ["10", "Boeing 757-300", "4010"], ["11", "Boeing 777-300", "6441"], ["12", "Boeing 767-400ER", "6475"], ["13", "Airbus A320", "2605"], ["14", "Airbus A319", "1805"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Mfqni_16.png", "TableImg_Z25fc_16.png"], "original_data_index": 8288, "original_sql": "SELECT aid, name, distance FROM aircraft WHERE \"aid\" > 6 UNION ALL SELECT aid, name, distance FROM aircraft WHERE \"distance\" >= 1530 OR name = \"Boeing 757-300\" AND \"aid\" != 6"} {"question": "Which driver IDs of 3 or greater are drivers but not school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Arx1u_12.png", "TableImg_Dxkrs_5.png"], "original_data_index": 8291, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What driver IDs are either 11 or greater for drivers, or are different from 10 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L3ta7_12.png", "TableImg_Ounlv_5.png"], "original_data_index": 8290, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which aircraft IDs are 1 or less, but not 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hbsg7_5.png", "TableImg_O5flh_4.png"], "original_data_index": 8303, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the vehicle IDs from lessons with vehicle ID 2 or not customer 6, combined with all vehicle IDs from vehicles that are not vehicle 2?", "answer": {"columns": ["vehicle_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["3"], ["2"], ["2"], ["2"], ["2"], ["1"], ["2"], ["2"], ["2"], ["1"], ["2"], ["1"], ["1"], ["1"], ["1"], ["3"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_3dxr5_15.png", "TableImg_Cibpj_3.png"], "original_data_index": 8316, "original_sql": "SELECT vehicle_id FROM Lessons WHERE \"vehicle_id\" = 2 OR \"customer_id\" <> 6 UNION ALL SELECT vehicle_id FROM Vehicles WHERE \"vehicle_id\" <> 2"} {"question": "What are the Driver IDs that are 3 or greater from the drivers, or 10 or less from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tiz5i_12.png", "TableImg_Rgxt9_5.png"], "original_data_index": 8329, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the two highest document status descriptions, based on two different sets of conditions?", "answer": {"columns": ["MAX(document_status_description)"], "index": [0, 1], "data": [["mailed late"], ["mailed late"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Q6gmc_3.png", "TableImg_Wuccu_3.png"], "original_data_index": 8327, "original_sql": "SELECT MAX(document_status_description) FROM Ref_Document_Status WHERE document_status_code != \"overdue\" OR document_status_description <> \"currently working on\" UNION ALL SELECT MAX(document_status_description) FROM Ref_Document_Status WHERE document_status_description = \"currently working on\" OR document_status_code != \"working\""} {"question": "What are the IDs of people who are either Russian, or named Teodor Salparov and born on August 16, 1982? Also, include the IDs of poker players who have either made more than 26 final tables and have a money rank of 68 or better, and are not player ID 6 or poker player ID 2, or have earnings of 476090 or less.", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_L3rg7_7.png", "TableImg_14j1g_5.png"], "original_data_index": 8328, "original_sql": "SELECT People_ID FROM people WHERE Nationality = \"Russia\" OR Birth_Date = \"August 16, 1982\" AND Name = \"Teodor Salparov\" UNION SELECT People_ID FROM poker_player WHERE \"Final_Table_Made\" > 26.0 AND \"Money_Rank\" >= 68.0 AND \"People_ID\" <> 6 AND \"Poker_Player_ID\" <> 2 OR \"Earnings\" <= 476090.0"} {"question": "What Aircraft IDs are 5 or greater in the aircraft table, but not less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M82uz_5.png", "TableImg_Dfqr4_4.png"], "original_data_index": 8373, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the driver IDs that are less than 9 in the driver list, but not also driver IDs of 3 or more in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_690zm_12.png", "TableImg_Q6eeo_5.png"], "original_data_index": 8370, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the People IDs for people who either are in employment and are not ID 2 or have worked for 4 or more years, or are named 'Brad Lohaus' and did not graduate from Oklahoma, or have an ID of 4 or greater?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["7"], ["1"], ["4"], ["2"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_Luaul_5.png", "TableImg_3xrn4_7.png"], "original_data_index": 8386, "original_sql": "SELECT People_ID FROM employment WHERE \"People_ID\" != 2 OR \"Year_working\" >= 4 UNION ALL SELECT People_ID FROM people WHERE Name = \"Brad Lohaus\" AND Graduation_College != \"Oklahoma\" OR \"People_ID\" >= 4"} {"question": "What are the driver IDs that are 3 or less from the driver list, combined with driver ID 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5vdwm_12.png", "TableImg_Ht2u7_5.png"], "original_data_index": 8388, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What driver IDs are not 2 from the drivers, or are 4 or greater from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O3bgn_12.png", "TableImg_Suxzo_5.png"], "original_data_index": 8409, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Tell me the number of beds and decors, the average room name, and the total maximum occupancy, as well as the base price, bed type, and room ID, for rooms that are either for 4 or more people, or that meet some other specific requirements.", "answer": {"columns": ["COUNT(beds)", "basePrice", "bedType", "RoomId", "COUNT(decor)", "AVG(roomName)", "SUM(maxOccupancy)"], "index": [0, 1], "data": [["6", "175", "Queen", "AOB", "6", "0", "24"], ["9", "150", "King", "RND", "9", "0", "28"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_Zpwls_10.png", "TableImg_Pp5s5_10.png"], "original_data_index": 8410, "original_sql": "SELECT COUNT(beds), basePrice, bedType, RoomId, COUNT(decor), AVG(roomName), SUM(maxOccupancy) FROM Rooms WHERE \"maxOccupancy\" >= 4 UNION ALL SELECT COUNT(beds), basePrice, bedType, RoomId, COUNT(decor), AVG(roomName), SUM(maxOccupancy) FROM Rooms WHERE roomName <> \"Convoke and sanguine\" OR decor = \"rustic\" AND \"maxOccupancy\" <> 4 OR \"basePrice\" = 150 AND bedType <> \"Double\" AND RoomId != \"AOB\""} {"question": "Tell me the total of all airport IDs and the company ID for each flight, but only if the minimum flight velocity is 240 or more.", "answer": {"columns": ["SUM(T1.id)", "company_id"], "index": [0], "data": [["44", "3"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Pt6p1_9.png", "TableImg_7xw3k_13.png"], "original_data_index": 8411, "original_sql": "SELECT SUM(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE MIN(Velocity) >= 240.0"} {"question": "What driver IDs are either exactly 12 from the driver table, or 10 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C9iju_12.png", "TableImg_C3ik9_5.png"], "original_data_index": 8423, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What driver IDs are greater than 8 in the driver table, but not driver IDs of 9 or less in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4rrox_12.png", "TableImg_Hc3ow_5.png"], "original_data_index": 8424, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the aircraft IDs that are not 5 in the aircraft table, or are 3 or less in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z1l9w_5.png", "TableImg_Kv6ge_4.png"], "original_data_index": 8431, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the Driver IDs that are either 10 or greater from the driver table, or not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nntln_12.png", "TableImg_Armyi_5.png"], "original_data_index": 8426, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What driver IDs are drivers, excluding ID 5, but not school bus drivers, excluding ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ae79c_12.png", "TableImg_Hvvgb_5.png"], "original_data_index": 8439, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What Driver IDs are not 11 from the driver table or less than 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Osf8n_12.png", "TableImg_9ugkv_5.png"], "original_data_index": 8450, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Could you list the Branch IDs for branches that are not named 'Taverner' and don't have a membership amount of '1418', or are not on 'Glebe Street', or are not in 'Oxford' with a Branch ID greater than 6, or didn't open in '2001'? Also, include Branch IDs from membership registrations that are not from 2016 and have a Member ID of 6 or less.", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["1"], ["6"]]}, "table_names": "['branch' 'membership_register_branch']", "table_image_ids": ["TableImg_9mqm4_8.png", "TableImg_Ml77v_8.png"], "original_data_index": 8451, "original_sql": "SELECT Branch_ID FROM branch WHERE Name != \"Taverner\" AND membership_amount <> \"1418\" OR Address_road <> \"Glebe Street\" OR City <> \"Oxford\" AND \"Branch_ID\" > 6 OR Open_year <> \"2001\" UNION SELECT Branch_ID FROM membership_register_branch WHERE Register_Year <> \"2016\" AND \"Member_ID\" <= 6"} {"question": "Which driver IDs are 12 or less from the driver list, and are not also in the school bus list (excluding driver ID 10 from the school bus list)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pat89_12.png", "TableImg_77df2_5.png"], "original_data_index": 8427, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the head IDs and temporary acting statuses for people who are temporarily acting or whose head ID is not 10?", "answer": {"columns": ["head_ID", "temporary_acting"], "index": [0, 1, 2, 3], "data": [["3", "No"], ["4", "Yes"], ["5", "Yes"], ["6", "Yes"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_Blwmh_5.png", "TableImg_Cwac5_5.png"], "original_data_index": 8452, "original_sql": "SELECT head_ID, temporary_acting FROM management WHERE temporary_acting != \"No\" UNION SELECT head_ID, temporary_acting FROM management WHERE \"head_ID\" != 10"} {"question": "What Aircraft IDs are either 2 or less in the aircraft table, or greater than 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Am2hf_5.png", "TableImg_Zdo35_4.png"], "original_data_index": 8453, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs, other than 4, are drivers but not school bus drivers with IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G4o6j_12.png", "TableImg_W0c7w_5.png"], "original_data_index": 8458, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs that are 8 or less from the driver list, or 10 or less from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Earpw_12.png", "TableImg_J56o5_5.png"], "original_data_index": 8469, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are 12 or greater in the driver list, but are not also driver IDs less than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kcj1u_12.png", "TableImg_8cp17_5.png"], "original_data_index": 8455, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the aircraft IDs that are greater than 2 from the aircraft list, or less than or equal to 1 from the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rkoaj_5.png", "TableImg_Lruv7_4.png"], "original_data_index": 8470, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Which driver IDs are either not 11 in the driver table or greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oc3hh_12.png", "TableImg_Ufmmh_5.png"], "original_data_index": 8484, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the IDs of airports not in the United States and not BRU, and also the IDs of flights with ID up to 4?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["1"], ["2"], ["3"], ["4"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_C1pni_9.png", "TableImg_S1rq1_13.png"], "original_data_index": 8496, "original_sql": "SELECT id FROM airport WHERE Country != \"United States\" AND IATA != \"BRU\" UNION ALL SELECT id FROM flight WHERE \"id\" <= 4"} {"question": "What driver IDs are for drivers, excluding 7, but not for school bus drivers with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_49lzs_12.png", "TableImg_Rlde6_5.png"], "original_data_index": 8497, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which Driver IDs are greater than 10 in the driver table, or less than or equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z7x7t_12.png", "TableImg_Av64g_5.png"], "original_data_index": 8508, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What is aircraft ID 1 if it is in the aircraft or airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vj7c8_5.png", "TableImg_F2ymx_4.png"], "original_data_index": 8514, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What Aircraft IDs are in both the aircraft and airport_aircraft tables, and are also greater than 1 and not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S09vk_5.png", "TableImg_9v6eb_4.png"], "original_data_index": 8471, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What driver IDs, other than 11, are assigned to drivers but not to school bus drivers with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vapyc_12.png", "TableImg_7beca_5.png"], "original_data_index": 8515, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the highest review IDs, both for reviews by user 2, and for reviews with rank less than 3, user ID 2 or higher, rating not equal to 6, and a_id 1 or higher?", "answer": {"columns": ["MAX(i_id)"], "index": [0, 1], "data": [["1"], ["7"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Rw78h_7.png", "TableImg_9lo7b_7.png"], "original_data_index": 8513, "original_sql": "SELECT MAX(i_id) FROM review WHERE \"u_id\" = 2 UNION SELECT MAX(i_id) FROM review WHERE \"rank\" < 3 AND \"u_id\" >= 2 AND \"rating\" <> 6 AND \"a_id\" >= 1"} {"question": "What driver IDs are less than or equal to 1 in the driver table, or less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0fw9k_12.png", "TableImg_Kkgcz_5.png"], "original_data_index": 8516, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are 8 or less, except for driver ID 3 if it is also a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Puqe0_12.png", "TableImg_Gvm2h_5.png"], "original_data_index": 8518, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are for both drivers with IDs 9 or higher and school bus drivers, excluding school bus driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Prooz_12.png", "TableImg_Omby6_5.png"], "original_data_index": 8517, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the aircraft IDs that are number 4 in the aircraft table, or greater than 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5sujt_5.png", "TableImg_Kzzu3_4.png"], "original_data_index": 8522, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What are the aircraft IDs, other than 1, that are in the aircraft table but not among the aircraft IDs less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S56sp_5.png", "TableImg_Gjutz_4.png"], "original_data_index": 8523, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the IDs of drivers, other than 10, who are not also school bus drivers with an ID of 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kio6l_12.png", "TableImg_Iykww_5.png"], "original_data_index": 8521, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the Aircraft IDs from the aircraft table that are 3 or less, excluding those that are also Aircraft ID 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_808tj_5.png", "TableImg_Hus04_4.png"], "original_data_index": 8519, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What driver IDs are either greater than 6, or are school bus driver IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xxhvg_12.png", "TableImg_9vg30_5.png"], "original_data_index": 8524, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What Aircraft IDs are in both the aircraft list (excluding ID 2) and the airport aircraft list (including IDs up to 2)?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T3a06_5.png", "TableImg_8fgk7_4.png"], "original_data_index": 8527, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the driver IDs that are both in the driver list (excluding driver 4) and the school bus driver list (excluding driver 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jgu0j_12.png", "TableImg_W5s6x_5.png"], "original_data_index": 8529, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the average Club ID and a student ID for the 'Bootup Baltimore' club in AKW?", "answer": {"columns": ["AVG(T1.ClubID)", "StuID"], "index": [0], "data": [["1", "1001"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_0z3ey_4.png", "TableImg_Kf8z4_4.png"], "original_data_index": 8528, "original_sql": "SELECT AVG(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubName = \"Bootup Baltimore\" GROUP BY ClubLocation HAVING ClubLocation = \"AKW\""} {"question": "Which driver IDs, that are 4 or less, are both in the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0lq68_12.png", "TableImg_X8aro_5.png"], "original_data_index": 8530, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What driver IDs are both greater than 2 and equal to 3 across driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C0o7h_12.png", "TableImg_Pfaqj_5.png"], "original_data_index": 8531, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What Driver IDs are greater than 4 from the driver table or Driver IDs greater than or equal to 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nyck2_12.png", "TableImg_Ase34_5.png"], "original_data_index": 8532, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are all the driver IDs, except for 4 and 10, from both the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I412s_12.png", "TableImg_T8urc_5.png"], "original_data_index": 8533, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs, other than 9, from the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L5ih3_12.png", "TableImg_7mrzf_5.png"], "original_data_index": 8535, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What Driver IDs are greater than 8 for drivers or not equal to 9 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lj6sv_12.png", "TableImg_14jvo_5.png"], "original_data_index": 8536, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What Driver IDs are below 12 in the driver list or are exactly 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X4usb_12.png", "TableImg_0p0t5_5.png"], "original_data_index": 8537, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are used by both drivers with IDs greater than 9 and school bus drivers with IDs up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_04ysm_12.png", "TableImg_0x50v_5.png"], "original_data_index": 8538, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What driver IDs are 2 or less from the driver table, but are not driver IDs greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T0lx0_12.png", "TableImg_Rwump_5.png"], "original_data_index": 8541, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which Driver IDs are 11 or higher in the driver table, or lower than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yxi93_12.png", "TableImg_Pjmc8_5.png"], "original_data_index": 8539, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What driver IDs are there, other than 4 and 10, considering both regular drivers and school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cg3hy_12.png", "TableImg_39w1u_5.png"], "original_data_index": 8542, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What driver IDs are less than 4 in the driver list or not equal to 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_46ggg_12.png", "TableImg_Eoy6l_5.png"], "original_data_index": 8543, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the shipping agent codes and names for shipping agents named 'Ship' and described as 't', as well as those with the code 'FE'?", "answer": {"columns": ["shipping_agent_code", "shipping_agent_name"], "index": [0, 1], "data": [["SH", "Ship"], ["FE", "Fedex"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Ynvs3_5.png", "TableImg_Bbukj_5.png"], "original_data_index": 8544, "original_sql": "SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_name = \"Ship\" AND shipping_agent_description = \"t\" UNION ALL SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"FE\""} {"question": "What are the driver IDs that are greater than 5 from the driver list, or not equal to 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X3eiq_12.png", "TableImg_Sxgnk_5.png"], "original_data_index": 8547, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs, considering drivers with IDs other than 12, and school bus drivers with IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Obdut_12.png", "TableImg_C5hhh_5.png"], "original_data_index": 8548, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are all the driver IDs, excluding driver ID 7 and driver ID 10 from drivers and school buses respectively, and make sure to show each ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H17kw_12.png", "TableImg_Apm4s_5.png"], "original_data_index": 8552, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are less than 5, excluding any driver ID that is 9 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cir8n_12.png", "TableImg_Dk18e_5.png"], "original_data_index": 8550, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What Driver IDs are both in the group of drivers with IDs up to 7 and in the group of school bus drivers with ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gxybb_12.png", "TableImg_Hnzab_5.png"], "original_data_index": 8549, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What Aircraft IDs are either 3 or less in the aircraft table, or not 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Izkg5_5.png", "TableImg_3al9d_4.png"], "original_data_index": 8553, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Which driver IDs greater than 5 are drivers but not school bus drivers, excluding school bus driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K65mg_12.png", "TableImg_Tfg1e_5.png"], "original_data_index": 8551, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the aircraft IDs greater than 2 that are in the aircraft or airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_El6qa_5.png", "TableImg_Gxbii_4.png"], "original_data_index": 8554, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which Aircraft IDs are listed in both the aircraft table, excluding ID 1, and the airport aircraft table, excluding ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kd35z_5.png", "TableImg_L19lv_4.png"], "original_data_index": 8555, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What Driver IDs are greater than 12, or not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2a2eb_12.png", "TableImg_Qwi9j_5.png"], "original_data_index": 8556, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the total Template Type Description and total Template Type Code for template types described as 'Presentation', and also for template types with the code 'AD'?", "answer": {"columns": ["SUM(Template_Type_Description)", "SUM(Template_Type_Code)"], "index": [0], "data": [["0", "0"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Gi5xq_5.png", "TableImg_B2tcn_5.png"], "original_data_index": 8558, "original_sql": "SELECT SUM(Template_Type_Description), SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Description = \"Presentation\" UNION SELECT SUM(Template_Type_Description), SUM(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Code = \"AD\""} {"question": "What driver IDs are both greater than 5 and not 9, and are used for both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bmlma_12.png", "TableImg_Lttrp_5.png"], "original_data_index": 8559, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What contestant numbers are there for the contestant named 'Loraine NygrenTania Mattioli', but not for contestant number 8, together with the contestant numbers from votes for contestant number 3 or less, or votes created on March 9, 2018 at 7:03 PM from states other than NY?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2], "data": [["2"], ["3"], ["11"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_Trm54_11.png", "TableImg_N4e4v_4.png"], "original_data_index": 8562, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE \"contestant_number\" != 8 AND contestant_name = \"Loraine NygrenTania Mattioli\" UNION SELECT contestant_number FROM VOTES WHERE \"contestant_number\" <= 3 OR created = \"2018-03-09 19:03:21\" AND state <> \"NY\""} {"question": "What are the Driver IDs that are greater than 8 in the driver table or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jiye5_12.png", "TableImg_86f7h_5.png"], "original_data_index": 8561, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What aircraft IDs are in the aircraft table, are less than 2, and are not in the airport_aircraft table as IDs of 5 or more?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2sss5_5.png", "TableImg_Vgc1c_4.png"], "original_data_index": 8563, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "For pets with a Pet ID of 2002 or higher, what are the ages and weights of dogs that are either 3 years old or weigh more than 12 kilograms?", "answer": {"columns": ["pet_age", "weight"], "index": [0], "data": [["2", "13.4"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_Hm2nj_3.png", "TableImg_L5vhz_3.png"], "original_data_index": 8560, "original_sql": "SELECT pet_age, weight FROM Pets WHERE \"PetID\" >= 2002 EXCEPT SELECT pet_age, weight FROM Pets WHERE PetType <> \"dog\" OR \"pet_age\" != 3 AND \"weight\" <= 12.0 OR \"PetID\" < 2002"} {"question": "What are the unique Aircraft IDs that are less than 4 from the aircraft table, or not equal to 3 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8488h_5.png", "TableImg_33ni8_4.png"], "original_data_index": 8565, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What driver IDs are greater than 9 and are also listed in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H7u8g_12.png", "TableImg_D06mp_5.png"], "original_data_index": 8567, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What driver IDs, 3 or lower, are drivers but not school bus drivers with IDs below 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9a2yq_12.png", "TableImg_Mnba4_5.png"], "original_data_index": 8564, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are 1 or less in the driver table, and are not among the driver IDs less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ye4w_12.png", "TableImg_7kvpg_5.png"], "original_data_index": 8566, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What driver IDs are either less than 4 or greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wckw5_12.png", "TableImg_Zux43_5.png"], "original_data_index": 8570, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What driver IDs, other than 5, are also greater than 4 and are used in both driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ucj40_12.png", "TableImg_G7h7g_5.png"], "original_data_index": 8569, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "List all unique Aircraft IDs that are at least 5 in the aircraft table, or are not 2 in the airport_aircraft table.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Udpx1_5.png", "TableImg_Rnl7h_4.png"], "original_data_index": 8573, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What driver IDs are both not 2 and less than 4, and are drivers of school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F62d6_12.png", "TableImg_Rzwfn_5.png"], "original_data_index": 8572, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Please provide the last names, dates of birth, and dates of leaving for staff members who meet any of the following conditions: they were not hired on 2016-06-05 22:22:23 and have a staff ID less than 4, or their middle name is Liam, or their last name is not Sawayn, or their nickname is not nicholaus92 and their staff address ID is 12, or their date of birth is not 2015-08-10 11:37:39 and their date of leaving staff is not 2018-03-06 23:17:41, or their staff ID is not 1.", "answer": {"columns": ["last_name", "date_of_birth", "date_left_staff"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Carroll", "1996-03-09 08:19:49", "2018-03-06 23:17:41"], ["Doyle", "1995-06-03 08:09:17", "2018-03-08 12:31:16"], ["Durgan", "2005-05-02 06:23:36", "2018-03-05 18:30:12"], ["Hermann", "2003-01-16 06:29:11", "2018-03-04 17:13:53"], ["Herzog", "2015-08-10 11:37:39", "2018-03-08 04:23:14"], ["Jast", "2000-06-13 18:09:11", "2018-03-09 05:08:35"], ["Kuphal", "2000-11-16 06:55:12", "2018-03-02 01:48:15"], ["Macejkovic", "2007-06-11 20:03:28", "2018-03-08 05:16:29"], ["Maggio", "1998-04-27 12:55:05", "2018-02-28 08:26:10"], ["Mertz", "1994-05-17 05:32:11", "2018-03-24 10:11:08"], ["Mraz", "2004-05-19 14:11:13", "2018-02-26 17:56:31"], ["Rogahn", "1996-09-24 09:51:42", "2018-03-14 07:14:37"], ["Sawayn", "2010-12-08 16:55:14", "2018-03-23 22:53:12"], ["Turner", "1997-03-29 10:55:45", "2018-03-01 17:10:03"], ["Weissnat", "2015-08-01 13:22:43", "2018-03-10 15:25:00"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_G1uhf_15.png", "TableImg_Ot3o2_15.png"], "original_data_index": 8571, "original_sql": "SELECT last_name, date_of_birth, date_left_staff FROM Staff WHERE date_joined_staff != \"2016-06-05 22:22:23\" AND \"staff_id\" < 4 OR middle_name = \"Liam\" OR last_name <> \"Sawayn\" OR nickname <> \"nicholaus92\" AND \"staff_address_id\" = 12 OR date_of_birth != \"2015-08-10 11:37:39\" AND date_left_staff != \"2018-03-06 23:17:41\" UNION SELECT last_name, date_of_birth, date_left_staff FROM Staff WHERE \"staff_id\" != 1"} {"question": "Are there any drivers with ID 8 who are not also listed as school bus drivers with an ID of 4 or more?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3yo8w_12.png", "TableImg_Idpj2_5.png"], "original_data_index": 8575, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs that are both not driver 6 and also driver 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9b9du_12.png", "TableImg_Dzdts_5.png"], "original_data_index": 8568, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the Driver IDs that are not 8 from the driver table, or are 3 or less from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_693yt_12.png", "TableImg_1u2em_5.png"], "original_data_index": 8577, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the Driver IDs, excluding ID 3 and ID 7 from the driver and school bus lists respectively?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wp7ne_12.png", "TableImg_96fdr_5.png"], "original_data_index": 8578, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "List the feature IDs and descriptions for features that are either not security features, or are not 'AirCon' and not feature number 3, except for those features that are not feature number 4, or are not 'Burglar Alarm', or are not 'Pool' amenities.", "answer": {"columns": ["feature_id", "feature_description"], "index": [0], "data": [["4", "Burglar Alarm"]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_K3tau_3.png", "TableImg_1tm2e_3.png"], "original_data_index": 8574, "original_sql": "SELECT feature_id, feature_description FROM Other_Available_Features WHERE feature_type_code != \"Security\" OR feature_name <> \"AirCon\" AND \"feature_id\" != 3 EXCEPT SELECT feature_id, feature_description FROM Other_Available_Features WHERE \"feature_id\" <> 4 OR feature_description != \"Burglar Alarm\" OR feature_name <> \"Pool\" AND feature_type_code = \"Amenity\""} {"question": "Can you give me the average of company names for companies that either have profits greater than 25.7 billion and are not headquartered in China, or have a Company ID greater than 5, or are not named Gazprom, are not in the Oil and gas industry, have a market value greater than 407.4 billion, and have sales of at least 102.6 billion, and also the average of people names for people who did not graduate from Wisconsin\u2013Stevens Point?", "answer": {"columns": ["AVG(Name)"], "index": [0], "data": [["0"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_Vgvdx_19.png", "TableImg_6lu3g_7.png"], "original_data_index": 8576, "original_sql": "SELECT AVG(Name) FROM company WHERE \"Profits_in_Billion\" > 25.7 AND Headquarters <> \"China\" OR \"Company_ID\" > 5.0 OR Name <> \"Gazprom\" AND Industry != \"Oil and gas\" AND \"Market_Value_in_Billion\" > 407.4 AND \"Sales_in_Billion\" >= 102.6 UNION SELECT AVG(Name) FROM people WHERE Graduation_College != \"Wisconsin\u2013Stevens Point\""} {"question": "Which Aircraft IDs are at least 1 from the aircraft table, or not equal to 1 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mttug_5.png", "TableImg_1vxg0_4.png"], "original_data_index": 8579, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What aircraft IDs, other than 3, are in the aircraft table but not in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ym4zl_5.png", "TableImg_Fnoxe_4.png"], "original_data_index": 8581, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the names of employees who are either under 30, have an ID of 3 or less, or are not 'Lee Mears' and not from 'Wasps', and also the names of shops that are either not in 'Espoo', are named 'FC Inter', or are in 'Wikl\u00f6f Holding Arena' with an ID greater than 2 and not 6000 products?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["Andrew Sheridan"], ["FC Haka"], ["FC Inter"], ["FC KooTeePee"], ["FC Lahti"], ["FF Jaro"], ["George Chuter"], ["HJK"], ["IFK Mariehamn"], ["Jason Hobson"], ["KuPS"], ["Lee Mears"], ["Louis Deacon"], ["Mark Regan"], ["Matt Stevens"], ["Steve Borthwick"], ["Tim Payne"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_Qcp0t_10.png", "TableImg_Qk6ll_9.png"], "original_data_index": 8580, "original_sql": "SELECT Name FROM employee WHERE \"Employee_ID\" <= 3 OR Name != \"Lee Mears\" AND City != \"Wasps\" OR \"Age\" < 30 UNION SELECT Name FROM shop WHERE Location <> \"Espoo\" OR Name = \"FC Inter\" OR \"Shop_ID\" > 2 AND \"Number_products\" <> 6000 AND District = \"Wikl\u00f6f Holding Arena\""} {"question": "Which driver IDs are both not 8 and also 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R7obl_12.png", "TableImg_Nm6ev_5.png"], "original_data_index": 8583, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What driver IDs are either less than 11 from the drivers or 7 or greater from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3oyu8_12.png", "TableImg_Cy4pc_5.png"], "original_data_index": 8585, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What driver IDs, under 6, are drivers but not school bus drivers with IDs 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3wyhh_12.png", "TableImg_X5iyf_5.png"], "original_data_index": 8584, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What certificate IDs are there that are either not for employee 269734834 or not 1, excluding those that are flight IDs less than 5 or from Chicago?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Ek5ea_69.png", "TableImg_0csnt_10.png"], "original_data_index": 8582, "original_sql": "SELECT aid FROM certificate WHERE \"eid\" != 269734834 OR \"aid\" <> 1 EXCEPT SELECT aid FROM flight WHERE \"aid\" < 5 OR origin = \"Chicago\""} {"question": "List the start date, shop ID, full-time status, and employee ID for hiring records that are for shops with ID 2 or greater, and also meet at least one of these conditions: employee ID is less than 7, are not full-time, or have a start date other than 2012.", "answer": {"columns": ["Start_from", "Shop_ID", "Is_full_time", "Employee_ID"], "index": [0, 1, 2, 3, 4], "data": [["2008", "6", "T", "7"], ["2010", "2", "F", "6"], ["2011", "8", "F", "3"], ["2012", "4", "T", "4"], ["2013", "5", "T", "5"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Agtot_7.png", "TableImg_Tsc3a_7.png"], "original_data_index": 8587, "original_sql": "SELECT Start_from, Shop_ID, Is_full_time, Employee_ID FROM hiring WHERE \"Shop_ID\" >= 2 INTERSECT SELECT Start_from, Shop_ID, Is_full_time, Employee_ID FROM hiring WHERE \"Employee_ID\" < 7 OR Is_full_time != \"T\" OR Start_from != \"2012\""} {"question": "What are the document IDs for documents with receipt number 69 or document ID 3 or higher, or for draft copies with document ID greater than 2 and copy number not equal to 6, or draft number less than 20?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Qfwze_15.png", "TableImg_Qjxfb_8.png"], "original_data_index": 8588, "original_sql": "SELECT document_id FROM Documents WHERE receipt_number = \"69\" OR \"document_id\" >= 3 UNION SELECT document_id FROM Draft_Copies WHERE \"document_id\" > 2 AND \"copy_number\" != 6 OR \"draft_number\" < 20"} {"question": "What are the driver IDs, including those of drivers who are not driver 5, and school bus drivers with IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0wgx4_12.png", "TableImg_K2jt9_5.png"], "original_data_index": 8586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are drivers, excluding driver 2, but not school bus drivers, excluding driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F9ywu_12.png", "TableImg_2xvzm_5.png"], "original_data_index": 8589, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Give me the driver IDs that are greater than 11 from the driver table and those that are 10 or less from the school bus table.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2ow3y_12.png", "TableImg_Aosjt_5.png"], "original_data_index": 8591, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What driver IDs are both number 9 and also listed as school bus drivers, excluding driver ID 4 from the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Whjdv_12.png", "TableImg_Vlvhz_5.png"], "original_data_index": 8590, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What driver IDs are greater than 10, and also driver ID 10 if it's in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3gchs_12.png", "TableImg_97xss_5.png"], "original_data_index": 8592, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the count of color page speeds, the average DPI, the minimum product name, and the product IDs for products that are either USB 2.0, have a product ID less than 4, or are not 'Xerox Travel Scanner 100', but not if they are also not A4 size or have a product ID other than 4?", "answer": {"columns": ["COUNT(pages_per_minute_color)", "AVG(dpi)", "MIN(product)", "product_id"], "index": [0], "data": [["6", "600", "Canon DR-2080C", "6"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_H0olu_6.png", "TableImg_Qvj4l_6.png"], "original_data_index": 8593, "original_sql": "SELECT COUNT(pages_per_minute_color), AVG(dpi), MIN(product), product_id FROM product WHERE interface = \"USB 2.0\" OR \"product_id\" < 4 OR product <> \"Xerox Travel Scanner 100\" EXCEPT SELECT COUNT(pages_per_minute_color), AVG(dpi), MIN(product), product_id FROM product WHERE max_page_size != \"A4\" OR \"product_id\" <> 4"} {"question": "What are the driver IDs that are 10 from the driver list, or less than 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3489e_12.png", "TableImg_Ec9aa_5.png"], "original_data_index": 8595, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What property type codes are there for properties that either have apartment feature 3 specified and are not property ID 13, or have a vendor requested price of 2219.68 or more and another feature 1 specified, as well as all property type codes from the property type reference table, excluding 'Shop'?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3], "data": [["Apartment"], ["Field"], ["House"], ["Other"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_U8nds_15.png", "TableImg_0mk94_5.png"], "original_data_index": 8596, "original_sql": "SELECT property_type_code FROM Properties WHERE apt_feature_3 <> \"None\" AND \"property_id\" != 13 OR \"vendor_requested_price\" >= 2219.6778 AND oth_feature_1 != \"None\" UNION ALL SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> \"Shop\""} {"question": "Could you list all Member IDs that are less than 5 from the member table, and also all Member IDs from the membership register branch table that are either less than 8 or not registered in 2016?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_Qeivw_10.png", "TableImg_Unnnq_8.png"], "original_data_index": 8598, "original_sql": "SELECT Member_ID FROM member WHERE \"Member_ID\" < 5 UNION ALL SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" < 8 OR Register_Year <> \"2016\""} {"question": "What staff IDs are found in both lessons with specific exceptions and staff members with specific attributes?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["3"], ["4"], ["5"], ["8"], ["11"], ["12"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_3es90_15.png", "TableImg_724n4_15.png"], "original_data_index": 8594, "original_sql": "SELECT staff_id FROM Lessons WHERE \"customer_id\" != 9 AND lesson_date = \"2018-03-21 06:48:45\" OR lesson_status_code <> \"Completed\" OR \"price\" != 492.0 INTERSECT SELECT staff_id FROM Staff WHERE \"staff_address_id\" >= 14 OR middle_name <> \"Caesar\" OR date_left_staff != \"2018-03-01 17:10:03\" OR nickname = \"bkunze\" AND date_of_birth != \"2007-06-11 20:03:28\" AND \"staff_id\" = 7"} {"question": "What starting years and player IDs from the player_coach table are common to records that meet both of these criteria: (1) either the player ID is less than 10, or the starting year is 2010 or later and the coach ID is greater than 1; and (2) either the player ID is not 1 and the coach ID is 1 or less, or the starting year is after 2013?", "answer": {"columns": ["Starting_year", "Player_ID"], "index": [0, 1], "data": [["2011", "2"], ["2012", "3"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_Q4c8e_7.png", "TableImg_K6agh_7.png"], "original_data_index": 8597, "original_sql": "SELECT Starting_year, Player_ID FROM player_coach WHERE \"Player_ID\" < 10 OR \"Starting_year\" >= 2010 AND \"Coach_ID\" > 1 INTERSECT SELECT Starting_year, Player_ID FROM player_coach WHERE \"Player_ID\" != 1 AND \"Coach_ID\" <= 1 OR \"Starting_year\" > 2013"} {"question": "What are the maximum head ID, age, earliest name, and born state for people who are either under ID 9 and 68 years old, or not from Florida, or named 'K. J. Choi', but not if their ID is 3 or less?", "answer": {"columns": ["MAX(head_ID)", "age", "MIN(name)", "born_state"], "index": [0], "data": [["10", "69", "Billy Mayfair", "California"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_0ni4b_10.png", "TableImg_M4z3e_10.png"], "original_data_index": 8599, "original_sql": "SELECT MAX(head_ID), age, MIN(name), born_state FROM head WHERE \"head_ID\" < 9 AND \"age\" = 68.0 OR born_state <> \"Florida\" OR name = \"K. J. Choi\" EXCEPT SELECT MAX(head_ID), age, MIN(name), born_state FROM head WHERE \"head_ID\" <= 3"} {"question": "What driver ID is both driver number 9 and also a school bus driver with ID 3 or more?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_667jg_12.png", "TableImg_Ygcdg_5.png"], "original_data_index": 8600, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What is the highest number of issues for books not published by Pearson, and which publisher is associated with a book having that many issues?", "answer": {"columns": ["MAX(T1.Issues)", "Publisher"], "index": [0], "data": [["12", "Wiley"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_G4ly7_10.png", "TableImg_P51vs_7.png"], "original_data_index": 8601, "original_sql": "SELECT MAX(T1.Issues), T2.Publisher FROM book as T1 JOIN publication as T2 ON T1.Book_ID = T2.Book_ID WHERE Publisher <> \"Pearson\""} {"question": "What Aircraft IDs are present in both the aircraft and airport_aircraft lists, excluding ID 3 and only considering IDs less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Orgha_5.png", "TableImg_Y2w8e_4.png"], "original_data_index": 8604, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What driver IDs are either greater than 8 or at most 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1qbud_12.png", "TableImg_Ylw81_5.png"], "original_data_index": 8602, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What driver IDs are either greater than 11 in the driver table or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rjbqn_12.png", "TableImg_F6ixd_5.png"], "original_data_index": 8603, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are 5 or greater, but are not among the school bus driver IDs that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sy75k_12.png", "TableImg_40i7l_5.png"], "original_data_index": 8606, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the Store IDs that are either greater than 4 in district stores, or less than 5 and not for product 2 in product stores?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["5"], ["1"], ["1"], ["1"], ["1"], ["2"], ["2"], ["2"], ["3"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_2l29g_5.png", "TableImg_Pzjfe_15.png"], "original_data_index": 8605, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" > 4 UNION ALL SELECT Store_ID FROM store_product WHERE \"Store_ID\" < 5 AND \"Product_ID\" != 2"} {"question": "What Driver IDs are number 2 in the driver list but not greater than 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ou62_12.png", "TableImg_Gfpcl_5.png"], "original_data_index": 8607, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are less than 7 from the drivers or less than 4 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iyeap_12.png", "TableImg_Gd05c_5.png"], "original_data_index": 8611, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the Driver IDs that are at least 1, or are greater than 4 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nh7my_12.png", "TableImg_6qrfg_5.png"], "original_data_index": 8609, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What is a store ID and the highest product ID for product ID 2, and also, what is a store ID and the highest product ID for stores with ID 1 or greater?", "answer": {"columns": ["Store_ID", "MAX(Product_ID)"], "index": [0, 1], "data": [["1", "2"], ["1", "6"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_96g2m_15.png", "TableImg_Yx6kf_15.png"], "original_data_index": 8610, "original_sql": "SELECT Store_ID, MAX(Product_ID) FROM store_product WHERE \"Product_ID\" = 2 UNION ALL SELECT Store_ID, MAX(Product_ID) FROM store_product WHERE \"Store_ID\" >= 1"} {"question": "Find the driver IDs that are less than 3, but exclude any driver IDs that are greater than 10 in the school bus records.", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S4enp_12.png", "TableImg_276qs_5.png"], "original_data_index": 8612, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the rank, club ID, coach ID, and coach name of coaches who are either not male, or not ranked 1, or have a coach ID greater than 5, or are ranked 2, or are not named 'Smith Brown'?", "answer": {"columns": ["Rank", "Club_ID", "Coach_ID", "Coach_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2", "1", "2", "Joe Fabbri"], ["3", "3", "3", "Robert Chen"], ["4", "3", "4", "James Wong"], ["5", "1", "5", "Smith Brown"], ["1", "1", "1", "Jameson Tomas"], ["2", "1", "2", "Joe Fabbri"], ["3", "3", "3", "Robert Chen"], ["4", "3", "4", "James Wong"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_3wpa1_5.png", "TableImg_8wnrt_5.png"], "original_data_index": 8613, "original_sql": "SELECT Rank, Club_ID, Coach_ID, Coach_name FROM coach WHERE Gender <> \"M\" OR \"Rank\" != 1 OR \"Coach_ID\" > 5 UNION ALL SELECT Rank, Club_ID, Coach_ID, Coach_name FROM coach WHERE \"Rank\" = 2 OR Coach_name != \"Smith Brown\" OR Gender != \"M\""} {"question": "Which driver IDs are 8 or greater and are drivers but not school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T26e1_12.png", "TableImg_U65mw_5.png"], "original_data_index": 8614, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs that are both not equal to 6 and greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2sj7t_12.png", "TableImg_Fvwo5_5.png"], "original_data_index": 8615, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which aircraft IDs are at least 2 in the aircraft table, but are not greater than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F2vmx_5.png", "TableImg_F1661_4.png"], "original_data_index": 8618, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which Aircraft IDs are in the aircraft table with an ID of 4 or more and also in the airport_aircraft table with an ID of 5 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Goa1t_5.png", "TableImg_Evioo_4.png"], "original_data_index": 8617, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What driver IDs, other than 4, are in the driver table but not among driver IDs 1 to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3udlb_12.png", "TableImg_Spmqj_5.png"], "original_data_index": 8616, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What driver IDs are 6 or greater, but are not also driver IDs less than 10 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0eoyj_12.png", "TableImg_0kvhd_5.png"], "original_data_index": 8620, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the address details for addresses with an ID of 6 or less, excluding 'IE', and also for address ID 9?", "answer": {"columns": ["address_details"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["IT"], ["MX"], ["DE"], ["ES"], ["ES"], ["US"], ["MX"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Pc1xt_10.png", "TableImg_Cr8u4_10.png"], "original_data_index": 8619, "original_sql": "SELECT address_details FROM Addresses WHERE \"address_id\" <= 6 AND address_details != \"IE\" UNION ALL SELECT address_details FROM Addresses WHERE \"address_id\" = 9"} {"question": "Which driver ID is number 2 and is a driver but not a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rq9w9_12.png", "TableImg_Hae1v_5.png"], "original_data_index": 8622, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What driver IDs are greater than 5 but are not also driver IDs less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zxslo_12.png", "TableImg_Av0r4_5.png"], "original_data_index": 8623, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are 4 or greater in the driver list, but not 4 or less in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3e8vo_12.png", "TableImg_1v6m5_5.png"], "original_data_index": 8624, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Give me the driver IDs that are greater than 5 from the driver list, excluding any driver IDs that are 10 or more from the school bus list.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0y2ox_12.png", "TableImg_Ay5kq_5.png"], "original_data_index": 8625, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the unique Aircraft IDs that are less than or equal to 1 from the aircraft table, or not equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_14o2i_5.png", "TableImg_M6wue_4.png"], "original_data_index": 8626, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the driver IDs that are both less than 7 and not equal to 9, and are found in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_76tpv_12.png", "TableImg_Jmbqi_5.png"], "original_data_index": 8630, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the document IDs of documents that are not papers or are draft copies with copy number 10?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["7"], ["12"], ["13"], ["14"], ["15"], ["23"], ["24"], ["25"], ["10"], ["12"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Ejgmr_15.png", "TableImg_5mcf2_8.png"], "original_data_index": 8629, "original_sql": "SELECT document_id FROM Documents WHERE document_type_code <> \"Paper\" UNION ALL SELECT document_id FROM Draft_Copies WHERE \"copy_number\" = 10"} {"question": "What driver IDs are both drivers, excluding driver 6, and school bus drivers with IDs up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ozma2_12.png", "TableImg_Fr4bm_5.png"], "original_data_index": 8627, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What driver IDs are not 10 from the driver table, or are 4 or greater from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gllzx_12.png", "TableImg_0u0ke_5.png"], "original_data_index": 8628, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What driver IDs are on both the driver list and the school bus list and are 4 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0w4rr_12.png", "TableImg_Oovt0_5.png"], "original_data_index": 8632, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Give me a list of driver IDs that are 4 or greater from the driver table, along with driver ID 9 from the school bus table.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9zc6s_12.png", "TableImg_8yuo4_5.png"], "original_data_index": 8633, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What driver IDs are drivers, excluding driver 3, but not school bus drivers with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fp6jc_12.png", "TableImg_Ewh5x_5.png"], "original_data_index": 8634, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are less than 6 from the drivers, and not among the driver IDs greater than 10 in the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y8xtc_12.png", "TableImg_I1klv_5.png"], "original_data_index": 8631, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the Driver IDs that are both not equal to 2 and also less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ykj19_12.png", "TableImg_Nzaei_5.png"], "original_data_index": 8636, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the genders and ranks of coaches who are either male, or not from club 3, not named Joe Fabbri, and have a Coach ID of 3 or greater, except for any genders and ranks that are also found among players living in Winnipeg?", "answer": {"columns": ["Gender", "Rank"], "index": [0, 1, 2, 3], "data": [["M", "1"], ["M", "3"], ["M", "4"], ["M", "5"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_7902a_5.png", "TableImg_Vk5ia_14.png"], "original_data_index": 8635, "original_sql": "SELECT Gender, Rank FROM coach WHERE \"Club_ID\" != 3 AND Coach_name != \"Joe Fabbri\" AND \"Coach_ID\" >= 3 OR Gender = \"M\" EXCEPT SELECT Gender, Rank FROM player WHERE Residence = \"Winnipeg\""} {"question": "What are driver ID number 5, and all school bus driver IDs up to number 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sgk0e_12.png", "TableImg_Mxqyd_5.png"], "original_data_index": 8637, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What driver IDs are on both the driver list and the school bus list, excluding ID 7 and including only IDs up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tkvud_12.png", "TableImg_J6xdr_5.png"], "original_data_index": 8638, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are either less than 11 from the driver table or not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Volv1_12.png", "TableImg_U5kb0_5.png"], "original_data_index": 8641, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What driver IDs are drivers, other than 8, but not school bus drivers, other than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rj8j9_12.png", "TableImg_2b70t_5.png"], "original_data_index": 8639, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you tell me driver ID 2 from the driver list, and also all driver IDs that are not 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E67w5_12.png", "TableImg_26b0j_5.png"], "original_data_index": 8640, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are either not 4 in the driver table, or are less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_066nl_12.png", "TableImg_0e70o_5.png"], "original_data_index": 8645, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the company IDs of companies that are headquartered in the USA, or that have employees with more than 4 years of employment?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["8"], ["9"], ["12"], ["14"], ["16"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_7vraj_19.png", "TableImg_3n1nw_5.png"], "original_data_index": 8642, "original_sql": "SELECT Company_ID FROM company WHERE Headquarters = \"USA\" UNION ALL SELECT Company_ID FROM employment WHERE \"Year_working\" > 4"} {"question": "What are the unique Aircraft IDs that are 5 or greater from the aircraft table, or not equal to 3 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_14ty9_5.png", "TableImg_P5s4q_4.png"], "original_data_index": 8644, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which driver IDs are in both the driver list (excluding driver 6) and the school bus list (for driver IDs 3 or less)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P2tsb_12.png", "TableImg_9he3g_5.png"], "original_data_index": 8649, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which Aircraft IDs, that are 4 or higher, are listed in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dh7ni_5.png", "TableImg_Qf9yb_4.png"], "original_data_index": 8650, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you list the incorporation location and ID, along with the total of 'Type', the alphabetically first 'name', the lowest 'Group Equity Shareholding', and the total of 'Principal Activities', for companies from the 'operate_company' table that satisfy either of these sets of criteria: (1) companies not incorporated in Hong Kong, or (not ID 11 and equity shareholding over 100), or (named 'VN/CX Catering Services Limited' and 'Joint Venture'), or (principal activity not 'Laundry'); OR (2) companies with (ID 10 or less and 100% equity shareholding), or ('Joint Venture'), or (not named 'Cathay Pacific Holidays'), or (principal activity not 'Airline'), or (not incorporated in Hong Kong)? Please combine all results into one list.", "answer": {"columns": ["Incorporated_in", "id", "SUM(Type)", "MIN(name)", "MIN(Group_Equity_Shareholding)", "SUM(Principal_activities)"], "index": [0, 1], "data": [["China", "1", "0", "Air China", "18.77", "0"], ["China", "1", "0", "Air China", "18.77", "0"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_M06jl_14.png", "TableImg_Lpu73_14.png"], "original_data_index": 8647, "original_sql": "SELECT Incorporated_in, id, SUM(Type), MIN(name), MIN(Group_Equity_Shareholding), SUM(Principal_activities) FROM operate_company WHERE Incorporated_in != \"Hong Kong\" OR \"id\" != 11 AND \"Group_Equity_Shareholding\" > 100.0 OR name = \"VN/CX Catering Services Limited\" AND Type = \"Joint Venture\" OR Principal_activities != \"Laundry\" UNION ALL SELECT Incorporated_in, id, SUM(Type), MIN(name), MIN(Group_Equity_Shareholding), SUM(Principal_activities) FROM operate_company WHERE \"id\" <= 10 AND \"Group_Equity_Shareholding\" = 100.0 OR Type = \"Joint Venture\" OR name <> \"Cathay Pacific Holidays\" OR Principal_activities != \"Airline\" OR Incorporated_in <> \"Hong Kong\""} {"question": "What are the average start dates for each shop, both for employees who are not employee 2, or are full-time, or are not in shop 4, or did not start in 2009, and also for part-time employees?", "answer": {"columns": ["AVG(Start_from)", "Shop_ID"], "index": [0, 1], "data": [["2009.4285714286", "1"], ["2010.5", "8"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Raic6_7.png", "TableImg_Zoh9j_7.png"], "original_data_index": 8648, "original_sql": "SELECT AVG(Start_from), Shop_ID FROM hiring WHERE \"Employee_ID\" != 2 OR Is_full_time = \"T\" OR \"Shop_ID\" != 4 OR Start_from != \"2009\" UNION ALL SELECT AVG(Start_from), Shop_ID FROM hiring WHERE Is_full_time <> \"T\""} {"question": "What driver IDs are shared between drivers who are not driver 3 and school bus drivers who are not driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6hht8_12.png", "TableImg_G313c_5.png"], "original_data_index": 8651, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What aircraft IDs, other than 3, are listed in the aircraft table but not in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O0av8_5.png", "TableImg_Zigbh_4.png"], "original_data_index": 8653, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the total 'Committee', 'Delegate', 'Counties Represented', total 'Election ID', and 'District' for elections first held outside 1994, excluding those that also meet a specific set of conditions on election details?", "answer": {"columns": ["SUM(Committee)", "Delegate", "Counties_Represented", "SUM(Election_ID)", "District"], "index": [0], "data": [["0", "Bates, Gail H. Gail H. Bates", "09.1 9A", "13", "1"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_3mksj_8.png", "TableImg_6r5j2_8.png"], "original_data_index": 8652, "original_sql": "SELECT SUM(Committee), Delegate, Counties_Represented, SUM(Election_ID), District FROM election WHERE \"First_Elected\" != 1994.0 EXCEPT SELECT SUM(Committee), Delegate, Counties_Represented, SUM(Election_ID), District FROM election WHERE \"Election_ID\" <> 6 OR \"Party\" <> 1 AND Delegate <> \"Miller, Warren E. Warren E. Miller\" AND Committee = \"Appropriations\" OR \"District\" > 1 OR \"First_Elected\" = 1994.0 AND Counties_Represented <> \"13\""} {"question": "What driver IDs are less than 7 in the driver table but are not driver IDs of 9 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qf055_12.png", "TableImg_T9t3i_5.png"], "original_data_index": 8646, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What driver IDs are 8 or less in the driver table, but not also 4 or less in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_34g6s_12.png", "TableImg_4gnuq_5.png"], "original_data_index": 8656, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the County IDs for counties that either have an ID of 3 or more, or a zip code other than 'D08', or are not named 'Howard' and have a population different from 90000, or have a population of 79000 or more?", "answer": {"columns": ["County_Id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["4"], ["5"], ["2"], ["3"], ["4"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_47miy_5.png", "TableImg_Knh77_5.png"], "original_data_index": 8658, "original_sql": "SELECT County_Id FROM county WHERE \"County_Id\" >= 3 OR Zip_code <> \"D08\" OR County_name != \"Howard\" AND \"Population\" <> 90000.0 UNION ALL SELECT County_Id FROM county WHERE \"Population\" >= 79000.0"} {"question": "What driver IDs are both greater than 5 and not equal to 3, considering drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2tzfm_12.png", "TableImg_Cfp8d_5.png"], "original_data_index": 8657, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What driver IDs are for drivers other than driver 4, and are not school bus drivers with IDs 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5u3a7_12.png", "TableImg_Daq38_5.png"], "original_data_index": 8659, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the driver IDs that are not 12 from the drivers, and driver IDs that are 3 or less from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ud716_12.png", "TableImg_5k1i2_5.png"], "original_data_index": 8660, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs that are drivers, but not driver ID 11, and also not driver ID 9 if driver ID 9 is a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nd39k_12.png", "TableImg_Hscxv_5.png"], "original_data_index": 8661, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What driver IDs are in both the driver list, excluding driver 8, and the school bus driver list, excluding driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W01ie_12.png", "TableImg_B1nkb_5.png"], "original_data_index": 8655, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the driver IDs of drivers who are not driver 3, and who are not also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qxfd5_12.png", "TableImg_0frnt_5.png"], "original_data_index": 8662, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What is the highest vehicle detail and the number of vehicles that are trucks and have vehicle ID 1, as well as for vehicles with vehicle IDs greater than 1?", "answer": {"columns": ["MAX(vehicle_details)", "COUNT(vehicle_id)"], "index": [0, 1], "data": [["", "0"], ["Truck", "2"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_R3h7e_3.png", "TableImg_Elhs2_3.png"], "original_data_index": 8654, "original_sql": "SELECT MAX(vehicle_details), COUNT(vehicle_id) FROM Vehicles WHERE vehicle_details = \"Truck\" AND \"vehicle_id\" = 1 UNION ALL SELECT MAX(vehicle_details), COUNT(vehicle_id) FROM Vehicles WHERE \"vehicle_id\" > 1"} {"question": "What driver IDs are drivers, except for driver 12, but are not school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oqi6t_12.png", "TableImg_Fx4co_5.png"], "original_data_index": 8666, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What driver IDs, greater than or equal to 9, excluding 10, are in both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Boyzz_12.png", "TableImg_Odohx_5.png"], "original_data_index": 8665, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the average market values for industries that meet either of two different sets of company financial conditions?", "answer": {"columns": ["AVG(Market_Value_in_Billion)", "Industry"], "index": [0, 1, 2, 3, 4], "data": [["79.5", "Automotive"], ["173.5285714286", "Banking"], ["207.95", "Conglomerate"], ["208.4", "Retailing"], ["220.9125", "Oil and gas"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_8icc5_19.png", "TableImg_Cicul_19.png"], "original_data_index": 8664, "original_sql": "SELECT AVG(Market_Value_in_Billion), Industry FROM company WHERE Name <> \"Volkswagen Group\" AND \"Company_ID\" >= 19.0 OR \"Profits_in_Billion\" <= 31.7 OR \"Sales_in_Billion\" <> 82.6 AND \"Assets_in_Billion\" >= 209.5 GROUP BY Industry HAVING AVG(Market_Value_in_Billion) >= 79.5 UNION SELECT AVG(Market_Value_in_Billion), Industry FROM company WHERE Industry = \"Banking\" OR \"Company_ID\" != 2.0 OR Name <> \"ExxonMobil\" OR \"Market_Value_in_Billion\" <> 202.2 OR \"Profits_in_Billion\" != 10.3 AND \"Assets_in_Billion\" >= 328.7 AND \"Sales_in_Billion\" > 433.5 GROUP BY Industry HAVING AVG(Market_Value_in_Billion) <= 208.4"} {"question": "What are the IDs of albums other than 'Live On Two Legs live' and also the IDs of genres that are 'Metal'?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["3"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Swh4s_347.png", "TableImg_Ma62w_25.png"], "original_data_index": 8667, "original_sql": "SELECT id FROM albums WHERE title <> \"Live On Two Legs live\" UNION ALL SELECT id FROM genres WHERE name = \"Metal\""} {"question": "What customer IDs, other than 11, are in the payment records but are not also associated with customers who either owe less than 1000 and have mobile number '00659133944', or have a different email address from 'myrl.lind@example.net'?", "answer": {"columns": ["customer_id"], "index": [0], "data": [["12"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Lw82y_15.png", "TableImg_2bm73_15.png"], "original_data_index": 8668, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"customer_id\" <> 11 EXCEPT SELECT customer_id FROM Customers WHERE \"amount_outstanding\" < 1000.0 AND cell_mobile_phone_number = \"00659133944\" OR email_address <> \"myrl.lind@example.net\""} {"question": "What driver IDs are common to drivers with IDs less than 8 and school bus drivers with IDs 7 or more?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dod63_12.png", "TableImg_L6c8c_5.png"], "original_data_index": 8669, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the IDs of albums that are either by artists with ID 271 or higher and have an ID of 226 or higher, or are not titled 'Raul Seixas', together with the IDs of genres that are numbered below 22?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Sf0a6_347.png", "TableImg_Y7a5i_25.png"], "original_data_index": 8671, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" >= 271 AND \"id\" >= 226 OR title != \"Raul Seixas\" UNION SELECT id FROM genres WHERE \"id\" < 22"} {"question": "What aircraft IDs are in the aircraft table and are 2 or greater, but are not 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5mxqf_5.png", "TableImg_Wy5e9_4.png"], "original_data_index": 8672, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What Aircraft IDs are either greater than 5, or not equal to 2, considering information from both aircraft and airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eciw2_5.png", "TableImg_Yi8p6_4.png"], "original_data_index": 8663, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which Driver IDs are in the driver table and are greater than 2, and also in the school_bus table and are equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Osoot_12.png", "TableImg_Al8i0_5.png"], "original_data_index": 8674, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What is the total sum of IDs, combining the sum from car makers excluding those with ID 22 or 'Kia Motors', and the sum from car data for cars that either have an engine displacement of 168 or more and an ID greater than 371, or are from 1981, weigh 2979 or more, don't accelerate at 16, have more than 6 cylinders, and have 150 horsepower?", "answer": {"columns": ["SUM(Id)"], "index": [0, 1], "data": [["244"], ["2683"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_9uoil_22.png", "TableImg_7pk87_406.png"], "original_data_index": 8673, "original_sql": "SELECT SUM(Id) FROM car_makers WHERE \"Id\" <> 22 OR FullName <> \"Kia Motors\" UNION SELECT SUM(Id) FROM cars_data WHERE \"Edispl\" >= 168.0 AND \"Id\" > 371 OR \"Year\" = 1981 AND \"Weight\" >= 2979 AND \"Accelerate\" != 16.0 AND \"Cylinders\" > 6 AND Horsepower = \"150\""} {"question": "What are the aircraft IDs that are either not equal to 2 from the aircraft table or less than or equal to 5 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q3tkr_5.png", "TableImg_274zw_4.png"], "original_data_index": 8675, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the document IDs for document drafts that are not 'w' and for documents that are not document number 2?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_W83zk_15.png", "TableImg_0h24w_15.png"], "original_data_index": 8677, "original_sql": "SELECT document_id FROM Document_Drafts WHERE draft_details != \"w\" UNION SELECT document_id FROM Documents WHERE \"document_id\" != 2"} {"question": "Which driver IDs are greater than 6, but not also 10 or greater in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ku818_12.png", "TableImg_Hq25n_5.png"], "original_data_index": 8676, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Does student 1026 have a grass pollen allergy?", "answer": {"columns": ["Allergy"], "index": [0], "data": [["Grass Pollen"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_Apldw_14.png", "TableImg_Fo064_59.png"], "original_data_index": 8680, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE Allergy = \"Grass Pollen\" INTERSECT SELECT Allergy FROM Has_Allergy WHERE \"StuID\" = 1026"} {"question": "What are the feature type codes, excluding 'Security' types with feature IDs greater than 4 from available features, and excluding 'Security, eg Burglar Alarm.' types from reference feature types?", "answer": {"columns": ["feature_type_code"], "index": [0], "data": [["Amenity"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_E4t8e_3.png", "TableImg_6pt0u_2.png"], "original_data_index": 8679, "original_sql": "SELECT feature_type_code FROM Other_Available_Features WHERE feature_type_code <> \"Security\" AND \"feature_id\" > 4 UNION ALL SELECT feature_type_code FROM Ref_Feature_Types WHERE feature_type_name <> \"Securiyt, eg Burglar Alarm.\""} {"question": "What driver IDs are number 1, but not also school bus driver IDs of 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mew0s_12.png", "TableImg_Q9im7_5.png"], "original_data_index": 8678, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which driver IDs are in the driver table, except for driver ID 9, and are not also listed in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wbnbw_12.png", "TableImg_H4hvn_5.png"], "original_data_index": 8681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which aircraft IDs, other than 2, are in the aircraft or airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B6yf9_5.png", "TableImg_Js10s_4.png"], "original_data_index": 8683, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What driver IDs are not 12 from the driver list or less than 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fj5k8_12.png", "TableImg_Byd2x_5.png"], "original_data_index": 8682, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What driver IDs are less than 12, excluding those that are also greater than 3 and associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J0xai_12.png", "TableImg_Rkm82_5.png"], "original_data_index": 8685, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What driver IDs are either greater than 11, or are driver IDs less than 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jy48q_12.png", "TableImg_Natz8_5.png"], "original_data_index": 8684, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the Aircraft IDs that are 1 or less from the aircraft table, or not equal to 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5h4q4_5.png", "TableImg_Z8od9_4.png"], "original_data_index": 8686, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the driver IDs that are greater than 7 in the driver table, or less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ig3cd_12.png", "TableImg_Sx55k_5.png"], "original_data_index": 8687, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the role codes for employees who are not part-time, as well as the role codes from the Roles table that are not 'PR' and are not for Editors?", "answer": {"columns": ["role_code"], "index": [0, 1, 2, 3, 4, 5], "data": [["ED"], ["ED"], ["PR"], ["MG"], ["PT"], ["MG"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_X786z_6.png", "TableImg_25r2d_4.png"], "original_data_index": 8688, "original_sql": "SELECT role_code FROM Employees WHERE role_code <> \"PT\" UNION ALL SELECT role_code FROM Roles WHERE role_code != \"PR\" AND role_description != \"Editor\""} {"question": "Which driver IDs are 7 or below from the drivers, and also driver ID 10 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3y0je_12.png", "TableImg_Diuyv_5.png"], "original_data_index": 8689, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What Aircraft IDs are common to both the aircraft and airport_aircraft lists, considering only aircraft IDs of 3 or more and 5 or less respectively?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3php4_5.png", "TableImg_Oe7lo_4.png"], "original_data_index": 8692, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What driver IDs are drivers but not school bus drivers, excluding driver ID 2 and driver ID 7 from the respective lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Twz6u_12.png", "TableImg_5rg6p_5.png"], "original_data_index": 8691, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What Aircraft IDs are either greater than 5 or not equal to 1", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J4mle_5.png", "TableImg_6nry0_4.png"], "original_data_index": 8693, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What driver IDs are both not 4 and also 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3l0z5_12.png", "TableImg_C6ops_5.png"], "original_data_index": 8690, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What aircraft IDs are in both the aircraft and airport aircraft lists, and are 3 or greater, but not 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wpsk3_5.png", "TableImg_Qjbbz_4.png"], "original_data_index": 8697, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What aircraft IDs, other than 4, are in the aircraft table but not in the airport_aircraft table, if we ignore ID 1 in that table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yyg3x_5.png", "TableImg_82sg3_4.png"], "original_data_index": 8698, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What driver IDs are both less than 11 and not equal to 3, and appear in both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Og37o_12.png", "TableImg_Yz2tb_5.png"], "original_data_index": 8694, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Could you list the zip code, building number, state, city, address ID, and country for addresses that are either not in Kentucky, or in the USA, or have zip code 95098, or have an address ID less than 4, or are not in Lake Rafaela, or have a building number other than '9260 Streich Mountain', or are in the USA and have zip code 27559?", "answer": {"columns": ["zip_postcode", "line_1_number_building", "state_province_county", "city", "address_id", "country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["5", "484 O'Hara Drive", "Oregon", "Buckridgehaven", "4", "USA"], ["8938", "00704 Zoe Alley", "Georgia", "Lake Elaina", "3", "USA"], ["14445", "3904 Stroman Passage", "Georgia", "Port Melyssa", "1", "USA"], ["22194", "053 Quigley Island", "Kentucky", "Hagenesfurt", "2", "USA"], ["27559", "354 Frederik Ridge", "Ohio", "Powlowskichester", "5", "USA"], ["34975", "56461 Baumbach Well Suite 634", "Washington", "Lockmanfurt", "7", "USA"], ["38197", "7089 Mueller Forks", "Louisiana", "New Bernieceburgh", "12", "USA"], ["43988", "9260 Streich Mountain", "Kentucky", "West Edmondview", "15", "USA"], ["61121", "4834 Schaefer Light Suite 947", "Connecticut", "Damianfort", "14", "USA"], ["63768", "376 Kallie Tunnel Apt. 784", "Connecticut", "Elviebury", "6", "USA"], ["75074", "43235 Jazmin Mountain Suite 251", "Louisiana", "Ericamouth", "13", "USA"], ["80376", "29085 Dejah Pine Suite 059", "WestVirginia", "Lake Rafaela", "8", "USA"], ["85954", "535 Ariel Brook", "Maine", "Port Jackelinemouth", "9", "USA"], ["95098", "2291 Larkin Ports", "Idaho", "South Richieport", "10", "USA"], ["99903", "37698 Hahn Curve Apt. 572", "Alabama", "South Eugene", "11", "USA"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Xz0xm_15.png", "TableImg_146hp_15.png"], "original_data_index": 8699, "original_sql": "SELECT zip_postcode, line_1_number_building, state_province_county, city, address_id, country FROM Addresses WHERE state_province_county != \"Kentucky\" OR country = \"USA\" OR zip_postcode = \"95098\" OR \"address_id\" < 4 OR city <> \"Lake Rafaela\" OR line_1_number_building <> \"9260 Streich Mountain\" UNION SELECT zip_postcode, line_1_number_building, state_province_county, city, address_id, country FROM Addresses WHERE country = \"USA\" AND zip_postcode = \"27559\""} {"question": "What driver ID do drivers with ID 11 or less and school bus drivers with ID 3 have in common?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7xxp8_12.png", "TableImg_26meu_5.png"], "original_data_index": 8696, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs, less than 11, are drivers but not school bus drivers (ignoring school bus driver 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lkxj8_12.png", "TableImg_63gr4_5.png"], "original_data_index": 8700, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Could you list the type, number of product categories, count of rankings, average store ID, area size, and store name for stores that meet either of these criteria: a ranking of 9 or higher, a store ID of 4 or lower, or less than 990 product categories; OR an area size less than 179.84, exactly 990 product categories, a ranking not equal to 10, or a store ID of 4?", "answer": {"columns": ["Type", "Number_of_product_category", "COUNT(Ranking)", "AVG(Store_ID)", "Area_size", "Store_Name"], "index": [0, 1], "data": [["City Mall", "17811", "5", "3", "179.84", "Miramichi"], ["City Mall", "17811", "5", "3", "179.84", "Miramichi"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_8o5fi_5.png", "TableImg_Kup9o_5.png"], "original_data_index": 8695, "original_sql": "SELECT Type, Number_of_product_category, COUNT(Ranking), AVG(Store_ID), Area_size, Store_Name FROM store WHERE \"Ranking\" >= 9 OR \"Store_ID\" <= 4 OR \"Number_of_product_category\" < 990.0 UNION ALL SELECT Type, Number_of_product_category, COUNT(Ranking), AVG(Store_ID), Area_size, Store_Name FROM store WHERE \"Area_size\" < 179.84 OR \"Number_of_product_category\" = 990.0 OR \"Ranking\" <> 10 OR \"Store_ID\" = 4"} {"question": "What driver IDs are both in the list of all drivers, excluding driver 4, and in the list of school bus drivers, including only driver 4 and above?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eod59_12.png", "TableImg_6eryw_5.png"], "original_data_index": 8701, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Find driver ID 6 from the drivers and all driver IDs except 7 from the school buses.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dij3d_12.png", "TableImg_1nmu2_5.png"], "original_data_index": 8702, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Is driver ID 5 a driver but not a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_14z5w_12.png", "TableImg_5v83n_5.png"], "original_data_index": 8703, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "For draft copies, what are the document IDs and draft numbers where the draft number is greater than 9 or the copy number is 10, excluding those with a document ID of 2 or less?", "answer": {"columns": ["document_id", "draft_number"], "index": [0, 1, 2], "data": [["10", "20"], ["12", "12"], ["20", "17"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_G3q7p_8.png", "TableImg_Mlnve_8.png"], "original_data_index": 8704, "original_sql": "SELECT document_id, draft_number FROM Draft_Copies WHERE \"draft_number\" > 9 OR \"copy_number\" = 10 EXCEPT SELECT document_id, draft_number FROM Draft_Copies WHERE \"document_id\" <= 2"} {"question": "What are the Aircraft IDs, including those from the aircraft table except for ID 4, and those from the airport_aircraft table that are ID 1 or higher?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Acf5c_5.png", "TableImg_Mhhjt_4.png"], "original_data_index": 8706, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What Aircraft IDs are less than 3 in the aircraft table, or less than or equal to 3 in the airport_aircraft table, and show each ID only once?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bswn2_5.png", "TableImg_Bp67r_4.png"], "original_data_index": 8705, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What aircraft IDs are in the aircraft list with an ID of 5 or less, but are not in the airport aircraft list with an ID less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rx96x_5.png", "TableImg_Ej698_4.png"], "original_data_index": 8709, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are both greater than 7 and not 9, considering drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iwwv3_12.png", "TableImg_Yhrfw_5.png"], "original_data_index": 8708, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What driver IDs are 6 or less, and not also 3 or greater in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8sv28_12.png", "TableImg_Nt0ui_5.png"], "original_data_index": 8710, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What is the minimum number of issues for books that either have a Book ID greater than 3 and are not named 'Gemini Blood', or have 9 or fewer issues, unless that number is also the minimum number of issues for books that are either not named 'Michael Moorcock's Multiverse' and have a Book ID over 6 and at most 4 issues, or are not by Garth Ennis?", "answer": {"columns": ["MIN(Issues)"], "index": [0], "data": [["1"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_Lf0pl_10.png", "TableImg_K5549_10.png"], "original_data_index": 8707, "original_sql": "SELECT MIN(Issues) FROM book WHERE \"Book_ID\" > 3 AND Title <> \"Gemini Blood\" OR \"Issues\" <= 9.0 NOT IN (SELECT MIN(Issues) FROM book WHERE Title <> \"Michael Moorcock's Multiverse\" AND \"Book_ID\" > 6 AND \"Issues\" <= 4.0 OR Writer != \"Garth Ennis\")"} {"question": "What are the minimum name, maximum distance, and average aid for aircraft, combining two sets of results: one for aircraft with aid not equal to 9, and another for aircraft where the name is not 'Embraer ERJ-145' or aid is less than or equal to 16 and distance is greater than 1504?", "answer": {"columns": ["MIN(name)", "MAX(distance)", "AVG(aid)"], "index": [0, 1], "data": [["Airbus A319", "8430", "8.4666666667"], ["Airbus A319", "8430", "8.5"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_L85ix_16.png", "TableImg_51k8l_16.png"], "original_data_index": 8711, "original_sql": "SELECT MIN(name), MAX(distance), AVG(aid) FROM aircraft WHERE \"aid\" != 9 UNION SELECT MIN(name), MAX(distance), AVG(aid) FROM aircraft WHERE name <> \"Embraer ERJ-145\" OR \"aid\" <= 16 AND \"distance\" > 1504"} {"question": "What are the school IDs for schools that are either Trojans in 50 Marshall county or have budget information from any year except 2005?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["8"], ["1"], ["2"], ["2"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_H94s9_8.png", "TableImg_2bnnt_8.png"], "original_data_index": 8712, "original_sql": "SELECT School_id FROM School WHERE Mascot = \"Trojans\" AND County = \"50 Marshall\" UNION ALL SELECT School_id FROM budget WHERE \"Year\" <> 2005"} {"question": "What are the unique Aircraft IDs that are not 4 from the aircraft table, or are greater than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mmmiq_5.png", "TableImg_928u4_4.png"], "original_data_index": 8713, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are greater than 6 in the driver list but not in the school bus driver list if they are 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ugjli_12.png", "TableImg_Z9udp_5.png"], "original_data_index": 8715, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which Driver IDs are greater than 3 in the driver table and less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3etv0_12.png", "TableImg_Ucn0g_5.png"], "original_data_index": 8716, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the average country values for car makers in two groups: first, those from country '8' with ID up to 7, or named 'Opel', and second, those not from country '3', or with ID greater than 1 and named 'Saab'?", "answer": {"columns": ["AVG(Country)"], "index": [0, 1], "data": [["2.0"], ["3.7894736842"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_0q6jh_22.png", "TableImg_J4je7_22.png"], "original_data_index": 8717, "original_sql": "SELECT AVG(Country) FROM car_makers WHERE Country = \"8\" AND \"Id\" <= 7 OR FullName = \"Opel\" UNION SELECT AVG(Country) FROM car_makers WHERE Country <> \"3\" OR \"Id\" > 1 AND FullName = \"Saab\""} {"question": "What are the average copy number, highest draft number, and total document ID from the circulation history, both for entries with a draft number greater than 17, and also for entries with a document ID less than 10 or an employee ID greater than 1?", "answer": {"columns": ["AVG(copy_number)", "MAX(draft_number)", "SUM(document_id)"], "index": [0, 1], "data": [["10.0", "20", "10"], ["8.5", "20", "33"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Zw8pm_4.png", "TableImg_H8ung_4.png"], "original_data_index": 8714, "original_sql": "SELECT AVG(copy_number), MAX(draft_number), SUM(document_id) FROM Circulation_History WHERE \"draft_number\" > 17 UNION ALL SELECT AVG(copy_number), MAX(draft_number), SUM(document_id) FROM Circulation_History WHERE \"document_id\" < 10 OR \"employee_id\" > 1"} {"question": "What are the average names for aircraft with distances of 520 or more, and also for employees with IDs of 619023588 or more, or named Michael Miller?", "answer": {"columns": ["AVG(name)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_Oea48_16.png", "TableImg_58g51_31.png"], "original_data_index": 8721, "original_sql": "SELECT AVG(name) FROM aircraft WHERE \"distance\" >= 520 UNION ALL SELECT AVG(name) FROM employee WHERE \"eid\" >= 619023588 OR name = \"Michael Miller\""} {"question": "Which driver IDs are in the driver list, excluding driver ID 12, and also excluding driver ID 7 if driver ID 7 is associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0w64e_12.png", "TableImg_Mc42a_5.png"], "original_data_index": 8719, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What driver IDs are either 8 or greater from the driver list or 10 or less from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xxlt1_12.png", "TableImg_Qymox_5.png"], "original_data_index": 8718, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What driver IDs less than 12 are drivers, excluding driver ID 3 if driver ID 3 is a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bb1ga_12.png", "TableImg_Rsj49_5.png"], "original_data_index": 8720, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the Aircraft IDs, including those that are not 5 from the aircraft table, and those that are 5 or less from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0xhdl_5.png", "TableImg_2g2xo_4.png"], "original_data_index": 8722, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the school IDs of schools that have 620 students enrolled, but do not have endowments with an ID of 7 or higher, or endowments from 'San Jos\u00e9 de Ocoa' with a school ID of 7 or higher and an amount not equal to 8.53?", "answer": {"columns": ["School_id"], "index": [0], "data": [["5"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_2rfqm_8.png", "TableImg_D2bx3_11.png"], "original_data_index": 8724, "original_sql": "SELECT School_id FROM School WHERE \"Enrollment\" = 620 EXCEPT SELECT School_id FROM endowment WHERE \"endowment_id\" >= 7 OR donator_name = \"San Jos\u00e9 de Ocoa\" AND \"School_id\" >= 7 AND \"amount\" <> 8.53"} {"question": "What driver IDs are 9 or greater in the driver table, but are not driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mxir9_12.png", "TableImg_7fqnp_5.png"], "original_data_index": 8723, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, numbered 8 or less, are drivers but not school bus drivers with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cj34w_12.png", "TableImg_Ng96d_5.png"], "original_data_index": 8725, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which Driver IDs are either greater than 5 in the driver list or less than or equal to 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2ocjw_12.png", "TableImg_Vji1l_5.png"], "original_data_index": 8726, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "For each creation time, what is the sum of area codes and a phone number for votes, excluding those created on '2018-03-09 19:03:21', and only considering groups with a vote ID of 5 or less and a contestant number of 3 or more?", "answer": {"columns": ["SUM(T1.area_code)", "phone_number"], "index": [0, 1], "data": [["8487", "7148407040"], ["22684", "6209222712"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Vufcd_305.png", "TableImg_Pb8jr_4.png"], "original_data_index": 8727, "original_sql": "SELECT SUM(T1.area_code), T2.phone_number FROM AREA_CODE_STATE as T1 JOIN VOTES as T2 ON T1.state = T2.state WHERE created <> \"2018-03-09 19:03:21\" GROUP BY created HAVING vote_id <= 5 AND contestant_number >= 3"} {"question": "What are the feature IDs of 'AirCon' amenities, excluding those described as 'Air Conditioning', from the 'Other Available Features' list, and also feature IDs greater than 3, excluding those described as 'hic', from the 'Other Property Features' list?", "answer": {"columns": ["feature_id"], "index": [0, 1, 2, 3], "data": [["4"], ["4"], ["4"], ["4"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_V87ax_3.png", "TableImg_7wrl0_15.png"], "original_data_index": 8731, "original_sql": "SELECT feature_id FROM Other_Available_Features WHERE feature_description != \"Air Conditioning.\" AND feature_name = \"AirCon\" AND feature_type_code = \"Amenity\" UNION ALL SELECT feature_id FROM Other_Property_Features WHERE property_feature_description != \"hic\" AND \"feature_id\" > 3"} {"question": "Which Driver IDs are in both the driver and school bus records and are between 8 and 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qpov1_12.png", "TableImg_Hzzkm_5.png"], "original_data_index": 8733, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are not 9, or are 3 or greater from school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T5uby_12.png", "TableImg_Xyu23_5.png"], "original_data_index": 8732, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What driver IDs are both at least 1 and not equal to 9, and are recorded as both a driver and a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qxrhp_12.png", "TableImg_D8vof_5.png"], "original_data_index": 8728, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the aircraft IDs that are in both the aircraft table (with IDs of 2 or greater) and the airport_aircraft table (with IDs of 3 or greater)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eqh2w_5.png", "TableImg_78ezv_4.png"], "original_data_index": 8729, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Which driver IDs, other than 7, are drivers but not school bus drivers with IDs 4 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vvuac_12.png", "TableImg_69w7o_5.png"], "original_data_index": 8735, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs that are not 3 or 10 from the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9tji5_12.png", "TableImg_Px1ga_5.png"], "original_data_index": 8734, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What Aircraft IDs are either 1 or 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pv3mp_5.png", "TableImg_F3vrf_4.png"], "original_data_index": 8736, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What driver IDs are in both the drivers list (excluding driver 10) and the school bus drivers list (under ID 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ib1cf_12.png", "TableImg_Kay2k_5.png"], "original_data_index": 8737, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What Driver IDs are both 3 or greater and less than 10, and are listed as both drivers and school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X38fr_12.png", "TableImg_2ges9_5.png"], "original_data_index": 8738, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are less than 5 but are not also driver IDs greater than 3 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7jirh_12.png", "TableImg_Mt7tq_5.png"], "original_data_index": 8739, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the Driver IDs that are not 9 from the driver table, or are greater than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4jq2x_12.png", "TableImg_Hxlbc_5.png"], "original_data_index": 8740, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What driver IDs are 11 or less from the driver list, or 4 or less from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Arfa4_12.png", "TableImg_2f05p_5.png"], "original_data_index": 8742, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What Driver IDs are at least 6 in the driver table, or more than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2mz70_12.png", "TableImg_9iju4_5.png"], "original_data_index": 8741, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the count of clubs outside the UK, with ID greater than 3, and started in 2005, and also the count of coaches who are not rank 5, not club ID 1, and are either female or named Smith Brown?", "answer": {"columns": ["COUNT(Club_ID)"], "index": [0, 1], "data": [["0"], ["1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_5jxpc_6.png", "TableImg_53zrx_5.png"], "original_data_index": 8746, "original_sql": "SELECT COUNT(Club_ID) FROM club WHERE Region <> \"UK\" AND \"Club_ID\" > 3 AND \"Start_year\" = 2005 UNION SELECT COUNT(Club_ID) FROM coach WHERE \"Rank\" != 5 AND \"Club_ID\" != 1 AND Gender = \"F\" OR Coach_name = \"Smith Brown\""} {"question": "What are the driver IDs that are both in the driver list with IDs up to 4, and in the school bus driver list excluding ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bhw5b_12.png", "TableImg_0jnor_5.png"], "original_data_index": 8747, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the cell phone number, date of birth, first name, and amount outstanding for customers who either were not registered as a customer on May 13, 2016 around 7:38 AM and are not named Amya, or have an outstanding amount of 9500 or more; or are not named Clara, or their customer status is not 'Good Customer' and they were registered around 5 PM on May 11, 2016 and their birth date is not around 11:11 AM on July 9, 1993, or their customer ID is not 4, or their phone number is not '+14(5)2351480248', or their last name is not Terry and their outstanding amount is not 2255, or their email is not 'karina.carroll@example.net', or their customer address ID is 10 or higher?", "answer": {"columns": ["cell_mobile_phone_number", "date_of_birth", "first_name", "amount_outstanding"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["(630)964-2426", "1996-08-30 06:17:50", "Dameon", "9332"], ["(780)719-4206x033", "1993-03-08 08:48:42", "Amya", "3900"], ["+45(6)4872981083", "1996-08-29 00:03:08", "Rylan", "1000"], ["+57(9)4602098297", "1988-09-19 14:45:56", "Sigrid", "2255"], ["00659133944", "1991-02-10 00:42:17", "Millie", "5687"], ["081-097-3684", "1993-02-07 05:40:26", "Jordy", "3751"], ["1-197-686-2849x8761", "1994-06-21 01:34:56", "Clara", "9443"], ["1-387-258-1016x96963", "1991-12-05 02:50:15", "Leif", "7093"], ["1-401-108-8016x078", "1996-05-23 01:21:54", "Estelle", "5494"], ["200.830.8723", "1993-07-09 11:11:36", "Omer", "2099"], ["577-584-4864", "1994-05-07 01:32:16", "Ray", "9447"], ["578-518-4785x612", "1995-07-17 12:13:16", "Genevieve", "7256"], ["739-333-6966x187", "1998-09-18 04:45:01", "Dianna", "9500"], ["848-099-2095x785", "1996-11-07 05:30:55", "Marina", "8144"], ["861-638-9797", "1998-12-15 13:24:40", "Carole", "255"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_Unrsp_15.png", "TableImg_Gjpg6_15.png"], "original_data_index": 8743, "original_sql": "SELECT cell_mobile_phone_number, date_of_birth, first_name, amount_outstanding FROM Customers WHERE date_became_customer != \"2016-05-13 07:38:23\" AND first_name <> \"Amya\" OR \"amount_outstanding\" >= 9500.0 UNION SELECT cell_mobile_phone_number, date_of_birth, first_name, amount_outstanding FROM Customers WHERE first_name <> \"Clara\" OR customer_status_code <> \"Good Customer\" AND date_became_customer = \"2016-05-11 17:03:48\" AND date_of_birth <> \"1993-07-09 11:11:36\" OR \"customer_id\" <> 4 AND phone_number != \"+14(5)2351480248\" OR last_name <> \"Terry\" AND \"amount_outstanding\" <> 2255.0 OR email_address != \"karina.carroll@example.net\" OR \"customer_address_id\" >= 10"} {"question": "What are the driver IDs, including all except 2, plus driver ID 9 from school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mnlrw_12.png", "TableImg_Dic85_5.png"], "original_data_index": 8748, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the Driver IDs that are not 3 in the driver table, and those greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hme7e_12.png", "TableImg_Fqenm_5.png"], "original_data_index": 8749, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the IDs of all car makers, except for ID 19, combined with the IDs of all cars where the acceleration is not 13.7?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["348"], ["349"], ["350"], ["351"], ["352"], ["353"], ["354"], ["355"], ["356"], ["357"], ["358"], ["359"], ["360"], ["361"], ["362"], ["363"], ["364"], ["365"], ["366"], ["367"], ["368"], ["369"], ["370"], ["371"], ["372"], ["373"], ["374"], ["375"], ["376"], ["377"], ["378"], ["379"], ["380"], ["381"], ["382"], ["383"], ["384"], ["385"], ["386"], ["387"], ["388"], ["389"], ["390"], ["391"], ["392"], ["393"], ["394"], ["395"], ["396"], ["397"], ["398"], ["399"], ["400"], ["401"], ["402"], ["403"], ["404"], ["405"], ["406"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Hiekv_22.png", "TableImg_4z8ug_406.png"], "original_data_index": 8751, "original_sql": "SELECT Id FROM car_makers WHERE \"Id\" != 19 UNION SELECT Id FROM cars_data WHERE \"Accelerate\" != 13.7"} {"question": "What is the description for the 'working' document status?", "answer": {"columns": ["document_status_code", "document_status_description"], "index": [0], "data": [["working", "currently working on"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Qmnrf_3.png", "TableImg_Wk091_3.png"], "original_data_index": 8750, "original_sql": "SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_code = \"working\" EXCEPT SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_code <> \"working\""} {"question": "What are the names and contestant numbers of contestants named Nita Coster with a contestant number between 6 and 10?", "answer": {"columns": ["contestant_number", "contestant_name"], "index": [0], "data": [["8", "Nita Coster"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_92598_11.png", "TableImg_2btsj_11.png"], "original_data_index": 8755, "original_sql": "SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE \"contestant_number\" >= 6 OR contestant_name != \"Nita Coster\" EXCEPT SELECT contestant_number, contestant_name FROM CONTESTANTS WHERE contestant_name != \"Nita Coster\" OR \"contestant_number\" > 10"} {"question": "What are the unique Aircraft IDs that are either less than 4 in the aircraft table or less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ih5te_5.png", "TableImg_8494i_4.png"], "original_data_index": 8753, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What driver IDs are common to both drivers with IDs 12 or less and school bus drivers not ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0e0xg_12.png", "TableImg_Gihs5_5.png"], "original_data_index": 8752, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the document status codes and descriptions for statuses that are currently working on but are not marked as done?", "answer": {"columns": ["document_status_code", "document_status_description"], "index": [0], "data": [["working", "currently working on"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Cwjra_3.png", "TableImg_Uw4x9_3.png"], "original_data_index": 8754, "original_sql": "SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_description != \"currently working on\" OR document_status_code <> \"done\" EXCEPT SELECT document_status_code, document_status_description FROM Ref_Document_Status WHERE document_status_description != \"currently working on\""} {"question": "What Aircraft IDs, greater than 4, are found in both the aircraft and airport_aircraft tables, excluding ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ucku1_5.png", "TableImg_Wbsse_4.png"], "original_data_index": 8756, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What Aircraft IDs are either 2 or greater in the aircraft table, or 3 or less in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Krkde_5.png", "TableImg_30b9r_4.png"], "original_data_index": 8757, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What driver IDs are less than 5 but are not also driver IDs greater than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G7t2p_12.png", "TableImg_Nb32j_5.png"], "original_data_index": 8758, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you list the member IDs and the number of cards for members who meet either of these conditions: they are not level 6 and not from Simpsonville, South Carolina, or they are not named Corey Peters and not member ID 9, or their level is less than 6 or their name is not Myron Pryor?", "answer": {"columns": ["Member_ID", "COUNT(Card_Number)"], "index": [0, 1], "data": [["1", "8"], ["1", "9"]]}, "table_names": "['member' 'member']", "table_image_ids": ["TableImg_Gt7bw_10.png", "TableImg_D61wd_10.png"], "original_data_index": 8760, "original_sql": "SELECT Member_ID, COUNT(Card_Number) FROM member WHERE \"Level\" <> 6 AND Hometown != \"Simpsonville, South Carolina\" OR Name <> \"Corey Peters\" AND \"Member_ID\" != 9 UNION SELECT Member_ID, COUNT(Card_Number) FROM member WHERE \"Level\" < 6 OR Name != \"Myron Pryor\""} {"question": "What aircraft ID is number 5 in the aircraft table and also listed as number 5 or less in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R7m3z_5.png", "TableImg_An4cj_4.png"], "original_data_index": 8759, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the document IDs for documents with 'y' in other details, as well as for draft copies with a draft number less than 9 and not document ID 2, or with a copy number less than 10?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4], "data": [["13"], ["2"], ["4"], ["2"], ["1"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_012se_15.png", "TableImg_Ptnap_8.png"], "original_data_index": 8761, "original_sql": "SELECT document_id FROM Documents WHERE other_details = \"y\" UNION ALL SELECT document_id FROM Draft_Copies WHERE \"draft_number\" < 9 AND \"document_id\" != 2 OR \"copy_number\" < 10"} {"question": "What driver IDs are in both the driver and school bus lists and are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7pkri_12.png", "TableImg_P3scd_5.png"], "original_data_index": 8765, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are both not driver 6 and also driver IDs of school buses up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4960h_12.png", "TableImg_Tnq53_5.png"], "original_data_index": 8764, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What draft numbers and document IDs are associated with both drafts that are not marked as 'r' and draft copies that are either not from document 1 and are draft number less than 17, or have a copy number of 4 or more?", "answer": {"columns": ["draft_number", "document_id"], "index": [0, 1, 2, 3, 4], "data": [["1", "2"], ["2", "1"], ["8", "2"], ["17", "20"], ["20", "10"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_S55si_15.png", "TableImg_H28zq_8.png"], "original_data_index": 8763, "original_sql": "SELECT draft_number, document_id FROM Document_Drafts WHERE draft_details != \"r\" INTERSECT SELECT draft_number, document_id FROM Draft_Copies WHERE \"document_id\" <> 1 AND \"draft_number\" < 17 OR \"copy_number\" >= 4"} {"question": "Show me the average item ID for each review rank, considering only reviews and items where user ID is greater than 2, or rank is less than 3, or author ID is greater than 1, or title is 'comb', or rating is 6 or less. Also, only include review ranks where author ID is not 5, or both user ID is 2 or less and title is not 'pear'.", "answer": {"columns": ["AVG(T1.i_id)", "rank"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "1"], ["1", "2"], ["4", "3"], ["5", "4"], ["3", "5"], ["7", "6"], ["7", "7"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Pes8s_8.png", "TableImg_3qihx_7.png"], "original_data_index": 8762, "original_sql": "SELECT AVG(T1.i_id), T2.rank FROM item as T1 JOIN review as T2 ON T1.i_id = T2.i_id WHERE \"u_id\" > 2 OR \"rank\" < 3 OR \"a_id\" > 1 OR title = \"comb\" OR \"rating\" <= 6 GROUP BY rank HAVING a_id <> 5 OR u_id <= 2 AND title <> \"pear\""} {"question": "Could you list the other details and document IDs for documents that are either (document ID is less than 16514113, document name is not 'A history of Arts', and document description is 'n') or (other details are not 'None' and template ID is not 22), and also for paragraphs that are either (paragraph ID is less than 243399026 and document ID is greater than 50123) or (other details are 'None')?", "answer": {"columns": ["Other_Details", "Document_ID"], "index": [0, 1, 2], "data": [["", "0"], ["", "651512"], ["", "385906526"]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_Fb5ii_15.png", "TableImg_C32q3_15.png"], "original_data_index": 8766, "original_sql": "SELECT Other_Details, Document_ID FROM Documents WHERE \"Document_ID\" < 16514113 AND Document_Name != \"A history of Arts\" AND Document_Description = \"n\" OR Other_Details <> \"None\" AND \"Template_ID\" != 22 UNION ALL SELECT Other_Details, Document_ID FROM Paragraphs WHERE \"Paragraph_ID\" < 243399026 AND \"Document_ID\" > 50123 OR Other_Details = \"None\""} {"question": "What driver IDs are used by both drivers with IDs 7 or greater and school bus drivers with IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8anu3_12.png", "TableImg_Jmt9n_5.png"], "original_data_index": 8769, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What Driver IDs are either 10 or less, or 3 or more?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uhnyg_12.png", "TableImg_W9v55_5.png"], "original_data_index": 8770, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What Driver ID, other than 10, is also Driver ID 9 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mpn5r_12.png", "TableImg_Jrs2n_5.png"], "original_data_index": 8768, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What driver IDs are not equal to 3 in the drivers list, or are less than or equal to 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P2wox_12.png", "TableImg_Amkom_5.png"], "original_data_index": 8771, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are 12 or greater and are not school bus drivers, except for driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1xmla_12.png", "TableImg_Pj081_5.png"], "original_data_index": 8767, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the Driver IDs that are not 1 from the driver list, or are greater than 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iu1ba_12.png", "TableImg_3fvl7_5.png"], "original_data_index": 8775, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Could you list the aircraft IDs and their average name for aircraft that are either a 'British Aerospace Jetstream 41' with a distance other than 1504 and an ID of 4 or less, or have a distance greater than 4010?", "answer": {"columns": ["aid", "AVG(name)"], "index": [0, 1], "data": [["1", "0"], ["4", "0"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_H6sv1_16.png", "TableImg_Ez9o1_16.png"], "original_data_index": 8772, "original_sql": "SELECT aid, AVG(name) FROM aircraft WHERE name = \"British Aerospace Jetstream 41\" AND \"distance\" != 1504 AND \"aid\" <= 4 UNION SELECT aid, AVG(name) FROM aircraft WHERE \"distance\" > 4010"} {"question": "What Aircraft IDs are both not equal to 1 and less than 3, and are found in both the aircraft and airport aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qgwuc_5.png", "TableImg_Hdgdv_4.png"], "original_data_index": 8773, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the aircraft IDs that are 4 or greater from the aircraft table, or 2 or less from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3xnot_5.png", "TableImg_2km7d_4.png"], "original_data_index": 8776, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the employee IDs of individuals who have a certificate ID of 556784565 or higher, or are employees with a salary over 48250 or named Betty Adams?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["11564812"], ["141582651"], ["142519864"], ["242518965"], ["269734834"], ["274878974"], ["310454876"], ["355548984"], ["390487451"], ["548977562"], ["550156548"], ["552455318"], ["552455348"], ["556784565"], ["567354612"], ["573284895"], ["574489456"], ["574489457"], ["619023588"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Dr1r5_69.png", "TableImg_Kgse5_31.png"], "original_data_index": 8778, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" >= 556784565 UNION SELECT eid FROM employee WHERE \"salary\" > 48250 OR name = \"Betty Adams\""} {"question": "What driver IDs are 3 or greater in the driver table, but not also 9 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_40pof_12.png", "TableImg_Uvxs5_5.png"], "original_data_index": 8779, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Is aircraft ID 4 in the aircraft table but not in the airport_aircraft table, if we disregard aircraft ID 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8yiwc_5.png", "TableImg_4h6z2_4.png"], "original_data_index": 8777, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What aircraft IDs are in the aircraft table, other than ID 4, and are not among the aircraft IDs less than 3 that are in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jovyt_5.png", "TableImg_Ekgxp_4.png"], "original_data_index": 8781, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What is the maximum area size, number of product categories, and number of stores for stores that are either village stores with a ranking better than 3, or have a number of product categories not equal to 1678, or have an area size less than 26.69?", "answer": {"columns": ["MAX(Area_size)", "Number_of_product_category", "COUNT(Type)"], "index": [0, 1], "data": [["21.73", "990", "2"], ["179.84", "17811", "4"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_7u1lr_5.png", "TableImg_Vln8e_5.png"], "original_data_index": 8780, "original_sql": "SELECT MAX(Area_size), Number_of_product_category, COUNT(Type) FROM store WHERE \"Ranking\" > 3 AND Type = \"Village Store\" OR \"Number_of_product_category\" <> 1678.0 UNION SELECT MAX(Area_size), Number_of_product_category, COUNT(Type) FROM store WHERE \"Area_size\" < 26.69"} {"question": "What are the maximum draft number, minimum document ID, and count of draft details for document drafts that are not 'r', except for those that are also not 'k' and are either draft number 14 or document ID 4 or greater?", "answer": {"columns": ["MAX(draft_number)", "MIN(document_id)", "COUNT(draft_details)"], "index": [0], "data": [["20", "1", "12"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_6usjp_15.png", "TableImg_2x6rm_15.png"], "original_data_index": 8782, "original_sql": "SELECT MAX(draft_number), MIN(document_id), COUNT(draft_details) FROM Document_Drafts WHERE draft_details <> \"r\" EXCEPT SELECT MAX(draft_number), MIN(document_id), COUNT(draft_details) FROM Document_Drafts WHERE draft_details != \"k\" AND \"draft_number\" = 14 OR \"document_id\" >= 4"} {"question": "What is the total enrollment of students in schools where the budget invested percentage is 122.5 and the total budgeted percentage is greater than 2.0?", "answer": {"columns": ["SUM(T1.Enrollment)", "Budget_invested_percent"], "index": [0], "data": [["", ""]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_3i7tx_8.png", "TableImg_I3fw7_8.png"], "original_data_index": 8783, "original_sql": "SELECT SUM(T1.Enrollment), T2.Budget_invested_percent FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE Budget_invested_percent = \"122.5\" AND \"total_budget_percent_budgeted\" > 2.0"} {"question": "What are the driver IDs that are not 2 from the driver table, or are 4 or greater from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N8abe_12.png", "TableImg_411jj_5.png"], "original_data_index": 8784, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What driver IDs are either exactly 10 from the driver list, or less than or equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Asmjb_12.png", "TableImg_Tt10f_5.png"], "original_data_index": 8787, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the food allergies?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Anchovies"], ["Eggs"], ["Milk"], ["Nuts"], ["Shellfish"], ["Soy"], ["Wheat"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_C48or_14.png", "TableImg_Hqzef_14.png"], "original_data_index": 8785, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType = \"food\" INTERSECT SELECT Allergy FROM Allergy_Type WHERE AllergyType <> \"food\" OR Allergy <> \"Ragweed\""} {"question": "What are the driver IDs of drivers who are not driver ID 1, and are not also school bus drivers with IDs 1, 2, or 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U5y48_12.png", "TableImg_A1ldi_5.png"], "original_data_index": 8789, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What is the smallest 'overdue' document status code that is not described as 'currently working on', and also the smallest document status code that is not 'working'?", "answer": {"columns": ["MIN(document_status_code)"], "index": [0, 1], "data": [["overdue"], ["done"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_086d4_3.png", "TableImg_2eq78_3.png"], "original_data_index": 8790, "original_sql": "SELECT MIN(document_status_code) FROM Ref_Document_Status WHERE document_status_description <> \"currently working on\" AND document_status_code = \"overdue\" UNION ALL SELECT MIN(document_status_code) FROM Ref_Document_Status WHERE document_status_code != \"working\""} {"question": "What are the maximum ID and the total sum of names when we look at airports and operating companies based on certain conditions?", "answer": {"columns": ["MAX(id)", "SUM(name)"], "index": [0, 1], "data": [["9", "0"], ["14", "0"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Cydva_9.png", "TableImg_82h5g_14.png"], "original_data_index": 8788, "original_sql": "SELECT MAX(id), SUM(name) FROM airport WHERE IATA = \"BRU\" OR ICAO != \"KBOS\" AND City <> \"Barcelona\" OR name = \"Schiphol Airport\" AND \"id\" >= 2 UNION SELECT MAX(id), SUM(name) FROM operate_company WHERE Principal_activities != \"Cargo airline\" OR \"id\" >= 7 OR \"Group_Equity_Shareholding\" != 45.0 OR name != \"Hong Kong Airport Services\""} {"question": "What driver IDs are 11 or less and are not also driver IDs of 9 or more associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vv7hz_12.png", "TableImg_L3xax_5.png"], "original_data_index": 8792, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What is the highest vehicle ID for vehicles that are not cars and have an ID greater than 1? Also, what is the highest vehicle ID for vehicles that are either vans or have an ID of 1 or more?", "answer": {"columns": ["MAX(vehicle_id)"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_2q0ab_3.png", "TableImg_Tsoao_3.png"], "original_data_index": 8791, "original_sql": "SELECT MAX(vehicle_id) FROM Vehicles WHERE \"vehicle_id\" > 1 AND vehicle_details != \"Car\" UNION ALL SELECT MAX(vehicle_id) FROM Vehicles WHERE vehicle_details = \"Van\" OR \"vehicle_id\" >= 1"} {"question": "Can you give me the driver IDs that are not 10 from the driver table, along with the driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J4jjt_12.png", "TableImg_Cjaar_5.png"], "original_data_index": 8795, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are for drivers other than 8, that are not also school bus drivers with IDs up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xp4dm_12.png", "TableImg_3n4qh_5.png"], "original_data_index": 8796, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are on the driver list, excluding driver 8, but not on the school bus driver list, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wq3x0_12.png", "TableImg_Ybd8t_5.png"], "original_data_index": 8798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the join date, leave date, middle name, date of birth, and staff address ID for staff who either have a staff address ID other than 3, or meet at least one of these conditions: their leave date is not 2018-03-23 22:53:12, their birth date is not 2005-05-02 06:23:36 and staff ID is 7 or less, last name is not Macejkovic, or first name is Margie and middle name is not Mayra?", "answer": {"columns": ["date_joined_staff", "date_left_staff", "middle_name", "date_of_birth", "staff_address_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["2017-04-27 03:21:26", "2018-03-23 22:53:12", "Amara", "2010-12-08 16:55:14", "14"], ["2018-01-02 12:24:24", "2018-03-24 10:11:08", "Stephania", "1994-05-17 05:32:11", "5"], ["2017-10-21 17:20:57", "2018-03-04 17:13:53", "Sherwood", "2003-01-16 06:29:11", "1"], ["2016-05-16 20:56:53", "2018-03-08 04:23:14", "Dejon", "2015-08-10 11:37:39", "14"], ["2017-08-27 19:19:44", "2018-02-28 08:26:10", "Tre", "1998-04-27 12:55:05", "12"], ["2017-06-04 14:30:41", "2018-03-08 05:16:29", "Madelyn", "2007-06-11 20:03:28", "13"], ["2016-05-26 00:55:07", "2018-03-05 18:30:12", "Duane", "2005-05-02 06:23:36", "1"], ["2017-12-22 03:06:32", "2018-03-08 12:31:16", "Caesar", "1995-06-03 08:09:17", "4"], ["2016-06-05 22:22:23", "2018-03-14 07:14:37", "Maiya", "1996-09-24 09:51:42", "2"], ["2016-05-01 02:22:45", "2018-03-09 05:08:35", "Liam", "2000-06-13 18:09:11", "1"], ["2016-11-05 01:43:52", "2018-03-06 23:17:41", "Benny", "1996-03-09 08:19:49", "7"], ["2016-11-13 20:44:23", "2018-02-26 17:56:31", "Clarabelle", "2004-05-19 14:11:13", "1"], ["2017-08-30 15:08:37", "2018-03-02 01:48:15", "Ulices", "2000-11-16 06:55:12", "6"], ["2017-04-27 03:21:26", "2018-03-23 22:53:12", "Amara", "2010-12-08 16:55:14", "14"], ["2016-06-06 08:54:28", "2018-03-10 15:25:00", "Icie", "2015-08-01 13:22:43", "3"], ["2018-01-02 12:24:24", "2018-03-24 10:11:08", "Stephania", "1994-05-17 05:32:11", "5"], ["2017-10-21 17:20:57", "2018-03-04 17:13:53", "Sherwood", "2003-01-16 06:29:11", "1"], ["2016-05-16 20:56:53", "2018-03-08 04:23:14", "Dejon", "2015-08-10 11:37:39", "14"], ["2017-08-27 19:19:44", "2018-02-28 08:26:10", "Tre", "1998-04-27 12:55:05", "12"], ["2017-06-04 14:30:41", "2018-03-08 05:16:29", "Madelyn", "2007-06-11 20:03:28", "13"], ["2016-05-26 00:55:07", "2018-03-05 18:30:12", "Duane", "2005-05-02 06:23:36", "1"], ["2017-12-22 03:06:32", "2018-03-08 12:31:16", "Caesar", "1995-06-03 08:09:17", "4"], ["2016-06-05 22:22:23", "2018-03-14 07:14:37", "Maiya", "1996-09-24 09:51:42", "2"], ["2016-05-01 02:22:45", "2018-03-09 05:08:35", "Liam", "2000-06-13 18:09:11", "1"], ["2016-11-05 01:43:52", "2018-03-06 23:17:41", "Benny", "1996-03-09 08:19:49", "7"], ["2016-11-13 20:44:23", "2018-02-26 17:56:31", "Clarabelle", "2004-05-19 14:11:13", "1"], ["2017-08-30 15:08:37", "2018-03-02 01:48:15", "Ulices", "2000-11-16 06:55:12", "6"], ["2017-02-20 18:45:20", "2018-03-01 17:10:03", "Mayra", "1997-03-29 10:55:45", "3"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_3ogk1_15.png", "TableImg_Lc3rf_15.png"], "original_data_index": 8794, "original_sql": "SELECT date_joined_staff, date_left_staff, middle_name, date_of_birth, staff_address_id FROM Staff WHERE \"staff_address_id\" <> 3 UNION ALL SELECT date_joined_staff, date_left_staff, middle_name, date_of_birth, staff_address_id FROM Staff WHERE date_left_staff != \"2018-03-23 22:53:12\" OR date_of_birth <> \"2005-05-02 06:23:36\" AND \"staff_id\" <= 7 OR last_name != \"Macejkovic\" OR middle_name != \"Mayra\" AND first_name = \"Margie\""} {"question": "For each age, what is the age itself, the number of drivers of that age, and the smallest driver ID? Show me this information for ages that have more than one driver, and also for ages where the smallest driver ID is at least 1 and there are no drivers. Combine these two sets of results.", "answer": {"columns": ["Age", "COUNT(Name)", "MIN(Driver_ID)"], "index": [0, 1], "data": [["36", "2", "7"], ["52", "2", "6"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_84mas_12.png", "TableImg_H68i5_12.png"], "original_data_index": 8797, "original_sql": "SELECT Age, COUNT(Name), MIN(Driver_ID) FROM driver GROUP BY Age HAVING COUNT(Name) > 1 UNION SELECT Age, COUNT(Name), MIN(Driver_ID) FROM driver GROUP BY Age HAVING MIN(Driver_ID) >= 1 AND COUNT(Name) < 1"} {"question": "What are the unique Aircraft IDs that are at least 1 from the aircraft list, or at most 1 from the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8eg3v_5.png", "TableImg_79tq1_4.png"], "original_data_index": 8800, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the driver IDs, excluding driver ID 12 and driver ID 10 from school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Infaf_12.png", "TableImg_Fz4mz_5.png"], "original_data_index": 8799, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Give me all the driver IDs that are not 5 from the drivers table, along with all the driver IDs that are 3 or greater from the school buses table.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zc73q_12.png", "TableImg_0n3mo_5.png"], "original_data_index": 8802, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What allergies are not animal allergies and are not dog allergies or allergies that are not food?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Eggs"], ["Nuts"], ["Milk"], ["Shellfish"], ["Anchovies"], ["Wheat"], ["Soy"], ["Ragweed"], ["Tree Pollen"], ["Grass Pollen"], ["Cat"], ["Dog"], ["Rodent"], ["Bee Stings"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_9u8f6_14.png", "TableImg_Jpjrl_14.png"], "original_data_index": 8801, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType <> \"animal\" NOT IN (SELECT Allergy FROM Allergy_Type WHERE Allergy = \"Dog\" OR AllergyType != \"food\")"} {"question": "What are the Branch IDs for branches not in London with a membership amount of 112 that opened in 2001, or are not branch ID 7 and not on Valleys Place road, as well as Branch IDs from purchases at branch 3 in 2018?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["3"], ["3"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_V7oyi_8.png", "TableImg_Mz80k_8.png"], "original_data_index": 8804, "original_sql": "SELECT Branch_ID FROM branch WHERE City <> \"London\" AND membership_amount = \"112\" AND Open_year = \"2001\" OR \"Branch_ID\" != 7 AND Address_road != \"Valleys Place\" UNION ALL SELECT Branch_ID FROM purchase WHERE Branch_ID = \"3\" AND Year = \"2018\""} {"question": "For each city, what is the average age of employees and the year of their award, considering employees who either received an award in 2015 and are from Sale, or are not named Jason Hobson, and only for cities that include employees who are not named Matt Stevens?", "answer": {"columns": ["AVG(T1.Age)", "Year_awarded"], "index": [0, 1, 2], "data": [["29", "2015"], ["23", "2011"], ["36", "2016"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Gc129_10.png", "TableImg_1wibj_6.png"], "original_data_index": 8805, "original_sql": "SELECT AVG(T1.Age), T2.Year_awarded FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE Year_awarded = \"2015\" AND City = \"Sale\" OR Name <> \"Jason Hobson\" GROUP BY City HAVING Name <> \"Matt Stevens\""} {"question": "Which driver IDs, other than 6, are drivers but not school bus drivers with IDs of 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A77zk_12.png", "TableImg_E6pv1_5.png"], "original_data_index": 8806, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are exactly 3 from the driver list or greater than 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqqn1_12.png", "TableImg_Bptyc_5.png"], "original_data_index": 8809, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the 'a_id's from the reviews that satisfy either of these conditions: being for item 7 with a rating of 6 or having an 'a_id' of 5 or more, OR having an 'a_id' that is not 7, a rank that is not 2, or a 'u_id' greater than 2 with an 'i_id' less than 1 and a rating other than 5?", "answer": {"columns": ["a_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_8f3oe_7.png", "TableImg_Zkdtu_7.png"], "original_data_index": 8803, "original_sql": "SELECT a_id FROM review WHERE \"i_id\" = 7 AND \"rating\" = 6 OR \"a_id\" >= 5 UNION SELECT a_id FROM review WHERE \"a_id\" != 7 OR \"rank\" != 2 OR \"u_id\" > 2 AND \"i_id\" < 1 AND \"rating\" <> 5"} {"question": "What Aircraft IDs are either less than 4 in the aircraft table or not equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cnt1c_5.png", "TableImg_Xd3ez_4.png"], "original_data_index": 8810, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which Store IDs are either not 4 or belong to a district other than 15, or are Store ID 3 with a product ID less than 1?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_4vubo_5.png", "TableImg_45e5v_15.png"], "original_data_index": 8811, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" <> 4 OR \"District_ID\" != 15 UNION SELECT Store_ID FROM store_product WHERE \"Store_ID\" = 3 AND \"Product_ID\" < 1"} {"question": "Which driver IDs, 9 or less, are drivers but not school bus drivers with IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dale2_12.png", "TableImg_Jfcvz_5.png"], "original_data_index": 8807, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the driver IDs that are 5 or greater, but not greater than 9 if they are also listed for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vivm1_12.png", "TableImg_Bixtx_5.png"], "original_data_index": 8812, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the Pet IDs for pets that are either not ID 2001, or weigh more than 12 pounds, or are at least 3 years old and have an ID less than 2003?", "answer": {"columns": ["PetID"], "index": [0, 1, 2, 3], "data": [["2002"], ["2003"], ["2001"], ["2002"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_A4idn_3.png", "TableImg_Bm4ap_3.png"], "original_data_index": 8813, "original_sql": "SELECT PetID FROM Pets WHERE \"PetID\" != 2001 UNION ALL SELECT PetID FROM Pets WHERE \"weight\" > 12.0 OR \"pet_age\" >= 3 AND \"PetID\" < 2003"} {"question": "What aircraft IDs are either specifically ID 2 from the aircraft table, or any ID other than 3 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z0ieu_5.png", "TableImg_K38jt_4.png"], "original_data_index": 8815, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the Model IDs, along with their average Maker and model count, for models where the Model ID is greater than 4, as well as for models where the Maker is 10 or greater?", "answer": {"columns": ["ModelId", "AVG(Maker)", "COUNT(Model)"], "index": [0, 1], "data": [["5", "11.0", "32"], ["14", "16.4375", "16"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_6ee1p_36.png", "TableImg_F3p70_36.png"], "original_data_index": 8814, "original_sql": "SELECT ModelId, AVG(Maker), COUNT(Model) FROM model_list WHERE \"ModelId\" > 4 UNION SELECT ModelId, AVG(Maker), COUNT(Model) FROM model_list WHERE \"Maker\" >= 10"} {"question": "What are the names of companies that are not in the Oil and gas industry and are not named Citigroup, together with the names of people who are not Jerry Corcoran, or are from the United States and have a People ID greater than 2?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["Agricultural Bank of China"], ["Berkshire Hathaway"], ["Brad Lohaus"], ["China Construction Bank"], ["Darryl Kennedy"], ["David Butler"], ["General Electric"], ["HSBC"], ["Industrial and Commercial Bank of China"], ["JPMorgan Chase"], ["Jerry Corcoran"], ["Reggie Lewis"], ["Tim Naegeli"], ["Tom Sheehey"], ["Volkswagen Group"], ["Walmart"], ["Wells Fargo"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_Z2kw3_19.png", "TableImg_Conu8_7.png"], "original_data_index": 8816, "original_sql": "SELECT Name FROM company WHERE Industry != \"Oil and gas\" AND Name != \"Citigroup\" UNION SELECT Name FROM people WHERE Name != \"Jerry Corcoran\" OR Nationality = \"United States\" AND \"People_ID\" > 2"} {"question": "What aircraft IDs are less than 2 in the aircraft table or not equal to 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5edrm_5.png", "TableImg_6uory_4.png"], "original_data_index": 8817, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the earliest years for budgets that meet either of these conditions: (a) the total budget invested percentage is less than 2.2%, the total budget budgeted percentage is less than 2.0%, the year is not 2001, and the budget invested percentage is 146.9%, or (b) the year is 2003 and the invested amount is not 2134?", "answer": {"columns": ["MIN(Year)"], "index": [0, 1], "data": [[""], ["2003.0"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_I54hz_8.png", "TableImg_8cspo_8.png"], "original_data_index": 8818, "original_sql": "SELECT MIN(Year) FROM budget WHERE \"total_budget_percent_invested\" < 2.2 AND \"total_budget_percent_budgeted\" < 2.0 AND \"Year\" <> 2001 AND Budget_invested_percent = \"146.9\" UNION SELECT MIN(Year) FROM budget WHERE \"Year\" = 2003 AND \"Invested\" <> 2134"} {"question": "Which driver IDs are greater than 2 but are not also school bus driver IDs, disregarding school bus driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ckxpr_12.png", "TableImg_R2uih_5.png"], "original_data_index": 8819, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What driver IDs are less than 12 in the driver table, or greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zpigy_12.png", "TableImg_Nogee_5.png"], "original_data_index": 8823, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What aircraft IDs are either 5 from the aircraft table, or any ID of 1 or more from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_72a7p_5.png", "TableImg_J3s9j_4.png"], "original_data_index": 8821, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What driver IDs are used by both drivers with IDs of 10 or greater and school bus drivers with IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vz4h3_12.png", "TableImg_Vu16h_5.png"], "original_data_index": 8820, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the Shop IDs from hiring records for employees with ID 6 or greater, or for part-time shops with Shop ID greater than 8, combined with Shop IDs from shop records for shops named 'HJK' and Shop ID 6?", "answer": {"columns": ["Shop_ID"], "index": [0, 1], "data": [["2"], ["6"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_Vgsph_7.png", "TableImg_Co1hv_9.png"], "original_data_index": 8822, "original_sql": "SELECT Shop_ID FROM hiring WHERE \"Employee_ID\" >= 6 OR Is_full_time = \"F\" AND \"Shop_ID\" > 8 UNION SELECT Shop_ID FROM shop WHERE Name = \"HJK\" AND \"Shop_ID\" = 6"} {"question": "Which aircraft IDs, other than 4, are in the aircraft table but not among aircraft IDs greater than 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8lo4t_5.png", "TableImg_F1otb_4.png"], "original_data_index": 8824, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs are on both the driver list (excluding ID 1) and the school bus list (excluding ID 7)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Msk9m_12.png", "TableImg_6yfwd_5.png"], "original_data_index": 8827, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What Aircraft IDs are in both the aircraft and airport_aircraft tables, where aircraft IDs are not 4 and airport aircraft IDs are 2 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L5662_5.png", "TableImg_St7bn_4.png"], "original_data_index": 8826, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the Aircraft IDs that are greater than 1 in the aircraft table, excluding those that are less than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8gdh0_5.png", "TableImg_0i3j0_4.png"], "original_data_index": 8825, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "List driver ID 12 from the driver table and all driver IDs 4 or less from the school bus table.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M6v0t_12.png", "TableImg_C60w2_5.png"], "original_data_index": 8828, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What driver IDs are both greater than 8 and not 9, and are associated with both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mchkf_12.png", "TableImg_Iafci_5.png"], "original_data_index": 8830, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What driver IDs are used by both drivers and school buses, excluding driver ID 6 for drivers and driver ID 7 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ml04d_12.png", "TableImg_Md3uq_5.png"], "original_data_index": 8829, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What Aircraft IDs are greater than 2 in the aircraft table or greater than or equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zxrno_5.png", "TableImg_A261l_4.png"], "original_data_index": 8833, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me the total staff ID, join dates, earliest last name, number of birth dates, average first name, and staff address ID for staff who were working after '2018-02-26 17:56:31' and whose middle name is not 'Benny', but not for staff who were born on '1996-03-09 08:19:49', or have a staff address ID less than 3 and a staff ID of 4 or more, or are named 'Mertz'?", "answer": {"columns": ["SUM(staff_id)", "date_joined_staff", "MIN(last_name)", "COUNT(date_of_birth)", "AVG(first_name)", "staff_address_id"], "index": [0], "data": [["95", "2017-12-22 03:06:32", "Doyle", "13", "0", "4"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Keky9_15.png", "TableImg_Fhmi3_15.png"], "original_data_index": 8832, "original_sql": "SELECT SUM(staff_id), date_joined_staff, MIN(last_name), COUNT(date_of_birth), AVG(first_name), staff_address_id FROM Staff WHERE date_left_staff <> \"2018-02-26 17:56:31\" AND middle_name <> \"Benny\" EXCEPT SELECT SUM(staff_id), date_joined_staff, MIN(last_name), COUNT(date_of_birth), AVG(first_name), staff_address_id FROM Staff WHERE date_of_birth = \"1996-03-09 08:19:49\" OR \"staff_address_id\" < 3 AND \"staff_id\" >= 4 OR last_name = \"Mertz\""} {"question": "Which driver IDs, besides driver ID 2, are drivers but not school bus drivers, besides driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Awr84_12.png", "TableImg_Pgs9h_5.png"], "original_data_index": 8831, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What driver IDs are less than 6 or greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_018hx_12.png", "TableImg_Ktnxz_5.png"], "original_data_index": 8835, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What aircraft IDs, other than 1, are in the aircraft table but not in the airport_aircraft table if their ID is 2 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9c684_5.png", "TableImg_008c0_4.png"], "original_data_index": 8837, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What aircraft IDs are in the aircraft table, except for ID 2, that are not also in the airport aircraft table if we only consider IDs up to 3 in that table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7bjt9_5.png", "TableImg_Zkti6_4.png"], "original_data_index": 8836, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the lesson status, staff ID, and price for lessons where either the staff ID is not 11, or the vehicle ID is greater than 2 and the lesson ID is 7 or more, or the lesson date is not '2018-03-12 00:41:59', or the lesson status is not 'Cancelled', or the price is less than 352, or where either the customer ID is not 5, or the staff ID is not 14 and the price is 231 or more, the lesson time is '9', and the lesson date is not '2018-03-17 19:02:07'?", "answer": {"columns": ["lesson_status_code", "staff_id", "price"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Cancelled", "5", "495"], ["Cancelled", "8", "199"], ["Cancelled", "8", "340"], ["Cancelled", "11", "231"], ["Cancelled", "11", "352"], ["Cancelled", "11", "483"], ["Cancelled", "12", "184"], ["Cancelled", "14", "167"], ["Cancelled", "15", "223"], ["Completed", "1", "306"], ["Completed", "3", "295"], ["Completed", "4", "456"], ["Completed", "4", "492"], ["Completed", "8", "277"], ["Completed", "12", "446"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_U1s3c_15.png", "TableImg_L2d18_15.png"], "original_data_index": 8834, "original_sql": "SELECT lesson_status_code, staff_id, price FROM Lessons WHERE \"staff_id\" != 11 OR \"vehicle_id\" > 2 AND \"lesson_id\" >= 7 OR lesson_date != \"2018-03-12 00:41:59\" OR lesson_status_code != \"Cancelled\" OR \"price\" < 352.0 UNION SELECT lesson_status_code, staff_id, price FROM Lessons WHERE \"customer_id\" != 5 OR \"staff_id\" != 14 AND \"price\" >= 231.0 AND lesson_time = \"9\" AND lesson_date <> \"2018-03-17 19:02:07\""} {"question": "Which driver IDs are either 11 or greater in the driver table, or 9 or less in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dn6w0_12.png", "TableImg_Yb145_5.png"], "original_data_index": 8838, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which airport IDs and altitudes are associated with flight numbers that have at least one flight with a velocity over 240 or piloted by Thompson?", "answer": {"columns": ["id", "Altitude"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "0"], ["2", "3650"], ["4", "3650"], ["5", "3650"], ["6", "3650"], ["3", "3650"], ["9", "3650"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Fgodl_9.png", "TableImg_Mb626_13.png"], "original_data_index": 8841, "original_sql": "SELECT T1.id, T2.Altitude FROM airport as T1 JOIN flight as T2 ON T1.id == T2.id GROUP BY Vehicle_Flight_number HAVING Velocity > 240.0 OR Pilot = \"Thompson\""} {"question": "List the aircraft IDs that are not 4 from the aircraft, or are 2 or less from the airport aircraft.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O9swc_5.png", "TableImg_W1n1c_4.png"], "original_data_index": 8840, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Could you list aircraft ID 2 if it's in the aircraft table, and all other aircraft IDs from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rrzaf_5.png", "TableImg_Ssw6u_4.png"], "original_data_index": 8839, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What driver IDs are either 9 or greater, or 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Riuxm_12.png", "TableImg_Iv237_5.png"], "original_data_index": 8843, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What aircraft IDs are common to both aircraft (with IDs 1 or greater) and airport aircraft (excluding ID 1)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ns05k_5.png"], "original_data_index": 8842, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What driver IDs are greater than 2 in the driver list or at least 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bseji_12.png", "TableImg_99zvl_5.png"], "original_data_index": 8844, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the full-time statuses for school buses that are not full-time, or are for school ID 1 or less, or have worked for less than 8 years?", "answer": {"columns": ["If_full_time"], "index": [0, 1, 2, 3, 4], "data": [["F"], ["F"], ["T"], ["T"], ["T"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_0r4eb_5.png", "TableImg_C2gbw_5.png"], "original_data_index": 8847, "original_sql": "SELECT If_full_time FROM school_bus WHERE If_full_time <> \"T\" UNION ALL SELECT If_full_time FROM school_bus WHERE \"School_ID\" <= 1 OR If_full_time <> \"T\" OR \"Years_Working\" < 8"} {"question": "Could you list all Store IDs for stores that have an area size of 179.84 or a ranking greater than 9, or that carry products with IDs less than 6?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["4"], ["1"], ["1"], ["1"], ["1"], ["2"], ["3"], ["2"], ["3"], ["5"], ["5"], ["5"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_O6sx6_5.png", "TableImg_Whrmu_15.png"], "original_data_index": 8846, "original_sql": "SELECT Store_ID FROM store WHERE \"Area_size\" = 179.84 OR \"Ranking\" > 9 UNION ALL SELECT Store_ID FROM store_product WHERE \"Product_ID\" < 6"} {"question": "What are the minimum School IDs for schools that are not in 4th grade, or are not school ID 7 and not in Jakarta, or are Punahou School, and also for school buses that are not full time or have a driver ID greater than 3?", "answer": {"columns": ["MIN(School_ID)"], "index": [0, 1], "data": [["1"], ["1"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_Ohn01_7.png", "TableImg_T3zpz_5.png"], "original_data_index": 8848, "original_sql": "SELECT MIN(School_ID) FROM school WHERE Grade != \"4th grade\" OR \"School_ID\" != 7 AND Location != \"Jakarta, Indonesia\" OR School = \"Punahou School\" UNION ALL SELECT MIN(School_ID) FROM school_bus WHERE If_full_time <> \"T\" OR \"Driver_ID\" > 3"} {"question": "What Aircraft IDs are 3 or less in the aircraft table, or 2 or less in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_66ta8_5.png", "TableImg_O4s4b_4.png"], "original_data_index": 8851, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What are the Driver IDs that are 8 or less from the driver records, or less than 10 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iot7f_12.png", "TableImg_Y8p8l_5.png"], "original_data_index": 8850, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What aircraft IDs are number 3 in the aircraft table but not less than 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cgaeh_5.png", "TableImg_9vu6i_4.png"], "original_data_index": 8849, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Give me the driver IDs that are 3 or less from the driver table, or are not 4 from the school bus table.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_04dt1_12.png", "TableImg_Hdw8k_5.png"], "original_data_index": 8852, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Could you list the company IDs for companies that are either headquartered in the USA and not valued at 164.3 billion, or in the oil and gas industry, or not company ID 17, or have sales of at least 82.6 billion and are not named JPMorgan Chase, or have assets less than 2039.1 billion, but are not associated with employee ID 2, a year working other than 1, or company ID 11 in employment records?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"], ["14"], ["15"], ["16"], ["18"], ["19"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_E99j0_19.png", "TableImg_Bik00_5.png"], "original_data_index": 8845, "original_sql": "SELECT Company_ID FROM company WHERE Headquarters = \"USA\" AND \"Market_Value_in_Billion\" <> 164.3 OR Industry = \"Oil and gas\" OR \"Company_ID\" <> 17.0 OR \"Sales_in_Billion\" >= 82.6 AND Name != \"JPMorgan Chase\" OR \"Assets_in_Billion\" < 2039.1 EXCEPT SELECT Company_ID FROM employment WHERE \"People_ID\" = 2 OR \"Year_working\" != 1 OR \"Company_ID\" = 11"} {"question": "What is the club ID and the student IDs of members in 'Bootup Baltimore'?", "answer": {"columns": ["AVG(T1.ClubID)", "StuID"], "index": [0], "data": [["1", "1001"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Rd23p_4.png", "TableImg_Ncrr4_4.png"], "original_data_index": 8853, "original_sql": "SELECT AVG(T1.ClubID), T2.StuID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubName = \"Bootup Baltimore\""} {"question": "What aircraft IDs are in both the aircraft and airport aircraft lists, considering only aircraft IDs up to 3 from the aircraft list and aircraft IDs of 1 or greater from the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Oo6nj_5.png", "TableImg_6ry7y_4.png"], "original_data_index": 8856, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What driver IDs of 7 or less are not also school bus driver IDs, considering only school bus drivers with IDs other than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2q00c_12.png", "TableImg_F8elc_5.png"], "original_data_index": 8855, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What driver IDs, 8 or less, are not among the school bus driver IDs that are 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9p0ly_12.png", "TableImg_Tbyn4_5.png"], "original_data_index": 8857, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What driver IDs are less than 12 but not less than or equal to 3 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8988l_12.png", "TableImg_40x8e_5.png"], "original_data_index": 8858, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What Driver IDs are either less than 6 in the driver table or 10 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jppzu_12.png", "TableImg_Pq2zw_5.png"], "original_data_index": 8859, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What driver IDs are both drivers (excluding driver 6) and school bus drivers (excluding driver 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2vmvq_12.png", "TableImg_Z4ppr_5.png"], "original_data_index": 8860, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which Driver IDs are 8 or less from the driver table, and also Driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dtfrt_12.png", "TableImg_P2x9y_5.png"], "original_data_index": 8861, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the template IDs for documents named 'Do not panic' or with ID 76 or less and not described as 'h', together with template IDs for templates that are not type 'PP' or have an effective date other than '1975-07-16 04:52:10'?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["0"], ["1"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["14"], ["15"], ["16"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Vfs5v_15.png", "TableImg_Ux1dk_20.png"], "original_data_index": 8863, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Name = \"Do not panic\" OR \"Document_ID\" <= 76 AND Document_Description <> \"h\" UNION SELECT Template_ID FROM Templates WHERE Template_Type_Code != \"PP\" OR Date_Effective_To != \"1975-07-16 04:52:10\""} {"question": "What are the feature type codes and names, excluding those named 'Securiyt, eg Burglar Alarm.' if they are also of type 'Amenity', but including those that are not of type 'Security' or are named 'Amenity, eg Pool.'?", "answer": {"columns": ["feature_type_code", "feature_type_name"], "index": [0], "data": [["Amenity", "Amenity, eg Pool."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Msja5_2.png", "TableImg_Ixfra_2.png"], "original_data_index": 8862, "original_sql": "SELECT feature_type_code, feature_type_name FROM Ref_Feature_Types WHERE feature_type_name <> \"Securiyt, eg Burglar Alarm.\" AND feature_type_code != \"Amenity\" UNION SELECT feature_type_code, feature_type_name FROM Ref_Feature_Types WHERE feature_type_code != \"Security\" OR feature_type_name = \"Amenity, eg Pool.\""} {"question": "What are the aircraft IDs that are at least 1 from the aircraft list, or are not 5 from the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rv75r_5.png", "TableImg_Zz6ic_4.png"], "original_data_index": 8864, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What driver IDs, besides 9, are not driver ID 7 on school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pmfgz_12.png", "TableImg_Lv8li_5.png"], "original_data_index": 8865, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are both greater than 6 and less than 9, and are used by both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gspyk_12.png", "TableImg_Rrq6i_5.png"], "original_data_index": 8866, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the Shop IDs for shops that are either hiring full-time employees with ID 3 or less, or started hiring in 2012, or have a Shop ID less than 9, or are named 'FC KooTeePee' and not in 'Lahti' and don't have 10000 products, or are managed by 'Mika Laurikainen', or are in the 'Finnair Stadium' district?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["1"], ["4"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_H5h9y_7.png", "TableImg_G07ez_9.png"], "original_data_index": 8867, "original_sql": "SELECT Shop_ID FROM hiring WHERE Is_full_time = \"T\" AND \"Employee_ID\" <= 3 OR Start_from = \"2012\" UNION ALL SELECT Shop_ID FROM shop WHERE \"Shop_ID\" < 9 OR \"Number_products\" != 10000 AND Name = \"FC KooTeePee\" AND Location <> \"Lahti\" OR Manager_name = \"Mika Laurikainen\" OR District = \"Finnair Stadium\""} {"question": "What aircraft IDs are in both the aircraft list (excluding aircraft ID 5) and the airport aircraft list (excluding aircraft ID 1)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1qbwc_5.png", "TableImg_Sehro_4.png"], "original_data_index": 8869, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What driver IDs, other than 7, are drivers, but also not 3 if 3 is a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A28m7_12.png", "TableImg_O5rkx_5.png"], "original_data_index": 8868, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which Aircraft ID is number 3 in the aircraft table and also not number 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I3jew_5.png", "TableImg_Kdyho_4.png"], "original_data_index": 8870, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which Driver IDs are both greater than 5 and less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2umsx_12.png", "TableImg_Dh5d9_5.png"], "original_data_index": 8872, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you find the minimum endowment ID from the endowment table for cases where either the donator name is not 'Distrito Nacional' or the endowment ID is 1 or more and the school ID is 6 or less, and also for cases where the endowment ID is greater than 2?", "answer": {"columns": ["MIN(endowment_id)"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_Mrpnm_11.png", "TableImg_Mmk94_11.png"], "original_data_index": 8874, "original_sql": "SELECT MIN(endowment_id) FROM endowment WHERE donator_name != \"Distrito Nacional\" OR \"endowment_id\" >= 1 AND \"School_id\" <= 6 UNION ALL SELECT MIN(endowment_id) FROM endowment WHERE \"endowment_id\" > 2"} {"question": "What Aircraft IDs are in both the aircraft table (for IDs 2 or greater) and the airport_aircraft table (excluding ID 3)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Th8bi_5.png", "TableImg_V0d8o_4.png"], "original_data_index": 8873, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which driver IDs are less than 3 in the driver table but not driver ID 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ut5cj_12.png", "TableImg_Uxode_5.png"], "original_data_index": 8871, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs are both for drivers with IDs of 7 or greater and for school bus drivers with IDs of 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Es3d1_12.png", "TableImg_Y3jao_5.png"], "original_data_index": 8878, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the total sales and a year of working for companies, categorized by their asset value, but only for companies and asset value categories that meet certain specific conditions related to company location, financial performance, and size?", "answer": {"columns": ["SUM(T1.Sales_in_Billion)", "Year_working"], "index": [0, 1, 2, 3, 4], "data": [["375.5", "2"], ["117.6", "1"], ["310.1", "1"], ["221.9", "4"], ["68.7", "3"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Lzgh5_19.png", "TableImg_Dbj9r_5.png"], "original_data_index": 8875, "original_sql": "SELECT SUM(T1.Sales_in_Billion), T2.Year_working FROM company as T1 JOIN employment as T2 ON T1.Company_ID = T2.Company_ID WHERE Headquarters <> \"USA\" OR \"Sales_in_Billion\" <= 447.0 AND \"People_ID\" > 7 OR \"Profits_in_Billion\" <> 25.7 AND \"Year_working\" > 1 OR \"Market_Value_in_Billion\" > 237.4 OR Name = \"ExxonMobil\" OR \"Assets_in_Billion\" <= 1873.9 GROUP BY Assets_in_Billion HAVING Assets_in_Billion <= 2039.1 OR Headquarters = \"USA\" OR Profits_in_Billion > 11.1 OR Year_working < 1 OR Name = \"Wells Fargo\" AND Industry = \"Banking\" OR Market_Value_in_Billion = 107.5 AND Sales_in_Billion <= 143.7"} {"question": "Which driver IDs are drivers (excluding driver ID 9) but not school bus drivers (excluding driver ID 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3hodu_12.png", "TableImg_8uw64_5.png"], "original_data_index": 8877, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What aircraft IDs are greater than 3 but are not listed in the airport aircraft table, except for aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fddfp_5.png", "TableImg_Egfcn_4.png"], "original_data_index": 8876, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What driver IDs are there that are 2 or more in the driver table, or less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S09u9_12.png", "TableImg_Zvgao_5.png"], "original_data_index": 8881, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are 4 or greater from the driver records, or driver ID 4 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0z9mv_12.png", "TableImg_Cw5ns_5.png"], "original_data_index": 8879, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "For each target user, what are the minimum source user ID and the average trust value for entries where either the trust is not 4, or the source user is not 1 and the target user is greater than 2, or the trust is greater than 3?", "answer": {"columns": ["MIN(source_u_id)", "target_u_id", "AVG(trust)"], "index": [0, 1], "data": [["1", "2", "5.875"], ["1", "2", "6.7142857143"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_2w8yv_9.png", "TableImg_5ch3v_9.png"], "original_data_index": 8880, "original_sql": "SELECT MIN(source_u_id), target_u_id, AVG(trust) FROM trust WHERE \"trust\" != 4 UNION SELECT MIN(source_u_id), target_u_id, AVG(trust) FROM trust WHERE \"source_u_id\" <> 1 AND \"target_u_id\" > 2 OR \"trust\" > 3"} {"question": "What are the Driver IDs that are less than 2 or exactly 10, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qv4o1_12.png", "TableImg_Iflud_5.png"], "original_data_index": 8883, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are below 8, and are not also driver IDs for school buses with IDs 10 or above?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G5dlk_12.png", "TableImg_5g5si_5.png"], "original_data_index": 8884, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "For document types other than 'Hard Drive', what is the count of document types and the sum of their codes, and can you repeat those values?", "answer": {"columns": ["COUNT(document_type_description)", "SUM(document_type_code)"], "index": [0, 1], "data": [["2", "0"], ["2", "0"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Vrk0l_3.png", "TableImg_Pfwsb_3.png"], "original_data_index": 8885, "original_sql": "SELECT COUNT(document_type_description), SUM(document_type_code) FROM Ref_Document_Types WHERE document_type_code <> \"Hard Drive\" UNION ALL SELECT COUNT(document_type_description), SUM(document_type_code) FROM Ref_Document_Types WHERE document_type_code <> \"Hard Drive\""} {"question": "What are the IDs of flights that are either not on September 3, 1963 and piloted by Thompson, or have a velocity other than 240, are from company 4, use airport ID 6 or less, and are not flight number M2-F1 #39, or have an altitude other than 3650, together with all operate company IDs that are not 2?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["9"], ["10"], ["11"], ["12"], ["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_Lqmt5_13.png", "TableImg_3dt9s_14.png"], "original_data_index": 8882, "original_sql": "SELECT id FROM flight WHERE Date <> \"September 3, 1963\" AND Pilot = \"Thompson\" OR \"Velocity\" != 240.0 AND \"company_id\" = 4 AND \"airport_id\" <= 6 AND Vehicle_Flight_number <> \"M2-F1 #39\" OR \"Altitude\" <> 3650.0 UNION ALL SELECT id FROM operate_company WHERE \"id\" <> 2"} {"question": "What driver IDs are in both the driver and school bus records, and are at least 7, but not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Amain_12.png", "TableImg_Oexn3_5.png"], "original_data_index": 8886, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What driver IDs are 10 or greater in the driver table, but are not also driver IDs greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_75mqx_12.png", "TableImg_5m2b2_5.png"], "original_data_index": 8888, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What driver IDs are greater than 9 in the driver list but not 10 or less in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1i6fs_12.png", "TableImg_182xc_5.png"], "original_data_index": 8889, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the Driver IDs from the driver table, excluding ID 5, except for those that are also in the school_bus table and are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wqhih_12.png", "TableImg_A4rmj_5.png"], "original_data_index": 8887, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the IDs and the highest titles for albums with IDs under 131, and also for employees with IDs of 5 or more, excluding those born on December 8, 1958?", "answer": {"columns": ["id", "MAX(title)"], "index": [0, 1], "data": [["8", "Warner 25 Anos"], ["5", "Sales Support Agent"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_3nk2n_347.png", "TableImg_Sr17x_8.png"], "original_data_index": 8890, "original_sql": "SELECT id, MAX(title) FROM albums WHERE \"id\" < 131 UNION ALL SELECT id, MAX(title) FROM employees WHERE \"id\" >= 5 AND birth_date != \"1958-12-08 00:00:00\""} {"question": "What aircraft IDs are in the aircraft table as ID 2 but not in the airport_aircraft table as IDs less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J8q4p_5.png", "TableImg_Xf6ds_4.png"], "original_data_index": 8891, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What Driver IDs are greater than 5, or not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Faokd_12.png", "TableImg_Pt1ir_5.png"], "original_data_index": 8895, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are 10 or greater and are not among the school bus driver IDs, ignoring driver ID 7 in the school bus driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jkgnp_12.png", "TableImg_Cd2hu_5.png"], "original_data_index": 8894, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the different Aircraft IDs, other than 2, present in either the aircraft or airport_aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_31eh4_5.png", "TableImg_G1k0e_4.png"], "original_data_index": 8893, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the Aircraft IDs, excluding ID 4 from the aircraft and ID 3 from the airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3otxr_5.png", "TableImg_A074v_4.png"], "original_data_index": 8892, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the endowment IDs, donator names, and amounts for endowments that have either an amount not equal to 9.83, or an amount of 9.55 or more and a School ID greater than 3?", "answer": {"columns": ["endowment_id", "donator_name", "amount"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1", "Monte Plata", "9.51"], ["3", "Distrito Nacional", "9.55"], ["4", "Valverde", "9.73"], ["5", "San Crist\u00f3bal", "9.05"], ["6", "Santo Domingo Este", "8.99"], ["7", "Santiago", "8.85"], ["8", "Duarte", "8.53"], ["9", "Com. Dom. En Estados Unidos", "8.43"], ["10", "La Vega", "8.82"], ["11", "Peravia", "8.33"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_72hdn_11.png", "TableImg_Smeik_11.png"], "original_data_index": 8896, "original_sql": "SELECT endowment_id, donator_name, amount FROM endowment WHERE \"amount\" != 9.83 UNION SELECT endowment_id, donator_name, amount FROM endowment WHERE \"amount\" >= 9.55 AND \"School_id\" > 3"} {"question": "What are the Book IDs for books with an ID of 7 or more, more than 12 issues, or a title other than 'Sheva's War', or for publications with an ID less than 5?", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_9tawe_10.png", "TableImg_L6b27_7.png"], "original_data_index": 8897, "original_sql": "SELECT Book_ID FROM book WHERE \"Book_ID\" >= 7 OR \"Issues\" > 12.0 OR Title != \"Sheva's War\" UNION SELECT Book_ID FROM publication WHERE \"Book_ID\" < 5"} {"question": "What Aircraft IDs are less than 4 in the aircraft table, or not equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ai0m1_5.png", "TableImg_8b2mm_4.png"], "original_data_index": 8899, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What is the highest document ID of a draft, considering drafts that are not revisions, or are draft number 14, or are not document ID 12, unless it is also the highest document ID of a mailed document, considering mailed documents with ID less than 7, address ID up to 9, and not mailed on January 27, 2013?", "answer": {"columns": ["MAX(document_id)"], "index": [0], "data": [["23"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Ex2cz_15.png", "TableImg_Npbql_14.png"], "original_data_index": 8898, "original_sql": "SELECT MAX(document_id) FROM Document_Drafts WHERE draft_details != \"r\" OR \"draft_number\" = 14 OR \"document_id\" <> 12 EXCEPT SELECT MAX(document_id) FROM Documents_Mailed WHERE \"document_id\" < 7 AND \"mailed_to_address_id\" <= 9 AND mailing_date != \"2013-01-27 03:29:31\""} {"question": "What aircraft IDs, excluding 5, are in the aircraft table, and what aircraft IDs, starting from 2, are in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_45s37_5.png", "TableImg_As99h_4.png"], "original_data_index": 8900, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which driver IDs greater than 5 are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ac3ke_12.png", "TableImg_Cnymj_5.png"], "original_data_index": 8901, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What driver IDs are both drivers, excluding driver 2, and school bus drivers with IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3xakl_12.png", "TableImg_V9ekm_5.png"], "original_data_index": 8902, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What driver IDs are either greater than 10, or are not 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xntmb_12.png", "TableImg_Bo67p_5.png"], "original_data_index": 8904, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs under 3 are drivers, but not school bus drivers, ignoring driver ID 3 in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0zss9_12.png", "TableImg_1k22j_5.png"], "original_data_index": 8903, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are less than 2 in the driver list, but not driver ID 7 if it's in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Inm0n_12.png", "TableImg_Wj3fn_5.png"], "original_data_index": 8906, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are specifically 4 from the driver list, or less than 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_22ux1_12.png", "TableImg_Q2jay_5.png"], "original_data_index": 8905, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are in both the general driver list (excluding driver ID 5) and the school bus driver list (including only driver IDs 3 or higher)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P9jh0_12.png", "TableImg_Q89sz_5.png"], "original_data_index": 8907, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What driver IDs are 11 or less from the driver list, but not less than 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4em8n_12.png", "TableImg_U4jsz_5.png"], "original_data_index": 8908, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are there besides 7, and also include 9 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qgtpf_12.png", "TableImg_99wjx_5.png"], "original_data_index": 8910, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the Driver IDs that are greater than 11 for drivers, or less than 10 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0zcxp_12.png", "TableImg_Jhnwy_5.png"], "original_data_index": 8909, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What aircraft IDs less than 3 from the aircraft table are not in the airport_aircraft table, excluding aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vbie8_5.png", "TableImg_Fs9ug_4.png"], "original_data_index": 8911, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the driver IDs that are greater than 3 in the driver table, and also driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hp6sb_12.png", "TableImg_Brghb_5.png"], "original_data_index": 8915, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What driver IDs are 5 or greater, but are not among the school bus driver IDs that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2ey5z_12.png", "TableImg_7ceen_5.png"], "original_data_index": 8914, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the Driver IDs that are at least 5 from the driver table, and at least 9 from the school bus table, combined into a single list without duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V6nw6_12.png", "TableImg_Zp3hd_5.png"], "original_data_index": 8913, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Tell me driver ID 12 if it's a driver, and driver ID 9 is not a school bus driver.", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E8lmo_12.png", "TableImg_F5zcr_5.png"], "original_data_index": 8912, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the names of companies with a market value of 202.2 billion dollars, as well as the names of all people except for person number 2?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["Berkshire Hathaway"], ["Reggie Lewis"], ["Tom Sheehey"], ["Darryl Kennedy"], ["David Butler"], ["Tim Naegeli"], ["Jerry Corcoran"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_7zsgf_19.png", "TableImg_8zvtf_7.png"], "original_data_index": 8917, "original_sql": "SELECT Name FROM company WHERE \"Market_Value_in_Billion\" = 202.2 UNION ALL SELECT Name FROM people WHERE \"People_ID\" != 2"} {"question": "What driver IDs are both not 2 and also less than or equal to 10, considering both driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_33g0s_12.png", "TableImg_Hyng4_5.png"], "original_data_index": 8919, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are less than 6 in the driver table but are not 10 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4omuy_12.png", "TableImg_Atrtf_5.png"], "original_data_index": 8916, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What Aircraft IDs are number 3 in the aircraft table and number 2 or less in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T21yy_5.png", "TableImg_6zlab_4.png"], "original_data_index": 8920, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Please show me all driver IDs from the driver table except for driver ID 2, and also include driver ID 9 from the school bus table.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F5ltl_12.png", "TableImg_16z4n_5.png"], "original_data_index": 8923, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are 5 or lower in the driver table, or below 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gpwrs_12.png", "TableImg_8tam8_5.png"], "original_data_index": 8924, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the room names, bed types, maximum occupancies, and the lowest room IDs for rooms that are either not named 'CAS' or have a base price greater than 175?", "answer": {"columns": ["MIN(RoomId)", "roomName", "bedType", "maxOccupancy"], "index": [0, 1], "data": [["AOB", "Abscond or bolster", "Queen", "4"], ["FNA", "Frugal not apropos", "King", "4"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_Amouw_10.png", "TableImg_2qxux_10.png"], "original_data_index": 8925, "original_sql": "SELECT MIN(RoomId), roomName, bedType, maxOccupancy FROM Rooms WHERE RoomId != \"CAS\" UNION SELECT MIN(RoomId), roomName, bedType, maxOccupancy FROM Rooms WHERE \"basePrice\" > 175"} {"question": "What Aircraft IDs are there, excluding ID 3 from the aircraft records, and also including IDs up to 1 from the airport aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Poans_5.png", "TableImg_K5gsx_4.png"], "original_data_index": 8926, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the birth dates, person IDs, names, and nationalities of people who are not person number 5, or are born on August 8, 1986 and named Roman Bragin, or are not Russian, or are taller than 194?", "answer": {"columns": ["Birth_Date", "People_ID", "Name", "Nationality"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["May 26, 1986", "1", "Aleksey Ostapenko", "Russia"], ["August 16, 1982", "2", "Teodor Salparov", "Bulgaria"], ["April 17, 1987", "3", "Roman Bragin", "Russia"], ["January 22, 1987", "4", "Sergey Grankin", "Russia"], ["July 14, 1983", "6", "Maksim Botin", "Russia"], ["February 8, 1981", "7", "Semen Poltavskiy", "Russia"], ["May 26, 1986", "1", "Aleksey Ostapenko", "Russia"], ["August 8, 1986", "5", "Yevgeni Sivozhelez", "Russia"], ["February 8, 1981", "7", "Semen Poltavskiy", "Russia"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Snetl_7.png", "TableImg_72swt_7.png"], "original_data_index": 8922, "original_sql": "SELECT Birth_Date, People_ID, Name, Nationality FROM people WHERE \"People_ID\" <> 5 OR Birth_Date = \"August 8, 1986\" AND Name = \"Roman Bragin\" OR Nationality != \"Russia\" UNION ALL SELECT Birth_Date, People_ID, Name, Nationality FROM people WHERE \"Height\" > 194.0"} {"question": "What driver IDs are both not equal to 5 and less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lyjoo_12.png", "TableImg_Dokpk_5.png"], "original_data_index": 8921, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What customer IDs meet specific conditions related to customer information, excluding those that also meet specific conditions related to lesson information?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["4"], ["7"], ["12"], ["14"], ["15"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_Imucf_15.png", "TableImg_Iy8pa_15.png"], "original_data_index": 8927, "original_sql": "SELECT customer_id FROM Customers WHERE cell_mobile_phone_number != \"(780)719-4206x033\" AND first_name != \"Amya\" OR customer_status_code <> \"Good Customer\" AND \"amount_outstanding\" <= 9500.0 OR phone_number != \"753.921.0871\" OR \"customer_id\" <> 3 OR email_address = \"asha.kilback@example.org\" AND last_name <> \"Leuschke\" EXCEPT SELECT customer_id FROM Lessons WHERE \"vehicle_id\" >= 1 AND \"price\" > 352.0 OR lesson_date = \"2018-03-05 18:05:31\" OR \"staff_id\" > 8 OR \"lesson_id\" = 7 AND \"customer_id\" < 9"} {"question": "What are the Driver IDs that are greater than 12 or less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gm1s8_12.png", "TableImg_Bh5wg_5.png"], "original_data_index": 8928, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What Driver IDs are either less than or equal to 1 in the driver table, or not equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4r8ek_12.png", "TableImg_K3ny5_5.png"], "original_data_index": 8930, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Could you list the IDs of albums that are 'Tchaikovsky: The Nutcracker' and have an ID under 184, together with the IDs of employees who either have postal code 'T3B 1Y7', or are not from Lethbridge and weren't hired on '2002-05-01', or don't have the phone number '+1 (403) 262-3443' and live at '1111 6 Ave SW', or whose ID is not 1, or whose first name is not 'Margaret' and are not from Canada, or whose birth date is not '1973-07-01'?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_1uaie_347.png", "TableImg_S2fy4_8.png"], "original_data_index": 8931, "original_sql": "SELECT id FROM albums WHERE \"id\" < 184 AND title = \"Tchaikovsky: The Nutcracker\" UNION ALL SELECT id FROM employees WHERE postal_code = \"T3B 1Y7\" OR city != \"Lethbridge\" AND hire_date <> \"2002-05-01 00:00:00\" OR phone != \"+1 (403) 262-3443\" AND address = \"1111 6 Ave SW\" OR \"id\" <> 1 OR first_name <> \"Margaret\" AND country <> \"Canada\" OR birth_date <> \"1973-07-01 00:00:00\""} {"question": "Which driver IDs of 7 or more are in the driver table but not in the school bus table (excluding driver ID 4)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tlntp_12.png", "TableImg_1d8vg_5.png"], "original_data_index": 8929, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver IDs are either 8 or less than 9, considering drivers and school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ux5om_12.png", "TableImg_Do0n1_5.png"], "original_data_index": 8932, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What Aircraft IDs are at most 1 from aircraft, or at least 2 from airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nuy17_5.png", "TableImg_Cxxnb_4.png"], "original_data_index": 8934, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the money ranks and player IDs of poker players who earned more than $142,800 and are either not player number 5, or have a People ID less than 6, a Final Table Made count not equal to 19, Earnings up to $476,090, and a Money Rank not equal to 68?", "answer": {"columns": ["Money_Rank", "Poker_Player_ID"], "index": [0, 1, 2], "data": [["58", "4"], ["68", "1"], ["141", "2"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Dndu8_5.png", "TableImg_8axj1_5.png"], "original_data_index": 8933, "original_sql": "SELECT Money_Rank, Poker_Player_ID FROM poker_player WHERE \"Poker_Player_ID\" <> 5 OR \"People_ID\" < 6 AND \"Final_Table_Made\" != 19.0 AND \"Earnings\" <= 476090.0 AND \"Money_Rank\" != 68.0 EXCEPT SELECT Money_Rank, Poker_Player_ID FROM poker_player WHERE \"Earnings\" <= 142800.0"} {"question": "What aircraft IDs are 3 or greater in the aircraft table, but not less than 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sq2xv_5.png", "TableImg_Mrx3z_4.png"], "original_data_index": 8936, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Which driver IDs are both greater than 2 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H8uh5_12.png", "TableImg_Eio9p_5.png"], "original_data_index": 8938, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "For students, what are the city codes, average last names, majors, and advisor numbers for those who are either 22 or younger, or not from ROC, or named Tracy with a StuID of 1020 or greater and Advisor of 1148 or greater, along with those who are from DAL, have a StuID of 1016 or less, Advisor of 8772 or greater, and are not named Sarah?", "answer": {"columns": ["city_code", "AVG(LName)", "Major", "Advisor"], "index": [0, 1], "data": [["BAL", "0.0", "600.0", "1121.0"], ["", "", "", ""]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_5l9lc_34.png", "TableImg_Pbr3n_34.png"], "original_data_index": 8935, "original_sql": "SELECT city_code, AVG(LName), Major, Advisor FROM Student WHERE \"Age\" <= 22 AND \"Major\" >= 540 OR city_code != \"ROC\" OR \"StuID\" >= 1020 AND \"Advisor\" >= 1148 AND Fname = \"Tracy\" UNION ALL SELECT city_code, AVG(LName), Major, Advisor FROM Student WHERE city_code = \"DAL\" AND \"StuID\" <= 1016 AND \"Advisor\" >= 8772 AND Fname != \"Sarah\""} {"question": "What are the average coach name, gender, coach ID, and number of ranks for coaches who either have a rank greater than 2, are not male, are not named Joe Fabbri, are from club 1, or are coach 4, or are from a club with ID greater than 1?", "answer": {"columns": ["AVG(Coach_name)", "Gender", "Coach_ID", "COUNT(Rank)"], "index": [0, 1], "data": [["0", "M", "1", "5"], ["0", "M", "3", "2"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Ic2co_5.png", "TableImg_0afmx_5.png"], "original_data_index": 8937, "original_sql": "SELECT AVG(Coach_name), Gender, Coach_ID, COUNT(Rank) FROM coach WHERE \"Rank\" > 2 OR Gender <> \"M\" OR Coach_name <> \"Joe Fabbri\" OR \"Club_ID\" = 1 OR \"Coach_ID\" = 4 UNION ALL SELECT AVG(Coach_name), Gender, Coach_ID, COUNT(Rank) FROM coach WHERE \"Club_ID\" > 1"} {"question": "Please provide a list of Book IDs. Include those from the book table where the Book ID is greater than 5, or the writer is Garth Ennis and the number of issues is not 12. Also include Book IDs from the publication table where the Publication ID is less than 2, or the Book ID is 7 or less, the Publication Date is not August 2008, the Publisher is Wiley, and the Price is 4,100,000 or more.", "answer": {"columns": ["Book_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["6"], ["7"], ["8"], ["9"], ["10"], ["1"], ["4"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_1yxbc_10.png", "TableImg_Pb4uo_7.png"], "original_data_index": 8940, "original_sql": "SELECT Book_ID FROM book WHERE \"Book_ID\" > 5 OR Writer = \"Garth Ennis\" AND \"Issues\" != 12.0 UNION ALL SELECT Book_ID FROM publication WHERE \"Publication_ID\" < 2 OR \"Book_ID\" <= 7 AND Publication_Date <> \"August 2008\" AND Publisher = \"Wiley\" AND \"Price\" >= 4100000.0"} {"question": "What aircraft IDs are less than 4 in the aircraft table but not ID 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G1g3m_5.png", "TableImg_243ta_4.png"], "original_data_index": 8941, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What is the count of employees who are either from Bristol, or at least 23 and named Matt Stevens and not employee ID 6, but only if this count is different from the count of hirings that started in 2009, or are employee ID greater than 6 and full-time, or shop ID 8?", "answer": {"columns": ["COUNT(Employee_ID)"], "index": [0], "data": [["4"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Bfpod_10.png", "TableImg_Dj9k0_7.png"], "original_data_index": 8939, "original_sql": "SELECT COUNT(Employee_ID) FROM employee WHERE City = \"Bristol\" OR \"Age\" >= 23 AND \"Employee_ID\" <> 6 AND Name = \"Matt Stevens\" EXCEPT SELECT COUNT(Employee_ID) FROM hiring WHERE Start_from = \"2009\" OR \"Employee_ID\" > 6 AND Is_full_time = \"T\" OR \"Shop_ID\" = 8"} {"question": "What document IDs are associated with draft copies that are either not document ID 12, or draft number 8, or not copy number 5, and also have a draft number that is not 1 and a copy number of 15 or more?", "answer": {"columns": ["document_id"], "index": [0, 1], "data": [["20"], ["23"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_8djzw_8.png", "TableImg_Cmccl_8.png"], "original_data_index": 8942, "original_sql": "SELECT document_id FROM Draft_Copies WHERE \"document_id\" <> 12 OR \"draft_number\" = 8 OR \"copy_number\" <> 5 INTERSECT SELECT document_id FROM Draft_Copies WHERE \"draft_number\" != 1 AND \"copy_number\" >= 15"} {"question": "What are the customer IDs for customers who are not 'Bad Customer' or have a phone number other than '374-483-2758x85087', or for lessons with staff ID 3 or higher, lesson ID less than 11, customer ID 11, price under 231.0, and vehicle ID 2?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_Lqir9_15.png", "TableImg_Ny5qs_15.png"], "original_data_index": 8945, "original_sql": "SELECT customer_id FROM Customers WHERE phone_number != \"374-483-2758x85087\" OR customer_status_code <> \"Bad Customer\" UNION SELECT customer_id FROM Lessons WHERE \"staff_id\" >= 3 AND \"lesson_id\" < 11 AND \"customer_id\" = 11 AND \"price\" < 231.0 AND \"vehicle_id\" = 2"} {"question": "Which driver IDs are 3 or less in the driver table, but are not also driver IDs less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3bvz6_12.png", "TableImg_9l7mn_5.png"], "original_data_index": 8943, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What Aircraft IDs are 5 or greater in the aircraft table, along with Aircraft IDs that are 3 or less in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bz4kj_5.png", "TableImg_Ns8cp_4.png"], "original_data_index": 8947, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What album IDs are there, excluding those from albums titled 'Beyond Good And Evil' or with ID 9, and also excluding any IDs that are genre IDs for 'World'?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Lv4pv_347.png", "TableImg_My6wk_25.png"], "original_data_index": 8944, "original_sql": "SELECT id FROM albums WHERE title != \"Beyond Good And Evil\" OR \"id\" != 9 EXCEPT SELECT id FROM genres WHERE name = \"World\""} {"question": "Which driver IDs are drivers, excluding driver 11, but are not also school bus drivers with IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q86kk_12.png", "TableImg_P1lxj_5.png"], "original_data_index": 8946, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs are at least 7 in the driver list but not greater than 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ncx2k_12.png", "TableImg_Joh6t_5.png"], "original_data_index": 8948, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the driver IDs that are greater than 8 or less than 3, considering driver information and school bus information separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0in4m_12.png", "TableImg_62s2p_5.png"], "original_data_index": 8952, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Could you list all the Club IDs that are either less than 1, or from clubs not started in the year 2000, not in Russia, and not named Djurg\u00e5rdens IF, together with Club IDs from coaches that are either greater than 5, or associated with a Club ID greater than 1, or not female?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["6"], ["1"], ["3"], ["3"], ["1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_A2jo3_6.png", "TableImg_He3v7_5.png"], "original_data_index": 8951, "original_sql": "SELECT Club_ID FROM club WHERE \"Club_ID\" < 1 OR \"Start_year\" <> 2000 AND Region <> \"Russia\" AND Club_name != \"Djurg\u00e5rdens IF\" UNION ALL SELECT Club_ID FROM coach WHERE \"Coach_ID\" > 5 OR \"Club_ID\" > 1 OR Gender != \"F\""} {"question": "What are the register years and branch IDs for memberships that are either for any member or for branch 5, except in 2016, or for any branch other than 1 or for member 2, except in 2016?", "answer": {"columns": ["Register_Year", "Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2016", "1"], ["2016", "2"], ["2016", "4"], ["2016", "5"], ["2016", "8"], ["2017", "1"], ["2017", "6"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Bcjtn_8.png", "TableImg_Jkewy_8.png"], "original_data_index": 8950, "original_sql": "SELECT Register_Year, Branch_ID FROM membership_register_branch WHERE \"Member_ID\" >= 1 OR Branch_ID = \"5\" AND Register_Year != \"2016\" UNION SELECT Register_Year, Branch_ID FROM membership_register_branch WHERE Branch_ID <> \"1\" OR \"Member_ID\" = 2 AND Register_Year != \"2016\""} {"question": "What are all the Driver IDs, excluding driver ID 11 from the drivers and driver ID 3 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W7n4x_12.png", "TableImg_Jt6pb_5.png"], "original_data_index": 8949, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What aircraft IDs are either 1 from the aircraft list or 3 or greater from the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9rf9b_5.png", "TableImg_Vm17w_4.png"], "original_data_index": 8956, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What are the lesson times, staff IDs, and lesson statuses for lessons that are either not lesson ID 7, or not lesson ID 8, or use vehicle ID 2, or are not completed, or cost 199 or less and are at 9 o'clock?", "answer": {"columns": ["lesson_time", "staff_id", "lesson_status_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["5", "8", "Cancelled"], ["6", "14", "Cancelled"], ["3", "11", "Cancelled"], ["9", "1", "Completed"], ["9", "3", "Completed"], ["6", "4", "Completed"], ["2", "8", "Completed"], ["9", "4", "Completed"], ["4", "5", "Cancelled"], ["2", "15", "Cancelled"], ["2", "12", "Cancelled"], ["5", "12", "Completed"], ["5", "11", "Cancelled"], ["9", "8", "Cancelled"], ["5", "8", "Cancelled"], ["6", "14", "Cancelled"], ["3", "11", "Cancelled"], ["9", "1", "Completed"], ["9", "3", "Completed"], ["6", "4", "Completed"], ["9", "11", "Cancelled"], ["9", "4", "Completed"], ["4", "5", "Cancelled"], ["2", "15", "Cancelled"], ["2", "12", "Cancelled"], ["5", "12", "Completed"], ["5", "11", "Cancelled"], ["9", "8", "Cancelled"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Pslny_15.png", "TableImg_M0bkc_15.png"], "original_data_index": 8953, "original_sql": "SELECT lesson_time, staff_id, lesson_status_code FROM Lessons WHERE \"lesson_id\" != 7 OR \"vehicle_id\" = 2 OR \"price\" <= 199.0 AND lesson_time = \"9\" UNION ALL SELECT lesson_time, staff_id, lesson_status_code FROM Lessons WHERE lesson_status_code != \"Completed\" OR \"lesson_id\" <> 8"} {"question": "What is the count of target users with trust level 2, if it is different from the count of target users with target user ID of 5 or more and trust level greater than 4?", "answer": {"columns": ["COUNT(target_u_id)"], "index": [0], "data": [["1"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_0hedu_9.png", "TableImg_Leq5x_9.png"], "original_data_index": 8957, "original_sql": "SELECT COUNT(target_u_id) FROM trust WHERE \"trust\" = 2 EXCEPT SELECT COUNT(target_u_id) FROM trust WHERE \"target_u_id\" >= 5 AND \"trust\" > 4"} {"question": "What are the driver IDs that are less than 2 from the driver table or not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2bny6_12.png", "TableImg_K69k5_5.png"], "original_data_index": 8955, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What property type codes are both associated with properties having certain specific features, prices, locations, or sizes, and are also categorized as property types that are not houses or are described as apartments, flats, or condos?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3], "data": [["Apartment"], ["Field"], ["Other"], ["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_R25r4_15.png", "TableImg_2f9qs_5.png"], "original_data_index": 8958, "original_sql": "SELECT property_type_code FROM Properties WHERE fld_feature_1 != \"None\" OR apt_feature_3 <> \"None\" OR oth_feature_2 = \"None\" AND hse_feature_3 <> \"None\" AND \"vendor_requested_price\" <= 150045.7568 AND \"agreed_selling_price\" = 4201.8 AND shp_feature_2 <> \"None\" OR property_name != \"murray hill\" AND oth_feature_3 <> \"None\" OR date_on_market != \"1990-05-25 23:01:51\" OR property_address <> \"743 Ephraim Greens Anniemouth, HI 47084-3853\" OR \"room_count\" > 7 OR property_type_code <> \"Apartment\" OR fld_feature_3 <> \"None\" INTERSECT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_code <> \"House\" OR property_type_description = \"Apartment, Flat, Condo, etc.\""} {"question": "Which driver IDs are 12 or less from the drivers, but not greater than 4 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rp2jr_12.png", "TableImg_6kcfo_5.png"], "original_data_index": 8959, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What Driver IDs are in both the driver and school bus records and are between 4 and 8?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ydvvv_12.png", "TableImg_Wibjw_5.png"], "original_data_index": 8962, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What Aircraft IDs are both greater than 1 in the aircraft table and not equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0is0j_5.png", "TableImg_Otm5t_4.png"], "original_data_index": 8961, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which driver IDs are greater than 6, but are not driver IDs that are 4 or less in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bhqun_12.png", "TableImg_9fmnb_5.png"], "original_data_index": 8960, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are both 3 or greater and associated with drivers, and also 9 or less and associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dmrcz_12.png", "TableImg_Zffd7_5.png"], "original_data_index": 8964, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Could you list all document status codes for documents that are either not document ID 23 and have receipt number '83', or are 'Paper' documents with other details not 'h'? Also, include document status codes from the reference list that are not 'working' and are not described as 'mailed late'.", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2, 3, 4, 5], "data": [["done"], ["overdue"], ["done"], ["working"], ["overdue"], ["done"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Odi2j_15.png", "TableImg_Qn60r_3.png"], "original_data_index": 8966, "original_sql": "SELECT document_status_code FROM Documents WHERE \"document_id\" <> 23 AND receipt_number = \"83\" OR other_details <> \"h\" AND document_type_code = \"Paper\" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description <> \"mailed late\" AND document_status_code <> \"working\""} {"question": "What aircraft IDs, that are 4 or less, are in the aircraft table but not in the airport aircraft table, if we ignore aircraft ID 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bsxkx_5.png", "TableImg_Iit2t_4.png"], "original_data_index": 8963, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What is the number of contestants not equal to 8, if this number is different from the number of votes for contestants 3 or higher with vote ID 1 or less on March 9, 2018 around 7pm?", "answer": {"columns": ["COUNT(contestant_number)"], "index": [0], "data": [["10"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_L4p1r_11.png", "TableImg_Cv64h_4.png"], "original_data_index": 8965, "original_sql": "SELECT COUNT(contestant_number) FROM CONTESTANTS WHERE \"contestant_number\" != 8 EXCEPT SELECT COUNT(contestant_number) FROM VOTES WHERE \"contestant_number\" >= 3 AND \"vote_id\" <= 1 AND created = \"2018-03-09 19:03:40\""} {"question": "What are the driver IDs that are greater than 6 or less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ehf31_12.png", "TableImg_U798k_5.png"], "original_data_index": 8967, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs, other than 3, are in the driver list but not driver ID 4 if driver ID 4 is in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_07635_12.png", "TableImg_Dkplj_5.png"], "original_data_index": 8970, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What is the aircraft ID if it is 3 and present in both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S6k9y_5.png", "TableImg_Yypl2_4.png"], "original_data_index": 8968, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What Aircraft IDs are either less than 4 in the aircraft table or at least 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_24o4d_5.png", "TableImg_4hzkj_4.png"], "original_data_index": 8971, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What is the common average Name for companies with specific financial characteristics and for people named Tim Naegeli?", "answer": {"columns": ["AVG(Name)"], "index": [0], "data": [["0"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_Y4ymr_19.png", "TableImg_D858o_7.png"], "original_data_index": 8969, "original_sql": "SELECT AVG(Name) FROM company WHERE \"Assets_in_Billion\" <> 213.0 AND \"Company_ID\" <> 11.0 AND \"Sales_in_Billion\" > 147.3 OR Industry <> \"Oil and gas\" OR \"Profits_in_Billion\" = 41.1 OR Headquarters <> \"USA\" OR \"Market_Value_in_Billion\" = 237.4 INTERSECT SELECT AVG(Name) FROM people WHERE Name = \"Tim Naegeli\""} {"question": "For each category of Other Details, what is the lowest Document ID, considering categories from Documents where the lowest Document ID is at least 0, and also categories from Paragraphs where the lowest Document ID is less than 3?", "answer": {"columns": ["MIN(Document_ID)", "Other_Details"], "index": [0], "data": [["0", ""]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_827bk_15.png", "TableImg_B7t61_15.png"], "original_data_index": 8972, "original_sql": "SELECT MIN(Document_ID), Other_Details FROM Documents GROUP BY Other_Details HAVING MIN(Document_ID) >= 0 UNION SELECT MIN(Document_ID), Other_Details FROM Paragraphs GROUP BY Other_Details HAVING MIN(Document_ID) < 3"} {"question": "For each car maker, what is the total ID and weight of their cars, considering only car makers with engine displacement greater than 156 and acceleration of 11.5, and only including cars that are either from 'American Motor Company', have less than 4 cylinders and are not 75 horsepower, are from 1982 or earlier, have an acceleration of 16.5 or less and a weight not equal to 2472, or are not from country '8' and are not made by Toyota?", "answer": {"columns": ["SUM(T1.Id)", "Weight"], "index": [0, 1], "data": [["12", "4142"], ["2", "3693"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Hkeut_22.png", "TableImg_Qhy9q_406.png"], "original_data_index": 8973, "original_sql": "SELECT SUM(T1.Id), T2.Weight FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE FullName = \"American Motor Company\" OR \"Cylinders\" < 4 AND Horsepower <> \"75\" OR \"Year\" <= 1982 OR \"Accelerate\" <= 16.5 AND \"Weight\" <> 2472 OR Country <> \"8\" AND Maker <> \"toyota\" GROUP BY FullName HAVING Edispl > 156.0 AND Accelerate = 11.5"} {"question": "Which People IDs are both for people who are Russian and not born on August 8, 1986, or not named Semen Poltavskiy, or 196.0 tall, and also for poker players who have a People ID of 5 or greater, or earnings not equal to 476090.0?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["5"], ["6"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_8nlix_7.png", "TableImg_0rxip_5.png"], "original_data_index": 8974, "original_sql": "SELECT People_ID FROM people WHERE Nationality = \"Russia\" AND Birth_Date <> \"August 8, 1986\" OR Name != \"Semen Poltavskiy\" OR \"Height\" = 196.0 INTERSECT SELECT People_ID FROM poker_player WHERE \"People_ID\" >= 5 OR \"Earnings\" <> 476090.0"} {"question": "Which Driver IDs are 8 or higher in the driver records, or not 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K15zv_12.png", "TableImg_Mn2qu_5.png"], "original_data_index": 8976, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver IDs are 10 or less, or driver ID 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H8uib_12.png", "TableImg_Jagtn_5.png"], "original_data_index": 8975, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What is the total sum of member IDs, considering both members who are either named Johnny Williams or not from Columbia, South Carolina, and membership records that are either not from 2017 or not from branch 1?", "answer": {"columns": ["SUM(Member_ID)"], "index": [0, 1], "data": [["51"], ["33"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_S4wz7_10.png", "TableImg_6lfxk_8.png"], "original_data_index": 8977, "original_sql": "SELECT SUM(Member_ID) FROM member WHERE Name = \"Johnny Williams\" OR Hometown != \"Columbia, South Carolina\" UNION ALL SELECT SUM(Member_ID) FROM membership_register_branch WHERE Register_Year != \"2017\" OR Branch_ID <> \"1\""} {"question": "What Driver IDs are 11 or greater from the driver list, or 9 or less from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K5yuk_12.png", "TableImg_Qi9ex_5.png"], "original_data_index": 8979, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the driver IDs of drivers who are not driver 6, excluding those who are driver 9 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kw5sr_12.png", "TableImg_Rjcih_5.png"], "original_data_index": 8981, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the IDs of clubs that are either club number 2 and include members with student IDs of 1010 or higher, or clubs with IDs greater than 1 that don't have any Vice-Presidents?", "answer": {"columns": ["ClubID"], "index": [0], "data": [["2"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_Rj2xj_4.png", "TableImg_7va4v_4.png"], "original_data_index": 8980, "original_sql": "SELECT ClubID FROM Member_of_club WHERE \"StuID\" >= 1010 AND \"ClubID\" = 2 UNION SELECT ClubID FROM Member_of_club WHERE \"ClubID\" > 1 AND Position <> \"Vice-President\""} {"question": "What are the Aircraft IDs that are at least 1 from the aircraft records, or greater than 1 from the airport aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bj6im_5.png", "TableImg_Ljlam_4.png"], "original_data_index": 8978, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What driver IDs are in both the list of drivers (excluding driver ID 1) and the list of school bus drivers (only including IDs up to 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fnth3_12.png", "TableImg_Vcuyw_5.png"], "original_data_index": 8982, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs, up to 4, are drivers but not school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C6l17_12.png", "TableImg_Vhx9k_5.png"], "original_data_index": 8983, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What role descriptions are both for roles other than 'MG' and for 'PR' roles that are not 'Photo'?", "answer": {"columns": ["role_description"], "index": [0], "data": [["Proof Manager"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Ecz6w_4.png", "TableImg_1xagi_4.png"], "original_data_index": 8984, "original_sql": "SELECT role_description FROM Roles WHERE role_code <> \"MG\" INTERSECT SELECT role_description FROM Roles WHERE role_description != \"Photo\" AND role_code = \"PR\""} {"question": "Can you get me the continent IDs for continents that are not Africa or have an ID less than 3, and also for continents that are not Europe or have an ID not equal to 5?", "answer": {"columns": ["ContId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["5"], ["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_5o2yi_5.png", "TableImg_F5stz_5.png"], "original_data_index": 8988, "original_sql": "SELECT ContId FROM continents WHERE Continent <> \"africa\" OR \"ContId\" < 3 UNION ALL SELECT ContId FROM continents WHERE Continent <> \"europe\" OR \"ContId\" <> 5"} {"question": "What are the city areas for districts that either have a city population different from 328512 or a city area different from 10, or have a District ID less than 2, or are named 'Faisalabad District' with a city area not equal to 22, or have a city population not equal to 134936 and are headquartered in 'Bahawalnagar City'?", "answer": {"columns": ["City_Area"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["10"], ["12"], ["13"], ["15"], ["17"], ["18"], ["20"], ["22"], ["25"], ["28"], ["38"], ["75"], ["147"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_Jz0qb_15.png", "TableImg_Rdq7y_15.png"], "original_data_index": 8987, "original_sql": "SELECT City_Area FROM district WHERE \"City_Population\" <> 328512.0 OR \"City_Area\" <> 10.0 UNION SELECT City_Area FROM district WHERE \"District_ID\" < 2 OR District_name = \"Faisalabad District\" AND \"City_Area\" <> 22.0 OR \"City_Population\" <> 134936.0 AND Headquartered_City = \"Bahawalnagar City\""} {"question": "For each mobile phone number, could you provide the count of payments that meet certain criteria, and where the mobile phone number itself also meets certain criteria?", "answer": {"columns": ["COUNT(T1.amount_payment)", "cell_mobile_phone_number"], "index": [0], "data": [["1", "577-584-4864"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Nzcji_15.png", "TableImg_94vzb_15.png"], "original_data_index": 8986, "original_sql": "SELECT COUNT(T1.amount_payment), T2.cell_mobile_phone_number FROM Customer_Payments as T1 JOIN Customers as T2 ON T1.customer_id = T2.customer_id WHERE payment_method_code <> \"Direct Debit\" AND datetime_payment = \"2018-02-06 13:35:58\" AND customer_status_code = \"Good Customer\" AND phone_number <> \"(662)490-3108\" OR \"amount_payment\" = 1708.18 AND date_became_customer = \"2017-10-05 14:15:46\" AND date_of_birth = \"1998-09-18 04:45:01\" OR \"amount_outstanding\" >= 9332.0 OR email_address = \"kroberts@example.org\" GROUP BY cell_mobile_phone_number HAVING date_of_birth <> \"1996-08-29 00:03:08\" AND datetime_payment <> \"2018-02-06 13:35:58\" AND cell_mobile_phone_number <> \"1-387-258-1016x96963\" OR amount_outstanding = 2255.0"} {"question": "Which Aircraft IDs, that are 3 or less, are listed in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ie2uk_5.png", "TableImg_Ypxq8_4.png"], "original_data_index": 8985, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What Aircraft IDs are either not 2 in the aircraft records, or greater than 3 in the airport aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6xhc2_5.png", "TableImg_Gj57t_4.png"], "original_data_index": 8990, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What are the Driver IDs that are 4 or greater from the driver table, or less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ret0w_12.png", "TableImg_F3z4c_5.png"], "original_data_index": 8991, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are specifically 3 from the aircraft table, and also the aircraft IDs that are 2 or greater from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_W2b6y_5.png", "TableImg_Qf64h_4.png"], "original_data_index": 8992, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What driver IDs, numbered 9 or less, are listed as drivers but not as school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U9xwu_12.png", "TableImg_J1k3y_5.png"], "original_data_index": 8993, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the Driver IDs that are 12 in the driver table, or less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zhg0b_12.png", "TableImg_R4vtd_5.png"], "original_data_index": 8989, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What Aircraft ID is number 2 and is found in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kl0mn_5.png", "TableImg_4z9eu_4.png"], "original_data_index": 8994, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the user IDs from reviews with item ID 1 or greater, or account ID greater than 5, and also user ID 7?", "answer": {"columns": ["u_id"], "index": [0, 1, 2], "data": [["1"], ["2"], ["7"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Pvk4s_7.png", "TableImg_Vwir9_7.png"], "original_data_index": 8996, "original_sql": "SELECT u_id FROM review WHERE \"i_id\" >= 1 OR \"a_id\" > 5 UNION SELECT u_id FROM useracct WHERE \"u_id\" = 7"} {"question": "What are the driver IDs, combining drivers (except ID 7) and school bus drivers (except ID 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ek4q3_12.png", "TableImg_Ds5kx_5.png"], "original_data_index": 8997, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Could you find the School IDs that match either of these criteria: schools that are in IHSAA class AAA but not football class A, or have enrollment up to 605 and are not named Glenn, or have School ID 2, or are not in '75 Starke' County and Bremen; or endowments with a School ID of 3 or more, or an endowment ID greater than 4 and an amount other than 8.53, or a donor named Santiago?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["3"], ["3"], ["3"], ["4"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_Sy8cg_8.png", "TableImg_Mbzwp_11.png"], "original_data_index": 8998, "original_sql": "SELECT School_id FROM School WHERE IHSAA_Class = \"AAA\" AND IHSAA_Football_Class <> \"A\" OR \"Enrollment\" <= 605 AND School_name <> \"Glenn\" OR School_id = \"2\" OR County <> \"75 Starke\" AND Location <> \"Bremen\" UNION ALL SELECT School_id FROM endowment WHERE \"School_id\" >= 3 OR \"endowment_id\" > 4 AND \"amount\" <> 8.53 OR donator_name = \"Santiago\""} {"question": "Are there any driver IDs that are number 10 and also greater than 4 on the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Epm8f_12.png", "TableImg_Lyl0w_5.png"], "original_data_index": 8999, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs, other than 4, are drivers but not school bus drivers with IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Stfl2_12.png", "TableImg_Jm3oa_5.png"], "original_data_index": 9003, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What Aircraft ID is listed as greater than 4 in the aircraft table and also listed as 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ng3c5_5.png", "TableImg_Gvff7_4.png"], "original_data_index": 9001, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the sum of People IDs, count of Final Table Made, Money Rank, average Poker Player ID, average Earnings, and Best Finish for poker players who either have a Money Rank of 68 or less and Earnings greater than 142800, or a Final Table Made count not equal to 10 and a Poker Player ID of 4 or less, or a People ID not equal to 2, but not if they also have a Money Rank less than 141 and a People ID not equal to 7?", "answer": {"columns": ["SUM(People_ID)", "COUNT(Final_Table_Made)", "Money_Rank", "AVG(Poker_Player_ID)", "AVG(Earnings)", "Best_Finish"], "index": [0], "data": [["19", "4", "68", "3.25", "330055.75", "1"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_8m5xn_5.png", "TableImg_Pz831_5.png"], "original_data_index": 9000, "original_sql": "SELECT SUM(People_ID), COUNT(Final_Table_Made), Money_Rank, AVG(Poker_Player_ID), AVG(Earnings), Best_Finish FROM poker_player WHERE \"Money_Rank\" <= 68.0 AND \"Earnings\" > 142800.0 OR \"Final_Table_Made\" != 10.0 AND \"Poker_Player_ID\" <= 4 OR \"People_ID\" <> 2 EXCEPT SELECT SUM(People_ID), COUNT(Final_Table_Made), Money_Rank, AVG(Poker_Player_ID), AVG(Earnings), Best_Finish FROM poker_player WHERE \"Money_Rank\" < 141.0 AND \"People_ID\" <> 7"} {"question": "What is the total of car maker IDs and the horsepower for cars that have more than 4 cylinders, horsepower other than 105, or an acceleration of 18 seconds or more?", "answer": {"columns": ["SUM(T1.Id)", "Horsepower"], "index": [0], "data": [["234", "130"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Byp3j_22.png", "TableImg_7g1lz_406.png"], "original_data_index": 9002, "original_sql": "SELECT SUM(T1.Id), T2.Horsepower FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE AVG(Cylinders) > 4 OR Horsepower <> \"105\" OR AVG(Accelerate) >= 18.0"} {"question": "What aircraft IDs are either exactly 2 in the aircraft table, or greater than 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ie2l5_5.png", "TableImg_R7gd3_4.png"], "original_data_index": 9005, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the driver IDs of drivers who are not driver 2, excluding any driver IDs less than 3 that are also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Re9ds_12.png", "TableImg_Aqqum_5.png"], "original_data_index": 9006, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What driver IDs are drivers, except for ID 3, but not school bus drivers with IDs 3 or more?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Garbt_12.png", "TableImg_D2hud_5.png"], "original_data_index": 9004, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs of drivers who are not driver 10, but are not also drivers of school buses, excluding school bus driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqkov_12.png", "TableImg_Hayul_5.png"], "original_data_index": 9007, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What aircraft IDs are either less than 5 from the aircraft list or greater than 5 from the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5qw21_5.png", "TableImg_Omoyg_4.png"], "original_data_index": 9009, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What aircraft IDs are in both the aircraft list (excluding ID 4) and the airport aircraft list (only IDs less than 2)?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jod4f_5.png", "TableImg_Jf2t5_4.png"], "original_data_index": 9011, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the aircraft IDs that are ID 4 in the aircraft table, or not ID 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ec893_5.png", "TableImg_Vfuo9_4.png"], "original_data_index": 9010, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me the counts of feature IDs, the average property feature descriptions, and the property IDs for properties that satisfy either of these conditions: (1) the feature ID is less than 3, the property feature description is not 'corrupti', and the property ID is less than 13, or (2) the property ID is not 15, or the property feature description is not 'quo', or the feature ID is less than 3?", "answer": {"columns": ["COUNT(feature_id)", "AVG(property_feature_description)", "property_id"], "index": [0, 1], "data": [["4", "0", "6"], ["15", "0", "15"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Ieh35_15.png", "TableImg_Drubq_15.png"], "original_data_index": 9008, "original_sql": "SELECT COUNT(feature_id), AVG(property_feature_description), property_id FROM Other_Property_Features WHERE \"feature_id\" < 3 AND property_feature_description != \"corrupti\" AND \"property_id\" < 13 UNION SELECT COUNT(feature_id), AVG(property_feature_description), property_id FROM Other_Property_Features WHERE \"property_id\" <> 15 OR property_feature_description != \"quo\" OR \"feature_id\" < 3"} {"question": "What driver IDs between 3 and 11 are in both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cvlcm_12.png", "TableImg_0y4tt_5.png"], "original_data_index": 9015, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What driver IDs are less than 12 in the driver list, but not among the driver IDs that are 7 or less in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mm28f_12.png", "TableImg_Cl1fk_5.png"], "original_data_index": 9014, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What driver IDs are either 6, or at least 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ofhtk_12.png", "TableImg_Ulri2_5.png"], "original_data_index": 9012, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What driver IDs are less than 12, except for driver ID 10 if it appears in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D6zih_12.png", "TableImg_E3hx0_5.png"], "original_data_index": 9013, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What Driver IDs are at least 8 in the driver table, or at least 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4d1fk_12.png", "TableImg_H2lzg_5.png"], "original_data_index": 9016, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are not 3, or are greater than 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_847k5_12.png", "TableImg_Pz2d0_5.png"], "original_data_index": 9018, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Could you list all document IDs for documents that were mailed to address ID 2 or higher, or mailed on a date other than January 14, 1982 and have a document ID greater than 24? And also include document IDs for draft copies with draft number 1.", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["2"], ["4"], ["4"], ["7"], ["10"], ["12"], ["12"], ["13"], ["14"], ["20"], ["20"], ["23"], ["2"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_6i8m7_14.png", "TableImg_C3thv_8.png"], "original_data_index": 9019, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" >= 2 OR mailing_date != \"1982-01-14 05:50:54\" AND \"document_id\" > 24 UNION ALL SELECT document_id FROM Draft_Copies WHERE \"draft_number\" = 1"} {"question": "What are the color pages per minute for the Xerox Travel Scanner 100 with a USB 2.0 interface and DPI greater than 600, or for products that are not A4 size, or not 280 x 95 x 40 in dimensions, or do not have 4 color pages per minute?", "answer": {"columns": ["pages_per_minute_color"], "index": [0, 1, 2, 3, 4, 5], "data": [["30"], ["28"], ["4"], ["3"], ["10"], ["36"]]}, "table_names": "['product' 'product']", "table_image_ids": ["TableImg_Xoi9r_6.png", "TableImg_S1oym_6.png"], "original_data_index": 9021, "original_sql": "SELECT pages_per_minute_color FROM product WHERE product = \"Xerox Travel Scanner 100\" AND interface = \"USB 2.0\" AND \"dpi\" > 600.0 UNION ALL SELECT pages_per_minute_color FROM product WHERE max_page_size <> \"A4\" OR dimensions != \"280 x 95 x 40\" OR \"pages_per_minute_color\" != 4.0"} {"question": "What company IDs belong to companies that are either not very asset-rich or have low profits but high sales, excluding those that have employment records with year 1, company ID less than 15, and people ID 7?", "answer": {"columns": ["Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["3"], ["4"], ["8"], ["9"], ["10"], ["12"], ["16"], ["18"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_K6uno_19.png", "TableImg_Gbgbw_5.png"], "original_data_index": 9020, "original_sql": "SELECT Company_ID FROM company WHERE \"Assets_in_Billion\" < 1563.9 OR \"Profits_in_Billion\" < 14.2 AND \"Sales_in_Billion\" >= 221.9 EXCEPT SELECT Company_ID FROM employment WHERE \"Year_working\" != 1 OR \"Company_ID\" >= 15 OR \"People_ID\" <> 7"} {"question": "What company information, including market value, profits, industry, name, assets, and ID, is available for companies that have profits not equal to 15.9 billion, and also either have a market value greater than 201.9 billion or profits not equal to 31.7 billion?", "answer": {"columns": ["Market_Value_in_Billion", "Profits_in_Billion", "Industry", "Name", "Assets_in_Billion", "Company_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["79.5", "21.5", "Automotive", "Volkswagen Group", "328.7", "17"], ["107.5", "11.1", "Banking", "Citigroup", "1873.9", "14"], ["147.4", "25.7", "Oil and gas", "BP", "292.5", "11"], ["154.8", "14.4", "Banking", "Agricultural Bank of China", "1563.9", "19"], ["164.3", "16.2", "Banking", "HSBC", "2550.0", "6"], ["170.1", "19.0", "Banking", "JPMorgan Chase", "2265.8", "2"], ["180.0", "20.1", "Oil and gas", "Petrobras", "319.4", "10"], ["201.9", "20.5", "Banking", "China Construction Bank", "1637.8", "13"], ["202.2", "10.3", "Conglomerate", "Berkshire Hathaway", "392.6", "8"], ["208.4", "15.7", "Retailing", "Walmart", "193.4", "16"], ["213.7", "14.2", "Conglomerate", "General Electric", "717.2", "3"], ["218.0", "26.9", "Oil and gas", "Chevron", "209.5", "12"], ["227.6", "30.9", "Oil and gas", "Royal Dutch Shell", "340.5", "4"], ["237.4", "25.1", "Banking", "Industrial and Commercial Bank of China", "2039.1", "5"], ["294.7", "20.6", "Oil and gas", "PetroChina", "304.7", "7"], ["407.4", "41.1", "Oil and gas", "ExxonMobil", "331.1", "1"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_9tirf_19.png", "TableImg_De29z_19.png"], "original_data_index": 9022, "original_sql": "SELECT Market_Value_in_Billion, Profits_in_Billion, Industry, Name, Assets_in_Billion, Company_ID FROM company WHERE \"Profits_in_Billion\" <> 15.9 INTERSECT SELECT Market_Value_in_Billion, Profits_in_Billion, Industry, Name, Assets_in_Billion, Company_ID FROM company WHERE \"Market_Value_in_Billion\" > 201.9 OR \"Profits_in_Billion\" != 31.7"} {"question": "What are all the feature type names, including duplicates, that are either not 'Amenity, eg Pool.' or have a feature type code that is not 'Amenity'?", "answer": {"columns": ["feature_type_name"], "index": [0, 1], "data": [["Securiyt, eg Burglar Alarm."], ["Securiyt, eg Burglar Alarm."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_P3jr7_2.png", "TableImg_8uoir_2.png"], "original_data_index": 9017, "original_sql": "SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code != \"Amenity\" OR feature_type_name <> \"Amenity, eg Pool.\" UNION ALL SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\""} {"question": "What are the home cities of drivers who are named 'Angel Acre' or are not 52 years old, except for the home cities of drivers who are not named 'Timothy Ackert' and are younger than 52, or are not driver ID 6 and live in Hartford?", "answer": {"columns": ["Home_city"], "index": [0], "data": [["Coventry"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_73wam_12.png", "TableImg_5f8w6_12.png"], "original_data_index": 9026, "original_sql": "SELECT Home_city FROM driver WHERE Name = \"Angel Acre\" OR \"Age\" <> 52 EXCEPT SELECT Home_city FROM driver WHERE Name <> \"Timothy Ackert\" AND \"Age\" < 52 OR \"Driver_ID\" != 6 AND Home_city = \"Hartford\""} {"question": "What driver IDs are driver ID 10 but not also school bus driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q83bf_12.png", "TableImg_828h7_5.png"], "original_data_index": 9023, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "List the Aircraft IDs that are in both the aircraft and airport_aircraft tables, and are greater than 3 in the aircraft table and not equal to 1 in the airport_aircraft table.", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tr9tx_5.png", "TableImg_Rik7m_4.png"], "original_data_index": 9025, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What is the total enrollment and budget percentage budgeted for schools that are not 'Lions' or are 'New Prairie 1' schools with a budget percentage invested of 2.0% or less?", "answer": {"columns": ["SUM(T1.Enrollment)", "total_budget_percent_budgeted"], "index": [0], "data": [["3307", "2"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_8m99p_8.png", "TableImg_Sqfse_8.png"], "original_data_index": 9029, "original_sql": "SELECT SUM(T1.Enrollment), T2.total_budget_percent_budgeted FROM School as T1 JOIN budget as T2 ON T1.School_id = T2.School_id WHERE Mascot <> \"Lions\" OR School_name = \"New Prairie 1\" AND \"total_budget_percent_invested\" <= 2.0"} {"question": "Which driver IDs are 4 or less, and are not among the school bus driver IDs that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ak5m0_12.png", "TableImg_Zijzl_5.png"], "original_data_index": 9027, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the IDs that are for flights that are either not piloted by Thompson, have a velocity over 240, and are at airport 2, or have a vehicle flight number other than 'M2-F1 #21', and also for operate companies with IDs greater than 6?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_4txwm_13.png", "TableImg_Knlo6_14.png"], "original_data_index": 9028, "original_sql": "SELECT id FROM flight WHERE Pilot <> \"Thompson\" AND \"Velocity\" > 240.0 AND \"airport_id\" = 2 OR Vehicle_Flight_number <> \"M2-F1 #21\" INTERSECT SELECT id FROM operate_company WHERE \"id\" > 6"} {"question": "What aircraft IDs are less than 2 in the aircraft table but not greater than 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B7egf_5.png", "TableImg_3g86y_4.png"], "original_data_index": 9032, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "What driver IDs are both 7 and also less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L26gv_12.png", "TableImg_Dtoz9_5.png"], "original_data_index": 9030, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What driver IDs are greater than 3 but are not driver IDs less than or equal to 9 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_78zv4_12.png", "TableImg_F6mxd_5.png"], "original_data_index": 9033, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Could you provide the shop feature 3, other property details, property address, shop feature 1, and other feature 1 for properties that satisfy either of two complex sets of conditions?", "answer": {"columns": ["shp_feature_3", "other_property_details", "property_address", "shp_feature_1", "oth_feature_1"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27], "data": [["", "", "098 Tremaine Highway Suite 569\nSouth Wilford, NJ 46587-3537", "", ""], ["", "", "062 Micaela Court Apt. 707\nMargretville, WV 51628-3617", "", ""], ["", "", "49578 Ayden Mountains\nNew Russellhaven, UT 46626", "", ""], ["", "", "2765 Schulist Stream\nLindmouth, UT 03391-3817", "", ""], ["", "", "6837 Darien Views Apt. 475\nSouth Maraview, KS 77770", "", ""], ["", "", "092 Paucek Highway Apt. 772\nEast Erika, IA 61358", "", ""], ["", "", "24365 Ulices Run\nHomenicktown, MD 88485-6198", "", ""], ["", "", "107 Roob Courts\nErdmanburgh, IA 42926-0873", "", ""], ["", "", "084 Lakin Vista Apt. 394\nFishertown, MA 16876", "", ""], ["", "", "2088 Bashirian Fork Suite 337\nFaustinoport, MT 16771-9320", "", ""], ["", "", "743 Ephraim Greens\nAnniemouth, HI 47084-3853", "", ""], ["", "", "60845 Else Highway Apt. 826\nSouth Dougfort, CO 43200-4258", "", ""], ["", "", "1474 Dibbert Fields Suite 055\nSouth Renee, IN 58286-3097", "", ""], ["", "", "986 Hagenes Drives\nDraketon, UT 83411-3393", "", ""], ["", "", "4745 Emerson Stravenue Suite 829\nSouth Garret, IN 16772-5682", "", ""], ["", "", "062 Micaela Court Apt. 707\nMargretville, WV 51628-3617", "", ""], ["", "", "49578 Ayden Mountains\nNew Russellhaven, UT 46626", "", ""], ["", "", "2765 Schulist Stream\nLindmouth, UT 03391-3817", "", ""], ["", "", "6837 Darien Views Apt. 475\nSouth Maraview, KS 77770", "", ""], ["", "", "092 Paucek Highway Apt. 772\nEast Erika, IA 61358", "", ""], ["", "", "24365 Ulices Run\nHomenicktown, MD 88485-6198", "", ""], ["", "", "107 Roob Courts\nErdmanburgh, IA 42926-0873", "", ""], ["", "", "084 Lakin Vista Apt. 394\nFishertown, MA 16876", "", ""], ["", "", "2088 Bashirian Fork Suite 337\nFaustinoport, MT 16771-9320", "", ""], ["", "", "743 Ephraim Greens\nAnniemouth, HI 47084-3853", "", ""], ["", "", "60845 Else Highway Apt. 826\nSouth Dougfort, CO 43200-4258", "", ""], ["", "", "1474 Dibbert Fields Suite 055\nSouth Renee, IN 58286-3097", "", ""], ["", "", "986 Hagenes Drives\nDraketon, UT 83411-3393", "", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Sit8o_15.png", "TableImg_Tz461_15.png"], "original_data_index": 9024, "original_sql": "SELECT shp_feature_3, other_property_details, property_address, shp_feature_1, oth_feature_1 FROM Properties WHERE apt_feature_1 != \"qui\" AND shp_feature_1 <> \"None\" OR apt_feature_3 != \"None\" OR shp_feature_3 <> \"None\" OR oth_feature_2 != \"None\" OR property_name != \"vogue\" AND hse_feature_3 != \"None\" OR fld_feature_2 <> \"None\" AND \"buyer_offered_price\" != 0.0 AND \"agreed_selling_price\" != 170766.472 AND fld_feature_3 = \"None\" OR \"room_count\" < 7 AND hse_feature_2 != \"None\" OR date_on_market <> \"1991-06-21 23:52:10\" OR oth_feature_1 = \"None\" AND property_address = \"084 Lakin Vista Apt. 394 Fishertown, MA 16876\" OR fld_feature_1 != \"None\" OR shp_feature_2 <> \"None\" AND date_sold = \"1995-01-31 11:18:42\" OR \"property_id\" < 14 AND property_type_code <> \"House\" OR apt_feature_2 <> \"sit\" AND other_property_details <> \"None\" AND \"vendor_requested_price\" >= 305.0 OR oth_feature_3 != \"None\" OR hse_feature_1 <> \"None\" UNION ALL SELECT shp_feature_3, other_property_details, property_address, shp_feature_1, oth_feature_1 FROM Properties WHERE oth_feature_3 != \"None\" OR \"vendor_requested_price\" <> 305.0 AND apt_feature_3 != \"None\" AND \"property_id\" = 11 OR property_type_code = \"Shop\" OR apt_feature_1 != \"nesciunt\" AND other_property_details != \"None\" AND date_sold = \"2003-02-27 18:17:11\" AND shp_feature_3 != \"None\" OR hse_feature_2 <> \"None\" AND shp_feature_2 = \"None\" OR \"buyer_offered_price\" > 8.7122 AND apt_feature_2 <> \"suscipit\" AND hse_feature_3 <> \"None\" OR \"agreed_selling_price\" < 0.0 OR hse_feature_1 <> \"None\" OR property_address != \"098 Tremaine Highway Suite 569 South Wilford, NJ 46587-3537\" OR oth_feature_2 != \"None\" OR \"room_count\" > 9 AND date_on_market != \"1994-02-14 02:27:13\" OR oth_feature_1 <> \"None\" OR fld_feature_2 <> \"None\" AND fld_feature_1 != \"None\" OR fld_feature_3 != \"None\" AND property_name = \"ten tower\""} {"question": "What decorations are common to rooms that are either not for two beds, or are budget-friendly for singles, or are not the 'Harbinger but bequest' room with traditional decor and ID 'HBB', AND are also not queen bed type and not named 'Convoke and sanguine'?", "answer": {"columns": ["decor"], "index": [0, 1], "data": [["modern"], ["traditional"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_Cmsbh_10.png", "TableImg_Gvfe1_10.png"], "original_data_index": 9031, "original_sql": "SELECT decor FROM Rooms WHERE \"beds\" != 2 OR \"basePrice\" != 125 AND \"maxOccupancy\" < 2 OR roomName <> \"Harbinger but bequest\" AND decor <> \"traditional\" AND RoomId <> \"HBB\" INTERSECT SELECT decor FROM Rooms WHERE bedType != \"Queen\" AND roomName != \"Convoke and sanguine\""} {"question": "What are the document IDs for circulation history entries with employee IDs less than 1 and draft numbers less than 17, or for documents where other details are not 'h' and receipt numbers are not '55'?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_N7dav_4.png", "TableImg_Pp3h9_15.png"], "original_data_index": 9034, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"employee_id\" < 1 AND \"draft_number\" < 17 UNION SELECT document_id FROM Documents WHERE other_details != \"h\" AND receipt_number != \"55\""} {"question": "What aircraft IDs are in the aircraft table, excluding ID 2, and are not among the aircraft IDs greater than 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5efmx_5.png", "TableImg_Hkgus_4.png"], "original_data_index": 9035, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the driver IDs that are at most 6 in the driver table and at most 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_707vj_12.png", "TableImg_Sblue_5.png"], "original_data_index": 9037, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What driver IDs are 8 or greater for drivers, but not 3 or less for school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rhuk1_12.png", "TableImg_Riq4j_5.png"], "original_data_index": 9036, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the driver IDs that are drivers, except for driver 9, but not school bus drivers, except for driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_49g9i_12.png", "TableImg_Yydpg_5.png"], "original_data_index": 9038, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What driver IDs are less than 7, or driver ID 3 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Txarf_12.png", "TableImg_R5sa1_5.png"], "original_data_index": 9040, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are greater than 10 but are not also school bus driver IDs of 3 or more?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0wpny_12.png", "TableImg_Ipxir_5.png"], "original_data_index": 9042, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you list the customer ID, payment date and time, earliest payment method code, and payment amount for payments that are either for an amount less than 9886.62 and not made by 'Direct Debit', or where the payment date and time is not '2018-02-24 10:07:05', or the customer ID is not 14, or the payment method is 'Direct Debit' and the payment amount is not 9414.74?", "answer": {"columns": ["customer_id", "datetime_payment", "MIN(payment_method_code)", "amount_payment"], "index": [0, 1], "data": [["3", "2018-02-06 13:35:58", "Credit Card", "787.12"], ["3", "2018-02-06 13:35:58", "Credit Card", "787.12"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_0k6s8_15.png", "TableImg_Bcsrw_15.png"], "original_data_index": 9039, "original_sql": "SELECT customer_id, datetime_payment, MIN(payment_method_code), amount_payment FROM Customer_Payments WHERE \"amount_payment\" < 9886.62 AND payment_method_code != \"Direct Debit\" UNION ALL SELECT customer_id, datetime_payment, MIN(payment_method_code), amount_payment FROM Customer_Payments WHERE datetime_payment != \"2018-02-24 10:07:05\" OR \"customer_id\" <> 14 OR \"amount_payment\" <> 9414.74 AND payment_method_code = \"Direct Debit\""} {"question": "What document ID is number 2 and is recorded in both Circulation History (with either a draft number greater than 1 or a copy number less than 5) and Documents Mailed (with a mailed address ID greater than 4 and a mailing date not on May 24, 1993)?", "answer": {"columns": ["document_id"], "index": [0], "data": [["2"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Ipus8_4.png", "TableImg_Ehkg7_14.png"], "original_data_index": 9041, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" > 2 OR \"draft_number\" > 1 OR \"copy_number\" < 5 INTERSECT SELECT document_id FROM Documents_Mailed WHERE \"document_id\" = 2 AND \"mailed_to_address_id\" > 4 AND mailing_date != \"1993-05-24 22:13:48\""} {"question": "What are the Driver IDs that are greater than 11, or equal to 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_546tr_12.png", "TableImg_Llzts_5.png"], "original_data_index": 9043, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What document status descriptions are not 'done' and not 'mailed late'?", "answer": {"columns": ["document_status_description"], "index": [0], "data": [["currently working on"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Upc2u_3.png", "TableImg_J0glv_3.png"], "original_data_index": 9044, "original_sql": "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code <> \"done\" EXCEPT SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description = \"mailed late\""} {"question": "What driver IDs are on both the driver list, except for driver 8, and the school bus driver list, except for driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rm5om_12.png", "TableImg_X66an_5.png"], "original_data_index": 9046, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs that are less than 10, and not also driver IDs of 3 or more in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D9k56_12.png", "TableImg_1c0mw_5.png"], "original_data_index": 9045, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What driver IDs are in both the list of drivers (excluding driver 6) and the list of school bus drivers (up to driver 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fuepw_12.png", "TableImg_C8mgc_5.png"], "original_data_index": 9048, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What Driver IDs are either 5 or greater from the driver list, or not 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Elkrh_12.png", "TableImg_C9jhl_5.png"], "original_data_index": 9047, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are greater than 5, excluding those that are also school bus driver IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D37ft_12.png", "TableImg_3ncex_5.png"], "original_data_index": 9049, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are not 1 from the aircraft table, together with aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gqnav_5.png", "TableImg_3b1sj_4.png"], "original_data_index": 9053, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What aircraft IDs are both greater than 3 in the aircraft table and equal to 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P827e_5.png", "TableImg_2z1z9_4.png"], "original_data_index": 9050, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Which driver IDs, other than 1, are drivers but are not school bus drivers with IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ytmto_12.png", "TableImg_9sgcn_5.png"], "original_data_index": 9052, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are greater than 10 in the driver table but are not also driver IDs of 3 or more in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5dl1a_12.png", "TableImg_I8w9e_5.png"], "original_data_index": 9051, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the group equity shareholding, incorporation country, and ID for cargo airlines that are not joint ventures and not from Hong Kong, as well as for companies from Taiwan or those involved in cargo business?", "answer": {"columns": ["Group_Equity_Shareholding", "Incorporated_in", "id"], "index": [0, 1], "data": [["45", "Taiwan", "12"], ["100", "Hong Kong", "7"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Jorah_14.png", "TableImg_496fx_14.png"], "original_data_index": 9054, "original_sql": "SELECT Group_Equity_Shareholding, Incorporated_in, id FROM operate_company WHERE Type <> \"Joint Venture\" AND Principal_activities = \"Cargo airline\" AND Incorporated_in != \"Hong Kong\" UNION SELECT Group_Equity_Shareholding, Incorporated_in, id FROM operate_company WHERE Incorporated_in = \"Taiwan\" OR Principal_activities = \"Cargo\""} {"question": "What aircraft IDs are 4 or more in the aircraft table, or exactly 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4r081_5.png", "TableImg_6lnmw_4.png"], "original_data_index": 9055, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What driver IDs, other than 1, are drivers but not school bus drivers with IDs 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Igj8g_12.png", "TableImg_8zq3k_5.png"], "original_data_index": 9058, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Is driver ID 11 in the driver table but not among driver IDs 7 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M8h2t_12.png", "TableImg_Qy54c_5.png"], "original_data_index": 9057, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which Book IDs are for books that are not 'Bloody Mary : Lady Liberty' and have an ID of 2 or less, but are not also associated with publications from Springer Nature in August 2008 costing 2 million or more?", "answer": {"columns": ["Book_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_M75ze_10.png", "TableImg_Ler3v_7.png"], "original_data_index": 9059, "original_sql": "SELECT Book_ID FROM book WHERE Title != \"Bloody Mary : Lady Liberty\" AND \"Book_ID\" <= 2 EXCEPT SELECT Book_ID FROM publication WHERE Publication_Date = \"August 2008\" AND Publisher = \"Springer Nature\" AND \"Price\" >= 2000000.0"} {"question": "Which driver IDs are in the driver list, excluding 7, and are not among the school bus driver IDs that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q9vdj_12.png", "TableImg_B8nxo_5.png"], "original_data_index": 9060, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Are there any drivers with ID 5 who are drivers but not school bus drivers, ignoring school bus driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_30qx5_12.png", "TableImg_Kdb7z_5.png"], "original_data_index": 9056, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs less than 7 are drivers but not school bus driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Picnu_12.png", "TableImg_X2s9i_5.png"], "original_data_index": 9063, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What aircraft IDs are 2 or greater in the aircraft table, or specifically 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_49vnf_5.png", "TableImg_Rje7v_4.png"], "original_data_index": 9061, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What School IDs do we have for schools that are either not in '75 Starke' county, or are in New Carlisle with football class 'A' but not 'AAA' and a mascot other than 'Cavaliers', or have a School ID other than '4', or have less than 852 students enrolled, or are in the budget table with a budget invested percentage of '127.6'?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_M48xf_8.png", "TableImg_R8ju5_8.png"], "original_data_index": 9062, "original_sql": "SELECT School_id FROM School WHERE County != \"75 Starke\" OR Mascot <> \"Cavaliers\" AND Location = \"New Carlisle\" AND IHSAA_Football_Class = \"A\" AND IHSAA_Class != \"AAA\" OR School_id != \"4\" OR \"Enrollment\" < 852 UNION SELECT School_id FROM budget WHERE Budget_invested_percent = \"127.6\""} {"question": "What are the aircraft IDs that are not 1 from the aircraft table, and also the aircraft IDs that are less than 1 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wmvpv_5.png", "TableImg_931dz_4.png"], "original_data_index": 9065, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the employee IDs, names, and average salaries of employees who have a salary greater than 99890, excluding Jennifer Thomas?", "answer": {"columns": ["eid", "name", "AVG(salary)"], "index": [0], "data": [["242518965", "James Smith", "183155.7333333333"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Ay8jo_31.png", "TableImg_Vefhl_31.png"], "original_data_index": 9066, "original_sql": "SELECT eid, name, AVG(salary) FROM employee WHERE \"salary\" > 99890 EXCEPT SELECT eid, name, AVG(salary) FROM employee WHERE name = \"Jennifer Thomas\""} {"question": "Are there any drivers with ID 8 who are not also school bus drivers, ignoring school bus driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_600fy_12.png", "TableImg_Jkpht_5.png"], "original_data_index": 9064, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What Driver ID is 6 in the driver table but not among Driver IDs 1 to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T6lur_12.png", "TableImg_U3uow_5.png"], "original_data_index": 9067, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What driver IDs are on both the driver and school bus lists, are 5 or less, and are not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ap6rv_12.png", "TableImg_8auhh_5.png"], "original_data_index": 9069, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What ranks are there based on certain conditions in match results or player information?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["1st"], ["2nd"], ["3rd"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Du58l_6.png", "TableImg_Rd08y_14.png"], "original_data_index": 9068, "original_sql": "SELECT Rank FROM match_result WHERE \"Points\" <= 89 AND \"Bronze\" != 8 OR \"Big_Silver\" <> 11 OR \"Small_Silver\" = 10 OR \"Club_ID\" <= 2 AND \"Rank\" <> 4 UNION SELECT Rank FROM player WHERE Rank = \"3rd\" OR Gender <> \"M\" AND Sponsor_name != \"Winnipeg South\" AND Residence != \"Oakbank\" OR Occupation <> \"Student\" AND \"Player_ID\" >= 13 AND Player_name = \"Niki Ashton\" AND \"Votes\" <> 14097"} {"question": "What are the driver IDs that are not 9, and also the driver IDs greater than 4 from school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G44e8_12.png", "TableImg_G3uts_5.png"], "original_data_index": 9070, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs, removing driver ID 1 from the driver list and driver ID 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qim91_12.png", "TableImg_Vqdzb_5.png"], "original_data_index": 9071, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the Driver IDs that are 9 or less from the driver table, or are not 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vzrkl_12.png", "TableImg_Esacd_5.png"], "original_data_index": 9074, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Find the Aircraft ID that is 2 from the aircraft table, and also the Aircraft IDs that are not 5 from the airport_aircraft table.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Z51m5_5.png", "TableImg_Sx0n9_4.png"], "original_data_index": 9072, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What aircraft IDs, other than 4, are in the aircraft table but not among the aircraft IDs less than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Amo6x_5.png", "TableImg_J2tnw_4.png"], "original_data_index": 9073, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What Aircraft IDs are in both the aircraft and airport aircraft lists, are less than 5, and are not 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fz5bw_5.png", "TableImg_Wzr2h_4.png"], "original_data_index": 9075, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What driver IDs are found in both the driver and school bus records and are 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bex6p_12.png", "TableImg_Jf4d7_5.png"], "original_data_index": 9079, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are 2 or higher in the driver table, but are not among the driver IDs that are 9 or higher in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gmm48_12.png", "TableImg_F4ttr_5.png"], "original_data_index": 9078, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What driver IDs are greater than 5 from the drivers, excluding those driver IDs that are 9 or less from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Avp9f_12.png", "TableImg_6jkkd_5.png"], "original_data_index": 9076, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What is the sum of shipping agent descriptions for agents described as 'q' and not coded 'SH', plus the sum of shipping agent descriptions for agents not coded 'UP'?", "answer": {"columns": ["SUM(shipping_agent_description)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_3grhv_5.png", "TableImg_1k8uu_5.png"], "original_data_index": 9077, "original_sql": "SELECT SUM(shipping_agent_description) FROM Ref_Shipping_Agents WHERE shipping_agent_description = \"q\" AND shipping_agent_code <> \"SH\" UNION ALL SELECT SUM(shipping_agent_description) FROM Ref_Shipping_Agents WHERE shipping_agent_code <> \"UP\""} {"question": "What are the Driver IDs that are greater than 9 for drivers or greater than 4 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7g0j9_12.png", "TableImg_7nc1q_5.png"], "original_data_index": 9080, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Are there any drivers with ID 6 who are not also school bus drivers with IDs over 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Devhh_12.png", "TableImg_9gvlr_5.png"], "original_data_index": 9081, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs, excluding 2, and also including 9 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zrndv_12.png", "TableImg_Gh8k9_5.png"], "original_data_index": 9083, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "For which countries, based on airport information, is it true that: (a) when considering airports that are either not in Bergen, or not both 'LEBL' and 'National Airport', and grouping by country, the count of ICAO codes is 1 or the minimum airport ID is at most 6, AND (b) when considering airports that are not in Brussels, and grouping by country, the count of ICAO codes is at least 1?", "answer": {"columns": ["COUNT(City)", "COUNT(ICAO)", "MIN(id)", "Country"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "1", "1", "Iceland"], ["1", "1", "2", "Netherlands"], ["1", "1", "5", "Spain"], ["1", "1", "6", "Norway"], ["1", "1", "7", "Denmark"], ["3", "3", "3", "United States"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Tod74_9.png", "TableImg_44wss_9.png"], "original_data_index": 9085, "original_sql": "SELECT COUNT(City), COUNT(ICAO), MIN(id), Country FROM airport WHERE City != \"Bergen\" OR ICAO != \"LEBL\" AND name != \"National Airport\" GROUP BY Country HAVING COUNT(ICAO) = 1 OR MIN(id) <= 6 INTERSECT SELECT COUNT(City), COUNT(ICAO), MIN(id), Country FROM airport WHERE City <> \"Brussels\" GROUP BY Country HAVING COUNT(ICAO) >= 1"} {"question": "What are the driver IDs, other than 1, that are not also school bus driver IDs of 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_08jbl_12.png", "TableImg_Sk70m_5.png"], "original_data_index": 9082, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the details of rooms that are either under $175 and not modern, or not called \"Thrift and accolade\", or are modern, under $175, and don't have a king bed?", "answer": {"columns": ["maxOccupancy", "beds", "roomName", "bedType", "basePrice", "RoomId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["2", "1", "Recluse and defiance", "King", "150", "RND"], ["2", "1", "Interim but salutary", "King", "150", "IBS"], ["4", "2", "Abscond or bolster", "Queen", "175", "AOB"], ["4", "2", "Mendicant with cryptic", "Double", "125", "MWC"], ["2", "1", "Harbinger but bequest", "Queen", "100", "HBB"], ["4", "2", "Immutable before decorum", "Queen", "150", "IBD"], ["4", "2", "Convoke and sanguine", "King", "175", "CAS"], ["4", "2", "Riddle to exculpate", "Queen", "175", "RTE"], ["4", "2", "Frugal not apropos", "King", "250", "FNA"], ["4", "2", "Mendicant with cryptic", "Double", "125", "MWC"], ["2", "1", "Harbinger but bequest", "Queen", "100", "HBB"], ["2", "1", "Thrift and accolade", "Double", "75", "TAA"]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_Plhwa_10.png", "TableImg_Vkd04_10.png"], "original_data_index": 9084, "original_sql": "SELECT maxOccupancy, beds, roomName, bedType, basePrice, RoomId FROM Rooms WHERE \"basePrice\" < 175 AND decor <> \"modern\" OR roomName <> \"Thrift and accolade\" UNION ALL SELECT maxOccupancy, beds, roomName, bedType, basePrice, RoomId FROM Rooms WHERE bedType != \"King\" AND decor = \"modern\" AND \"basePrice\" < 175"} {"question": "What are the names of all aircraft, excluding 'British Aerospace Jetstream 41', but also including any aircraft that are not 'Schwitzer 2-33' or have an aid of 6 or less or a distance other than 3383?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["Airbus A319"], ["Airbus A320"], ["Airbus A340-300"], ["Boeing 727"], ["Boeing 737-800"], ["Boeing 747-400"], ["Boeing 757-300"], ["Boeing 767-400ER"], ["Boeing 777-300"], ["British Aerospace Jetstream 41"], ["Embraer ERJ-145"], ["Lockheed L1011"], ["Piper Archer III"], ["SAAB 340"], ["Schwitzer 2-33"], ["Tupolev 154"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_W956d_16.png", "TableImg_9omkj_16.png"], "original_data_index": 9088, "original_sql": "SELECT name FROM aircraft WHERE name != \"British Aerospace Jetstream 41\" UNION SELECT name FROM aircraft WHERE name != \"Schwitzer 2-33\" OR \"aid\" <= 6 OR \"distance\" != 3383"} {"question": "What aircraft IDs are present in both the aircraft and airport aircraft lists, excluding ID 3 and being less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Om187_5.png", "TableImg_5hrnt_4.png"], "original_data_index": 9089, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs, other than 9, are in the driver list and are also driver ID 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L6apt_12.png", "TableImg_Gvpa2_5.png"], "original_data_index": 9087, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What is the sum of ranks from match results that have either 66 or more points, or a rank greater than 3, at most 20 gold medals, at least 9 small silver medals, a club ID of 5 or more, and at least 10 bronze medals, minus the sum of ranks for players who are ranked '3rd'?", "answer": {"columns": ["SUM(Rank)"], "index": [0], "data": [["21"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_I88m7_6.png", "TableImg_J28rw_14.png"], "original_data_index": 9090, "original_sql": "SELECT SUM(Rank) FROM match_result WHERE \"Points\" >= 66 OR \"Rank\" > 3 AND \"Gold\" <= 20 AND \"Small_Silver\" >= 9 AND \"Club_ID\" >= 5 AND \"Bronze\" >= 10 EXCEPT SELECT SUM(Rank) FROM player WHERE Rank = \"3rd\""} {"question": "Which Aircraft IDs are 3 or less and are also listed in the airport aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_730i0_5.png", "TableImg_Q141y_4.png"], "original_data_index": 9091, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the Driver IDs, excluding ID 8 from the drivers, and including IDs greater than 10 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ckao_12.png", "TableImg_Zn9xh_5.png"], "original_data_index": 9092, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the aircraft IDs that are less than 2 or greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P2v2c_5.png", "TableImg_Nzy71_4.png"], "original_data_index": 9093, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What are the unique Aircraft IDs that are not 5 in the aircraft table or greater than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wiy14_5.png", "TableImg_7wphv_4.png"], "original_data_index": 9095, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What driver IDs are both 2 or greater and also less than 9, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pyb2h_12.png", "TableImg_94zoh_5.png"], "original_data_index": 9094, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the document IDs for drafts with ID 1, draft number 8 or less, and draft details not 'w', that are not also in the mailed documents that were either not sent to address 8, or mailed on March 20, 2007 with ID less than 12?", "answer": {"columns": ["document_id"], "index": [0], "data": [["1"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_H7vln_15.png", "TableImg_41vnm_14.png"], "original_data_index": 9097, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" = 1 AND \"draft_number\" <= 8 AND draft_details <> \"w\" EXCEPT SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <> 8 OR mailing_date = \"2007-03-20 05:22:01\" AND \"document_id\" < 12"} {"question": "What driver IDs less than 12 are drivers but not school bus drivers, excluding driver ID 3 from the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nybkm_12.png", "TableImg_Lhh8l_5.png"], "original_data_index": 9096, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What aircraft IDs are either 4 or greater from the aircraft table, or greater than 3 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aldxr_5.png", "TableImg_Q1byx_4.png"], "original_data_index": 9100, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Which driver IDs, less than 12, are drivers but not school bus drivers when considering only school bus drivers with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L7svx_12.png", "TableImg_Tpxnj_5.png"], "original_data_index": 9099, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What Aircraft IDs are in both the aircraft table (for IDs 5 or greater) and the airport_aircraft table (excluding ID 3)?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gai6q_5.png", "TableImg_N9fug_4.png"], "original_data_index": 9098, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What Aircraft IDs are there? Include Aircraft IDs from the aircraft table that are 1 or greater, and Aircraft IDs from the airport aircraft table that are not 5.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J0wmh_5.png", "TableImg_X543n_4.png"], "original_data_index": 9101, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the document IDs from circulation history entries that have either a draft number greater than 2, or an employee ID of 2 or less and a copy number greater than 4? Also, what are the document IDs from document drafts that have either a draft number less than 9, or are not document ID 1? Please list all of these document IDs.", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["20"], ["1"], ["10"], ["1"], ["1"], ["2"], ["2"], ["4"], ["7"], ["10"], ["12"], ["12"], ["13"], ["13"], ["14"], ["17"], ["20"], ["23"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_Wxawf_4.png", "TableImg_9rqps_15.png"], "original_data_index": 9102, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"draft_number\" > 2 OR \"employee_id\" <= 2 AND \"copy_number\" > 4 UNION ALL SELECT document_id FROM Document_Drafts WHERE \"draft_number\" < 9 OR \"document_id\" != 1"} {"question": "What aircraft IDs from the aircraft table are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P4oo7_5.png", "TableImg_Eyzmu_4.png"], "original_data_index": 9103, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the other details of documents that are not document ID 3, or not shipped by agent 'FE', or not in 'done' status? If none of those apply, then include documents only if they also have a receipt date other than 'July 27, 1996 03:30:40', a receipt number other than '124', and are of type 'CD'. Exclude any results that are also 'b' in the employee information.", "answer": {"columns": ["other_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["h"], ["j"], ["m"], ["n"], ["p"], ["q"], ["r"], ["u"], ["w"], ["x"], ["y"], ["z"]]}, "table_names": "['Documents' 'Employees']", "table_image_ids": ["TableImg_Y54ff_15.png", "TableImg_L1uut_6.png"], "original_data_index": 9104, "original_sql": "SELECT other_details FROM Documents WHERE \"document_id\" != 3 OR shipping_agent_code != \"FE\" OR document_status_code != \"done\" OR receipt_date <> \"1996-07-27 03:30:40\" AND receipt_number != \"124\" AND document_type_code = \"CD\" EXCEPT SELECT other_details FROM Employees WHERE other_details = \"b\""} {"question": "What are the driver IDs that are drivers, excluding driver 6, but not school bus drivers with IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hvg54_12.png", "TableImg_Lz1b7_5.png"], "original_data_index": 9107, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the average role code, employee name, employee ID, and other details for employees who either have other details not equal to 'v', or whose name is not 'Erling' and employee ID is 1?", "answer": {"columns": ["AVG(role_code)", "employee_name", "employee_id", "other_details"], "index": [0], "data": [["0", "Koby", "1", "h"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_9vsd3_6.png", "TableImg_Iiyef_6.png"], "original_data_index": 9106, "original_sql": "SELECT AVG(role_code), employee_name, employee_id, other_details FROM Employees WHERE other_details != \"v\" OR employee_name <> \"Erling\" INTERSECT SELECT AVG(role_code), employee_name, employee_id, other_details FROM Employees WHERE other_details != \"v\" OR \"employee_id\" = 1"} {"question": "What driver IDs are 8 or greater and are drivers, but are not school bus drivers, ignoring school bus driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O6l50_12.png", "TableImg_F3z50_5.png"], "original_data_index": 9105, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What driver IDs are drivers with an ID less than 12, but are not also school bus drivers with an ID of 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Idpwh_12.png", "TableImg_30r88_5.png"], "original_data_index": 9109, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the head IDs of heads born in California with a head ID of 3 or more, except for those who are in management department 2, not temporary acting, or have a management ID greater than 4?", "answer": {"columns": ["head_ID"], "index": [0, 1], "data": [["4"], ["8"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Dr4r6_10.png", "TableImg_D020w_5.png"], "original_data_index": 9111, "original_sql": "SELECT head_ID FROM head WHERE \"head_ID\" >= 3 AND born_state = \"California\" EXCEPT SELECT head_ID FROM management WHERE \"department_ID\" = 2 OR temporary_acting != \"Yes\" OR \"head_ID\" > 4"} {"question": "Which driver IDs under 3 are drivers but not school bus drivers, ignoring school bus driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ylw9p_12.png", "TableImg_8l7ht_5.png"], "original_data_index": 9108, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What aircraft IDs less than 5 are in the aircraft table but not aircraft ID 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V0y4s_5.png", "TableImg_Yzt61_4.png"], "original_data_index": 9110, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the driver IDs, other than 1 from the driver list and other than 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K8lb7_12.png", "TableImg_Faff2_5.png"], "original_data_index": 9113, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are in the driver table (excluding ID 8) but are not in the school bus table if their ID is greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1mp0i_12.png", "TableImg_1iwlg_5.png"], "original_data_index": 9114, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What Aircraft IDs are below 5 in either the aircraft or airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rb40d_5.png", "TableImg_Pq2hd_4.png"], "original_data_index": 9116, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What driver IDs are common to drivers with IDs greater than 2 and school bus drivers with IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Trnk2_12.png", "TableImg_Qfk7s_5.png"], "original_data_index": 9112, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What driver IDs are used for both drivers and school bus drivers, and are at least 3, but not 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7a1tv_12.png", "TableImg_T25gs_5.png"], "original_data_index": 9117, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the total ICAO codes and cities of airports that are either ICAO code ENBR, not named 'El Prat Airport', not in Brussels, or have an ID other than 1 and IATA other than AEY, except for those that are either IATA code BWI or not in Akureri?", "answer": {"columns": ["SUM(ICAO)", "City"], "index": [0], "data": [["0", "Akureyri"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_O22gh_9.png", "TableImg_Pvbhg_9.png"], "original_data_index": 9115, "original_sql": "SELECT SUM(ICAO), City FROM airport WHERE ICAO = \"ENBR\" OR name <> \"El Prat Airport\" OR City <> \"Brussels\" OR \"id\" <> 1 AND IATA <> \"AEY\" EXCEPT SELECT SUM(ICAO), City FROM airport WHERE IATA = \"BWI\" OR City != \"Akureyri\""} {"question": "What aircraft IDs are greater than 3 in the aircraft table but not also found as aircraft IDs greater than 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qi34r_5.png", "TableImg_9zy5r_4.png"], "original_data_index": 9118, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "List all Aircraft IDs that are either 3 or higher from the aircraft table, or other than 5 from the airport_aircraft table.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y4ioc_5.png", "TableImg_3cw3x_4.png"], "original_data_index": 9119, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the customer IDs of customers who are not customer 6 and don't have the mobile phone number '1-401-108-8016x078', or who have an outstanding amount over 5494.0, are not a 'Bad Customer', have an address ID greater than 13, and are named 'Rylan', or whose last name is not 'Kohler', unless they also have lessons that are not at time '5', or use vehicle 1, or are on '2018-03-12 00:41:59', or are not lesson ID 14?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["4"], ["7"], ["12"], ["14"], ["15"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_M67v0_15.png", "TableImg_1v6a4_15.png"], "original_data_index": 9120, "original_sql": "SELECT customer_id FROM Customers WHERE \"customer_id\" <> 6 AND cell_mobile_phone_number != \"1-401-108-8016x078\" OR \"amount_outstanding\" > 5494.0 AND customer_status_code != \"Bad Customer\" AND \"customer_address_id\" > 13 AND first_name = \"Rylan\" OR last_name <> \"Kohler\" EXCEPT SELECT customer_id FROM Lessons WHERE lesson_time != \"5\" OR \"vehicle_id\" = 1 OR lesson_date = \"2018-03-12 00:41:59\" OR \"lesson_id\" <> 14"} {"question": "What driver IDs are 2 in the driver table, and what driver IDs are not 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ahndt_12.png", "TableImg_Z4kpc_5.png"], "original_data_index": 9121, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What Driver IDs are greater than 12 in the driver table, or are equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B2r3n_12.png", "TableImg_909zk_5.png"], "original_data_index": 9122, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What driver IDs are 4 or less, excluding any driver IDs of 10 or more that are listed for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wso36_12.png", "TableImg_Y1j68_5.png"], "original_data_index": 9123, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What Driver IDs are 7 or higher in the driver table, or 10 or lower in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ndi8g_12.png", "TableImg_U94o6_5.png"], "original_data_index": 9124, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What aircraft IDs are 5 or less in the aircraft table, but not less than 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_W2wfh_5.png", "TableImg_1thvs_4.png"], "original_data_index": 9125, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What driver IDs are both less than or equal to 8 and not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Htctw_12.png", "TableImg_Ai5am_5.png"], "original_data_index": 9126, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What aircraft IDs are greater than 3 in the aircraft table but not less than or equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gyfds_5.png", "TableImg_Cr8bv_4.png"], "original_data_index": 9127, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the delegates, their represented counties, and committees for district 1, excluding Shane Pendergrass, and also for any election with an ID less than 1 or district less than 2?", "answer": {"columns": ["Delegate", "Counties_Represented", "Committee"], "index": [0, 1, 2], "data": [["Bates, Gail H. Gail H. Bates", "09.1 9A", "Appropriations"], ["Miller, Warren E. Warren E. Miller", "09.1 9A", "Economic Matters"], ["Pendergrass, Shane E. Shane Pendergrass", "13", "Health and Government Operations"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_6bdcv_8.png", "TableImg_Co4uf_8.png"], "original_data_index": 9129, "original_sql": "SELECT Delegate, Counties_Represented, Committee FROM election WHERE \"District\" = 1 AND Delegate <> \"Pendergrass, Shane E. Shane Pendergrass\" UNION SELECT Delegate, Counties_Represented, Committee FROM election WHERE \"Election_ID\" < 1 OR \"District\" < 2"} {"question": "What are driver ID 8 from the drivers and driver ID 3 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8bptt_12.png", "TableImg_Ngjc9_5.png"], "original_data_index": 9128, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are common to both drivers (excluding driver 7) and school bus drivers (up to driver 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dcwlk_12.png", "TableImg_Cl4eb_5.png"], "original_data_index": 9130, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are in both the driver list, excluding driver 8, and the school bus list, excluding driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sgphj_12.png", "TableImg_Qvggr_5.png"], "original_data_index": 9131, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the Driver IDs that are less than 11 for drivers, or less than or equal to 4 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_50qnd_12.png", "TableImg_Mzcrm_5.png"], "original_data_index": 9134, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What Aircraft IDs, larger than 1, are recorded in either the aircraft or airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_263zl_5.png", "TableImg_96bwy_4.png"], "original_data_index": 9132, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the Driver IDs, except for Driver ID 5 and Driver ID 9, from both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bvfgp_12.png", "TableImg_8a0q5_5.png"], "original_data_index": 9133, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the Driver IDs that are greater than 9 from the driver list or greater than or equal to 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q7ieg_12.png", "TableImg_Isjdg_5.png"], "original_data_index": 9135, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What driver IDs are both in the list of drivers, excluding driver 11, and the list of school bus drivers, including only IDs up to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iw50i_12.png", "TableImg_Kk29j_5.png"], "original_data_index": 9137, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What driver IDs are both in the drivers table with IDs up to 5 and in the school bus table with IDs up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hv7w3_12.png", "TableImg_8logw_5.png"], "original_data_index": 9139, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "List all unique Aircraft IDs that are either at most 1 in the aircraft table, or not 1 in the airport aircraft table.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M4ei4_5.png", "TableImg_B7s2i_4.png"], "original_data_index": 9136, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What draft numbers are there for documents with IDs less than 13 and for document copies excluding document ID 10?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["0"], ["2"], ["1"], ["8"], ["9"], ["10"], ["20"], ["11"], ["12"], ["8"], ["9"], ["9"], ["1"], ["2"], ["17"], ["12"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_0rkaa_15.png", "TableImg_Jv639_8.png"], "original_data_index": 9141, "original_sql": "SELECT draft_number FROM Document_Drafts WHERE \"document_id\" < 13 UNION ALL SELECT draft_number FROM Draft_Copies WHERE \"document_id\" <> 10"} {"question": "What driver IDs are greater than 1 in the driver table or less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8h5gf_12.png", "TableImg_Oi7m8_5.png"], "original_data_index": 9140, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs of drivers who are not driver 8, but are not also school bus drivers with IDs up to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Goyxd_12.png", "TableImg_06ued_5.png"], "original_data_index": 9143, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What driver IDs are 7 or less that are not school bus drivers (excluding ID 3)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kb7t9_12.png", "TableImg_Mpcvw_5.png"], "original_data_index": 9142, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the distinct Driver IDs that are greater than or equal to 6 in the driver table, or not equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J8j0l_12.png", "TableImg_3vfcc_5.png"], "original_data_index": 9147, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What aircraft IDs are 5 or less in the aircraft table but not also 2 or less in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mxt5r_5.png", "TableImg_Nqo7c_4.png"], "original_data_index": 9145, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What driver IDs are both not equal to 12 in the driver table and equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yc4ht_12.png", "TableImg_Wlzx8_5.png"], "original_data_index": 9146, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "For each trust value, what is the number of source users when the trust value is less than 2, and also when the target user ID is less than 2, the source user ID is at least 1, and the trust value is not 10?", "answer": {"columns": ["trust", "COUNT(source_u_id)"], "index": [0, 1], "data": [["1.0", "1"], ["", "0"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_Ts7j2_9.png", "TableImg_Qh1ld_9.png"], "original_data_index": 9148, "original_sql": "SELECT trust, COUNT(source_u_id) FROM trust WHERE \"trust\" < 2 UNION ALL SELECT trust, COUNT(source_u_id) FROM trust WHERE \"target_u_id\" < 2 AND \"source_u_id\" >= 1 AND \"trust\" != 10"} {"question": "What Driver IDs are 4 or greater in the driver table, or different from 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_523f4_12.png", "TableImg_2sn52_5.png"], "original_data_index": 9150, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the staff count and a nickname for two different groups of staff, where each group is defined by different conditions on staff details?", "answer": {"columns": ["COUNT(last_name)", "nickname"], "index": [0, 1], "data": [["15", "thompson.constantin"], ["14", "thompson.constantin"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Y3jqy_15.png", "TableImg_865yq_15.png"], "original_data_index": 9144, "original_sql": "SELECT COUNT(last_name), nickname FROM Staff WHERE nickname != \"ynader\" OR last_name <> \"Jast\" AND \"staff_id\" >= 8 OR date_joined_staff <> \"2017-12-22 03:06:32\" UNION ALL SELECT COUNT(last_name), nickname FROM Staff WHERE nickname != \"norma73\" AND \"staff_address_id\" >= 6 AND date_of_birth != \"2005-05-02 06:23:36\" OR middle_name <> \"Maiya\" AND date_left_staff != \"2018-03-06 23:17:41\""} {"question": "What are the combined average ID and count of names for airports that are not Brussels airport, or not located in Barcelona, or are El Prat Airport, and for operating companies that are ID 11, or not from Hong Kong, or are ground handling companies with less than full equity share?", "answer": {"columns": ["AVG(id)", "COUNT(name)"], "index": [0, 1], "data": [["5.0", "9"], ["8.8333333333", "6"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Nwmx8_9.png", "TableImg_Fin9y_14.png"], "original_data_index": 9149, "original_sql": "SELECT AVG(id), COUNT(name) FROM airport WHERE ICAO != \"EBBR\" OR City <> \"Barcelona\" OR name = \"El Prat Airport\" UNION SELECT AVG(id), COUNT(name) FROM operate_company WHERE \"id\" = 11 OR Incorporated_in <> \"Hong Kong\" OR Principal_activities = \"Ground handling\" AND \"Group_Equity_Shareholding\" < 100.0"} {"question": "What driver IDs are less than 3 from the driver table, or not equal to 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bt4du_12.png", "TableImg_Yq80a_5.png"], "original_data_index": 9151, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Among votes for contestant number 3 or higher from New Jersey, what is the total of phone numbers, along with the contestant number, earliest vote ID, and creation time, but only for those votes that were either created in New York at '2018-03-09 19:03:36' or have a phone number of 7148407040 or more?", "answer": {"columns": ["SUM(phone_number)", "contestant_number", "MIN(vote_id)", "created"], "index": [0], "data": [["14331294273", "2", "1", "2018-03-09 19:03:21"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_Be5dh_4.png", "TableImg_Fwvch_4.png"], "original_data_index": 9152, "original_sql": "SELECT SUM(phone_number), contestant_number, MIN(vote_id), created FROM VOTES WHERE created = \"2018-03-09 19:03:36\" AND state = \"NY\" OR \"phone_number\" >= 7148407040 EXCEPT SELECT SUM(phone_number), contestant_number, MIN(vote_id), created FROM VOTES WHERE \"contestant_number\" < 3 OR state != \"NJ \""} {"question": "What is the total sum of allergy type values specifically for tree pollen, excluding any allergy types labeled as \"food\"?", "answer": {"columns": ["Allergy", "SUM(AllergyType)"], "index": [0], "data": [["Ragweed", "0"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_Gvt2d_14.png", "TableImg_Yis2u_14.png"], "original_data_index": 9153, "original_sql": "SELECT Allergy, SUM(AllergyType) FROM Allergy_Type WHERE Allergy <> \"Milk\" AND AllergyType != \"food\" EXCEPT SELECT Allergy, SUM(AllergyType) FROM Allergy_Type WHERE Allergy != \"Tree Pollen\""} {"question": "What Driver IDs are 11 or greater in the driver table, or 3 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8303i_12.png", "TableImg_Epy04_5.png"], "original_data_index": 9155, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the Aircraft IDs? Include those from the aircraft table that are 5 or less, and those from the airport_aircraft table that are 5 or more.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X7p4d_5.png", "TableImg_20ikx_4.png"], "original_data_index": 9156, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What driver IDs other than 7 are in the driver or school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I58y8_12.png", "TableImg_Dlcl9_5.png"], "original_data_index": 9157, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs that are not 1 in the driver table, or are 4 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wz0mg_12.png", "TableImg_3os6w_5.png"], "original_data_index": 9158, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the document IDs for circulation history entries that are not draft 20, not by employee 2, have document ID 10 or greater, and are copy 15, or for overdue documents?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4], "data": [["10"], ["12"], ["15"], ["20"], ["25"]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_Vwz50_4.png", "TableImg_5op8f_15.png"], "original_data_index": 9154, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"draft_number\" <> 20 AND \"employee_id\" != 2 AND \"document_id\" >= 10 AND \"copy_number\" = 15 UNION SELECT document_id FROM Documents WHERE document_status_code = \"overdue\""} {"question": "Which driver IDs less than 12 are not also driver IDs of 4 or more in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cvygh_12.png", "TableImg_7c9dj_5.png"], "original_data_index": 9162, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the other property details, fld_feature_2, and fld_feature_1 for properties that satisfy a complex set of conditions related to their features?", "answer": {"columns": ["other_property_details", "fld_feature_2", "fld_feature_1"], "index": [0], "data": [["", "", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_1mxvb_15.png", "TableImg_M5sig_15.png"], "original_data_index": 9159, "original_sql": "SELECT other_property_details, fld_feature_2, fld_feature_1 FROM Properties WHERE apt_feature_1 = \"et\" OR property_name = \"high line\" OR date_sold != \"1973-02-24 02:56:06\" AND \"buyer_offered_price\" < 11375259.502 AND fld_feature_1 = \"None\" AND fld_feature_2 = \"None\" OR apt_feature_3 != \"None\" OR shp_feature_2 = \"None\" AND shp_feature_1 = \"None\" AND date_on_market <> \"1994-02-14 02:27:13\" AND property_address != \"098 Tremaine Highway Suite 569 South Wilford, NJ 46587-3537\" AND oth_feature_1 = \"None\" AND \"room_count\" > 7 AND fld_feature_3 <> \"None\" AND hse_feature_3 <> \"None\" OR oth_feature_2 = \"None\" AND \"property_id\" < 14 AND property_type_code <> \"Other\" OR hse_feature_1 = \"None\" AND other_property_details != \"None\" AND oth_feature_3 != \"None\" UNION SELECT other_property_details, fld_feature_2, fld_feature_1 FROM Properties WHERE hse_feature_2 <> \"None\" OR \"agreed_selling_price\" != 1.0012 AND hse_feature_1 <> \"None\" AND other_property_details != \"None\" AND oth_feature_1 <> \"None\" AND \"property_id\" < 3 OR apt_feature_1 != \"nesciunt\""} {"question": "What are the document IDs for documents that are not named 'Learning French', or that have details other than 'None' and a template ID less than 20?", "answer": {"columns": ["Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["0"], ["1"], ["3"], ["76"], ["80"], ["82"], ["2394"], ["3830"], ["33930"], ["651512"], ["801801"], ["3540024"], ["16514113"], ["385906526"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_77268_15.png", "TableImg_9x7iq_15.png"], "original_data_index": 9160, "original_sql": "SELECT Document_ID FROM Documents WHERE Document_Name != \"Learning French\" OR \"Template_ID\" < 20 IN (SELECT Document_ID FROM Documents WHERE Other_Details != \"None\")"} {"question": "What are the Shop IDs and their full-time status for shops that are either part-time and shop ID 1, or not shop ID 1 and didn't start in 2009, or have part-time employees who are not employee 4?", "answer": {"columns": ["Shop_ID", "Is_full_time"], "index": [0, 1, 2, 3, 4], "data": [["2", "F"], ["4", "T"], ["5", "T"], ["6", "T"], ["8", "F"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Nwpy6_7.png", "TableImg_Q4esi_7.png"], "original_data_index": 9161, "original_sql": "SELECT Shop_ID, Is_full_time FROM hiring WHERE \"Employee_ID\" <> 4 AND Is_full_time = \"F\" OR \"Shop_ID\" <> 1 AND Start_from != \"2009\" UNION SELECT Shop_ID, Is_full_time FROM hiring WHERE Is_full_time != \"T\" AND \"Shop_ID\" = 1"} {"question": "What driver IDs are in common between drivers with IDs of 4 or greater and school bus drivers with IDs of 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kdwvd_12.png", "TableImg_Lrx8s_5.png"], "original_data_index": 9167, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs, other than 2, are drivers but not school bus drivers with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gby03_12.png", "TableImg_M9hlq_5.png"], "original_data_index": 9166, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Could you list the writer, book ID, total number of issues, and title for all books that are either not by Michael Moorcock or have 12 or more issues, except for books with less than 4 issues?", "answer": {"columns": ["Writer", "Book_ID", "SUM(Issues)", "Title"], "index": [0], "data": [["Timothy Truman", "1", "63", "The Black Lamb"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_0csmw_10.png", "TableImg_S36ki_10.png"], "original_data_index": 9165, "original_sql": "SELECT Writer, Book_ID, SUM(Issues), Title FROM book WHERE Writer != \"Michael Moorcock\" OR \"Issues\" >= 12.0 EXCEPT SELECT Writer, Book_ID, SUM(Issues), Title FROM book WHERE \"Issues\" < 4.0"} {"question": "For each country that has either more than 2 IDs and at least 4 makers, or more than 4 IDs, what are the counts of makers, IDs, and full names?", "answer": {"columns": ["COUNT(Maker)", "Country", "COUNT(Id)", "COUNT(FullName)"], "index": [0, 1, 2, 3], "data": [["4", "1", "4", "4"], ["4", "2", "4", "4"], ["5", "4", "5", "5"], ["5", "4", "5", "5"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_Gcppg_22.png", "TableImg_Qi0o8_22.png"], "original_data_index": 9169, "original_sql": "SELECT COUNT(Maker), Country, COUNT(Id), COUNT(FullName) FROM car_makers GROUP BY Country HAVING COUNT(Id) > 2 AND COUNT(Maker) >= 4 UNION ALL SELECT COUNT(Maker), Country, COUNT(Id), COUNT(FullName) FROM car_makers GROUP BY Country HAVING COUNT(Id) > 4"} {"question": "What driver IDs are not 10 from the drivers or are greater than 3 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7jf7f_12.png", "TableImg_3c7l2_5.png"], "original_data_index": 9170, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is driver ID for driver 8, if any?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0e3dw_12.png", "TableImg_1u79y_5.png"], "original_data_index": 9164, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the sums of Club IDs for clubs in HHH and for members in Member_of_club who are either in club 2 and not Teaching Coordinators, or student 1007?", "answer": {"columns": ["SUM(ClubID)"], "index": [0, 1], "data": [["3"], ["6"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Qs2pc_4.png", "TableImg_Egxii_4.png"], "original_data_index": 9171, "original_sql": "SELECT SUM(ClubID) FROM Club WHERE ClubLocation = \"HHH\" UNION ALL SELECT SUM(ClubID) FROM Member_of_club WHERE \"ClubID\" = 2 AND Position != \"Teaching Coordinator\" OR \"StuID\" = 1007"} {"question": "What driver IDs are both less than 12 and greater than 3, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_92duv_12.png", "TableImg_7vmc7_5.png"], "original_data_index": 9172, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What branch and member IDs are in the membership register for branch 6, members with ID 6 or higher, or the year 2016, but are not also in the purchase records, except for purchases made in 2018 from branch 5 or for members with member IDs greater than 2?", "answer": {"columns": ["Branch_ID", "Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1", "1"], ["1", "4"], ["2", "7"], ["4", "2"], ["5", "5"], ["6", "6"], ["8", "8"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Lw82x_8.png", "TableImg_Iq7yw_8.png"], "original_data_index": 9168, "original_sql": "SELECT Branch_ID, Member_ID FROM membership_register_branch WHERE Branch_ID = \"6\" OR \"Member_ID\" >= 6 OR Register_Year = \"2016\" EXCEPT SELECT Branch_ID, Member_ID FROM purchase WHERE Year != \"2018\" OR Branch_ID != \"5\" AND \"Member_ID\" <= 2"} {"question": "What driver IDs are not 5, or are 4 or less among school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ky13t_12.png", "TableImg_Yqrvh_5.png"], "original_data_index": 9173, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What driver IDs are greater than 9 in the driver table, and also driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qbr3i_12.png", "TableImg_Zj7km_5.png"], "original_data_index": 9176, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What driver IDs are less than 4 from the driver table, or less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T3ck1_12.png", "TableImg_Joxbu_5.png"], "original_data_index": 9174, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What driver IDs are greater than 7 but are not among the school bus driver IDs, excluding driver ID 4 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tzxj8_12.png", "TableImg_Gilez_5.png"], "original_data_index": 9177, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What member IDs do we have for members who are either named Johnny Williams and don't have card number LT98, or are not from Red Jacket, West Virginia, or are not member ID 4 with a level below 4, or for purchases where the total pounds is not 988.09, or the year is not 2018, or the member ID is 4 or greater at branch 6?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['member' 'purchase']", "table_image_ids": ["TableImg_E4pg1_10.png", "TableImg_Dg4c4_8.png"], "original_data_index": 9175, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number != \"LT98\" AND Name = \"Johnny Williams\" OR Hometown != \"Red Jacket, West Virginia\" OR \"Member_ID\" != 4 AND \"Level\" < 4 UNION SELECT Member_ID FROM purchase WHERE \"Total_pounds\" <> 988.09 OR Year != \"2018\" OR \"Member_ID\" >= 4 AND Branch_ID = \"6\""} {"question": "What driver IDs are drivers other than driver 3 and also school bus drivers other than driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vw4y8_12.png", "TableImg_Arjlx_5.png"], "original_data_index": 9178, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Could you list the head ID, name, and born state for heads who are either named Sergio Garc\u00eda and under 50, or whose head ID is not 5, or who are not from Delaware, or who are 43 or older, or whose head ID is not 1 and who are not from Alabama?", "answer": {"columns": ["head_ID", "name", "born_state"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1", "Tiger Woods", "Alabama"], ["2", "Sergio Garc\u00eda", "California"], ["3", "K. J. Choi", "Alabama"], ["4", "Dudley Hart", "California"], ["6", "Billy Mayfair", "California"], ["7", "Stewart Cink", "Florida"], ["8", "Nick Faldo", "California"], ["9", "P\u00e1draig Harrington", "Connecticut"], ["10", "Franklin Langham", "Connecticut"], ["1", "Tiger Woods", "Alabama"], ["2", "Sergio Garc\u00eda", "California"], ["3", "K. J. Choi", "Alabama"], ["4", "Dudley Hart", "California"], ["5", "Jeff Maggert", "Delaware"], ["6", "Billy Mayfair", "California"], ["7", "Stewart Cink", "Florida"], ["8", "Nick Faldo", "California"], ["9", "P\u00e1draig Harrington", "Connecticut"], ["10", "Franklin Langham", "Connecticut"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_4ix32_10.png", "TableImg_9ws3s_10.png"], "original_data_index": 9181, "original_sql": "SELECT head_ID, name, born_state FROM head WHERE name = \"Sergio Garc\u00eda\" AND \"age\" < 50.0 OR \"head_ID\" <> 5 OR born_state <> \"Delaware\" UNION ALL SELECT head_ID, name, born_state FROM head WHERE \"age\" >= 43.0 OR \"head_ID\" != 1 AND born_state != \"Alabama\""} {"question": "What customer IDs do we have for customers who meet a very specific set of criteria, or for lessons that meet another very specific set of criteria?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_L5wkk_15.png", "TableImg_Eayqe_15.png"], "original_data_index": 9179, "original_sql": "SELECT customer_id FROM Customers WHERE \"customer_address_id\" = 12 AND phone_number <> \"(729)396-4354x3576\" OR cell_mobile_phone_number <> \"577-584-4864\" AND \"amount_outstanding\" < 9500.0 OR customer_status_code != \"Bad Customer\" AND date_became_customer = \"2017-04-16 05:12:21\" AND email_address = \"mayert.judy@example.com\" AND date_of_birth <> \"1993-07-09 11:11:36\" AND \"customer_id\" <> 15 AND first_name <> \"Dianna\" AND last_name = \"Kohler\" UNION ALL SELECT customer_id FROM Lessons WHERE \"customer_id\" < 13 AND lesson_date = \"2018-03-07 11:53:32\" AND lesson_status_code <> \"Cancelled\" AND \"lesson_id\" >= 4 AND \"staff_id\" != 1 AND \"vehicle_id\" = 3"} {"question": "What aircraft IDs, other than 5, are in the aircraft table but not in the airport_aircraft table, considering only aircraft IDs other than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qo0fn_5.png", "TableImg_D69qg_4.png"], "original_data_index": 9180, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What driver IDs, other than 4, are drivers but are not driver 7 on school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ildwl_12.png", "TableImg_Ofqlc_5.png"], "original_data_index": 9185, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the names of shop managers who satisfy both of these conditions: their shop is either not named 'FC KooTeePee', or it has 1600 or fewer products, is not in 'Veritas Stadion', is managed by 'Job Dragtsma', and has a Shop ID less than 3, or it's not in Jakobstad; and also, they are either named 'Antti Muurinen' or their shop is not in Valkeakoski?", "answer": {"columns": ["Manager_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Antti Muurinen"], ["Ilkka M\u00e4kel\u00e4"], ["Job Dragtsma"], ["Kai Nyyss\u00f6nen"], ["Mika Laurikainen"], ["Mika Lehkosuo"], ["Pekka Lyyski"], ["Tommi Kautonen"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_W9cqa_9.png", "TableImg_N9l4r_9.png"], "original_data_index": 9182, "original_sql": "SELECT Manager_name FROM shop WHERE Name != \"FC KooTeePee\" OR \"Number_products\" <= 1600 AND District != \"Veritas Stadion\" AND Manager_name = \"Job Dragtsma\" AND \"Shop_ID\" < 3 OR Location != \"Jakobstad\" INTERSECT SELECT Manager_name FROM shop WHERE Manager_name = \"Antti Muurinen\" OR Location != \"Valkeakoski\""} {"question": "Which driver IDs, that are less than 4, are drivers but not school bus drivers with IDs up to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gssht_12.png", "TableImg_Ce8mk_5.png"], "original_data_index": 9184, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the transit passenger numbers and the number of associated aircraft for each airport?", "answer": {"columns": ["Transit_Passengers", "COUNT(T2.ID)"], "index": [0], "data": [["50889", "4"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Af3ul_10.png", "TableImg_8bm60_4.png"], "original_data_index": 9186, "original_sql": "SELECT T1.Transit_Passengers, COUNT(T2.ID) FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Show me driver ID 11, and all driver IDs except 4 from the school bus list.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mpfa0_12.png", "TableImg_Xwel2_5.png"], "original_data_index": 9183, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the names and IDs of aircraft that either have a distance of 1805, are named 'Piper Archer III', are not named 'Boeing 727', or have an ID other than 2 and a distance of 3383 or less?", "answer": {"columns": ["name", "aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["Piper Archer III", "7"], ["Airbus A319", "14"], ["Boeing 747-400", "1"], ["Boeing 737-800", "2"], ["Airbus A340-300", "3"], ["British Aerospace Jetstream 41", "4"], ["Embraer ERJ-145", "5"], ["SAAB 340", "6"], ["Piper Archer III", "7"], ["Tupolev 154", "8"], ["Schwitzer 2-33", "16"], ["Lockheed L1011", "9"], ["Boeing 757-300", "10"], ["Boeing 777-300", "11"], ["Boeing 767-400ER", "12"], ["Airbus A320", "13"], ["Airbus A319", "14"], ["Boeing 727", "15"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Qussz_16.png", "TableImg_88fpq_16.png"], "original_data_index": 9187, "original_sql": "SELECT name, aid FROM aircraft WHERE \"distance\" = 1805 OR name = \"Piper Archer III\" UNION ALL SELECT name, aid FROM aircraft WHERE name != \"Boeing 727\" OR \"aid\" != 2 AND \"distance\" <= 3383"} {"question": "Excluding the highest Company ID from employment records with more than 3 people and not Company ID 15, what is the highest Company ID from companies that are either named 'Berkshire Hathaway', are not headquartered in the USA, have sales not equal to 87.6 billion, and are not in the banking industry, or have a Company ID less than 9 and assets greater than 209.5 billion?", "answer": {"columns": ["MAX(Company_ID)"], "index": [0], "data": [["8"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_C2a7j_19.png", "TableImg_Iawpa_5.png"], "original_data_index": 9188, "original_sql": "SELECT MAX(Company_ID) FROM company WHERE \"Sales_in_Billion\" != 87.6 AND Headquarters <> \"USA\" AND Name = \"Berkshire Hathaway\" AND Industry != \"Banking\" OR \"Company_ID\" < 9.0 AND \"Assets_in_Billion\" > 209.5 EXCEPT SELECT MAX(Company_ID) FROM employment WHERE \"People_ID\" > 3 AND \"Company_ID\" != 15"} {"question": "What aircraft IDs, that are 4 or greater, are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zwtci_5.png", "TableImg_Vfj7s_4.png"], "original_data_index": 9190, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What are the countries of addresses that are either not at \"37698 Hahn Curve Apt. 572\", or are in Idaho but not the USA, or have an address ID of 2 or less and zip code \"61121\", or are not in Port Melyssa with zip code \"27559\" and address ID greater than 10, or are not in the USA and not in West Virginia?", "answer": {"columns": ["country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["USA"], ["USA"], ["USA"], ["USA"], ["USA"], ["USA"], ["USA"], ["USA"], ["USA"], ["USA"], ["USA"], ["USA"], ["USA"], ["USA"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_8hd9k_15.png", "TableImg_1d4cb_15.png"], "original_data_index": 9191, "original_sql": "SELECT country FROM Addresses WHERE line_1_number_building != \"37698 Hahn Curve Apt. 572\" OR country != \"USA\" AND state_province_county = \"Idaho\" OR \"address_id\" <= 2 AND zip_postcode = \"61121\" UNION ALL SELECT country FROM Addresses WHERE city <> \"Port Melyssa\" AND zip_postcode = \"27559\" AND \"address_id\" > 10 OR country != \"USA\" AND state_province_county <> \"WestVirginia\""} {"question": "What's the average AllergyType for allergies that are not eggs, and also for allergies that are soy or environmental?", "answer": {"columns": ["Allergy", "AVG(AllergyType)"], "index": [0, 1], "data": [["Nuts", "0"], ["Soy", "0"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_Slo7t_14.png", "TableImg_E3dy5_14.png"], "original_data_index": 9192, "original_sql": "SELECT Allergy, AVG(AllergyType) FROM Allergy_Type WHERE Allergy != \"Eggs\" UNION SELECT Allergy, AVG(AllergyType) FROM Allergy_Type WHERE Allergy = \"Soy\" OR AllergyType = \"environmental\""} {"question": "What are the ID, maximum IATA, country, city, name, and maximum ICAO for airports that are either 'Akureyri Airport' in Baltimore, not 'ENBR', and with an ID less than 7, or that are not in Iceland, or have IATA 'BGO', or are not 'Bergen Airport', or are ID 7, not in Baltimore, and not 'ENBR'?", "answer": {"columns": ["id", "MAX(IATA)", "Country", "SUM(City)", "name", "MAX(ICAO)"], "index": [0, 1], "data": [["", "", "", "", "", ""], ["3.0", "BWI", "United States", "0.0", "Ted Stevens Airport", "PANC"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Ziuv8_9.png", "TableImg_8zjzh_9.png"], "original_data_index": 9189, "original_sql": "SELECT id, MAX(IATA), Country, SUM(City), name, MAX(ICAO) FROM airport WHERE ICAO != \"ENBR\" AND name = \"Akureyri Airport\" AND City = \"Baltimore\" AND \"id\" < 7 UNION SELECT id, MAX(IATA), Country, SUM(City), name, MAX(ICAO) FROM airport WHERE Country != \"Iceland\" OR IATA = \"BGO\" OR name <> \"Bergen Airport\" OR \"id\" = 7 AND City <> \"Baltimore\" AND ICAO != \"ENBR\""} {"question": "What are the highest role description and role code, both when excluding roles with the code 'PT', and separately when excluding roles described as 'Manager'?", "answer": {"columns": ["MAX(role_description)", "MAX(role_code)"], "index": [0, 1], "data": [["Proof Manager", "PR"], ["Proof Manager", "PT"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Egesd_4.png", "TableImg_1z8mg_4.png"], "original_data_index": 9195, "original_sql": "SELECT MAX(role_description), MAX(role_code) FROM Roles WHERE role_code != \"PT\" UNION SELECT MAX(role_description), MAX(role_code) FROM Roles WHERE role_description != \"Manager\""} {"question": "Which driver IDs are either 1 or less, or not 10, from both drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ycnvw_12.png", "TableImg_Nyzn8_5.png"], "original_data_index": 9194, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What's the smallest ID that is shared between car makers (excluding ID 3 and Volvo) and cars meeting specific criteria?", "answer": {"columns": ["MIN(Id)"], "index": [0], "data": [["1"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_4fuuz_22.png", "TableImg_Tu7hw_406.png"], "original_data_index": 9193, "original_sql": "SELECT MIN(Id) FROM car_makers WHERE \"Id\" <> 3 AND FullName <> \"Volvo\" INTERSECT SELECT MIN(Id) FROM cars_data WHERE \"Weight\" = 2945 OR \"Accelerate\" != 12.1 OR \"Edispl\" >= 258.0 AND \"Id\" <> 17 AND MPG = \"28\""} {"question": "What are the Aircraft IDs that are 1 or higher in the aircraft table, or different from 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S0i78_5.png", "TableImg_2cznh_4.png"], "original_data_index": 9197, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Could you list the descriptions and maximum gross weights for aircraft that are either CH-53E Super Stallions (excluding those with a max disk loading of 2.6 lb/ft\u00b2 and max gross weight of 3,200 lb), or have an Aircraft ID of 5 and a total disk area of 4,900 ft\u00b2, or have a total disk area of 4,900 ft\u00b2 but not a max gross weight of 73,500 lb?", "answer": {"columns": ["Description", "Max_Gross_Weight"], "index": [0], "data": [["Heavy-lift helicopter", "73,500 lb (33,300 kg)"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Jy3b8_5.png", "TableImg_Rl2oq_5.png"], "original_data_index": 9199, "original_sql": "SELECT Description, Max_Gross_Weight FROM aircraft WHERE Max_disk_Loading <> \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" AND Max_Gross_Weight <> \"3,200 lb (1,451 kg)\" AND Aircraft = \"CH-53E Super Stallion\" OR \"Aircraft_ID\" = 5 AND Total_disk_area = \"4,900 ft\u00b2 (460 m\u00b2)\" UNION ALL SELECT Description, Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight != \"73,500 lb (33,300 kg)\" AND Total_disk_area = \"4,900 ft\u00b2 (460 m\u00b2)\""} {"question": "Are there any driver IDs that are 8, and are not among the school bus driver IDs that are 4 or less?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xmxon_12.png", "TableImg_Clr6m_5.png"], "original_data_index": 9198, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What aircraft IDs are in both the aircraft and airport aircraft tables, but not 1 or 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Atkgr_5.png", "TableImg_7p5bm_4.png"], "original_data_index": 9200, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What aircraft IDs less than 4 from the aircraft table are not in the airport_aircraft table, if we ignore aircraft ID 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_T269u_5.png", "TableImg_Cukgz_4.png"], "original_data_index": 9196, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Which Aircraft IDs less than 2 are in the aircraft table but not in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X5eka_5.png", "TableImg_Jyzwl_4.png"], "original_data_index": 9201, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the document IDs for documents mailed on January 1, 2007 at 10:32 PM or to address ID 8, combined with the document IDs for draft copies that are draft number 17 or have a document ID of 1 or greater and copy number 10?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["10"], ["12"], ["20"], ["23"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Nx9id_14.png", "TableImg_Ucfk5_8.png"], "original_data_index": 9203, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE mailing_date = \"2007-01-01 22:32:11\" OR \"mailed_to_address_id\" = 8 UNION SELECT document_id FROM Draft_Copies WHERE \"draft_number\" = 17 OR \"document_id\" >= 1 AND \"copy_number\" = 10"} {"question": "What are the Club ID, Coach name, Gender, and Coach ID of female coaches who are either not Coach ID 3 or have a rank other than 1?", "answer": {"columns": ["Club_ID", "Coach_name", "Gender", "Coach_ID"], "index": [0], "data": [["1", "Joe Fabbri", "F", "2"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_E7340_5.png", "TableImg_M965i_5.png"], "original_data_index": 9202, "original_sql": "SELECT Club_ID, Coach_name, Gender, Coach_ID FROM coach WHERE Gender != \"M\" AND \"Coach_ID\" != 3 OR \"Rank\" <> 1 INTERSECT SELECT Club_ID, Coach_name, Gender, Coach_ID FROM coach WHERE Gender = \"F\""} {"question": "What are the Driver IDs that are greater than 10 from the drivers and also the Driver IDs that are 4 or less from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ortv7_12.png", "TableImg_U4h5l_5.png"], "original_data_index": 9205, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the total number of genders for coaches, excluding 'James Wong' and Coach ID 2, and for players sponsored by 'Selkirk\u2014Interlake' who meet specific criteria on their occupation, rank, ID, residence, or name?", "answer": {"columns": ["COUNT(Gender)"], "index": [0, 1], "data": [["3"], ["13"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_6wh69_5.png", "TableImg_O9ow6_14.png"], "original_data_index": 9204, "original_sql": "SELECT COUNT(Gender) FROM coach WHERE Coach_name <> \"James Wong\" AND \"Coach_ID\" <> 2 UNION ALL SELECT COUNT(Gender) FROM player WHERE Sponsor_name = \"Selkirk\u2014Interlake\" AND Occupation <> \"Ministerial Assistant\" AND Rank <> \"1st\" AND \"Player_ID\" >= 14 AND Residence != \"Winnipeg\" OR Player_name <> \"Judy Wasylycia-Leis\""} {"question": "Show me the Club ID and Club Name for clubs that are not located in AKW, or are located in HHH, or are named 'Bootup Baltimore', or have an ID other than 3, or whose description is 'Venture capital fund for student business' or 'Play pen and paper games on campus'.", "answer": {"columns": ["ClubID", "ClubName"], "index": [0, 1, 2, 3], "data": [["1", "Bootup Baltimore"], ["2", "Hopkins Student Enterprises"], ["3", "Pen and Paper Gaming"], ["4", "Tennis Club"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Fmy5n_4.png", "TableImg_Ib5sh_4.png"], "original_data_index": 9207, "original_sql": "SELECT ClubID, ClubName FROM Club WHERE ClubLocation <> \"AKW\" OR ClubName = \"Bootup Baltimore\" OR \"ClubID\" <> 3 OR ClubDesc = \"Venture capital fund for student business.\" UNION SELECT ClubID, ClubName FROM Club WHERE ClubLocation = \"HHH\" OR ClubDesc = \"Play pen and paper games on campus.\""} {"question": "What are the product IDs that are 3 or less, or equal to 1?", "answer": {"columns": ["Product_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_272b8_15.png", "TableImg_N11pj_15.png"], "original_data_index": 9206, "original_sql": "SELECT Product_ID FROM store_product WHERE \"Product_ID\" <= 3 UNION SELECT Product_ID FROM store_product WHERE \"Product_ID\" = 1"} {"question": "What are the driver IDs that are less than 4 or not equal to 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3kura_12.png", "TableImg_O5mz0_5.png"], "original_data_index": 9208, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are drivers but not school bus drivers, excluding driver ID 7 from drivers and driver ID 4 from school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gbuoy_12.png", "TableImg_Dsh1c_5.png"], "original_data_index": 9210, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver IDs are common between drivers who are not driver 1 and school bus drivers who are driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zclmr_12.png", "TableImg_Lpbt8_5.png"], "original_data_index": 9212, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What driver IDs are in both the driver table (excluding driver ID 4) and the school_bus table (excluding driver ID 7)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nm6gn_12.png", "TableImg_Z9r0x_5.png"], "original_data_index": 9211, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Could you list the contestant number, vote ID, creation date and time, and state for votes where either the contestant number is greater than 3 or the phone number is 6209222712 or less, or the vote was created on '2018-03-09 19:03:36' or the vote ID is not 3?", "answer": {"columns": ["contestant_number", "vote_id", "created", "state"], "index": [0, 1, 2, 3], "data": [["2", "1", "2018-03-09 19:03:21", "NY"], ["3", "2", "2018-03-09 19:03:36", "NY"], ["3", "3", "2018-03-09 19:03:39", "CA"], ["5", "5", "2018-03-09 19:03:40", "NJ\n"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_6b8rj_4.png", "TableImg_4lbve_4.png"], "original_data_index": 9209, "original_sql": "SELECT contestant_number, vote_id, created, state FROM VOTES WHERE \"contestant_number\" > 3 OR \"phone_number\" <= 6209222712 UNION SELECT contestant_number, vote_id, created, state FROM VOTES WHERE created = \"2018-03-09 19:03:36\" OR \"vote_id\" <> 3"} {"question": "What Aircraft IDs are either less than 4 from the aircraft records or not equal to 2 from the airport aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0fokm_5.png", "TableImg_Pgza2_4.png"], "original_data_index": 9214, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What driver IDs are there, excluding driver ID 2 from the drivers and driver ID 4 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mrdcm_12.png", "TableImg_Ru9x9_5.png"], "original_data_index": 9213, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the Aircraft IDs that are 1 or less and are recorded in both the aircraft and airport aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tpf0x_5.png", "TableImg_Zj3ek_4.png"], "original_data_index": 9218, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What Driver IDs are either not 11 in the driver table, or are 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xraxl_12.png", "TableImg_Fx6th_5.png"], "original_data_index": 9217, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What driver IDs, other than 1, are listed as drivers but not as school bus drivers, considering only school bus drivers who are not ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Znwoh_12.png", "TableImg_9kg5p_5.png"], "original_data_index": 9215, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the Party IDs and Comptrollers for parties where either the Attorney General is not Andrew Cuomo, or the Lieutenant Governor is not Dennis Mehiel and the party is not 'Working Families' and US Senate is '(no election)' and Governor is not Eliot Spitzer, or the Party ID is less than 2, or the year is not 1998, or the Lieutenant Governor is not David Paterson, or the US Senate is not Hillary Rodham Clinton and the Attorney General is not Andrew Cuomo, or the party is not 'Independence' and the Governor is not Carl McCall?", "answer": {"columns": ["Party_ID", "Comptroller"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1", "Carl McCall"], ["2", "Carl McCall"], ["3", "Alan Hevesi"], ["4", "John Faso"], ["5", "Alan Hevesi"], ["6", "Alan Hevesi"], ["7", "Alan Hevesi"], ["1", "Carl McCall"], ["2", "Carl McCall"], ["3", "Alan Hevesi"], ["4", "John Faso"], ["5", "Alan Hevesi"], ["7", "Alan Hevesi"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Ea7jf_7.png", "TableImg_Akgjm_7.png"], "original_data_index": 9216, "original_sql": "SELECT Party_ID, Comptroller FROM party WHERE Attorney_General != \"Andrew Cuomo\" OR Lieutenant_Governor != \"Dennis Mehiel\" AND Party <> \"Working Families\" AND US_Senate = \"(no election)\" AND Governor != \"Eliot Spitzer\" AND \"Party_ID\" < 2 OR \"Year\" <> 1998.0 UNION ALL SELECT Party_ID, Comptroller FROM party WHERE Lieutenant_Governor <> \"David Paterson\" OR US_Senate != \"Hillary Rodham Clinton\" AND Attorney_General <> \"Andrew Cuomo\" OR Party <> \"Independence\" AND Governor != \"Carl McCall\""} {"question": "Which driver IDs less than 11 are drivers but not school bus drivers with IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R42lb_12.png", "TableImg_B0q4u_5.png"], "original_data_index": 9220, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs under 8 are drivers but not school bus driver number 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wtbre_12.png", "TableImg_Fztuy_5.png"], "original_data_index": 9222, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What is the earliest publication date, the highest price, and the publisher for publications that are either not from 'Thomson Reuters', have a 'Book_ID' other than 9, and were published in 'April 2007', or have a 'Price' less than 6 million; or have a 'Publication_ID' less than 1, or have a 'Price' of 3 million or more and are not from 'Bertelsmann'?", "answer": {"columns": ["MIN(Publication_Date)", "MAX(Price)", "Publisher"], "index": [0, 1], "data": [["April 2007", "4100000", "Wiley"], ["August 2008", "15000000", "Pearson"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_D5iqr_7.png", "TableImg_68a3t_7.png"], "original_data_index": 9219, "original_sql": "SELECT MIN(Publication_Date), MAX(Price), Publisher FROM publication WHERE Publisher <> \"Thomson Reuters\" AND \"Book_ID\" <> 9 AND Publication_Date = \"April 2007\" OR \"Price\" < 6000000.0 UNION ALL SELECT MIN(Publication_Date), MAX(Price), Publisher FROM publication WHERE \"Publication_ID\" < 1 OR \"Price\" >= 3000000.0 AND Publisher <> \"Bertelsmann\""} {"question": "What aircraft IDs, other than 3, are in the aircraft table but not in the airport aircraft table for IDs 2 or higher?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Riqtn_5.png", "TableImg_118j1_4.png"], "original_data_index": 9221, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What aircraft IDs are number 2 in the aircraft table but not number 1 or less in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jggb9_5.png", "TableImg_5v3yx_4.png"], "original_data_index": 9223, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Are there any drivers with ID 8 who are not also drivers with IDs less than 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oqpch_12.png", "TableImg_83pf7_5.png"], "original_data_index": 9224, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "For departments that are either ranked 5 and not named 'State', or have a budget other than 62.8 billion, or have a number of employees different from 17347, and also have at least one creation entry, OR departments that were created in 1789 and not named 'Energy', or have 58622 employees, and whose total budget is not 11.1 billion and the number of creation entries is not exactly one, what are the Department IDs, along with the count of creations and the total budget for each of these departments?", "answer": {"columns": ["Department_ID", "COUNT(Creation)", "SUM(Budget_in_Billions)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "1", "9.96"], ["2", "1", "11.1"], ["3", "1", "439.3"], ["4", "1", "23.4"], ["5", "1", "10.7"], ["6", "1", "77.6"], ["7", "1", "6.2"], ["8", "1", "59.7"], ["9", "1", "543.2"], ["10", "1", "46.2"], ["11", "1", "58.0"], ["12", "1", "21.5"], ["13", "1", "62.8"], ["14", "1", "73.2"], ["15", "1", "44.6"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Jfjsl_15.png", "TableImg_Rjtl8_15.png"], "original_data_index": 9225, "original_sql": "SELECT Department_ID, COUNT(Creation), SUM(Budget_in_Billions) FROM department WHERE \"Ranking\" = 5 AND Name != \"State\" OR \"Budget_in_Billions\" <> 62.8 OR \"Num_Employees\" != 17347.0 GROUP BY Department_ID HAVING COUNT(Creation) >= 1 UNION SELECT Department_ID, COUNT(Creation), SUM(Budget_in_Billions) FROM department WHERE Creation = \"1789\" AND Name != \"Energy\" OR \"Num_Employees\" = 58622.0 GROUP BY Department_ID HAVING SUM(Budget_in_Billions) != 11.1 AND COUNT(Creation) != 1"} {"question": "What are aircraft ID 4 from the aircraft table, and aircraft IDs other than 2 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_30abn_5.png", "TableImg_7579i_4.png"], "original_data_index": 9228, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the IDs of clubs that are not described as 'Refurbish computers; teach kids and adults about computer basics', or clubs that have members with student IDs greater than 1001 who are not presidents?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["3"], ["4"], ["4"], ["2"], ["1"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_771nd_4.png", "TableImg_8irmh_4.png"], "original_data_index": 9227, "original_sql": "SELECT ClubID FROM Club WHERE ClubDesc != \"Refurbish computers; teach kids and adults about computer basics.\" UNION ALL SELECT ClubID FROM Member_of_club WHERE \"StuID\" > 1001 AND Position != \"President\""} {"question": "Is there a driver with ID 11 who is not also a school bus driver with an ID of 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_66t9l_12.png", "TableImg_O57k1_5.png"], "original_data_index": 9226, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which Aircraft IDs are greater than 3 in the aircraft table, but are not also Aircraft IDs of 5 or more in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6sbwv_5.png", "TableImg_Jnl0m_4.png"], "original_data_index": 9229, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the IDs of drivers who are drivers but not school bus drivers, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T0eyr_12.png", "TableImg_9pljg_5.png"], "original_data_index": 9230, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the names of all feature types other than 'Amenity, eg Pool.'?", "answer": {"columns": ["feature_type_name"], "index": [0, 1], "data": [["Securiyt, eg Burglar Alarm."], ["Securiyt, eg Burglar Alarm."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_447ow_2.png", "TableImg_Hy0j7_2.png"], "original_data_index": 9233, "original_sql": "SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code != \"Amenity\" AND feature_type_name != \"Amenity, eg Pool.\" UNION ALL SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\""} {"question": "What is the ID of aircraft number 4, excluding those that are also numbered 1 or less in the airport airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fm3q7_5.png", "TableImg_W2zq3_4.png"], "original_data_index": 9231, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What is the smallest Member ID for a member who either has card number 'LCB7', or is not from Fort Campbell, Kentucky, is level 4 or higher, and is not member 9, unless that ID is also the smallest Member ID for members in branch '6' (excluding member 8) in the membership register branch table?", "answer": {"columns": ["MIN(Member_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_3m3ny_10.png", "TableImg_6ezez_8.png"], "original_data_index": 9232, "original_sql": "SELECT MIN(Member_ID) FROM member WHERE Card_Number = \"LCB7\" OR Hometown <> \"Fort Campbell, Kentucky\" AND \"Level\" >= 4 AND \"Member_ID\" <> 9 EXCEPT SELECT MIN(Member_ID) FROM membership_register_branch WHERE \"Member_ID\" <> 8 AND Branch_ID = \"6\""} {"question": "What Aircraft IDs are both less than 3 and not equal to 1, and are found in both the aircraft and airport aircraft data?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mrj3o_5.png", "TableImg_Sljcz_4.png"], "original_data_index": 9234, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the lowest draft number and highest document ID for circulation history entries with draft numbers no more than 1, as well as for document drafts that are not marked with 'k'?", "answer": {"columns": ["MIN(draft_number)", "MAX(document_id)"], "index": [0, 1], "data": [["1", "2"], ["0", "23"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_1lqfu_4.png", "TableImg_18pte_15.png"], "original_data_index": 9235, "original_sql": "SELECT MIN(draft_number), MAX(document_id) FROM Circulation_History WHERE \"draft_number\" <= 1 UNION ALL SELECT MIN(draft_number), MAX(document_id) FROM Document_Drafts WHERE draft_details <> \"k\""} {"question": "Which driver IDs in the driver table are less than 5?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O7o5v_12.png", "TableImg_R8vuj_5.png"], "original_data_index": 9238, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the aircraft IDs that are less than 5 in the aircraft table, but not less than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ezy6w_5.png", "TableImg_Bq71p_4.png"], "original_data_index": 9236, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What are the counts and titles for items with ID 5 and for items with the title 'comb'?", "answer": {"columns": ["COUNT(i_id)", "title"], "index": [0, 1], "data": [["1", "comb"], ["1", "comb"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_7i8iu_8.png", "TableImg_6k5b7_8.png"], "original_data_index": 9239, "original_sql": "SELECT COUNT(i_id), title FROM item WHERE \"i_id\" = 5 UNION ALL SELECT COUNT(i_id), title FROM item WHERE title = \"comb\""} {"question": "What are the driver IDs from 1 to 9 that are drivers but not school bus drivers, excluding school bus driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z5jbw_12.png", "TableImg_Jyf2m_5.png"], "original_data_index": 9237, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs that are greater than 7 and are listed in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7lv5m_12.png", "TableImg_T0jtc_5.png"], "original_data_index": 9240, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the student IDs for club members who are either student 1010 or not a Teaching Coordinator, as well as the student IDs for female students named Eric who are not from PIT?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3], "data": [["1001"], ["1007"], ["1008"], ["1010"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_Bh112_4.png", "TableImg_N5gk5_34.png"], "original_data_index": 9242, "original_sql": "SELECT StuID FROM Member_of_club WHERE \"StuID\" = 1010 OR Position != \"Teaching Coordinator\" UNION ALL SELECT StuID FROM Student WHERE city_code != \"PIT\" AND Sex <> \"M\" AND Fname = \"Eric\""} {"question": "What are all driver IDs besides 1, and also include driver ID 10 if it's a school bus driver ID?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8pzep_12.png", "TableImg_D5oii_5.png"], "original_data_index": 9241, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What is the smallest student ID of a student with a shellfish allergy, unless that ID is also the smallest ID of a student who is advised by advisor 2311 or higher and lives in Boston, or whose last name is Prater?", "answer": {"columns": ["MIN(StuID)"], "index": [0], "data": [["1002"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Kqwjd_59.png", "TableImg_4b2wr_34.png"], "original_data_index": 9244, "original_sql": "SELECT MIN(StuID) FROM Has_Allergy WHERE Allergy = \"Shellfish\" EXCEPT SELECT MIN(StuID) FROM Student WHERE \"Advisor\" >= 2311 AND city_code = \"BOS\" OR LName = \"Prater\""} {"question": "What are the driver IDs, other than 10, that are in the driver table but not in the school bus table as driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ybcpl_12.png", "TableImg_65nay_5.png"], "original_data_index": 9243, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the Driver IDs, other than driver ID 1 for drivers and driver ID 4 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Atumi_12.png", "TableImg_Drbpt_5.png"], "original_data_index": 9245, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the driver IDs, considering IDs less than 3 from the driver list and IDs 3 or greater from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y4x68_12.png", "TableImg_23aab_5.png"], "original_data_index": 9247, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you list all names, including repetitions, of employees who are not Jason Hobson, or are either not from Leicester and 40 or younger, or have an employee ID of 7 or less, and also include the names of shops that are not in Mariehamn, or are not managed by Mika Laurikainen, or are not in the Finnair Stadium district?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["George Chuter"], ["Lee Mears"], ["Mark Regan"], ["Jason Hobson"], ["Tim Payne"], ["Andrew Sheridan"], ["Matt Stevens"], ["Phil Vickery"], ["Steve Borthwick"], ["Louis Deacon"], ["FC Haka"], ["HJK"], ["FC Honka"], ["FC Inter"], ["FF Jaro"], ["FC KooTeePee"], ["KuPS"], ["FC Lahti"], ["IFK Mariehamn"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_Wwjx1_10.png", "TableImg_3kxw7_9.png"], "original_data_index": 9246, "original_sql": "SELECT Name FROM employee WHERE Name != \"Jason Hobson\" OR City != \"Leicester\" AND \"Age\" <= 40 OR \"Employee_ID\" <= 7 UNION ALL SELECT Name FROM shop WHERE Location != \"Mariehamn\" OR Manager_name != \"Mika Laurikainen\" OR District <> \"Finnair Stadium\""} {"question": "Show me all names that are either from branches that are not named Stanley, were not opened in 2015, and have a Branch ID of 4 or more, or are located on Valleys Place and have a membership amount of 11; or from members who have card number RCB32, are not from Red Jacket, West Virginia, and are not named Myron Pryor.", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4], "data": [["Brooke Greville"], ["Cochrane"], ["Taverner"], ["Trevard Lindley"], ["Zytogorski"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_Qw7dn_8.png", "TableImg_Phg7z_10.png"], "original_data_index": 9248, "original_sql": "SELECT Name FROM branch WHERE Name <> \"Stanley\" AND Open_year <> \"2015\" AND \"Branch_ID\" >= 4 OR Address_road = \"Valleys Place\" AND membership_amount = \"11\" UNION SELECT Name FROM member WHERE Card_Number = \"RCB32\" AND Hometown <> \"Red Jacket, West Virginia\" AND Name != \"Myron Pryor\""} {"question": "Which Driver IDs are less than 1 in the driver table, and which Driver IDs are 3 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A0zhw_12.png", "TableImg_Fnkgb_5.png"], "original_data_index": 9249, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are less than 6, excluding any that are also driver ID 7 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_33bdo_12.png", "TableImg_Vyxlk_5.png"], "original_data_index": 9251, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What Aircraft IDs are both greater than 4 and not 1, and are found in both the aircraft and airport aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uggab_5.png", "TableImg_Nb0df_4.png"], "original_data_index": 9253, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Tell me if student 1022 is listed as having an allergy other than shellfish, or if their student ID is 1003 or less, in the allergy records.", "answer": {"columns": ["StuID"], "index": [0], "data": [["1022"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_7sy6b_59.png", "TableImg_Kdttm_34.png"], "original_data_index": 9250, "original_sql": "SELECT StuID FROM Has_Allergy WHERE \"StuID\" <= 1003 OR Allergy <> \"Shellfish\" INTERSECT SELECT StuID FROM Student WHERE \"StuID\" = 1022"} {"question": "What is the combined sum of District IDs from 'district' for 'Chiniot District' with city area over 38.0 and not ID 8, and from 'store_district' where District ID is not 15 or Store ID is over 4?", "answer": {"columns": ["SUM(District_ID)"], "index": [0, 1], "data": [[""], ["18.0"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_2zheh_15.png", "TableImg_Ff1oa_5.png"], "original_data_index": 9252, "original_sql": "SELECT SUM(District_ID) FROM district WHERE \"City_Area\" > 38.0 AND \"District_ID\" != 8 AND District_name = \"Chiniot District\" UNION ALL SELECT SUM(District_ID) FROM store_district WHERE \"District_ID\" <> 15 OR \"Store_ID\" > 4"} {"question": "Can you tell me the names of shops that are either not named 'FC KooTeePee' and in 'Tehtaan kentt\u00e4', or in 'Valkeakoski', or have more than 3500 products, or are shop 5 managed by 'Mika Lehkosuo', or are not named 'HJK' and not shop 5, or don't have 1600 products, or are neither in 'Helsinki' nor in 'Magnum Areena' district?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["FC Haka"], ["HJK"], ["FC Honka"], ["FC Inter"], ["FF Jaro"], ["FC KooTeePee"], ["FC Lahti"], ["FC Haka"], ["HJK"], ["FC Honka"], ["FC Inter"], ["FF Jaro"], ["FC KooTeePee"], ["KuPS"], ["FC Lahti"], ["IFK Mariehamn"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_Rn86d_9.png", "TableImg_Bu3tt_9.png"], "original_data_index": 9256, "original_sql": "SELECT Name FROM shop WHERE Name <> \"FC KooTeePee\" AND District = \"Tehtaan kentt\u00e4\" OR Location = \"Valkeakoski\" OR \"Number_products\" > 3500 OR \"Shop_ID\" = 5 AND Manager_name = \"Mika Lehkosuo\" UNION ALL SELECT Name FROM shop WHERE Name <> \"HJK\" AND \"Shop_ID\" != 5 OR \"Number_products\" <> 1600 OR Location != \"Helsinki\" AND District <> \"Magnum Areena\""} {"question": "Could you list the Employee IDs of employees who received a bonus of 3200 or less, or a bonus in any year except 2016, but are not also employees who work in shop ID 6 or less, or are not employee ID 6, or started work in any year except 2008, or are not full-time?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["7"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_0owyf_6.png", "TableImg_L08gb_7.png"], "original_data_index": 9254, "original_sql": "SELECT Employee_ID FROM evaluation WHERE \"Bonus\" <= 3200.0 OR Year_awarded != \"2016\" EXCEPT SELECT Employee_ID FROM hiring WHERE \"Shop_ID\" <= 6 OR \"Employee_ID\" <> 6 OR Start_from != \"2008\" OR Is_full_time <> \"T\""} {"question": "What are the coach IDs and the sum of starting years in two cases: one where player ID is not 14, coach ID is not 3, or starting year is 2012 or later, and another where starting year is before 2011?", "answer": {"columns": ["Coach_ID", "SUM(Starting_year)"], "index": [0, 1], "data": [["1", "14079"], ["1", "4020"]]}, "table_names": "['player_coach' 'player_coach']", "table_image_ids": ["TableImg_Dab9g_7.png", "TableImg_R7ypo_7.png"], "original_data_index": 9257, "original_sql": "SELECT Coach_ID, SUM(Starting_year) FROM player_coach WHERE \"Player_ID\" <> 14 OR \"Coach_ID\" != 3 OR \"Starting_year\" >= 2012 UNION ALL SELECT Coach_ID, SUM(Starting_year) FROM player_coach WHERE \"Starting_year\" < 2011"} {"question": "What driver IDs are common to drivers with IDs up to 12 and school bus drivers, excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_01kvz_12.png", "TableImg_Ukof0_5.png"], "original_data_index": 9258, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What car makers are from country '1' or make model ID 25?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["amc"], ["chrysler"], ["ford"], ["gm"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Xpsh8_22.png", "TableImg_Kww8p_36.png"], "original_data_index": 9259, "original_sql": "SELECT Maker FROM car_makers WHERE Country = \"1\" UNION SELECT Maker FROM model_list WHERE \"ModelId\" = 25"} {"question": "What driver IDs are less than 12 in the driver table but not greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ij36q_12.png", "TableImg_6p3pc_5.png"], "original_data_index": 9260, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What driver IDs are both in the group of drivers with IDs up to 9, and in the group of school bus drivers excluding ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0l1lm_12.png", "TableImg_Q6h6t_5.png"], "original_data_index": 9261, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which aircraft IDs are on the aircraft list, excluding ID 4, and are also on the airport aircraft list as ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wgrpd_5.png", "TableImg_Bfau2_4.png"], "original_data_index": 9263, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the Member IDs and their highest Branch IDs for members who satisfy at least one of these conditions: either their registration year is not 2016 and they are not from branch 1, or their registration year is not 2016, or their Member ID is 3 or greater, or they are from branch 8?", "answer": {"columns": ["Member_ID", "MAX(Branch_ID)"], "index": [0, 1], "data": [["6", "6"], ["8", "8"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Qkcw6_8.png", "TableImg_Zrq7d_8.png"], "original_data_index": 9262, "original_sql": "SELECT Member_ID, MAX(Branch_ID) FROM membership_register_branch WHERE Register_Year != \"2016\" AND Branch_ID <> \"1\" UNION SELECT Member_ID, MAX(Branch_ID) FROM membership_register_branch WHERE Register_Year <> \"2016\" OR \"Member_ID\" >= 3 OR Branch_ID = \"8\""} {"question": "Which Election IDs and First Elected years are common to elections that meet either of these conditions: the first elected year is not 1994, or the delegate is not DeBoy, or district is greater than 1 and party is not 2, or counties represented is not '09.1 9A' and election ID is at most 4, or the committee is 'Appropriations'; and also elections that meet either of these conditions: the first elected year is at most 2003 and the delegate is Turner, or district is at least 3, or counties represented is '13'?", "answer": {"columns": ["Election_ID", "First_Elected"], "index": [0, 1, 2, 3], "data": [["4", "1994"], ["6", "1994"], ["7", "2006"], ["8", "1994"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Hmrfi_8.png", "TableImg_Mlkot_8.png"], "original_data_index": 9264, "original_sql": "SELECT Election_ID, First_Elected FROM election WHERE \"First_Elected\" <> 1994.0 OR Delegate != \"DeBoy, Steven J. Sr. Steven J. DeBoy, Sr.\" OR \"District\" > 1 AND \"Party\" <> 2 OR Counties_Represented <> \"09.1 9A\" AND \"Election_ID\" <= 4 OR Committee = \"Appropriations\" INTERSECT SELECT Election_ID, First_Elected FROM election WHERE \"First_Elected\" <= 2003.0 AND Delegate = \"Turner, Frank S. Frank S. Turner\" OR \"District\" >= 3 OR Counties_Represented = \"13\""} {"question": "What are the Aircraft IDs, considering IDs of 5 or less from the aircraft table and IDs greater than 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wez3u_5.png", "TableImg_3bm93_4.png"], "original_data_index": 9267, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "What driver IDs, other than 3, are also 10 or more and appear in both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N5m4e_12.png", "TableImg_Sb0kh_5.png"], "original_data_index": 9265, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What aircraft IDs are common between the aircraft and airport_aircraft tables, if we exclude ID 5 and only consider IDs up to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0k5uz_5.png", "TableImg_Itewu_4.png"], "original_data_index": 9266, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Are there any driver IDs that are 11 but not also school bus driver IDs of 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tmto1_12.png", "TableImg_1i2n9_5.png"], "original_data_index": 9270, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Give me a list of Driver IDs that are specifically ID 3 from the driver table, and also include any Driver IDs that are 4 or less from the school bus table.", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0a5xc_12.png", "TableImg_Bohv6_5.png"], "original_data_index": 9271, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the Driver IDs that are under 9 from the drivers and over 10 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Snd8u_12.png", "TableImg_I9gh9_5.png"], "original_data_index": 9273, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the minimum item ID from items with ID up to 6, and the minimum item ID from reviews that have either an item ID not equal to 7 and rank of 1 or more, or a user ID of 2, or a rating of 7 or less and an author ID less than 5?", "answer": {"columns": ["MIN(i_id)"], "index": [0, 1], "data": [["0"], ["1"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_6ekse_8.png", "TableImg_G6kl5_7.png"], "original_data_index": 9272, "original_sql": "SELECT MIN(i_id) FROM item WHERE \"i_id\" <= 6 UNION ALL SELECT MIN(i_id) FROM review WHERE \"i_id\" <> 7 AND \"rank\" >= 1 OR \"u_id\" = 2 OR \"rating\" <= 7 AND \"a_id\" < 5"} {"question": "What are the driver IDs that are not 12 from the driver table, or are 3 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_034do_12.png", "TableImg_Tn7jr_5.png"], "original_data_index": 9275, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What information do you have about flights with these characteristics: either the company ID is not 5, or the flight number is not 'M2-F1 #6', or the date is not October 8, 1965, or the ID is not 10 and the pilot is not Thompson, or the velocity is 240 or more; or the airport ID is not 4, or the altitude is 3650 and the flight number is not 'M2-F1 #71', and the ID is less than 2, and the company ID is not 6, and the pilot is not Thompson, and the date is not 'May 19, 1964', or the velocity is less than 240?", "answer": {"columns": ["airport_id", "Date", "id", "Velocity", "Vehicle_Flight_number", "company_id", "Altitude"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1", "1963-03-01 00:00:00", "1", "135", "M2-F1 #0", "2", "0"], ["2", "1963-08-16 00:00:00", "2", "240", "M2-F1 #1", "3", "3650"], ["2", "1964-05-19 00:00:00", "8", "240", "M2-F1 #39", "13", "3650"], ["2", "1963-09-03 00:00:00", "3", "240", "M2-F1 #6", "4", "3650"], ["3", "1963-10-25 00:00:00", "4", "240", "M2-F1 #13", "4", "3650"], ["4", "1964-01-29 00:00:00", "6", "240", "M2-F1 #21", "6", "3650"], ["4", "1963-11-08 00:00:00", "5", "240", "M2-F1 #14", "5", "3650"], ["4", "1965-10-08 00:00:00", "11", "240", "M2-F1 #70", "5", "3650"], ["5", "1964-03-30 00:00:00", "7", "240", "M2-F1 #33", "11", "3650"], ["6", "1965-07-16 00:00:00", "9", "240", "M2-F1 #61", "11", "3650"], ["6", "1966-03-28 00:00:00", "12", "240", "M2-F1 #71", "7", "3650"], ["8", "1966-08-04 00:00:00", "13", "240", "M2-F1 #73", "9", "3650"], ["9", "1965-08-30 00:00:00", "10", "240", "M2-F1 #64", "1", "3650"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_R8ixu_13.png", "TableImg_5p038_13.png"], "original_data_index": 9269, "original_sql": "SELECT airport_id, Date, id, Velocity, Vehicle_Flight_number, company_id, Altitude FROM flight WHERE \"company_id\" <> 5 OR Vehicle_Flight_number <> \"M2-F1 #6\" OR Date != \"October 8, 1965\" OR \"id\" != 10 AND Pilot <> \"Thompson\" OR \"Velocity\" >= 240.0 UNION SELECT airport_id, Date, id, Velocity, Vehicle_Flight_number, company_id, Altitude FROM flight WHERE \"airport_id\" <> 4 OR \"Altitude\" = 3650.0 AND Vehicle_Flight_number <> \"M2-F1 #71\" AND \"id\" < 2 AND \"company_id\" != 6 AND Pilot <> \"Thompson\" AND Date != \"May 19, 1964\" OR \"Velocity\" < 240.0"} {"question": "Which school IDs belong to schools that are either not school ID '1' or are 'Knox Community' AAA with enrollment up to 379, but are not also associated with budget data where either the school ID is less than 4 and the budgeted percentage is below 1.3, or the invested percentage is above 2.2?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_0fym0_8.png", "TableImg_Gupx6_8.png"], "original_data_index": 9274, "original_sql": "SELECT School_id FROM School WHERE School_name = \"Knox Community\" AND IHSAA_Class = \"AAA\" AND \"Enrollment\" <= 379 OR School_id <> \"1\" EXCEPT SELECT School_id FROM budget WHERE \"School_id\" < 4 AND \"total_budget_percent_budgeted\" < 1.3 OR \"total_budget_percent_invested\" > 2.2"} {"question": "What are the names of aircraft that are not 'Airbus A320' and don't have an ID of 15, as well as the names of employees who earn more than 289950 and are not named 'Mark Young'?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Boeing 747-400"], ["Boeing 737-800"], ["Airbus A340-300"], ["British Aerospace Jetstream 41"], ["Embraer ERJ-145"], ["SAAB 340"], ["Piper Archer III"], ["Tupolev 154"], ["Schwitzer 2-33"], ["Lockheed L1011"], ["Boeing 757-300"], ["Boeing 777-300"], ["Boeing 767-400ER"], ["Airbus A319"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_0tm4r_16.png", "TableImg_Yhtf2_31.png"], "original_data_index": 9278, "original_sql": "SELECT name FROM aircraft WHERE name != \"Airbus A320\" AND \"aid\" != 15 UNION ALL SELECT name FROM employee WHERE \"salary\" > 289950 AND name != \"Mark Young\""} {"question": "What are the aircraft IDs that are 4 in the aircraft table or 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ius1o_5.png", "TableImg_Xfnoj_4.png"], "original_data_index": 9276, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "What are the unique aircraft IDs from the aircraft table, other than 5, and from the airport_aircraft table, other than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Be7l9_5.png", "TableImg_Xqdsb_4.png"], "original_data_index": 9277, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the unique Aircraft IDs that are 3 or less from the aircraft list, combined with the unique Aircraft IDs that are not 3 from the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dy20r_5.png", "TableImg_5asap_4.png"], "original_data_index": 9282, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which driver IDs are drivers, but not driver ID 3, and also not driver ID 4 if driver ID 4 is a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xpfmu_12.png", "TableImg_C0d4n_5.png"], "original_data_index": 9279, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What is the average item ID for items that are not shampoo, and also the average item ID for reviews where either the reviewer ID is 5 or less, or the rating is less than 10 and the item ID is 1 or less?", "answer": {"columns": ["AVG(i_id)"], "index": [0, 1], "data": [["3.5714285714000003"], ["3.6"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Q3s68_8.png", "TableImg_W0ff8_7.png"], "original_data_index": 9281, "original_sql": "SELECT AVG(i_id) FROM item WHERE title <> \"shampoo\" UNION SELECT AVG(i_id) FROM review WHERE \"a_id\" <= 5 OR \"rating\" < 10 AND \"i_id\" <= 1"} {"question": "What are the driver IDs that are greater than 9, excluding any driver IDs that are 3 or less from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_09jrs_12.png", "TableImg_Iwlna_5.png"], "original_data_index": 9280, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which aircraft IDs, numbered 3 or lower, are listed in both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3x4pq_5.png", "TableImg_A5wdx_4.png"], "original_data_index": 9284, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What are the highest item IDs in two separate cases: one for items that are not 'pear' or have an ID of 4, and another for items that are 'pear' or have an ID not equal to 0?", "answer": {"columns": ["MAX(i_id)"], "index": [0], "data": [["7"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_Suu0y_8.png", "TableImg_5r1hh_8.png"], "original_data_index": 9285, "original_sql": "SELECT MAX(i_id) FROM item WHERE title != \"pear\" OR \"i_id\" = 4 UNION SELECT MAX(i_id) FROM item WHERE title = \"pear\" OR \"i_id\" <> 0"} {"question": "What driver IDs are drivers with ID 1 or greater, but not school bus drivers with ID 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1r7ps_12.png", "TableImg_D53ic_5.png"], "original_data_index": 9283, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What aircraft IDs, other than 5, are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y3thp_5.png", "TableImg_Vqc1c_4.png"], "original_data_index": 9287, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What property features are there for properties with IDs less than 3, together with all property features that are not 'et'?", "answer": {"columns": ["property_feature_description"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["ad"], ["dolorem"], ["earum"], ["illo"], ["hic"], ["quo"], ["odio"], ["ad"], ["vitae"], ["quo"], ["corrupti"], ["doloribus"], ["autem"], ["cumque"], ["modi"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_1vpii_15.png", "TableImg_2tez2_15.png"], "original_data_index": 9288, "original_sql": "SELECT property_feature_description FROM Other_Property_Features WHERE \"property_id\" < 3 UNION ALL SELECT property_feature_description FROM Other_Property_Features WHERE property_feature_description <> \"et\""} {"question": "What are the average shipping agent codes for documents with ID up to 17 or 'u' in other details, and for shipping agents named 'UPS'?", "answer": {"columns": ["AVG(shipping_agent_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Gk53k_15.png", "TableImg_Bwqss_5.png"], "original_data_index": 9292, "original_sql": "SELECT AVG(shipping_agent_code) FROM Documents WHERE \"document_id\" <= 17 OR other_details = \"u\" UNION SELECT AVG(shipping_agent_code) FROM Ref_Shipping_Agents WHERE shipping_agent_name = \"UPS\""} {"question": "Which driver ID, other than 1, is also driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ldq3_12.png", "TableImg_4bavo_5.png"], "original_data_index": 9286, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Is driver ID 9 both a driver other than driver 2 and a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lmeds_12.png", "TableImg_Npc0r_5.png"], "original_data_index": 9291, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are in the driver list, but not 6, and are also not among the driver IDs less than 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dxo0i_12.png", "TableImg_626ip_5.png"], "original_data_index": 9293, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Could you tell me the District ID, City Population, District Name, and Headquartered City for districts that are either district number 5, or not headquartered in Gujranwala City but have a population greater than 314617, or not headquartered in Gujrat City, or have a population of 165936 or less, or are not named Kasur District and have a city area that is not 75?", "answer": {"columns": ["District_ID", "City_Population", "District_name", "Headquartered_City"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "94620", "Attock District", "Attock City"], ["2", "134936", "Bahawalnagar District", "Bahawalnagar City"], ["3", "530438", "Bahawalpur District", "Bahawalpur City"], ["4", "89380", "Bhakkar District", "Bhakkar City"], ["5", "113524", "Chakwal District", "Chakwal City"], ["6", "219254", "Chiniot District", "Chiniot City"], ["7", "464742", "Dera Ghazi Khan District", "Dera Ghazi Khan City"], ["8", "2793721", "Faisalabad District", "Faisalabad City"], ["9", "1526168", "Gujranwala District", "Gujranwala City"], ["10", "328512", "Gujrat District", "Gujrat City"], ["11", "165936", "Hafizabad District", "Hafizabad City"], ["12", "365198", "Jhang District", "Jhang City"], ["13", "172073", "Jhelum District", "Jhelum City"], ["14", "314617", "Kasur District", "Kasur City"], ["15", "165038", "Khanewal District", "Khanewal City"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_Sjpeu_15.png", "TableImg_84h0r_15.png"], "original_data_index": 9294, "original_sql": "SELECT District_ID, City_Population, District_name, Headquartered_City FROM district WHERE \"District_ID\" = 5 OR Headquartered_City <> \"Gujranwala City\" AND \"City_Population\" > 314617.0 UNION SELECT District_ID, City_Population, District_name, Headquartered_City FROM district WHERE Headquartered_City <> \"Gujrat City\" OR \"City_Population\" <= 165936.0 OR \"District_ID\" >= 1 AND District_name <> \"Kasur District\" AND \"City_Area\" <> 75.0"} {"question": "What are the city codes of students who are not 20 years old, or who are not from 'HOU', or whose last name is not 'Wilson' and student ID is less than 1011, or whose advisor is 2311 and first name is 'Bruce' and age is 20, or whose major is greater than 600?", "answer": {"columns": ["city_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["ATL"], ["BAL"], ["BOS"], ["CHI"], ["DAL"], ["DET"], ["HKG"], ["HOU"], ["LON"], ["LOS"], ["NAR"], ["NYC"], ["PEK"], ["PHL"], ["PIT"], ["ROC"], ["SFO"], ["WAS"], ["YYZ"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_1mrji_34.png", "TableImg_Qilj4_34.png"], "original_data_index": 9295, "original_sql": "SELECT city_code FROM Student WHERE \"Age\" != 20 UNION SELECT city_code FROM Student WHERE city_code <> \"HOU\" OR LName != \"Wilson\" AND \"StuID\" < 1011 OR \"Advisor\" = 2311 AND Fname = \"Bruce\" AND \"Age\" = 20 OR \"Major\" > 600"} {"question": "What are the driver IDs that are 3 or less from the drivers and 7 or less from the school buses, without duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rzqtv_12.png", "TableImg_Ecmf7_5.png"], "original_data_index": 9296, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the unique driver IDs that are either less than 10 from the driver list or less than or equal to 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wod0e_12.png", "TableImg_721b6_5.png"], "original_data_index": 9297, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the Driver IDs, including those from drivers who are not number 4, and also those from school buses with IDs under 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jp9p8_12.png", "TableImg_Fsef5_5.png"], "original_data_index": 9290, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are common to drivers who are not driver 8 and school bus drivers with IDs of 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oo730_12.png", "TableImg_0spj1_5.png"], "original_data_index": 9299, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What driver IDs are 7 or less in the driver list, or is driver ID 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S6sgi_12.png", "TableImg_3hsdl_5.png"], "original_data_index": 9300, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the Driver IDs of drivers who are not Democrats, or of school bus drivers who are not full-time, have not worked for 10 years, and have both Driver ID and School ID greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9he10_12.png", "TableImg_Imyzl_5.png"], "original_data_index": 9301, "original_sql": "SELECT Driver_ID FROM driver WHERE Party <> \"Dem\" UNION SELECT Driver_ID FROM school_bus WHERE If_full_time != \"T\" AND \"Years_Working\" != 10 AND \"Driver_ID\" > 7 AND \"School_ID\" > 7"} {"question": "What is the average age and the year of award for employees who either received an award in 2015 and work in Sale, or are not named Jason Hobson?", "answer": {"columns": ["AVG(T1.Age)", "Year_awarded"], "index": [0], "data": [["28", "2011"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Qi4na_10.png", "TableImg_0yrqd_6.png"], "original_data_index": 9302, "original_sql": "SELECT AVG(T1.Age), T2.Year_awarded FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE Year_awarded = \"2015\" AND City = \"Sale\" OR Name <> \"Jason Hobson\""} {"question": "Which driver IDs are 2 or greater in the driver table, but are not in the school bus table, considering only school bus drivers who are not ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zeofk_12.png", "TableImg_4cq5c_5.png"], "original_data_index": 9298, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are both greater than 9 and not equal to 7, and are listed in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X5uh2_12.png", "TableImg_Z0cxh_5.png"], "original_data_index": 9306, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What Driver IDs are both greater than 3 and up to 10, and are also school bus driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Udaok_12.png", "TableImg_O3r8n_5.png"], "original_data_index": 9304, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What party information do we have for entries where the governor is not Betsy McCaughey Ross, but only when the comptroller is Alan Hevesi and the party is either Independence or has a Party ID of 4 or less?", "answer": {"columns": ["Party", "Comptroller", "Attorney_General", "Governor", "US_Senate", "Year", "Party_ID"], "index": [0, 1], "data": [["Democratic", "Alan Hevesi", "Eliot Spitzer", "Carl McCall", "(no election)", "2002", "3"], ["Independence", "Alan Hevesi", "Jeanine Pirro", "Eliot Spitzer", "Hillary Rodham Clinton", "2006", "6"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_9jpac_7.png", "TableImg_4c288_7.png"], "original_data_index": 9303, "original_sql": "SELECT Party, Comptroller, Attorney_General, Governor, US_Senate, Year, Party_ID FROM party WHERE Governor <> \"Betsy McCaughey Ross\" EXCEPT SELECT Party, Comptroller, Attorney_General, Governor, US_Senate, Year, Party_ID FROM party WHERE Comptroller <> \"Alan Hevesi\" OR Party <> \"Independence\" AND \"Party_ID\" > 4"} {"question": "What aircraft IDs are in the aircraft table, excluding ID 2, but not in the airport_aircraft table for IDs less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R0hod_5.png", "TableImg_Nlkik_4.png"], "original_data_index": 9308, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What Driver IDs are both less than 11 and greater than 9 and are listed in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X5ss2_12.png", "TableImg_0zxgy_5.png"], "original_data_index": 9309, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What driver IDs are greater than 7 from the driver table, or less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y0p7a_12.png", "TableImg_Ddbhd_5.png"], "original_data_index": 9307, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What driver IDs are less than 4 in the driver table, or greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C3ih3_12.png", "TableImg_Ujibt_5.png"], "original_data_index": 9310, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the Driver IDs, excluding driver ID 12 and school bus driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3036i_12.png", "TableImg_Kgsti_5.png"], "original_data_index": 9311, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What Aircraft IDs are 3 or greater in the aircraft table, or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wb49b_5.png", "TableImg_Ix1ae_4.png"], "original_data_index": 9312, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What driver IDs are greater than 9, excluding driver ID 10 if it's a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M9edt_12.png", "TableImg_9smp5_5.png"], "original_data_index": 9313, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the department IDs for departments that are either temporary acting or are not temporary acting and have a head ID other than 4?", "answer": {"columns": ["department_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["7"], ["11"], ["15"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_42tni_5.png", "TableImg_N4ybc_5.png"], "original_data_index": 9317, "original_sql": "SELECT department_ID FROM management WHERE temporary_acting != \"Yes\" AND \"head_ID\" <> 4 UNION SELECT department_ID FROM management WHERE temporary_acting = \"Yes\""} {"question": "Which aircraft IDs are 2 or less, but not among the aircraft IDs greater than 1 in the airport aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Radmu_5.png", "TableImg_8bj3a_4.png"], "original_data_index": 9316, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What Pet IDs do we have for student 1002 and also for pets that are either 9.3 pounds and not cats, or have an ID of 2001?", "answer": {"columns": ["PetID"], "index": [0, 1, 2, 3], "data": [["2002"], ["2003"], ["2001"], ["2003"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Ktuf3_3.png", "TableImg_Dxiui_3.png"], "original_data_index": 9318, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"StuID\" = 1002 UNION ALL SELECT PetID FROM Pets WHERE \"weight\" = 9.3 AND PetType != \"cat\" OR \"PetID\" = 2001"} {"question": "What driver ID is both greater than 1 and also equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ou86_12.png", "TableImg_716d3_5.png"], "original_data_index": 9319, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs, other than 1, are in the driver list but are not driver ID 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wb21n_12.png", "TableImg_R7c80_5.png"], "original_data_index": 9321, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What driver IDs less than 10 are in the driver table, but not driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B7egs_12.png", "TableImg_05jga_5.png"], "original_data_index": 9320, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What branch IDs are in both the membership register for member 8 or any year other than 2016, and the purchase records for members 2 or less, purchases in 2018, or branch 5?", "answer": {"columns": ["Branch_ID"], "index": [0, 1], "data": [["1"], ["6"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Lt3fp_8.png", "TableImg_Xcsz3_8.png"], "original_data_index": 9322, "original_sql": "SELECT Branch_ID FROM membership_register_branch WHERE \"Member_ID\" = 8 OR Register_Year <> \"2016\" INTERSECT SELECT Branch_ID FROM purchase WHERE \"Member_ID\" <= 2 OR Year = \"2018\" OR Branch_ID = \"5\""} {"question": "What driver IDs are either less than 1 or 4 or greater, considering driver IDs from the driver list and the school bus list respectively?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zkjcz_12.png", "TableImg_0tlcl_5.png"], "original_data_index": 9323, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the Driver IDs, excluding ID 5 from the drivers and ID 10 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V0av1_12.png", "TableImg_486ie_5.png"], "original_data_index": 9324, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the IDs of drivers who are either younger than 30 or associated with school number 1?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_10ub4_12.png", "TableImg_Iarc5_5.png"], "original_data_index": 9326, "original_sql": "SELECT Driver_ID FROM driver WHERE \"Age\" < 30 UNION SELECT Driver_ID FROM school_bus WHERE \"School_ID\" = 1"} {"question": "Which driver IDs are in the driver list, excluding driver ID 1, but not in the school bus driver list, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xeiza_12.png", "TableImg_O5pe9_5.png"], "original_data_index": 9328, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the driver IDs, excluding 11, and also driver IDs less than 3 from the school bus system?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uhz67_12.png", "TableImg_Cmywt_5.png"], "original_data_index": 9327, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What driver IDs are in both the driver and school bus lists and are at least 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4r9b3_12.png", "TableImg_Qygqf_5.png"], "original_data_index": 9325, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What is the highest bonus amount either for employees who are not employee ID 4 or if the bonus is 4000 or more, and also separately, what is the highest bonus amount for evaluations from years other than 2015 with bonuses less than 2900?", "answer": {"columns": ["MAX(Bonus)"], "index": [0, 1], "data": [["4000.0"], [""]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_Eetr4_6.png", "TableImg_Lawdv_6.png"], "original_data_index": 9329, "original_sql": "SELECT MAX(Bonus) FROM evaluation WHERE Employee_ID != \"4\" OR \"Bonus\" >= 4000.0 UNION ALL SELECT MAX(Bonus) FROM evaluation WHERE Year_awarded != \"2015\" AND \"Bonus\" < 2900.0"} {"question": "Give me a list of album IDs for albums that are either numbered under 296 or are not called 'Unplugged', but remove any IDs that are also used for playlists not called 'Audiobooks'.", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330], "data": [["4"], ["6"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_Xrxuy_347.png", "TableImg_Hw7bi_18.png"], "original_data_index": 9330, "original_sql": "SELECT id FROM albums WHERE \"id\" < 296 OR title <> \"Unplugged\" EXCEPT SELECT id FROM playlists WHERE name <> \"Audiobooks\""} {"question": "What Aircraft IDs are either 4 or greater from the aircraft table, or 1 or less from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_G3eef_5.png", "TableImg_Ky9xj_4.png"], "original_data_index": 9333, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the continents and their IDs for continents with an ID of 5 or more, or if the continent is Africa?", "answer": {"columns": ["Continent", "ContId"], "index": [0, 1], "data": [["australia", "5"], ["africa", "4"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_8q93h_5.png", "TableImg_G5nw0_5.png"], "original_data_index": 9331, "original_sql": "SELECT Continent, ContId FROM continents WHERE \"ContId\" >= 5 UNION ALL SELECT Continent, ContId FROM continents WHERE Continent = \"africa\""} {"question": "Which aircraft IDs are greater than 4 in the aircraft table but not less than or equal to 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5y9cg_5.png", "TableImg_Dxe93_4.png"], "original_data_index": 9332, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What driver IDs are not 2 from the drivers, or less than 7 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vc4ey_12.png", "TableImg_Naz93_5.png"], "original_data_index": 9334, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What driver IDs are both in the driver list and the school bus list, excluding driver ID 3 and only considering IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V6zrh_12.png", "TableImg_7lu9t_5.png"], "original_data_index": 9338, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are drivers but not school bus drivers, except for school bus driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gwjxn_12.png", "TableImg_Dmc6w_5.png"], "original_data_index": 9335, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the Driver IDs, up to 9, that are in either the driver or school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tkg56_12.png", "TableImg_M42dq_5.png"], "original_data_index": 9336, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What Driver IDs are less than 1 in the driver list or less than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yfvha_12.png", "TableImg_Cv56d_5.png"], "original_data_index": 9337, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What driver IDs are both in the driver list, excluding driver 11, and the school bus driver list, excluding driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jdao6_12.png", "TableImg_Zb267_5.png"], "original_data_index": 9341, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the driver IDs that are greater than 6 in the driver list, or greater than or equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5jc0e_12.png", "TableImg_3a62x_5.png"], "original_data_index": 9342, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What driver IDs are 10 or greater, but are not also driver IDs greater than 3 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8q1je_12.png", "TableImg_Wbykq_5.png"], "original_data_index": 9343, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What driver IDs are less than 11 from the drivers and less than 9 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M6ou8_12.png", "TableImg_Crkaf_5.png"], "original_data_index": 9344, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What driver IDs are 9 or greater in the driver list, or 7 or greater in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2pved_12.png", "TableImg_G0b3d_5.png"], "original_data_index": 9339, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What agent IDs and ranks are found in reviews that satisfy both of these conditions: either the user ID is greater than 2 or the rank is 2 or less, and also the item ID is 1 and the agent ID is not 1?", "answer": {"columns": ["a_id", "rank"], "index": [0], "data": [["2", "2"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Et8jj_7.png", "TableImg_1f4va_7.png"], "original_data_index": 9340, "original_sql": "SELECT a_id, rank FROM review WHERE \"u_id\" > 2 OR \"rank\" <= 2 INTERSECT SELECT a_id, rank FROM review WHERE \"i_id\" = 1 AND \"a_id\" <> 1"} {"question": "Could you list the names of all branches named 'Taverner' that are not branch ID 1 and are not on Brampton Road, or have a membership amount of 6, together with the names of all members who are not member ID 2?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["Braxton Kelley"], ["Corey Peters"], ["David Jones"], ["Jeremy Jarmon"], ["Johnny Williams"], ["Matt Lentz"], ["Micah Johnson"], ["Stanley"], ["Taverner"], ["Trevard Lindley"], ["Ventrell Jenkins"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_4nc2o_8.png", "TableImg_Uh7te_10.png"], "original_data_index": 9347, "original_sql": "SELECT Name FROM branch WHERE Name = \"Taverner\" AND \"Branch_ID\" <> 1 AND Address_road <> \"Brampton Road\" OR membership_amount = \"6\" UNION SELECT Name FROM member WHERE \"Member_ID\" != 2"} {"question": "What are the Country IDs that are either 15, or 6 or greater, or from countries that are not in continent 2 and are not named 'brazil'?", "answer": {"columns": ["CountryId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["15"], ["1"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_U4mra_15.png", "TableImg_Nz72s_15.png"], "original_data_index": 9346, "original_sql": "SELECT CountryId FROM countries WHERE \"CountryId\" = 15 UNION ALL SELECT CountryId FROM countries WHERE \"Continent\" <> 2 AND CountryName <> \"brazil\" OR \"CountryId\" >= 6"} {"question": "What are the driver IDs, excluding 1, that are in the driver list but not in the list of school bus driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yf3jm_12.png", "TableImg_Z8b06_5.png"], "original_data_index": 9345, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What driver IDs are both less than 4 and also listed as school bus drivers, but not driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6f0n1_12.png", "TableImg_Pbh6e_5.png"], "original_data_index": 9348, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs that are not 4 from the driver table, or are 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nd4bc_12.png", "TableImg_Qy74s_5.png"], "original_data_index": 9350, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver ID is both not 10 and is 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xy085_12.png", "TableImg_2amba_5.png"], "original_data_index": 9349, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What are the student IDs of club members who are not teaching coordinators and not in club 1, but are not among the students who meet certain other criteria?", "answer": {"columns": ["StuID"], "index": [0, 1], "data": [["1007"], ["1008"]]}, "table_names": "['Member_of_club' 'Student']", "table_image_ids": ["TableImg_Wqifz_4.png", "TableImg_Sqpho_34.png"], "original_data_index": 9353, "original_sql": "SELECT StuID FROM Member_of_club WHERE Position <> \"Teaching Coordinator\" AND \"ClubID\" != 1 EXCEPT SELECT StuID FROM Student WHERE \"Advisor\" < 2311 AND \"Age\" >= 17 AND LName <> \"Kim\" OR Sex <> \"F\" OR city_code = \"YYZ\" OR Fname != \"Mark\" AND \"StuID\" >= 1025"} {"question": "What are all the Driver IDs, including those under 10 from the driver list and those 10 or greater from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_56jnp_12.png", "TableImg_Mon8e_5.png"], "original_data_index": 9354, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What are the driver IDs of drivers who are not driver 1, but are not also school bus drivers, excluding school bus driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R7sfp_12.png", "TableImg_Xq2c5_5.png"], "original_data_index": 9352, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the unique Aircraft IDs that are either 1 or less from the aircraft table, or not equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bdglm_5.png", "TableImg_I0cs4_4.png"], "original_data_index": 9356, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What are the driver IDs that are greater than 4 from the driver table, and also the driver IDs that are less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bp4yh_12.png", "TableImg_N48tw_5.png"], "original_data_index": 9358, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What driver IDs are 5 or less, except for driver ID 9 if it is listed for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U4vk7_12.png", "TableImg_Xv73z_5.png"], "original_data_index": 9355, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "For each pet weight, can you list the Student IDs and that weight, but only if the weight is 13.4 or less, or the pet's age isn't 3, or the student ID is greater than 1002?", "answer": {"columns": ["StuID", "weight"], "index": [0, 1, 2], "data": [["1002", "9.3"], ["1001", "12.0"], ["1002", "13.4"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Rwlm1_3.png", "TableImg_Pcpyj_3.png"], "original_data_index": 9357, "original_sql": "SELECT T1.StuID, T2.weight FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID == T2.PetID GROUP BY weight HAVING weight <= 13.4 OR pet_age <> 3 OR StuID > 1002"} {"question": "What Club IDs do we have for clubs that are either not in the USA or started in 2005, as well as for coaches with an ID of 2 or less?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["1"], ["1"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_2hf5m_6.png", "TableImg_X9r1z_5.png"], "original_data_index": 9359, "original_sql": "SELECT Club_ID FROM club WHERE Region != \"USA\" OR \"Start_year\" = 2005 UNION ALL SELECT Club_ID FROM coach WHERE \"Coach_ID\" <= 2"} {"question": "What are the driver IDs that are not 6 from the driver list, or are 9 or greater from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ot0dw_12.png", "TableImg_Cz9ga_5.png"], "original_data_index": 9361, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What Aircraft IDs are either not equal to 3 from the aircraft table or are 1 or greater from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fua30_5.png", "TableImg_C0qgx_4.png"], "original_data_index": 9360, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What are the Driver IDs that are not 7 from the drivers and the Driver IDs that are 9 or greater from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oskgs_12.png", "TableImg_Yfq7g_5.png"], "original_data_index": 9362, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What driver IDs are both greater than or equal to 7 and also listed as school bus drivers, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Spfhi_12.png", "TableImg_20lf3_5.png"], "original_data_index": 9364, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What customer IDs are associated with payments made at any time other than '2018-02-15 16:38:49', or with lessons that are not at 9 o'clock, not for customer 11, not on '2018-03-21 06:48:45', not cancelled, and either have a staff ID less than 8, a vehicle ID of 1, or a price of 295.0 or less?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_I9meb_15.png", "TableImg_6is7s_15.png"], "original_data_index": 9363, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment <> \"2018-02-15 16:38:49\" UNION SELECT customer_id FROM Lessons WHERE lesson_time != \"9\" AND \"customer_id\" <> 11 AND lesson_date != \"2018-03-21 06:48:45\" AND lesson_status_code <> \"Cancelled\" AND \"staff_id\" < 8 OR \"vehicle_id\" = 1 OR \"price\" <= 295.0"} {"question": "What are the city, zip code, state or county, address ID, country, and address line 1 for addresses that are both in the USA and not address ID 5?", "answer": {"columns": ["city", "zip_postcode", "state_province_county", "address_id", "country", "line_1_number_building"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Buckridgehaven", "5", "Oregon", "4", "USA", "484 O'Hara Drive"], ["Damianfort", "61121", "Connecticut", "14", "USA", "4834 Schaefer Light Suite 947"], ["Elviebury", "63768", "Connecticut", "6", "USA", "376 Kallie Tunnel Apt. 784"], ["Ericamouth", "75074", "Louisiana", "13", "USA", "43235 Jazmin Mountain Suite 251"], ["Hagenesfurt", "22194", "Kentucky", "2", "USA", "053 Quigley Island"], ["Lake Elaina", "8938", "Georgia", "3", "USA", "00704 Zoe Alley"], ["Lake Rafaela", "80376", "WestVirginia", "8", "USA", "29085 Dejah Pine Suite 059"], ["Lockmanfurt", "34975", "Washington", "7", "USA", "56461 Baumbach Well Suite 634"], ["New Bernieceburgh", "38197", "Louisiana", "12", "USA", "7089 Mueller Forks"], ["Port Jackelinemouth", "85954", "Maine", "9", "USA", "535 Ariel Brook"], ["Port Melyssa", "14445", "Georgia", "1", "USA", "3904 Stroman Passage"], ["South Eugene", "99903", "Alabama", "11", "USA", "37698 Hahn Curve Apt. 572"], ["South Richieport", "95098", "Idaho", "10", "USA", "2291 Larkin Ports"], ["West Edmondview", "43988", "Kentucky", "15", "USA", "9260 Streich Mountain"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Sl170_15.png", "TableImg_59iip_15.png"], "original_data_index": 9367, "original_sql": "SELECT city, zip_postcode, state_province_county, address_id, country, line_1_number_building FROM Addresses WHERE \"address_id\" <> 5 INTERSECT SELECT city, zip_postcode, state_province_county, address_id, country, line_1_number_building FROM Addresses WHERE country = \"USA\""} {"question": "What aircraft IDs are greater than 1 in the aircraft table but not greater than or equal to 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y1s67_5.png", "TableImg_87p2w_4.png"], "original_data_index": 9368, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs from the driver table are greater than 1, excluding driver ID 7 if it's in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P4y3y_12.png", "TableImg_Rsvt2_5.png"], "original_data_index": 9366, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs are 3 or more in the driver table but are not greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_41inl_12.png", "TableImg_Us1tl_5.png"], "original_data_index": 9371, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Which drivers, other than driver 5, are not also school bus drivers, other than driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Anibj_12.png", "TableImg_Riycs_5.png"], "original_data_index": 9370, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are on both the list of drivers (excluding driver 11) and the list of school bus drivers (including only drivers with IDs of 3 or more)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5saii_12.png", "TableImg_Mrga4_5.png"], "original_data_index": 9372, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are 6 or greater, excluding driver ID 9 if it is associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xdbf7_12.png", "TableImg_Oofb7_5.png"], "original_data_index": 9373, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are for drivers with IDs greater than 1, but not for school bus drivers, excluding school bus driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zcjrd_12.png", "TableImg_M5oh0_5.png"], "original_data_index": 9365, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver IDs are greater than 11 that are not also school bus driver IDs, ignoring school bus driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Szbm6_12.png", "TableImg_Cg1xm_5.png"], "original_data_index": 9376, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are all the aircraft IDs for aircraft with a distance over 1805, or not named 'Boeing 777-300', or not ID 9, or for certificates with an eid of 355548984 or less, or an ID less than 2?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["16"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["2"], ["10"], ["6"], ["2"], ["10"], ["12"], ["1"], ["2"], ["3"], ["7"], ["10"], ["11"], ["12"], ["13"], ["5"], ["7"], ["2"], ["10"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["10"], ["12"], ["8"], ["9"], ["8"], ["9"], ["1"], ["1"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Rrx1p_16.png", "TableImg_5xy2z_69.png"], "original_data_index": 9377, "original_sql": "SELECT aid FROM aircraft WHERE \"distance\" > 1805 OR name <> \"Boeing 777-300\" OR \"aid\" != 9 UNION ALL SELECT aid FROM certificate WHERE \"eid\" <= 355548984 OR \"aid\" < 2"} {"question": "Which continents are neither Africa nor Europe and have a continent ID of 3 or more?", "answer": {"columns": ["Continent"], "index": [0, 1], "data": [["asia"], ["australia"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_Vyy9l_5.png", "TableImg_X7gyk_5.png"], "original_data_index": 9374, "original_sql": "SELECT Continent FROM continents WHERE Continent <> \"africa\" INTERSECT SELECT Continent FROM continents WHERE Continent != \"europe\" AND \"ContId\" >= 3"} {"question": "What are the document IDs for mailings sent to address ID 2, as well as for mailings not sent on April 1st, 1977 at 5:03 PM with a document ID under 20, or sent to address IDs of 0 or less?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["20"], ["4"], ["4"], ["7"], ["10"], ["12"], ["12"], ["12"], ["13"], ["14"], ["24"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_Uifpx_14.png", "TableImg_Dhfpz_14.png"], "original_data_index": 9375, "original_sql": "SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" = 2 UNION ALL SELECT document_id FROM Documents_Mailed WHERE mailing_date <> \"1977-04-01 17:03:50\" AND \"document_id\" < 20 OR \"mailed_to_address_id\" <= 0"} {"question": "Which driver IDs are number 5 in the driver table, but not greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4fqqc_12.png", "TableImg_Ncfva_5.png"], "original_data_index": 9378, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the names of all employees who either have an ID of 287321212 or greater and a salary other than 44740, or are not named Lisa Walker?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48], "data": [["Michael Miller"], ["Joseph Thompson"], ["Chad Stewart"], ["Haywood Kelly"], ["Angela Martinez"], ["Lawrence Sperry"], ["David Anderson"], ["Richard Jackson"], ["Linda Davis"], ["William Ward"], ["Karen Scott"], ["Larry West"], ["Dorthy Lewis"], ["Mark Young"], ["Lisa Walker"], ["Eric Cooper"], ["William Jones"], ["Milo Brooks"], ["Jennifer Thomas"], ["James Smith"], ["Mary Johnson"], ["John Williams"], ["Larry West"], ["Karen Scott"], ["Lawrence Sperry"], ["Michael Miller"], ["Patricia Jones"], ["Robert Brown"], ["Angela Martinez"], ["Joseph Thompson"], ["Linda Davis"], ["Richard Jackson"], ["William Ward"], ["Chad Stewart"], ["Betty Adams"], ["George Wright"], ["Michael Miller"], ["Dorthy Lewis"], ["Barbara Wilson"], ["William Moore"], ["Haywood Kelly"], ["Elizabeth Taylor"], ["David Anderson"], ["Jennifer Thomas"], ["Donald King"], ["Mark Young"], ["Eric Cooper"], ["William Jones"], ["Milo Brooks"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Je35w_31.png", "TableImg_Vex72_31.png"], "original_data_index": 9379, "original_sql": "SELECT name FROM employee WHERE \"eid\" >= 287321212 AND \"salary\" != 44740 UNION ALL SELECT name FROM employee WHERE name <> \"Lisa Walker\""} {"question": "What document type codes have the description 'u'?", "answer": {"columns": ["document_type_code"], "index": [0], "data": [["Paper"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Kiamw_3.png", "TableImg_7pb94_3.png"], "original_data_index": 9382, "original_sql": "SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code = \"Hard Drive\" OR document_type_description = \"u\" EXCEPT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code = \"Hard Drive\""} {"question": "What are the names of airports that are named \"El Prat Airport\" and have an ICAO code of \"BIAR\", or have an IATA code that is not \"BOS\", or have an ID of 2, or have an ID of 1 and are not named \"Logan International Airport\" and are in Bergen, or are in the United States and have an IATA code that is not \"ANC\"?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Akureyri Airport"], ["Baltimore-Washington Airport"], ["Bergen Airport"], ["Billund Airport"], ["El Prat Airport"], ["Logan International Airport"], ["National Airport"], ["Schiphol Airport"], ["Ted Stevens Airport"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Nx9hl_9.png", "TableImg_E5rx5_9.png"], "original_data_index": 9381, "original_sql": "SELECT name FROM airport WHERE name = \"El Prat Airport\" AND ICAO = \"BIAR\" OR IATA <> \"BOS\" OR \"id\" = 2 UNION SELECT name FROM airport WHERE \"id\" = 1 AND name != \"Logan International Airport\" AND City = \"Bergen\" OR Country = \"United States\" AND IATA != \"ANC\""} {"question": "Is driver ID 7 in both the driver list (excluding driver 8) and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0h2z0_12.png", "TableImg_9yssb_5.png"], "original_data_index": 9380, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What Aircraft IDs are in both the aircraft and airport aircraft lists and are greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mr35i_5.png", "TableImg_Iss5m_4.png"], "original_data_index": 9385, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which Aircraft IDs are both 5 or greater and listed in the aircraft table, and also not equal to 3 and listed in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R9cm4_5.png", "TableImg_2md4z_4.png"], "original_data_index": 9383, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What are the driver IDs that are drivers but not school bus drivers, excluding driver ID 7 and considering only school bus drivers with IDs up to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dqd2s_12.png", "TableImg_9mvte_5.png"], "original_data_index": 9386, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What driver IDs are 1 or less from the driver table, or driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wcsk6_12.png", "TableImg_1veqz_5.png"], "original_data_index": 9384, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which Driver IDs are 2 or less in the driver table, or 4 or more in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D4cpc_12.png", "TableImg_Vbqz9_5.png"], "original_data_index": 9387, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What driver IDs are greater than 9 in the drivers table, but not also driver IDs less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J0eih_12.png", "TableImg_Fobqe_5.png"], "original_data_index": 9390, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What aircraft IDs are 5 or less in the aircraft table, but not among those less than 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gh05n_5.png", "TableImg_Vehli_4.png"], "original_data_index": 9388, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What Aircraft IDs are greater than 4 and are also listed in the airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xqja6_5.png", "TableImg_Oewt8_4.png"], "original_data_index": 9391, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "For albums, what's the average ID of those that are either not named 'Arquivo Os Paralamas Do Sucesso', or are not by artist 234 and not album ID 29? And for media types, what's the average ID of those not named 'Purchased AAC audio file'?", "answer": {"columns": ["AVG(id)"], "index": [0, 1], "data": [["174.0"], ["2.75"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_Jw9la_347.png", "TableImg_D22qe_5.png"], "original_data_index": 9392, "original_sql": "SELECT AVG(id) FROM albums WHERE title <> \"Arquivo Os Paralamas Do Sucesso\" OR \"artist_id\" <> 234 AND \"id\" != 29 UNION ALL SELECT AVG(id) FROM media_types WHERE name != \"Purchased AAC audio file\""} {"question": "What are the distances, and for each distance, what is the maximum aircraft ID and the count of aircraft names, where either: (1) if we exclude aircraft ID 11, then for that distance, the count of aircraft names is 1 or the maximum aircraft ID is 8 or less, OR (2) if we exclude 'Airbus A319' and consider distances greater than 1530, then for that distance, the count of aircraft names is not 1?", "answer": {"columns": ["MAX(aid)", "COUNT(name)", "distance"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1", "1", "8430"], ["2", "1", "3383"], ["3", "1", "7120"], ["4", "1", "1502"], ["5", "1", "1530"], ["6", "1", "2128"], ["7", "1", "520"], ["8", "1", "4103"], ["9", "1", "6900"], ["10", "1", "4010"], ["12", "1", "6475"], ["13", "1", "2605"], ["14", "1", "1805"], ["15", "1", "1504"], ["16", "1", "30"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_6hn3q_16.png", "TableImg_Wzl5b_16.png"], "original_data_index": 9389, "original_sql": "SELECT MAX(aid), COUNT(name), distance FROM aircraft WHERE \"aid\" != 11 GROUP BY distance HAVING COUNT(name) = 1 OR MAX(aid) <= 8 UNION SELECT MAX(aid), COUNT(name), distance FROM aircraft WHERE name != \"Airbus A319\" AND \"distance\" > 1530 GROUP BY distance HAVING COUNT(name) <> 1"} {"question": "What are the car makers who are either not from country '4', or are 'Honda' made by Daimler Benz, in the car makers list, or are not maker ID 18, not 'pontiac' models, and have a model ID greater than 23 in the model list? Give me a list of unique maker names.", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["2"], ["6"], ["16"], ["17"], ["19"], ["20"], ["21"], ["22"], ["23"], ["amc"], ["bmw"], ["chrysler"], ["citroen"], ["daimler benz"], ["fiat"], ["ford"], ["gm"], ["hyundai"], ["kia"], ["opel"], ["peugeaut"], ["renault"], ["saab"], ["triumph"], ["volkswagen"], ["volvo"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_7quyu_22.png", "TableImg_9xou2_36.png"], "original_data_index": 9393, "original_sql": "SELECT Maker FROM car_makers WHERE Country != \"4\" OR FullName = \"Honda\" AND Maker = \"daimler benz\" UNION SELECT Maker FROM model_list WHERE \"Maker\" != 18 AND Model != \"pontiac\" AND \"ModelId\" > 23"} {"question": "Which Driver IDs are 5 or less from the driver list, or not 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qemho_12.png", "TableImg_0idg7_5.png"], "original_data_index": 9395, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the total number of customers if we combine two groups: those who either paid $5475.26 or less, or are customer ID 10, and those who meet specific criteria about their contact information and personal details?", "answer": {"columns": ["COUNT(customer_id)"], "index": [0, 1], "data": [["8"], ["15"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Cu22d_15.png", "TableImg_6m9hp_15.png"], "original_data_index": 9398, "original_sql": "SELECT COUNT(customer_id) FROM Customer_Payments WHERE \"amount_payment\" <= 5475.26 OR \"customer_id\" = 10 UNION ALL SELECT COUNT(customer_id) FROM Customers WHERE email_address <> \"nichole59@example.com\" AND cell_mobile_phone_number = \"577-584-4864\" AND date_became_customer <> \"2015-09-25 13:59:21\" AND \"customer_id\" = 5 OR first_name != \"Estelle\" OR date_of_birth != \"1991-02-10 00:42:17\""} {"question": "What are the driver IDs that are 4 or less in the driver table and are not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3aiq1_12.png", "TableImg_3w5yk_5.png"], "original_data_index": 9394, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What driver IDs are in both the driver list (excluding ID 4) and the school bus list (excluding ID 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1sk0j_12.png", "TableImg_4vs4s_5.png"], "original_data_index": 9401, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the minimum start date, average shop ID, and sum of employee IDs for employees who meet either of these conditions: their shop ID is greater than 1, or they are full-time, have an employee ID greater than 3, and their start date is not 2011? Also, calculate the same for employees with employee ID 5 and shop ID greater than or equal to 1. Combine the results.", "answer": {"columns": ["MIN(Start_from)", "AVG(Shop_ID)", "SUM(Employee_ID)"], "index": [0, 1], "data": [["2008", "5", "25"], ["2013", "5", "5"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_18jwd_7.png", "TableImg_Opsip_7.png"], "original_data_index": 9399, "original_sql": "SELECT MIN(Start_from), AVG(Shop_ID), SUM(Employee_ID) FROM hiring WHERE \"Shop_ID\" > 1 OR Is_full_time <> \"F\" AND \"Employee_ID\" > 3 AND Start_from <> \"2011\" UNION SELECT MIN(Start_from), AVG(Shop_ID), SUM(Employee_ID) FROM hiring WHERE \"Employee_ID\" = 5 AND \"Shop_ID\" >= 1"} {"question": "What driver IDs are either exactly 9 from the drivers or less than or equal to 3 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K0ex8_12.png", "TableImg_0um5j_5.png"], "original_data_index": 9400, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What are the IDs of drivers who are not driver 10 and are not school bus drivers with IDs up to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eakpk_12.png", "TableImg_16x3x_5.png"], "original_data_index": 9397, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the IDs of albums not from artist 100, and the IDs of media types other than ID 2?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_85gwm_347.png", "TableImg_Fh4k0_5.png"], "original_data_index": 9404, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" != 100 UNION SELECT id FROM media_types WHERE \"id\" != 2"} {"question": "Show me the Driver IDs that are 10 or greater from the driver list, and also include Driver ID 10 from the school bus list.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vp9nf_12.png", "TableImg_C0e5i_5.png"], "original_data_index": 9405, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What Aircraft IDs are 5 or less, but not Aircraft ID 2 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2vepk_5.png", "TableImg_Kcxy0_4.png"], "original_data_index": 9403, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What are the maximum School ID, maximum IHSAA Football Class, IHSAA Class, Enrollment, Mascot, average School Name, and maximum County for schools that meet certain conditions related to their school information?", "answer": {"columns": ["MAX(School_id)", "MAX(IHSAA_Football_Class)", "IHSAA_Class", "Enrollment", "Mascot", "AVG(School_name)", "MAX(County)"], "index": [0, 1], "data": [["", "", "", "", "", "", ""], ["8.0", "AAAA", "AAA", "620.0", "Redskins", "0.0", "75 Starke"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_Q2v99_8.png", "TableImg_Mh4ck_8.png"], "original_data_index": 9402, "original_sql": "SELECT MAX(School_id), MAX(IHSAA_Football_Class), IHSAA_Class, Enrollment, Mascot, AVG(School_name), MAX(County) FROM School WHERE School_id = \"7\" AND IHSAA_Football_Class <> \"AA\" OR County = \"46 LaPorte 71 St. Joseph\" OR Location != \"Bremen\" OR IHSAA_Class != \"AA\" AND Mascot <> \"Cavaliers\" OR School_name <> \"Triton\" UNION SELECT MAX(School_id), MAX(IHSAA_Football_Class), IHSAA_Class, Enrollment, Mascot, AVG(School_name), MAX(County) FROM School WHERE Mascot = \"Trojans\" AND School_name = \"Culver Community\" OR County <> \"46 LaPorte 71 St. Joseph\" AND School_id = \"1\" AND Location = \"Lakeville\""} {"question": "What driver IDs are both not equal to 8 and less than 10, and are present in both driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J7syp_12.png", "TableImg_Ouqcg_5.png"], "original_data_index": 9407, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What aircraft IDs, other than 4, are in the aircraft table but not in the airport_aircraft table, excluding aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_74s2f_5.png", "TableImg_Agk7v_4.png"], "original_data_index": 9406, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What driver IDs are greater than 2 from the drivers, or not equal to 9 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uy9z4_12.png", "TableImg_Pfej1_5.png"], "original_data_index": 9408, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What feature IDs do we have for available features that are not 'BurglarAlarm' and have an ID of 3, or for property features described as 'doloribus'?", "answer": {"columns": ["feature_id"], "index": [0], "data": [["3"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Lp98z_3.png", "TableImg_16k9y_15.png"], "original_data_index": 9411, "original_sql": "SELECT feature_id FROM Other_Available_Features WHERE feature_name <> \"BurglarAlarm\" AND \"feature_id\" = 3 UNION SELECT feature_id FROM Other_Property_Features WHERE property_feature_description = \"doloribus\""} {"question": "What aircraft IDs, other than 2, are in the aircraft table but not among aircraft IDs that are 1 or less in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ruj3b_5.png", "TableImg_Kj6wk_4.png"], "original_data_index": 9409, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What is the count of mailed documents with document IDs greater than 2, but only if that count is different from the count of draft copies with document IDs less than 1?", "answer": {"columns": ["COUNT(document_id)"], "index": [0], "data": [["13"]]}, "table_names": "['Documents_Mailed' 'Draft_Copies']", "table_image_ids": ["TableImg_Gstq6_14.png", "TableImg_18ttc_8.png"], "original_data_index": 9410, "original_sql": "SELECT COUNT(document_id) FROM Documents_Mailed WHERE \"document_id\" > 2 EXCEPT SELECT COUNT(document_id) FROM Draft_Copies WHERE \"document_id\" < 1"} {"question": "What are the driver IDs that are 12 in the driver table and not 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L7h5x_12.png", "TableImg_Gecxf_5.png"], "original_data_index": 9415, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the document IDs, the number of drafts, and the sum of draft details for documents where the draft number is greater than 12 and draft details is not 'v', or the document ID is greater than 20, or the draft details is not 'k'?", "answer": {"columns": ["document_id", "COUNT(draft_number)", "SUM(draft_details)"], "index": [0, 1], "data": [["1", "13", "0"], ["10", "6", "0"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Gm3pz_15.png", "TableImg_Vkrco_15.png"], "original_data_index": 9412, "original_sql": "SELECT document_id, COUNT(draft_number), SUM(draft_details) FROM Document_Drafts WHERE \"draft_number\" > 12 AND draft_details <> \"v\" OR \"document_id\" > 20 UNION SELECT document_id, COUNT(draft_number), SUM(draft_details) FROM Document_Drafts WHERE draft_details != \"k\""} {"question": "What are the counts of ranks? One count from match results where either 'Small Silver' is 10 and 'Points' is greater than 168, or 'Club ID' is 5 or less. And another count from players who are either (not ranked '3rd', female, 'Locomotive Engineer', with at least 8734 votes, and not player ID 7) or named something other than 'Fiona Shiells'.", "answer": {"columns": ["COUNT(Rank)"], "index": [0, 1], "data": [["5"], ["13"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Ppscs_6.png", "TableImg_Wmh5n_14.png"], "original_data_index": 9414, "original_sql": "SELECT COUNT(Rank) FROM match_result WHERE \"Small_Silver\" = 10 AND \"Points\" > 168 OR \"Club_ID\" <= 5 UNION SELECT COUNT(Rank) FROM player WHERE Rank <> \"3rd\" AND Gender = \"F\" AND Occupation = \"Locomotive Engineer\" AND \"Votes\" >= 8734 AND \"Player_ID\" != 7 OR Player_name <> \"Fiona Shiells\""} {"question": "Which Aircraft IDs, other than 4, are listed in the aircraft table but not in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hchg5_5.png", "TableImg_Kbjdj_4.png"], "original_data_index": 9416, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the driver IDs that are greater than 9, combined with the driver IDs that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kygub_12.png", "TableImg_Bb1on_5.png"], "original_data_index": 9417, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the Player IDs for players who are not male, are not player ID 12, and are not 'Self Employed / Consultant', unless their sponsor is not 'Provencher', or they have more than 14097 votes, or their rank is not '4th', or they live in 'Selkirk', or their name is not 'Ross Eadie', and who are also associated with a coach with an ID greater than 2, or have a starting year of 2010 or earlier if their Player ID is 1?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["6"], ["10"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_Otbnt_14.png", "TableImg_Dsz1r_7.png"], "original_data_index": 9413, "original_sql": "SELECT Player_ID FROM player WHERE \"Player_ID\" != 12 AND Gender != \"M\" AND Occupation <> \"Self Employed / Consultant\" OR Sponsor_name != \"Provencher\" OR \"Votes\" > 14097 OR Rank <> \"4th\" OR Residence = \"Selkirk\" OR Player_name != \"Ross Eadie\" INTERSECT SELECT Player_ID FROM player_coach WHERE \"Coach_ID\" > 2 OR \"Starting_year\" <= 2010 AND \"Player_ID\" = 1"} {"question": "What are the aircraft IDs, excluding 3, from the aircraft table, together with aircraft IDs less than 2 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L4bmd_5.png", "TableImg_6ao0f_4.png"], "original_data_index": 9418, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs that are 9 or greater from the driver table, or driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q6et8_12.png", "TableImg_Yfcky_5.png"], "original_data_index": 9419, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which driver IDs, other than 9, are drivers but not school bus driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5zvaa_12.png", "TableImg_6hvbd_5.png"], "original_data_index": 9422, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are 9 or greater and are drivers, but are not school bus drivers with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ui20q_12.png", "TableImg_Msyka_5.png"], "original_data_index": 9421, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Is the average maker value for car makers, not including ID 4 and 'subaru', different from the average maker value for models where maker is less than 6? If so, what is the average for those car makers?", "answer": {"columns": ["AVG(Maker)"], "index": [0], "data": [["0"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Mnnd5_22.png", "TableImg_Gu6cz_36.png"], "original_data_index": 9420, "original_sql": "SELECT AVG(Maker) FROM car_makers WHERE \"Id\" <> 4 AND Maker != \"subaru\" EXCEPT SELECT AVG(Maker) FROM model_list WHERE \"Maker\" < 6"} {"question": "What driver IDs are either exactly 2 from the driver list or less than 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I274q_12.png", "TableImg_B60cd_5.png"], "original_data_index": 9425, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What item IDs, other than 1, are in the item list but not in the list of reviewed items if the review was made by an author with ID 5 or less for item 7, or by a user with ID greater than 2?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["0"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Qhqfi_8.png", "TableImg_Phb1u_7.png"], "original_data_index": 9426, "original_sql": "SELECT i_id FROM item WHERE \"i_id\" <> 1 EXCEPT SELECT i_id FROM review WHERE \"a_id\" <= 5 AND \"i_id\" = 7 OR \"u_id\" > 2"} {"question": "What are the driver IDs, other than 4, of drivers who are not also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N0kpn_12.png", "TableImg_D87sp_5.png"], "original_data_index": 9427, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What driver IDs are both not equal to 11 from the drivers and not equal to 10 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_84c21_12.png", "TableImg_0osy7_5.png"], "original_data_index": 9428, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Show me the car maker IDs and their counts of countries, makers, and full names that meet the first set of conditions but not the second set.", "answer": {"columns": ["COUNT(Country)", "COUNT(Maker)", "Id", "COUNT(FullName)"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["1", "1", "1", "1"], ["1", "1", "2", "1"], ["1", "1", "3", "1"], ["1", "1", "4", "1"], ["1", "1", "5", "1"], ["1", "1", "6", "1"], ["1", "1", "7", "1"], ["1", "1", "8", "1"], ["1", "1", "9", "1"], ["1", "1", "11", "1"], ["1", "1", "12", "1"], ["1", "1", "13", "1"], ["1", "1", "14", "1"], ["1", "1", "15", "1"], ["1", "1", "16", "1"], ["1", "1", "17", "1"], ["1", "1", "18", "1"], ["1", "1", "19", "1"], ["1", "1", "20", "1"], ["1", "1", "21", "1"], ["1", "1", "22", "1"], ["1", "1", "23", "1"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_Fx60v_22.png", "TableImg_6bads_22.png"], "original_data_index": 9424, "original_sql": "SELECT COUNT(Country), COUNT(Maker), Id, COUNT(FullName) FROM car_makers WHERE Maker <> \"honda\" OR \"Id\" = 7 OR FullName <> \"Triumph\" OR Country <> \"1\" GROUP BY Id HAVING COUNT(Country) <= 1 EXCEPT SELECT COUNT(Country), COUNT(Maker), Id, COUNT(FullName) FROM car_makers WHERE Country <> \"2\" OR FullName <> \"Ford Motor Company\" AND Maker != \"hyundai\" AND \"Id\" > 14 GROUP BY Id HAVING COUNT(FullName) = 1 AND COUNT(Maker) <> 1"} {"question": "What are the driver IDs that are less than 11 in the driver table or less than or equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xy5nw_12.png", "TableImg_34qc9_5.png"], "original_data_index": 9430, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What driver IDs are either driver number 2, or any driver number other than 3 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["2"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rljsh_12.png", "TableImg_Jxdwy_5.png"], "original_data_index": 9432, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "List the address, membership amount, branch ID, open year, name, and city for branches that were not opened in 2013, and also list the same information for branches that are either not named 'Cochrane', or not opened in 2015, or have a Branch ID of 4 and are not on 'Valleys Place', or have a membership amount other than 1418 and are located in 'Oxford'.", "answer": {"columns": ["Address_road", "membership_amount", "Branch_ID", "Open_year", "Name", "City"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Valleys Place", "112", "1", "2001", "Alexandre", "London"], ["Oaks Crescent", "11", "2", "2009", "Popert", "London"], ["Abbey Rise", "7", "4", "2009", "Zytogorski", "Oxford"], ["Brampton Road", "1418", "5", "2012", "Cochrane", "London"], ["Cecilia Avenue", "56", "6", "2014", "Taverner", "Oxford"], ["Concord Road", "91", "7", "2015", "Saint Amant", "London"], ["Glebe Street", "31", "8", "2009", "Brooke Greville", "Oxford"], ["Valleys Place", "112", "1", "2001", "Alexandre", "London"], ["Oaks Crescent", "11", "2", "2009", "Popert", "London"], ["Abbott Street", "6", "3", "2013", "Stanley", "London"], ["Abbey Rise", "7", "4", "2009", "Zytogorski", "Oxford"], ["Brampton Road", "1418", "5", "2012", "Cochrane", "London"], ["Cecilia Avenue", "56", "6", "2014", "Taverner", "Oxford"], ["Concord Road", "91", "7", "2015", "Saint Amant", "London"], ["Glebe Street", "31", "8", "2009", "Brooke Greville", "Oxford"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Fx3pa_8.png", "TableImg_Axqzt_8.png"], "original_data_index": 9431, "original_sql": "SELECT Address_road, membership_amount, Branch_ID, Open_year, Name, City FROM branch WHERE Open_year != \"2013\" UNION ALL SELECT Address_road, membership_amount, Branch_ID, Open_year, Name, City FROM branch WHERE Name <> \"Cochrane\" OR Open_year != \"2015\" OR \"Branch_ID\" = 4 AND Address_road != \"Valleys Place\" OR membership_amount <> \"1418\" AND City = \"Oxford\""} {"question": "What are the sums of customer IDs for two groups: first, customers who became customers on '2017-11-25 01:42:26', are 'Good Customers', and have a phone number other than '417.136.2900x672', or a last name other than 'Goodwin'; and second, lessons that are 'Cancelled', have a vehicle ID not equal to 1, and a staff ID greater than 12?", "answer": {"columns": ["SUM(customer_id)"], "index": [0, 1], "data": [["8"], ["110"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_M1w0k_15.png", "TableImg_Y1yx2_15.png"], "original_data_index": 9429, "original_sql": "SELECT SUM(customer_id) FROM Customers WHERE date_became_customer = \"2017-11-25 01:42:26\" AND phone_number != \"417.136.2900x672\" AND customer_status_code = \"Good Customer\" OR last_name != \"Goodwin\" UNION SELECT SUM(customer_id) FROM Lessons WHERE lesson_status_code = \"Cancelled\" AND \"vehicle_id\" <> 1 AND \"staff_id\" > 12"} {"question": "What Driver IDs are either 8 or greater from the driver list, or less than 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5ycp3_12.png", "TableImg_P16w2_5.png"], "original_data_index": 9435, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What aircraft IDs are both greater than 2 in the aircraft table and equal to 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3emy5_5.png", "TableImg_0pwsg_4.png"], "original_data_index": 9433, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the Aircraft IDs, specifically those not equal to 5 from the aircraft table, and those less than 5 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P8sny_5.png", "TableImg_Jz3ir_4.png"], "original_data_index": 9436, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What driver IDs are common to drivers with IDs greater than 8 and school bus drivers with IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pjitq_12.png", "TableImg_M2lbf_5.png"], "original_data_index": 9434, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are 5 or greater, but are not among the school bus driver IDs that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4hwyr_12.png", "TableImg_Jigoz_5.png"], "original_data_index": 9440, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you list driver ID 2 and all driver IDs less than 4 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dczdr_12.png", "TableImg_3c1lp_5.png"], "original_data_index": 9437, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What aircraft IDs are not 1 in the aircraft table, and also include aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bfsev_5.png", "TableImg_Wh5bb_4.png"], "original_data_index": 9439, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the Aircraft IDs? Show me Aircraft ID 3 from the aircraft table and all other Aircraft IDs from the airport_aircraft table.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7xlj9_5.png", "TableImg_3sf1l_4.png"], "original_data_index": 9438, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What are the county names, county IDs, and zip codes for counties that either have a county ID greater than 3, or are not named 'Howard' and don't have a zip code of 'D21', or are not named 'Mansfield', or have a county ID of 5 and a population of 90000 or less?", "answer": {"columns": ["County_name", "County_Id", "Zip_code"], "index": [0, 1, 2, 3, 4], "data": [["Baltimore County", "2", "D08"], ["Colony", "3", "D02"], ["Howard", "1", "D21"], ["Manning", "5", "D11"], ["Mansfield", "4", "D09"]]}, "table_names": "['county' 'county']", "table_image_ids": ["TableImg_Sameu_5.png", "TableImg_8ybn6_5.png"], "original_data_index": 9442, "original_sql": "SELECT County_name, County_Id, Zip_code FROM county WHERE \"County_Id\" > 3 OR Zip_code <> \"D21\" AND County_name != \"Howard\" UNION SELECT County_name, County_Id, Zip_code FROM county WHERE County_name <> \"Mansfield\" OR \"County_Id\" = 5 AND \"Population\" <= 90000.0"} {"question": "What are the driver IDs that are greater than 11 and are drivers, but not school bus drivers with IDs of 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F3241_12.png", "TableImg_Qy7qi_5.png"], "original_data_index": 9443, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What address ID and address details are associated with address ID 3, and also have address details that are not 'IT'?", "answer": {"columns": ["address_id", "address_details"], "index": [0], "data": [["3", "ES"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_30sje_10.png", "TableImg_D8knx_10.png"], "original_data_index": 9444, "original_sql": "SELECT address_id, address_details FROM Addresses WHERE \"address_id\" = 3 INTERSECT SELECT address_id, address_details FROM Addresses WHERE address_details != \"IT\" AND \"address_id\" <> 5"} {"question": "List the aircraft IDs that are number 1 from the aircraft table, or any number except 3 from the airport aircraft table.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mz3oj_5.png", "TableImg_C6vnv_4.png"], "original_data_index": 9446, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What aircraft IDs are in the aircraft table, except for 2, or in the airport_aircraft table, except for 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cnbqg_5.png", "TableImg_Ouu1z_4.png"], "original_data_index": 9447, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What driver IDs are for drivers, excluding driver 8, that are not also school bus drivers with IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F5rux_12.png", "TableImg_Nwkdg_5.png"], "original_data_index": 9445, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the alphabetically last state in the AREA_CODE_STATE table, excluding New Jersey, that is not also the alphabetically last state in the VOTES table when we only consider votes where the contestant number is not 3, or the vote was not created on '2018-03-09 19:03:21' in California, or the vote ID is not 1?", "answer": {"columns": ["MAX(state)"], "index": [0], "data": [["WY"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Vwq8i_305.png", "TableImg_5e4sh_4.png"], "original_data_index": 9441, "original_sql": "SELECT MAX(state) FROM AREA_CODE_STATE WHERE state <> \"NJ\" EXCEPT SELECT MAX(state) FROM VOTES WHERE \"contestant_number\" != 3 OR created != \"2018-03-09 19:03:21\" AND state = \"CA\" OR \"vote_id\" != 1"} {"question": "What driver IDs are 8 or greater in the driver table but not in the school bus table if they are 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A55hu_12.png", "TableImg_03rx1_5.png"], "original_data_index": 9449, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What is the smallest document ID for documents in the Documents table if they have a receipt date of '1976-09-15 19:24:17', or are not document ID 20, or have 'UP' as the shipping agent code, or have other details not equal to 'u'? Also, what is the smallest document ID in the Draft_Copies table for drafts that are not draft number 20?", "answer": {"columns": ["MIN(document_id)"], "index": [0, 1], "data": [["1"], ["1"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_M6v7s_15.png", "TableImg_Bwigv_8.png"], "original_data_index": 9450, "original_sql": "SELECT MIN(document_id) FROM Documents WHERE receipt_date = \"1976-09-15 19:24:17\" OR \"document_id\" <> 20 OR shipping_agent_code = \"UP\" OR other_details != \"u\" UNION ALL SELECT MIN(document_id) FROM Draft_Copies WHERE \"draft_number\" <> 20"} {"question": "What driver IDs are there that are at least 8 in the driver table, or greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tmoeo_12.png", "TableImg_2hye4_5.png"], "original_data_index": 9454, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What driver IDs are there, other than 6, and also including 9 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hyyw4_12.png", "TableImg_7pt1n_5.png"], "original_data_index": 9452, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What driver IDs are both for drivers with IDs up to 4 and for school bus drivers with IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sbp14_12.png", "TableImg_W1jx2_5.png"], "original_data_index": 9456, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What driver IDs, 7 or less, are drivers but not school bus drivers, excluding school bus driver 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ddrun_12.png", "TableImg_H4w9e_5.png"], "original_data_index": 9457, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What driver IDs are for drivers who are not driver 2 and are also for school bus drivers with IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ep6vw_12.png", "TableImg_2wgs5_5.png"], "original_data_index": 9458, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs that are less than 8 or are not 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Owf05_12.png", "TableImg_B4x8f_5.png"], "original_data_index": 9460, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the driver IDs that are exactly 4 in the driver records, or 3 or greater in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Skea5_12.png", "TableImg_Kbswi_5.png"], "original_data_index": 9455, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the driver IDs that are greater than 2 in the driver list or less than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xv8j1_12.png", "TableImg_2q9ln_5.png"], "original_data_index": 9459, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Give me the driver IDs, excluding 10, that are not also driver ID 4 in the school bus records.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kmtzx_12.png", "TableImg_4ob09_5.png"], "original_data_index": 9464, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Could you list all the Club IDs that are either from clubs not started in 2000, not in the USA, and not named 'Gefle IF', or with ID 2, as well as from match results where the Club ID is less than 3, or Small Silver is 10 or less and Points is not 66, or Big Silver is less than 9, or Gold is 7?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["6"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_A8o9d_6.png", "TableImg_5xt43_6.png"], "original_data_index": 9461, "original_sql": "SELECT Club_ID FROM club WHERE \"Start_year\" != 2000 AND Region <> \"USA\" AND Club_name != \"Gefle IF\" OR \"Club_ID\" = 2 UNION ALL SELECT Club_ID FROM match_result WHERE \"Club_ID\" < 3 OR \"Small_Silver\" <= 10 AND \"Points\" != 66 OR \"Big_Silver\" < 9 OR \"Gold\" = 7"} {"question": "Is driver ID 9 present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Slhzq_12.png", "TableImg_G7enx_5.png"], "original_data_index": 9463, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Could you find the minimum airport ID and the pilot for records that are associated with either airport BLL, Bergen Airport, airports in Belgium, or airports in Akureyri, or flights with an altitude other than 3650, an airport ID other than 1, a company ID of 11 or higher, a velocity other than 240, a date of October 25, 1963, or a pilot other than Thompson?", "answer": {"columns": ["MIN(T1.id)", "Pilot"], "index": [0], "data": [["1", "Thompson"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_F3hgl_9.png", "TableImg_Gzntf_13.png"], "original_data_index": 9462, "original_sql": "SELECT MIN(T1.id), T2.Pilot FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA = \"BLL\" AND \"Altitude\" <> 3650.0 AND \"airport_id\" <> 1 OR name = \"Bergen Airport\" OR \"company_id\" >= 11 AND Country = \"Belgium\" AND \"Velocity\" <> 240.0 AND Date = \"October 25, 1963\" OR City = \"Akureyri\" OR Pilot <> \"Thompson\""} {"question": "Could you list the nationality, name, height, people ID, and birth date for all individuals who are either not person number 2, or are not Russian and 182cm or shorter, or whose name is not Roman Bragin?", "answer": {"columns": ["Nationality", "Name", "Height", "People_ID", "Birth_Date"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["Russia", "Aleksey Ostapenko", "207", "1", "May 26, 1986"], ["Bulgaria", "Teodor Salparov", "182", "2", "August 16, 1982"], ["Russia", "Roman Bragin", "187", "3", "April 17, 1987"], ["Russia", "Sergey Grankin", "193", "4", "January 22, 1987"], ["Russia", "Yevgeni Sivozhelez", "196", "5", "August 8, 1986"], ["Russia", "Maksim Botin", "194", "6", "July 14, 1983"], ["Russia", "Semen Poltavskiy", "205", "7", "February 8, 1981"], ["Russia", "Aleksey Ostapenko", "207", "1", "May 26, 1986"], ["Bulgaria", "Teodor Salparov", "182", "2", "August 16, 1982"], ["Russia", "Sergey Grankin", "193", "4", "January 22, 1987"], ["Russia", "Yevgeni Sivozhelez", "196", "5", "August 8, 1986"], ["Russia", "Maksim Botin", "194", "6", "July 14, 1983"], ["Russia", "Semen Poltavskiy", "205", "7", "February 8, 1981"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_T3mvi_7.png", "TableImg_Qnnys_7.png"], "original_data_index": 9468, "original_sql": "SELECT Nationality, Name, Height, People_ID, Birth_Date FROM people WHERE \"People_ID\" <> 2 OR Nationality != \"Russia\" AND \"Height\" <= 182.0 UNION ALL SELECT Nationality, Name, Height, People_ID, Birth_Date FROM people WHERE Name <> \"Roman Bragin\""} {"question": "What are the branch IDs from membership records not in 2017, or not branch 2, or with member ID up to 3, and also from purchase records with member ID not 1?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Aryso_8.png", "TableImg_Gnbl3_8.png"], "original_data_index": 9467, "original_sql": "SELECT Branch_ID FROM membership_register_branch WHERE Register_Year <> \"2017\" OR Branch_ID <> \"2\" OR \"Member_ID\" <= 3 UNION SELECT Branch_ID FROM purchase WHERE \"Member_ID\" != 1"} {"question": "What Aircraft IDs are both less than 4 in the aircraft table and at least 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lmnrb_5.png", "TableImg_Qyysi_4.png"], "original_data_index": 9466, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What aircraft IDs are 2 or less from the aircraft table, or exactly 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gvll8_5.png", "TableImg_Sjor4_4.png"], "original_data_index": 9471, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the unique Aircraft IDs that are not equal to 1 from the aircraft table, or are less than 1 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V3imv_5.png", "TableImg_435zf_4.png"], "original_data_index": 9472, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What address details are 'DE' from the addresses with IDs up to 4?", "answer": {"columns": ["address_details"], "index": [0, 1], "data": [["DE"], ["IT"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_Z6gr9_10.png", "TableImg_B8216_10.png"], "original_data_index": 9470, "original_sql": "SELECT address_details FROM Addresses WHERE \"address_id\" <= 4 EXCEPT SELECT address_details FROM Addresses WHERE \"address_id\" >= 1 AND address_details != \"DE\""} {"question": "Which driver IDs are in the driver table (not 5) and also in the school bus table (specifically 9)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Et3mf_12.png", "TableImg_5pi1a_5.png"], "original_data_index": 9469, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What driver IDs are in both the driver list and the school bus list, and are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kie8x_12.png", "TableImg_2z8v7_5.png"], "original_data_index": 9473, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What driver IDs are both less than 9 and also less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y6i3i_12.png", "TableImg_7hirr_5.png"], "original_data_index": 9474, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are on both the list of drivers, excluding driver 7, and the list of school bus drivers, only including IDs 1, 2, and 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kazgf_12.png", "TableImg_Mr5f0_5.png"], "original_data_index": 9475, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What Driver IDs are 12 or greater in the driver table, or less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ra4d5_12.png", "TableImg_0ul9g_5.png"], "original_data_index": 9476, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the arrival dates for flights that either departed at 6:30 AM on December 4th, 2005, or have flight ID 6, and also the arrival dates for flights with flight numbers up to 99 that cost 425.98 or more and didn't depart at 8:45 AM on December 4th, 2005?", "answer": {"columns": ["arrival_date"], "index": [0, 1, 2, 3], "data": [["04/12/2005 05:03"], ["04/12/2005 03:55"], ["04/12/2005 03:55"], ["04/12/2005 03:18"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Latqb_10.png", "TableImg_Zoa42_10.png"], "original_data_index": 9479, "original_sql": "SELECT arrival_date FROM flight WHERE departure_date = \"04/12/2005 06:30\" OR \"aid\" = 6 UNION ALL SELECT arrival_date FROM flight WHERE \"flno\" <= 99 AND \"price\" >= 425.98 AND departure_date != \"04/12/2005 08:45\""} {"question": "What driver IDs are 10 or less in the driver table, but not among the driver IDs greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6ihh7_12.png", "TableImg_T94ep_5.png"], "original_data_index": 9478, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What driver IDs are less than 8 in the driver table, or are exactly 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sl858_12.png", "TableImg_36bmo_5.png"], "original_data_index": 9477, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the aircraft IDs that are 4 in the aircraft table, and also those that are not 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1ohro_5.png", "TableImg_U659n_4.png"], "original_data_index": 9480, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What driver IDs are listed in both the driver table, excluding driver 10, and the school bus table, excluding driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ja71w_12.png", "TableImg_4k31g_5.png"], "original_data_index": 9484, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What driver IDs are either greater than 12 from the driver list or not equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kjwul_12.png", "TableImg_I0zng_5.png"], "original_data_index": 9483, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What Aircraft IDs are listed in both the aircraft table, excluding ID 5, and the airport aircraft table, specifically those IDs less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ibin_5.png", "TableImg_Ytx6b_4.png"], "original_data_index": 9481, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the driver IDs that are not 3 from the driver table, or are 9 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Onfhb_12.png", "TableImg_Dj1c8_5.png"], "original_data_index": 9482, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the driver IDs that are greater than 8, along with driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qvx51_12.png", "TableImg_Rfbz3_5.png"], "original_data_index": 9485, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What are the aircraft IDs that are less than 5 in the aircraft table, but are not aircraft ID 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P0jiy_5.png", "TableImg_Glldz_4.png"], "original_data_index": 9487, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What driver IDs are in both the driver and school bus lists and are 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9yo3t_12.png", "TableImg_Bsg3e_5.png"], "original_data_index": 9490, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What aircraft IDs, other than 1, are in the aircraft table but not in the airport_aircraft table, ignoring aircraft ID 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8qw8o_5.png", "TableImg_5vacg_4.png"], "original_data_index": 9488, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Could you list driver ID 7 from the driver records and also all driver IDs up to 9 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W776h_12.png", "TableImg_11iie_5.png"], "original_data_index": 9486, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "For each year and party, what are the minimum Attorney General and total Lieutenant Governor when either the US Senator is not Charles Schumer or the Comptroller is not Carl McCall, or when the Comptroller is not Alan Hevesi, or if the Governor is not Peter Vallone for the 'Working Families' party with Party ID up to 7, or if the Lieutenant Governor is not Jonathan Reiter?", "answer": {"columns": ["Year", "Party", "MIN(Attorney_General)", "SUM(Lieutenant_Governor)"], "index": [0], "data": [["2006", "Democratic", "Andrew Cuomo", "0"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Gqmt4_7.png", "TableImg_Ymaz7_7.png"], "original_data_index": 9489, "original_sql": "SELECT Year, Party, MIN(Attorney_General), SUM(Lieutenant_Governor) FROM party WHERE US_Senate <> \"Charles Schumer\" OR Comptroller != \"Carl McCall\" UNION SELECT Year, Party, MIN(Attorney_General), SUM(Lieutenant_Governor) FROM party WHERE Comptroller <> \"Alan Hevesi\" OR Governor != \"Peter Vallone\" AND Party = \"Working Families\" AND \"Party_ID\" <= 7 OR Lieutenant_Governor != \"Jonathan Reiter\""} {"question": "What driver IDs are 6 or greater in the driver table, but not driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1dm2h_12.png", "TableImg_8wcpx_5.png"], "original_data_index": 9493, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the Driver IDs, including all IDs except 5 from the driver list, and also ID 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tvp3p_12.png", "TableImg_Gk65p_5.png"], "original_data_index": 9495, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are less than 8 in the driver list, or less than or equal to 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7lm29_12.png", "TableImg_O7qw5_5.png"], "original_data_index": 9496, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What allergy types and allergies are there for soy (except animal allergies), shellfish, or any allergy type that isn't environmental?", "answer": {"columns": ["AllergyType", "Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["animal", "Bee Stings"], ["animal", "Cat"], ["animal", "Dog"], ["animal", "Rodent"], ["food", "Anchovies"], ["food", "Eggs"], ["food", "Milk"], ["food", "Nuts"], ["food", "Shellfish"], ["food", "Soy"], ["food", "Wheat"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_V5ku3_14.png", "TableImg_Cwkpe_14.png"], "original_data_index": 9491, "original_sql": "SELECT AllergyType, Allergy FROM Allergy_Type WHERE AllergyType != \"animal\" AND Allergy = \"Soy\" UNION SELECT AllergyType, Allergy FROM Allergy_Type WHERE Allergy = \"Shellfish\" OR AllergyType != \"environmental\""} {"question": "What Aircraft IDs are both less than 4 in the aircraft table and also equal to 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_49vdg_5.png", "TableImg_Nat5d_4.png"], "original_data_index": 9492, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the born states, head IDs, and minimum names for heads who are older than 52, as well as for heads with a head ID less than 3 and not from Alabama?", "answer": {"columns": ["born_state", "head_ID", "MIN(name)"], "index": [0, 1], "data": [["California", "6", "Billy Mayfair"], ["California", "2", "Sergio Garc\u00eda"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Oqny6_10.png", "TableImg_6k06p_10.png"], "original_data_index": 9497, "original_sql": "SELECT born_state, head_ID, MIN(name) FROM head WHERE \"age\" > 52.0 UNION ALL SELECT born_state, head_ID, MIN(name) FROM head WHERE \"head_ID\" < 3 AND born_state != \"Alabama\""} {"question": "Can you list all store IDs that are either greater than 4 or are in a district other than 15?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["5"], ["3"], ["4"], ["5"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_O1zdq_5.png", "TableImg_8bllx_5.png"], "original_data_index": 9499, "original_sql": "SELECT Store_ID FROM store_district WHERE \"Store_ID\" > 4 UNION ALL SELECT Store_ID FROM store_district WHERE \"District_ID\" != 15"} {"question": "Which driver IDs are drivers (excluding ID 3) but are not also school bus drivers with an ID of 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5a2ht_12.png", "TableImg_Fudi0_5.png"], "original_data_index": 9498, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What are the average purchase year, minimum total pounds, and member IDs for purchases that are either not from branch 5, or from members other than 2 and not in 2018, or from 2018, or not from branch 6?", "answer": {"columns": ["AVG(Year)", "MIN(Total_pounds)", "Member_ID"], "index": [0, 1], "data": [["2017.8333333333", "20.99", "4"], ["2017.875", "20.99", "4"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_0q6es_8.png", "TableImg_Wfv3q_8.png"], "original_data_index": 9494, "original_sql": "SELECT AVG(Year), MIN(Total_pounds), Member_ID FROM purchase WHERE Branch_ID <> \"5\" OR \"Member_ID\" <> 2 AND Year != \"2018\" UNION SELECT AVG(Year), MIN(Total_pounds), Member_ID FROM purchase WHERE Year = \"2018\" OR Branch_ID != \"6\""} {"question": "What driver IDs are both greater than 6 and not equal to 10, and are listed in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tsear_12.png", "TableImg_Zs1of_5.png"], "original_data_index": 9501, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What Aircraft IDs are listed in both the aircraft and airport aircraft tables, except for ID 4 in the aircraft table and ID 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vsu3j_5.png", "TableImg_Rbwxl_4.png"], "original_data_index": 9503, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs, less than 6, are drivers but not school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cfz1p_12.png", "TableImg_76dqv_5.png"], "original_data_index": 9500, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What driver ID is on the driver list, but not driver 3, and is also driver 4 on the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S68pf_12.png", "TableImg_Gjtw1_5.png"], "original_data_index": 9502, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which driver IDs, other than 12, are drivers but are not school bus drivers with IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O72rd_12.png", "TableImg_9gtc8_5.png"], "original_data_index": 9507, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the driver IDs that are both not equal to 5 in the driver list and greater than or equal to 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rvod4_12.png", "TableImg_Ei6nd_5.png"], "original_data_index": 9506, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Is driver ID 4 also listed as a school bus driver with an ID of 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3wr5p_12.png", "TableImg_Rlzbn_5.png"], "original_data_index": 9504, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What is employee number 3's lowest role code, and also, what is the role code 'PT'?", "answer": {"columns": ["MIN(role_code)"], "index": [0, 1], "data": [["PR"], ["PT"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_Ntgms_6.png", "TableImg_2hfwa_4.png"], "original_data_index": 9505, "original_sql": "SELECT MIN(role_code) FROM Employees WHERE \"employee_id\" = 3 UNION ALL SELECT MIN(role_code) FROM Roles WHERE role_code = \"PT\""} {"question": "What are the driver IDs that are greater than 2 in the driver table or less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A3w86_12.png", "TableImg_Ezh7v_5.png"], "original_data_index": 9509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What driver IDs are 10 or less from the driver list, or not 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zbnso_12.png", "TableImg_Pbkl5_5.png"], "original_data_index": 9508, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are greater than 7, but not driver ID 3 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B6ivy_12.png", "TableImg_Vm9m1_5.png"], "original_data_index": 9510, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are greater than 8 but are not also school bus driver IDs (considering only school bus driver IDs of 3 or more)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jr32r_12.png", "TableImg_87r5p_5.png"], "original_data_index": 9511, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs, other than 9, are drivers but not school bus drivers with ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1glw6_12.png", "TableImg_0olh9_5.png"], "original_data_index": 9512, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Which drivers, other than driver ID 10, are not also school bus drivers, excluding school bus driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xdrcp_12.png", "TableImg_Zmztv_5.png"], "original_data_index": 9513, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the unique Aircraft IDs that are either ID 4 from the aircraft table, or less than or equal to 5 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ywkvm_5.png", "TableImg_Ud2tz_4.png"], "original_data_index": 9516, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Which aircraft IDs are present in both the aircraft table (excluding ID 3) and the airport_aircraft table (only including IDs greater than 1)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1d6v0_5.png", "TableImg_Iz3dr_4.png"], "original_data_index": 9514, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What driver IDs are greater than 6, and also driver ID 7 if they are school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Me0rx_12.png", "TableImg_7cvz4_5.png"], "original_data_index": 9518, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the driver IDs that are both greater than 2 and less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8hsvu_12.png", "TableImg_Yf7a2_5.png"], "original_data_index": 9520, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What driver ID is 6, excluding any school bus driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F17b2_12.png", "TableImg_23b8w_5.png"], "original_data_index": 9517, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you tell me, for each city population, the count of districts that meet any of the following conditions: population is less than 113524, or district ID is not 8 and area is 25 or more, or district name is not 'Hafizabad District', or headquartered city is 'Gujranwala City' and district name is not 'Hafizabad District', or area is 22?", "answer": {"columns": ["City_Population", "COUNT(City_Area)"], "index": [0, 1], "data": [["94620", "14"], ["464742", "3"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_24985_15.png", "TableImg_Chapp_15.png"], "original_data_index": 9519, "original_sql": "SELECT City_Population, COUNT(City_Area) FROM district WHERE \"City_Population\" < 113524.0 OR \"District_ID\" <> 8 AND \"City_Area\" >= 25.0 OR District_name != \"Hafizabad District\" UNION ALL SELECT City_Population, COUNT(City_Area) FROM district WHERE Headquartered_City = \"Gujranwala City\" AND District_name != \"Hafizabad District\" OR \"City_Area\" = 22.0"} {"question": "Which driver IDs are greater than 9 and are recorded in both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ldlqs_12.png", "TableImg_Bmooj_5.png"], "original_data_index": 9522, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What is the highest rank in match results that meet certain performance criteria, unless that rank is also the highest rank among players who meet different criteria?", "answer": {"columns": ["MAX(Rank)"], "index": [0], "data": [["6"]]}, "table_names": "['match_result' 'player']", "table_image_ids": ["TableImg_Frja3_6.png", "TableImg_Fsmuu_14.png"], "original_data_index": 9521, "original_sql": "SELECT MAX(Rank) FROM match_result WHERE \"Points\" != 66 AND \"Rank\" <= 4 OR \"Small_Silver\" < 9 OR \"Club_ID\" != 5 AND \"Gold\" >= 5 AND \"Big_Silver\" <= 9 EXCEPT SELECT MAX(Rank) FROM player WHERE \"Votes\" = 9506 OR \"Player_ID\" < 1 AND Rank <> \"1st\" AND Occupation <> \"Student\""} {"question": "Which driver IDs are both greater than 8 and also appear in the school bus records with an ID of 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lih2n_12.png", "TableImg_0ggem_5.png"], "original_data_index": 9525, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What driver IDs are in both the driver and school bus records, are 10 or less, and are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vskp4_12.png", "TableImg_87qcj_5.png"], "original_data_index": 9524, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are both in the aircraft list with IDs of 2 or higher, and in the airport aircraft list with ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hx1jz_5.png", "TableImg_F0i8o_4.png"], "original_data_index": 9526, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What driver IDs are on both the list of drivers, excluding driver 12, and the list of school bus drivers, considering only those with IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lqk7c_12.png", "TableImg_Xzrnd_5.png"], "original_data_index": 9523, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What driver IDs are both 10 or less and not 3, and are listed as both a driver and a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pq526_12.png", "TableImg_Pzwie_5.png"], "original_data_index": 9527, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What driver IDs are in the driver list, except for ID 7, and are not among the school bus driver IDs that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2z0eh_12.png", "TableImg_39f47_5.png"], "original_data_index": 9528, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What driver IDs are 1 or less and are drivers, but are not school bus drivers with IDs 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0sxmg_12.png", "TableImg_Omx73_5.png"], "original_data_index": 9530, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which aircraft IDs, other than 4, are in the aircraft list but not in the airport aircraft list, excluding ID 5 from that list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Md0oe_5.png", "TableImg_Tfdbi_4.png"], "original_data_index": 9529, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which continents and their IDs are both not ID 3 and also either ID 4 or greater, or are Europe?", "answer": {"columns": ["Continent", "ContId"], "index": [0, 1, 2], "data": [["africa", "4"], ["australia", "5"], ["europe", "2"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_Eu5gs_5.png", "TableImg_81k0q_5.png"], "original_data_index": 9531, "original_sql": "SELECT Continent, ContId FROM continents WHERE \"ContId\" != 3 INTERSECT SELECT Continent, ContId FROM continents WHERE \"ContId\" >= 4 OR Continent = \"europe\""} {"question": "Which driver IDs, greater than 7, are recorded in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L502v_12.png", "TableImg_E934u_5.png"], "original_data_index": 9534, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What driver IDs are listed as both a driver, excluding driver 9, and a school bus driver, excluding driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fcp5l_12.png", "TableImg_9nmys_5.png"], "original_data_index": 9533, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What driver IDs are greater than 9 in the driver table, and which driver IDs are less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rdf0c_12.png", "TableImg_Bufb7_5.png"], "original_data_index": 9535, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What Driver IDs are in both the driver list (and are 4 or greater) and the school bus list (but not 3)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z5inl_12.png", "TableImg_Ids5c_5.png"], "original_data_index": 9536, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What driver IDs are greater than 10 in the driver table but are not also greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ajhn_12.png", "TableImg_E0moi_5.png"], "original_data_index": 9538, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Is aircraft ID 3 in the aircraft table but not also in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gqruw_5.png", "TableImg_Xv8bk_4.png"], "original_data_index": 9537, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "What Aircraft IDs are both not equal to 1 in the aircraft table and equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_78l0v_5.png", "TableImg_Kczpa_4.png"], "original_data_index": 9539, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What driver IDs are in both the driver and school bus lists and are between 4 and 8?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D0m10_12.png", "TableImg_Wrqt2_5.png"], "original_data_index": 9540, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What aircraft IDs are in the aircraft table, excluding ID 3, or in the airport aircraft table, excluding ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4gqh1_5.png", "TableImg_Ha3ef_4.png"], "original_data_index": 9541, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What Aircraft IDs are both less than 4 and greater than 2, considering the aircraft and airport aircraft information?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6i57b_5.png", "TableImg_0vyyf_4.png"], "original_data_index": 9542, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What driver IDs are both 9 or less and also not equal to 4, considering drivers and school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M1v1q_12.png", "TableImg_67kvk_5.png"], "original_data_index": 9545, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are drivers, excluding driver ID 3, but are not school bus driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_07we9_12.png", "TableImg_Mqhdz_5.png"], "original_data_index": 9544, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the Aircraft IDs that are less than or equal to 1 from the aircraft table, or not equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_90owr_5.png", "TableImg_Xfc86_4.png"], "original_data_index": 9546, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "If the number of employees who in evaluations have a bonus of 2900 or more and employee ID '2', or were awarded in a year other than 2018, is different from the number of employees in hiring who started in a year other than 2011, what is the first number? Otherwise, what is zero?", "answer": {"columns": ["COUNT(Employee_ID)"], "index": [0], "data": [["5"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Galxh_6.png", "TableImg_Fwxk9_7.png"], "original_data_index": 9543, "original_sql": "SELECT COUNT(Employee_ID) FROM evaluation WHERE \"Bonus\" >= 2900.0 AND Employee_ID = \"2\" OR Year_awarded != \"2018\" EXCEPT SELECT COUNT(Employee_ID) FROM hiring WHERE Start_from != \"2011\""} {"question": "What is the Aircraft ID that is number 3 and is listed in both the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5uheq_5.png", "TableImg_Ykt0b_4.png"], "original_data_index": 9550, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What driver IDs are not 2 from the driver list or are greater than 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ry5cu_12.png", "TableImg_Pspzd_5.png"], "original_data_index": 9549, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What driver IDs are either not 10 in the driver table or 9 or less in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kg4vo_12.png", "TableImg_4ifdn_5.png"], "original_data_index": 9547, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What driver IDs are in the driver table, excluding driver ID 7 if it is also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Idfb4_12.png", "TableImg_3gdim_5.png"], "original_data_index": 9548, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What aircraft IDs are greater than or equal to 1 from the aircraft table, or less than or equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3g2yo_5.png", "TableImg_Ssdxy_4.png"], "original_data_index": 9551, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the Driver IDs, excluding ID 3 from the driver list and ID 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vxq9m_12.png", "TableImg_Sohy7_5.png"], "original_data_index": 9552, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the average Aircraft ID and an example Aircraft ID for aircraft that are in both the aircraft and airport aircraft tables?", "answer": {"columns": ["AVG(T1.Aircraft_ID)", "Aircraft_ID"], "index": [0], "data": [["2.75", "2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_74fvr_5.png", "TableImg_Bgvzo_4.png"], "original_data_index": 9554, "original_sql": "SELECT AVG(T1.Aircraft_ID), T2.Aircraft_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "List Driver ID 3 from the driver table and all Driver IDs greater than 10 from the school bus table.", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hum2j_12.png", "TableImg_4xmy2_5.png"], "original_data_index": 9557, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What Aircraft IDs are greater than 1 or are equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mfjdz_5.png", "TableImg_6jgg1_4.png"], "original_data_index": 9558, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the IDs of drivers who are not driver 1 and are also school bus drivers with IDs up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E5w27_12.png", "TableImg_Qp115_5.png"], "original_data_index": 9560, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Find driver ID 10, but not if it's a school bus driver ID greater than 10.", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zn3yi_12.png", "TableImg_Qfo3f_5.png"], "original_data_index": 9553, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What are the Driver IDs that are 10 or more in the driver list, or greater than 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ml9sc_12.png", "TableImg_Yu3ur_5.png"], "original_data_index": 9561, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What aircraft IDs are greater than 3 in the aircraft table but not greater than 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9cme3_5.png", "TableImg_R4ufp_4.png"], "original_data_index": 9562, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "I want to find the Department ID, the count of names, the count of creation dates, and the maximum budget for departments, subject to several conditions. First, consider departments that are either not named 'Energy', or (were not created in 1979 and don't have 109832 employees and have a budget of 6.2 billion), or (are department ID 13 and not ranked 2). Then, from these, keep only those departments where (the count of creation dates is at least 1) or (the maximum budget is at least 46.2 billion and the count of names is at most 1). Finally, exclude departments that are not department ID 4 and have a ranking greater than 5, and also (their maximum budget is not 58 billion or their count of names is not 1). After applying all these conditions, what are the Department IDs and their associated counts and maximum budgets?", "answer": {"columns": ["Department_ID", "COUNT(Name)", "COUNT(Creation)", "MAX(Budget_in_Billions)"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "1", "1", "9.96"], ["2", "1", "1", "11.1"], ["3", "1", "1", "439.3"], ["4", "1", "1", "23.4"], ["5", "1", "1", "10.7"], ["11", "1", "1", "58.0"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Mamvc_15.png", "TableImg_Mr3b2_15.png"], "original_data_index": 9559, "original_sql": "SELECT Department_ID, COUNT(Name), COUNT(Creation), MAX(Budget_in_Billions) FROM department WHERE Name != \"Energy\" OR Creation <> \"1979\" AND \"Num_Employees\" <> 109832.0 AND \"Budget_in_Billions\" = 6.2 OR \"Department_ID\" = 13 AND \"Ranking\" != 2 GROUP BY Department_ID HAVING COUNT(Creation) >= 1 OR MAX(Budget_in_Billions) >= 46.2 AND COUNT(Name) <= 1 EXCEPT SELECT Department_ID, COUNT(Name), COUNT(Creation), MAX(Budget_in_Billions) FROM department WHERE \"Department_ID\" != 4 AND \"Ranking\" > 5 GROUP BY Department_ID HAVING MAX(Budget_in_Billions) <> 58.0 OR COUNT(Name) != 1"} {"question": "What driver IDs are either exactly 7 in the driver table, or 7 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3wy4u_12.png", "TableImg_Jtd8w_5.png"], "original_data_index": 9563, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What source user IDs and trust values are common to relationships where the target user is not 3, and relationships where the trust is not 10 or the target user is 4 or less?", "answer": {"columns": ["source_u_id", "trust"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "7"], ["1", "10"], ["2", "8"], ["6", "1"], ["7", "2"], ["7", "3"]]}, "table_names": "['trust' 'trust']", "table_image_ids": ["TableImg_T7ewy_9.png", "TableImg_Mi403_9.png"], "original_data_index": 9565, "original_sql": "SELECT source_u_id, trust FROM trust WHERE \"target_u_id\" <> 3 INTERSECT SELECT source_u_id, trust FROM trust WHERE \"trust\" <> 10 OR \"target_u_id\" <= 4"} {"question": "Which aircraft IDs are either 2 or less from the aircraft table, or 5 or more from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mcxip_5.png", "TableImg_8cjmj_4.png"], "original_data_index": 9567, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What driver IDs are drivers, other than 3, but not school bus drivers, other than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yjbds_12.png", "TableImg_87mri_5.png"], "original_data_index": 9566, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the Pilot, company_id, airport_id, Altitude, id, Date, and Velocity of flights that satisfy both of the following conditions: (1) they are either not on March 28, 1966, or have a low altitude, a high airport ID, and a low flight ID, or are flown by Thompson for a small company; AND (2) they have either a low velocity, a specific altitude, a low airport ID, are not on January 29, 1964, are not vehicle M2-F1 #21, are not flown by Peterson, or have a flight ID greater than 1?", "answer": {"columns": ["Pilot", "company_id", "airport_id", "Altitude", "id", "Date", "Velocity"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["Peterson", "9", "8", "3650", "13", "1966-08-04 00:00:00", "240"], ["Peterson", "11", "5", "3650", "7", "1964-03-30 00:00:00", "240"], ["Peterson", "13", "2", "3650", "8", "1964-05-19 00:00:00", "240"], ["Thompson", "1", "9", "3650", "10", "1965-08-30 00:00:00", "240"], ["Thompson", "2", "1", "0", "1", "1963-03-01 00:00:00", "135"], ["Thompson", "3", "2", "3650", "2", "1963-08-16 00:00:00", "240"], ["Thompson", "4", "2", "3650", "3", "1963-09-03 00:00:00", "240"], ["Thompson", "4", "3", "3650", "4", "1963-10-25 00:00:00", "240"], ["Thompson", "5", "4", "3650", "5", "1963-11-08 00:00:00", "240"], ["Thompson", "5", "4", "3650", "11", "1965-10-08 00:00:00", "240"], ["Thompson", "6", "4", "3650", "6", "1964-01-29 00:00:00", "240"], ["Thompson", "11", "6", "3650", "9", "1965-07-16 00:00:00", "240"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Lejxu_13.png", "TableImg_G3e7n_13.png"], "original_data_index": 9564, "original_sql": "SELECT Pilot, company_id, airport_id, Altitude, id, Date, Velocity FROM flight WHERE Date <> \"March 28, 1966\" OR \"Altitude\" <= 3650.0 AND \"airport_id\" > 4 AND \"id\" <= 2 OR \"company_id\" < 5 AND Pilot = \"Thompson\" INTERSECT SELECT Pilot, company_id, airport_id, Altitude, id, Date, Velocity FROM flight WHERE \"Velocity\" <= 240.0 OR \"Altitude\" = 3650.0 OR \"airport_id\" < 5 OR Date <> \"January 29, 1964\" OR Vehicle_Flight_number <> \"M2-F1 #21\" OR Pilot <> \"Peterson\" OR \"id\" > 1"} {"question": "What are the driver IDs that are both drivers (excluding driver ID 11) and school bus drivers (with IDs less than 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ma3qr_12.png", "TableImg_Wlqj0_5.png"], "original_data_index": 9568, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the unique driver IDs that are less than 11 for drivers and less than or equal to 4 for school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pj9mb_12.png", "TableImg_K9s5x_5.png"], "original_data_index": 9571, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which aircraft IDs, other than 2, are in the aircraft table but not among aircraft IDs greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ucn4f_5.png", "TableImg_251vk_4.png"], "original_data_index": 9570, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Which driver IDs are in both the driver list (excluding ID 12) and the school bus list (excluding ID 9)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y0pw0_12.png", "TableImg_7zn75_5.png"], "original_data_index": 9573, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is Driver ID 7 from the driver table, and what are the Driver IDs other than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E2j3c_12.png", "TableImg_Kpab8_5.png"], "original_data_index": 9574, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which aircraft IDs are in the aircraft list with IDs of 1 or greater, but are not in the airport aircraft list, ignoring aircraft ID 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fzlcd_5.png", "TableImg_Xg1kj_4.png"], "original_data_index": 9569, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which driver IDs under 10 are drivers but not school bus drivers, excluding driver ID 3 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5y7gn_12.png", "TableImg_C178a_5.png"], "original_data_index": 9572, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which aircraft IDs are in the aircraft table, other than 3, but are not among the aircraft IDs less than 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_By3rl_5.png", "TableImg_G1zbj_4.png"], "original_data_index": 9575, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are all the shipping agent codes for documents that are currently marked as 'working' and are not 'Hard Drive' type, or were received on May 31, 1996, along with the shipping agent codes from the reference list where the code is not 'AL' or the name is not 'Fedex'?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["UP"], ["SH"], ["US"], ["UP"], ["FE"], ["UP"], ["UP"], ["US"], ["AL"], ["FE"], ["SH"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_W3a89_15.png", "TableImg_Ikhhh_5.png"], "original_data_index": 9576, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE document_status_code = \"working\" AND document_type_code <> \"Hard Drive\" OR receipt_date = \"1996-05-31 06:51:58\" UNION ALL SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code <> \"AL\" OR shipping_agent_name <> \"Fedex\""} {"question": "What driver IDs are both greater than 1 and also are school bus driver IDs that are 10 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cxa87_12.png", "TableImg_0wbd4_5.png"], "original_data_index": 9577, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are drivers, except for driver 12, but are not also school bus drivers with IDs less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Obzgb_12.png", "TableImg_Ctw12_5.png"], "original_data_index": 9578, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are listed in both the driver and school bus records and are number 3 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F4nry_12.png", "TableImg_8etah_5.png"], "original_data_index": 9580, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are 11 or less in the driver table, or less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qo1su_12.png", "TableImg_Gh38k_5.png"], "original_data_index": 9582, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are drivers, except for ID 5, and also drive school buses, except for ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8a9et_12.png", "TableImg_9qrlq_5.png"], "original_data_index": 9581, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the Club IDs for members who are either presidents, in clubs with an ID of 4 or less, or have a student ID of 1008, or have a student ID of 1007 or greater?", "answer": {"columns": ["ClubID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_Gdtmc_4.png", "TableImg_Tky5u_4.png"], "original_data_index": 9583, "original_sql": "SELECT ClubID FROM Member_of_club WHERE Position = \"President\" OR \"ClubID\" <= 4 OR \"StuID\" = 1008 UNION SELECT ClubID FROM Member_of_club WHERE \"StuID\" >= 1007"} {"question": "Which driver IDs from the driver table are not ID 2, and also not ID 3 if ID 3 is a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nlv2e_12.png", "TableImg_Wajzl_5.png"], "original_data_index": 9579, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you list the arrival date, destination, distance, origin, airline ID, and flight number for all flights that satisfy these two conditions: first, the flight is either not from Los Angeles, or doesn't arrive at 11:10 AM on April 12, 2005, or costs less than 202.45, or is a short flight with a low flight number, or is not going to Los Angeles; and second, the flight either doesn't arrive at 3:18 AM on April 12, 2005, or departs at 7:03 AM on April 12, 2005?", "answer": {"columns": ["arrival_date", "destination", "distance", "origin", "aid", "flno"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["04/12/2005 03:55", "Tokyo", "5478", "Los Angeles", "9", "2"], ["04/12/2005 05:03", "Boston", "2606", "Los Angeles", "6", "387"], ["04/12/2005 07:05", "Dallas", "1251", "Los Angeles", "2", "346"], ["04/12/2005 08:45", "Chicago", "1749", "Los Angeles", "3", "13"], ["04/12/2005 09:40", "Washington D.C.", "2308", "Los Angeles", "1", "99"], ["04/12/2005 10:03", "Los Angeles", "1749", "Chicago", "9", "76"], ["04/12/2005 11:10", "Sydney", "7487", "Los Angeles", "3", "7"], ["04/12/2005 11:15", "Honolulu", "2551", "Los Angeles", "7", "33"], ["04/12/2005 12:02", "New York", "802", "Chicago", "10", "68"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_B7bv5_10.png", "TableImg_5pj9d_10.png"], "original_data_index": 9584, "original_sql": "SELECT arrival_date, destination, distance, origin, aid, flno FROM flight WHERE origin != \"Los Angeles\" OR arrival_date != \"04/12/2005 11:10\" OR \"price\" < 202.45 OR \"distance\" <= 1749 AND \"flno\" < 7 OR destination <> \"Los Angeles\" INTERSECT SELECT arrival_date, destination, distance, origin, aid, flno FROM flight WHERE arrival_date <> \"04/12/2005 03:18\" OR departure_date = \"04/12/2005 07:03\""} {"question": "What are the details and IDs of all vehicles, excluding vans with vehicle ID 2?", "answer": {"columns": ["vehicle_details", "vehicle_id"], "index": [0, 1, 2, 3], "data": [["Truck", "2"], ["Car", "3"], ["Van", "1"], ["Car", "3"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Nl653_3.png", "TableImg_Cziru_3.png"], "original_data_index": 9585, "original_sql": "SELECT vehicle_details, vehicle_id FROM Vehicles WHERE vehicle_details <> \"Van\" OR \"vehicle_id\" = 3 UNION ALL SELECT vehicle_details, vehicle_id FROM Vehicles WHERE \"vehicle_id\" != 2"} {"question": "What driver IDs are in both the driver list (excluding driver 4) and the school bus list (excluding driver 7)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hdrp8_12.png", "TableImg_Qlxpj_5.png"], "original_data_index": 9586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What is the average employee ID for each bonus amount, excluding 3000, but only for bonus amounts awarded outside of 2011, or given to employees named Matt Stevens who are older than 23?", "answer": {"columns": ["AVG(T1.Employee_ID)", "Employee_ID"], "index": [0, 1, 2], "data": [["1.0", "1"], ["4.3333333333", "2"], ["10.0", "10"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Covju_10.png", "TableImg_Ynr8k_6.png"], "original_data_index": 9587, "original_sql": "SELECT AVG(T1.Employee_ID), T2.Employee_ID FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE \"Bonus\" <> 3000.0 GROUP BY Bonus HAVING Year_awarded <> \"2011\" OR Name = \"Matt Stevens\" AND Age > 23"} {"question": "What Aircraft IDs are less than 5 from the aircraft table, or not equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qv2v4_5.png", "TableImg_Blir5_4.png"], "original_data_index": 9589, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Which Aircraft IDs are both ID 3 in the aircraft table and present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hra86_5.png", "TableImg_Izels_4.png"], "original_data_index": 9590, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the role code, employee name, employee ID, and other details for employees who are not in the 'ED' role, or are not named 'Erling' and not employee ID 3, or whose other details are not 'b'?", "answer": {"columns": ["role_code", "employee_name", "employee_id", "other_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["ED", "Koby", "1", "h"], ["ED", "Kenyon", "2", "f"], ["PR", "Haley", "3", "b"], ["PT", "Clemens", "5", "b"], ["PT", "Jordyn", "7", "v"], ["MG", "Erling", "8", "u"], ["ED", "Koby", "1", "h"], ["ED", "Kenyon", "2", "f"], ["PT", "Jordyn", "7", "v"], ["MG", "Erling", "8", "u"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_Z62ck_6.png", "TableImg_2lszq_6.png"], "original_data_index": 9588, "original_sql": "SELECT role_code, employee_name, employee_id, other_details FROM Employees WHERE role_code <> \"ED\" OR employee_name != \"Erling\" AND \"employee_id\" != 3 UNION ALL SELECT role_code, employee_name, employee_id, other_details FROM Employees WHERE other_details != \"b\""} {"question": "What are the driver IDs, including those that are not 3 from the driver list and those that are 3 or greater from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G41t0_12.png", "TableImg_Uejs6_5.png"], "original_data_index": 9592, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the employee IDs that are in circulation history records with draft number 2 and document ID not 20, or employee ID not 2, or copy number 15, and also belong to employees who are not 'u' in other details, have role code 'ED', are not named 'Kenyon', and are not employee ID 8?", "answer": {"columns": ["employee_id"], "index": [0], "data": [["1"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_1beu2_4.png", "TableImg_Ytfin_6.png"], "original_data_index": 9593, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"draft_number\" = 2 AND \"document_id\" != 20 OR \"employee_id\" != 2 OR \"copy_number\" = 15 INTERSECT SELECT employee_id FROM Employees WHERE other_details <> \"u\" AND role_code = \"ED\" AND employee_name != \"Kenyon\" AND \"employee_id\" != 8"} {"question": "What Aircraft IDs are in the aircraft list, excluding ID 3, but not in the airport aircraft list, excluding ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ws0e7_5.png", "TableImg_Ebb6g_4.png"], "original_data_index": 9591, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me the customer address ID, email address, and customer ID for customers who are either not customer ID 10 or have an outstanding amount less than 1000, but exclude those who also meet either of these conditions: they are not at customer address 12, and their email is not karina.carroll@example.net, and their outstanding amount is less than 9443; or their customer ID is less than 9 and their phone number is (729)396-4354x3576?", "answer": {"columns": ["customer_address_id", "email_address", "customer_id"], "index": [0, 1, 2, 3], "data": [["10", "hilario.sporer@example.org", "3"], ["10", "kroberts@example.org", "8"], ["12", "mariela28@example.org", "9"], ["13", "karina.carroll@example.net", "11"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_3tol3_15.png", "TableImg_Fuv7c_15.png"], "original_data_index": 9594, "original_sql": "SELECT customer_address_id, email_address, customer_id FROM Customers WHERE \"customer_id\" <> 10 OR \"amount_outstanding\" < 1000.0 EXCEPT SELECT customer_address_id, email_address, customer_id FROM Customers WHERE \"customer_address_id\" <> 12 AND email_address != \"karina.carroll@example.net\" AND \"amount_outstanding\" < 9443.0 OR \"customer_id\" < 9 AND phone_number = \"(729)396-4354x3576\""} {"question": "What driver IDs are both greater than 7 and also school bus driver IDs, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7uggk_12.png", "TableImg_Iiogc_5.png"], "original_data_index": 9596, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Is driver ID 11 a driver but not a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1z1so_12.png", "TableImg_Ab4x1_5.png"], "original_data_index": 9595, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs, excluding driver ID 4 if it is also a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kof7d_12.png", "TableImg_47qi2_5.png"], "original_data_index": 9599, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the aircraft IDs that are greater than 1 from the aircraft table, together with aircraft ID 1 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4r7tl_5.png", "TableImg_Fz6vh_4.png"], "original_data_index": 9601, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What aircraft IDs, up to 4, are in the aircraft table but not in the airport aircraft table, if we disregard aircraft ID 5 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uu1hn_5.png", "TableImg_Zh81z_4.png"], "original_data_index": 9602, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What driver IDs are there, excluding ID 2 from drivers and ID 4 from school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ku08c_12.png", "TableImg_9dszd_5.png"], "original_data_index": 9598, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are 9 or less from the driver table, or less than 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gvroq_12.png", "TableImg_G07ln_5.png"], "original_data_index": 9597, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which drivers have an ID of 1 but are not listed as school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1uo01_12.png", "TableImg_Cfse3_5.png"], "original_data_index": 9604, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What are the minimum document IDs and draft numbers from the circulation history records that meet certain criteria (being document 20, or not draft 2, or having copy number 10 or more and not employee 2), but are not among those from document drafts that meet other criteria (not 'm' draft details or not document 1)?", "answer": {"columns": ["MIN(document_id)", "draft_number"], "index": [0], "data": [["2", "1"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_745xk_4.png", "TableImg_Imqbd_15.png"], "original_data_index": 9603, "original_sql": "SELECT MIN(document_id), draft_number FROM Circulation_History WHERE \"document_id\" = 20 OR \"draft_number\" != 2 OR \"copy_number\" >= 10 AND \"employee_id\" != 2 EXCEPT SELECT MIN(document_id), draft_number FROM Document_Drafts WHERE draft_details <> \"m\" OR \"document_id\" != 1"} {"question": "For schools that are either not school ID 4 and have a total budget percentage budgeted below 1.3, or have a total budget percentage invested of 2.0 or less, what are their total budget percentage invested, budgeted amount, total budget percentage budgeted, budget invested percentage, and school ID?", "answer": {"columns": ["total_budget_percent_invested", "Budgeted", "total_budget_percent_budgeted", "Budget_invested_percent", "School_id"], "index": [0, 1, 2, 3], "data": [["2", "3666", "2", "159.3", "2"], ["2", "4979", "2", "42.9", "2"], ["2", "6803", "2", "122.5", "2"], ["2", "6803", "2", "146.9", "3"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Wcyxw_8.png", "TableImg_63mal_8.png"], "original_data_index": 9606, "original_sql": "SELECT total_budget_percent_invested, Budgeted, total_budget_percent_budgeted, Budget_invested_percent, School_id FROM budget WHERE \"School_id\" <> 4 AND \"total_budget_percent_budgeted\" < 1.3 UNION SELECT total_budget_percent_invested, Budgeted, total_budget_percent_budgeted, Budget_invested_percent, School_id FROM budget WHERE \"total_budget_percent_invested\" <= 2.0"} {"question": "Which driver IDs are 7 or less and are not also driver IDs greater than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dg5ne_12.png", "TableImg_Dsq8p_5.png"], "original_data_index": 9607, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the driver IDs that are drivers, excluding driver ID 10, and are not school bus drivers with IDs 4 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H5v2k_12.png", "TableImg_Quaor_5.png"], "original_data_index": 9605, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the names of clubs that are not in France, or that started in 2011, or whose Club ID is 5 or greater?", "answer": {"columns": ["Club_name"], "index": [0, 1, 2, 3, 4, 5], "data": [["AIK"], ["BK H\u00e4cken"], ["Djurg\u00e5rdens IF"], ["Gefle IF"], ["Halmstads BK"], ["Helsingborgs IF"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_A4p3c_6.png", "TableImg_6m1gn_6.png"], "original_data_index": 9608, "original_sql": "SELECT Club_name FROM club WHERE Region <> \"France\" UNION SELECT Club_name FROM club WHERE \"Start_year\" = 2011 OR \"Club_ID\" >= 5"} {"question": "What are the Driver IDs that are 10 or greater from the driver list, or are not 9 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ez68_12.png", "TableImg_5it43_5.png"], "original_data_index": 9611, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which Driver IDs are 6 or less in the driver table and not greater than 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0q3ze_12.png", "TableImg_48nwo_5.png"], "original_data_index": 9609, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "List all document IDs from the Circulation History table where the document ID is 1 or less, or the employee ID is greater than 1 and the draft number is greater than 20, together with all document IDs from the Documents Mailed table where the mailed to address ID is greater than 7, or the mailing date is not May 24, 1993, or the document ID is not 4.", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["4"], ["4"], ["7"], ["10"], ["12"], ["12"], ["12"], ["13"], ["14"], ["20"], ["20"], ["23"], ["24"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_4vf9v_4.png", "TableImg_B703m_14.png"], "original_data_index": 9610, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"document_id\" <= 1 OR \"employee_id\" > 1 AND \"draft_number\" > 20 UNION ALL SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" > 7 OR mailing_date != \"1993-05-24 22:13:48\" OR \"document_id\" <> 4"} {"question": "Which driver IDs are 8 or less from the drivers, but not greater than 7 from the school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8mb2g_12.png", "TableImg_529eg_5.png"], "original_data_index": 9613, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What driver IDs are greater than 3, and also driver ID 10, from the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Amw6w_12.png", "TableImg_8y4ux_5.png"], "original_data_index": 9614, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs, from 8 to 12, are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q8i83_12.png", "TableImg_86z7w_5.png"], "original_data_index": 9616, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the Country IDs and Continents of countries that are not in continent number 2, unless their Country ID is less than 5 and their name is not 'italy', or they are in continent number 2?", "answer": {"columns": ["CountryId", "Continent"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["8", "3"], ["10", "4"], ["11", "5"], ["12", "5"], ["13", "4"], ["14", "1"], ["15", "1"]]}, "table_names": "['countries' 'countries']", "table_image_ids": ["TableImg_7802x_15.png", "TableImg_F89z8_15.png"], "original_data_index": 9617, "original_sql": "SELECT CountryId, Continent FROM countries WHERE \"Continent\" <> 2 EXCEPT SELECT CountryId, Continent FROM countries WHERE \"CountryId\" < 5 AND CountryName <> \"italy\" OR \"Continent\" = 2"} {"question": "What aircraft IDs are 4 or higher, but not in the airport aircraft list unless that ID is 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_55t75_5.png", "TableImg_Vy1m1_4.png"], "original_data_index": 9612, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What years of working are both less than 4 years, at companies other than company 11, and for people with IDs less than 7, and also either not 2 years or for people with ID 3?", "answer": {"columns": ["Year_working"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_7v3zz_5.png", "TableImg_Rjg7i_5.png"], "original_data_index": 9615, "original_sql": "SELECT Year_working FROM employment WHERE \"Year_working\" < 4 AND \"Company_ID\" != 11 AND \"People_ID\" < 7 INTERSECT SELECT Year_working FROM employment WHERE \"Year_working\" <> 2 OR \"People_ID\" = 3"} {"question": "What are the driver IDs greater than 11 from the drivers, and also driver ID 3 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R87rf_12.png", "TableImg_So4na_5.png"], "original_data_index": 9618, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What Driver IDs are not 12 from the driver list, and also what Driver IDs are less than 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ax1yf_12.png", "TableImg_Flhhi_5.png"], "original_data_index": 9621, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are in the driver table, are not 3, and are not driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M8ym1_12.png", "TableImg_T77wx_5.png"], "original_data_index": 9620, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are all the continents, including every continent except 'australia', and also the continents of countries that are either not 'brazil' and have a CountryId of 6 or less, or have a continent number less than 4?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["america"], ["europe"], ["asia"], ["africa"], ["1"], ["2"], ["2"], ["3"], ["2"], ["2"], ["2"], ["3"], ["2"], ["1"], ["1"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_7lcdg_5.png", "TableImg_4y3b3_15.png"], "original_data_index": 9619, "original_sql": "SELECT Continent FROM continents WHERE Continent <> \"australia\" UNION ALL SELECT Continent FROM countries WHERE CountryName <> \"brazil\" AND \"CountryId\" <= 6 OR \"Continent\" < 4"} {"question": "Which driver IDs from the driver table are less than 5, except for any that are also driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hrgzp_12.png", "TableImg_Reqe8_5.png"], "original_data_index": 9622, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What Driver IDs are either not 2 from the drivers, or at least 7 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rmhvz_12.png", "TableImg_Lf57m_5.png"], "original_data_index": 9625, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the Aircraft IDs that are 5 or less from the aircraft table, except for those that are 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E1tq8_5.png", "TableImg_6f4wx_4.png"], "original_data_index": 9626, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the Driver IDs that are 10 or more from the driver list, or greater than 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V8ukc_12.png", "TableImg_I3xd6_5.png"], "original_data_index": 9624, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What driver IDs are for drivers, except driver 9, but not for school bus drivers with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_057ta_12.png", "TableImg_G4f4v_5.png"], "original_data_index": 9623, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the aircraft IDs that are in both the aircraft and airport_aircraft tables, excluding aircraft ID 2 and aircraft ID 5 respectively?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iblvc_5.png", "TableImg_6kz0y_4.png"], "original_data_index": 9628, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are 5 or greater in the driver table, but are not less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E7mzv_12.png", "TableImg_Ryn0p_5.png"], "original_data_index": 9630, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which aircraft IDs are in the aircraft table, but not 2, and also not 3 if 3 is in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ri3g7_5.png", "TableImg_Qkrq5_4.png"], "original_data_index": 9627, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What aircraft IDs from the aircraft table are 5 or less, except for ID 1 if it's also in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Us2f4_5.png", "TableImg_Vig5a_4.png"], "original_data_index": 9629, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the driver IDs that are either greater than 8 or less than or equal to 10, considering driver IDs from both the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lwomb_12.png", "TableImg_9c1gr_5.png"], "original_data_index": 9633, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What Aircraft IDs are listed in both the aircraft and airport aircraft databases, considering only aircraft IDs of 1 or higher from the aircraft database and aircraft IDs of 2 or lower from the airport aircraft database?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zt87e_5.png", "TableImg_Pv026_4.png"], "original_data_index": 9632, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What information do you have about Lieutenant Governors, Years, Party IDs, US Senate positions, and Governors from before 1998, or when David Paterson was Lieutenant Governor, Eliot Spitzer was Governor, and the party was Democratic, or when there was a US Senate election or someone other than Eliot Spitzer was Attorney General?", "answer": {"columns": ["Lieutenant_Governor", "Year", "Party_ID", "US_Senate", "Governor"], "index": [0, 1, 2, 3, 4], "data": [["David Paterson", "2006", "5", "Hillary Rodham Clinton", "Eliot Spitzer"], ["David Paterson", "2006", "6", "Hillary Rodham Clinton", "Eliot Spitzer"], ["David Paterson", "2006", "7", "Hillary Rodham Clinton", "Eliot Spitzer"], ["Jonathan Reiter", "1998", "2", "Charles Schumer", "Betsy McCaughey Ross"], ["Sandra Frankel", "1998", "1", "Charles Schumer", "Peter Vallone"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_69pis_7.png", "TableImg_8uvra_7.png"], "original_data_index": 9631, "original_sql": "SELECT Lieutenant_Governor, Year, Party_ID, US_Senate, Governor FROM party WHERE Lieutenant_Governor = \"David Paterson\" AND Governor = \"Eliot Spitzer\" AND Party = \"Democratic\" OR \"Year\" < 1998.0 UNION SELECT Lieutenant_Governor, Year, Party_ID, US_Senate, Governor FROM party WHERE US_Senate <> \"(no election)\" OR Attorney_General <> \"Eliot Spitzer\""} {"question": "Which Driver IDs are 12 or more from the driver table, or are not 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qake4_12.png", "TableImg_Dy5k8_5.png"], "original_data_index": 9635, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs? Include those from the driver records that are not 5, and also include those from the school bus records that are 7 or higher.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F9041_12.png", "TableImg_Owps7_5.png"], "original_data_index": 9636, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are 12 in the driver table, but not 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mjuxv_12.png", "TableImg_Z7hst_5.png"], "original_data_index": 9637, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What property type codes are there for properties that meet a complex combination of criteria based on their features, price, address, and room count?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3, 4], "data": [["Apartment"], ["Field"], ["House"], ["Other"], ["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Ffdpn_15.png", "TableImg_1rnfc_5.png"], "original_data_index": 9634, "original_sql": "SELECT property_type_code FROM Properties WHERE shp_feature_2 != \"None\" AND fld_feature_1 != \"None\" OR \"agreed_selling_price\" > 476919.3 AND property_name <> \"parc east\" AND date_sold <> \"1973-02-24 02:56:06\" AND apt_feature_1 != \"consequatur\" OR property_address != \"2088 Bashirian Fork Suite 337 Faustinoport, MT 16771-9320\" OR shp_feature_1 != \"None\" AND apt_feature_2 != \"aut\" AND fld_feature_3 <> \"None\" AND hse_feature_2 = \"None\" OR \"room_count\" > 2 OR oth_feature_2 != \"None\" INTERSECT SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description <> \"Shop, Retail Outlet.\" OR property_type_code != \"House\""} {"question": "Could you list all Aircraft IDs that are 3 or greater from the aircraft table, along with Aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Il9ej_5.png", "TableImg_Crkfk_4.png"], "original_data_index": 9641, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What driver IDs are either not 8 from the driver table, or greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ibwqv_12.png", "TableImg_3833t_5.png"], "original_data_index": 9638, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs are drivers, other than driver ID 6, and are not among the school bus driver IDs that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Psf63_12.png", "TableImg_Flbdz_5.png"], "original_data_index": 9639, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the driver IDs that are 12 from the drivers or 9 or greater from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vn1zk_12.png", "TableImg_Nvf3m_5.png"], "original_data_index": 9640, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What driver IDs are no more than 10 from the driver table, and also driver IDs that are greater than 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Evybg_12.png", "TableImg_8tvgo_5.png"], "original_data_index": 9642, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What aircraft IDs are in either the aircraft table (excluding ID 2) or the airport aircraft table (excluding ID 5)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ehltf_5.png", "TableImg_Lbrl8_4.png"], "original_data_index": 9644, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What are the rank, rating, a_id, and i_id for reviews that either have a rank other than 3 and an i_id of 3 or less, or have a rank other than 2 and an i_id less than 4, or have a u_id of 1?", "answer": {"columns": ["rank", "rating", "a_id", "i_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "10", "1", "1"], ["2", "5", "2", "1"], ["5", "5", "6", "3"], ["1", "10", "1", "1"], ["5", "5", "6", "3"], ["3", "7", "3", "4"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Gun3w_7.png", "TableImg_8v7k6_7.png"], "original_data_index": 9643, "original_sql": "SELECT rank, rating, a_id, i_id FROM review WHERE \"rank\" != 3 AND \"i_id\" <= 3 UNION ALL SELECT rank, rating, a_id, i_id FROM review WHERE \"rank\" != 2 AND \"i_id\" < 4 OR \"u_id\" = 1"} {"question": "What are the driver IDs that are at least 3 from the driver table, or not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_20ey2_12.png", "TableImg_Pyt60_5.png"], "original_data_index": 9645, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What driver IDs are both greater than 1 and not equal to 10, considering information from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_At70n_12.png", "TableImg_Ck9x7_5.png"], "original_data_index": 9646, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What Driver IDs are both greater than 5 and less than or equal to 10, and are listed in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rlw7l_12.png", "TableImg_4r2fp_5.png"], "original_data_index": 9647, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Could you tell me the average District ID for districts with IDs under 6, and also the average District ID for store districts excluding those with ID 15?", "answer": {"columns": ["AVG(District_ID)"], "index": [0, 1], "data": [["3"], ["6"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_78ujd_15.png", "TableImg_58rab_5.png"], "original_data_index": 9651, "original_sql": "SELECT AVG(District_ID) FROM district WHERE \"District_ID\" < 6 UNION ALL SELECT AVG(District_ID) FROM store_district WHERE \"District_ID\" != 15"} {"question": "What driver IDs are found in both the driver list, excluding driver 11, and the school bus driver list, excluding driver 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N0k9s_12.png", "TableImg_Tvtar_5.png"], "original_data_index": 9648, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are drivers with an ID of 1 or greater, but not school bus drivers with an ID of 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zw0dc_12.png", "TableImg_P9418_5.png"], "original_data_index": 9649, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What driver IDs from 5 to 7 are found in both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7a40t_12.png", "TableImg_Hhloc_5.png"], "original_data_index": 9650, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the average votes, sum of player names, average sponsor names, rank, earliest occupation, player ID, and latest gender for players not ranked 1st, excluding those who have 7190 votes?", "answer": {"columns": ["AVG(Votes)", "SUM(Player_name)", "AVG(Sponsor_name)", "Rank", "MIN(Occupation)", "Player_ID", "MAX(Gender)"], "index": [0], "data": [["6272.3", "0", "0", "2nd", "Design Coordinator", "1", "M"]]}, "table_names": "['player' 'player']", "table_image_ids": ["TableImg_Avfa8_14.png", "TableImg_D5crh_14.png"], "original_data_index": 9652, "original_sql": "SELECT AVG(Votes), SUM(Player_name), AVG(Sponsor_name), Rank, MIN(Occupation), Player_ID, MAX(Gender) FROM player WHERE Rank <> \"1st\" EXCEPT SELECT AVG(Votes), SUM(Player_name), AVG(Sponsor_name), Rank, MIN(Occupation), Player_ID, MAX(Gender) FROM player WHERE \"Votes\" = 7190"} {"question": "What are all the Aircraft IDs, other than 2, that are in either the aircraft or airport aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_99lht_5.png", "TableImg_Mgt21_4.png"], "original_data_index": 9654, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver ID is 7 in the driver table but not among the driver IDs greater than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X4onq_12.png", "TableImg_0s1gv_5.png"], "original_data_index": 9655, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What aircraft IDs, other than 4, are in the aircraft table but not in the airport_aircraft table, if we ignore ID 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_41doj_5.png", "TableImg_Sdggj_4.png"], "original_data_index": 9653, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the aircraft IDs, excluding ID 3 and ID 5 from different lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mlm55_5.png", "TableImg_Okvf4_4.png"], "original_data_index": 9656, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the unique Aircraft IDs that are less than 4 from the aircraft table, or less than or equal to 3 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_37rm5_5.png", "TableImg_Bn4z6_4.png"], "original_data_index": 9658, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What driver ID, other than 5, is also driver ID 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fitb7_12.png", "TableImg_U25uu_5.png"], "original_data_index": 9657, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Show me the driver IDs, including all IDs except 7, and also driver ID 9 from the school bus drivers.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S8nzg_12.png", "TableImg_Cenmx_5.png"], "original_data_index": 9660, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What Aircraft IDs are in both the aircraft and airport_aircraft tables, excluding ID 5 from the aircraft table and including only IDs 2 or greater from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ymxd8_5.png", "TableImg_Fcpbr_4.png"], "original_data_index": 9661, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What driver IDs are either number 3 from the driver list or any number other than 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ss6mk_12.png", "TableImg_6rgnh_5.png"], "original_data_index": 9659, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the positions, club IDs, and student IDs of members who are either not a Vice-President, or not student 1007, or not in club 1, and also either student 1008 or higher, or not a President?", "answer": {"columns": ["Position", "ClubID", "StuID"], "index": [0, 1, 2], "data": [["CTO", "2", "1008"], ["Teaching Coordinator", "1", "1010"], ["Vice-President", "4", "1007"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_C4vbx_4.png", "TableImg_2oztx_4.png"], "original_data_index": 9662, "original_sql": "SELECT Position, ClubID, StuID FROM Member_of_club WHERE Position <> \"Vice-President\" OR \"StuID\" != 1007 OR \"ClubID\" <> 1 INTERSECT SELECT Position, ClubID, StuID FROM Member_of_club WHERE \"StuID\" >= 1008 OR Position <> \"President\""} {"question": "What are the Driver IDs, excluding 9 from the driver list, combined with Driver IDs greater than 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P6yo2_12.png", "TableImg_Z1wzm_5.png"], "original_data_index": 9663, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Is there a branch with ID 7 that did not make any purchases in 2018 and also did not have purchases from members with ID 2 or less who spent more than 402.1 pounds, excluding branch 3?", "answer": {"columns": ["Branch_ID"], "index": [0], "data": [["7"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_2l8s9_8.png", "TableImg_Bouf3_8.png"], "original_data_index": 9664, "original_sql": "SELECT Branch_ID FROM branch WHERE \"Branch_ID\" = 7 EXCEPT SELECT Branch_ID FROM purchase WHERE Year = \"2018\" OR \"Member_ID\" <= 2 AND \"Total_pounds\" > 402.1 AND Branch_ID != \"3\""} {"question": "What Driver IDs are 5 or greater in the driver table, or less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_85mwt_12.png", "TableImg_Gbf7c_5.png"], "original_data_index": 9666, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which Driver IDs are 4 in the driver table, or not 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1l1gj_12.png", "TableImg_Ugjmd_5.png"], "original_data_index": 9668, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are greater than 4 for drivers, but not less than 9 for school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lvvo6_12.png", "TableImg_Xknpx_5.png"], "original_data_index": 9667, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What Driver IDs are 6 or greater from the driver records, or not 4 from the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qvigz_12.png", "TableImg_00p5k_5.png"], "original_data_index": 9665, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver IDs are less than 4 in the driver list but not greater than 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_An5e5_12.png", "TableImg_Zpxjs_5.png"], "original_data_index": 9669, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What Aircraft IDs are present in the aircraft table with IDs over 2, and also in the airport_aircraft table with IDs of 5 or more?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_H3i47_5.png", "TableImg_Ew55l_4.png"], "original_data_index": 9673, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What are the aircraft IDs that are less than 3 in the aircraft table, excluding those that are 2 or greater in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zb8o5_5.png", "TableImg_Xiddq_4.png"], "original_data_index": 9670, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the driver IDs that are ID 6 from the driver table, or any ID other than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1je47_12.png", "TableImg_87tm0_5.png"], "original_data_index": 9671, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver ID is both greater than 3 and also equal to 4, based on the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xtkrz_12.png", "TableImg_Wuf8g_5.png"], "original_data_index": 9675, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs that are recorded in both the driver and school bus lists and are also less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6f8hv_12.png", "TableImg_Qyzix_5.png"], "original_data_index": 9676, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What driver IDs are 12 or more from the drivers table, or driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L5j60_12.png", "TableImg_9b5zf_5.png"], "original_data_index": 9677, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What driver IDs are 9 or less in the driver table, and not greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2v7x1_12.png", "TableImg_Z2rz2_5.png"], "original_data_index": 9674, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What Driver IDs are either 1 or less from the driver list, or greater than 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ed22k_12.png", "TableImg_Berib_5.png"], "original_data_index": 9679, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What Driver IDs are either 6 or less, or not 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L5ehw_12.png", "TableImg_J27us_5.png"], "original_data_index": 9678, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What driver IDs are in both the driver and school bus lists, excluding driver ID 3 and only considering IDs up to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dm93r_12.png", "TableImg_Bxqb5_5.png"], "original_data_index": 9680, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What sum of region, maximum club ID, start year, and earliest club name is the same for both clubs that are not 'Djurg\u00e5rdens IF' or started in 2001 or later, and clubs that are not 'BK H\u00e4cken'?", "answer": {"columns": ["SUM(Region)", "MAX(Club_ID)", "Start_year", "MIN(Club_name)"], "index": [0], "data": [["0", "6", "2009", "AIK"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_4pr16_6.png", "TableImg_59g0o_6.png"], "original_data_index": 9682, "original_sql": "SELECT SUM(Region), MAX(Club_ID), Start_year, MIN(Club_name) FROM club WHERE Club_name <> \"Djurg\u00e5rdens IF\" OR \"Start_year\" >= 2001 INTERSECT SELECT SUM(Region), MAX(Club_ID), Start_year, MIN(Club_name) FROM club WHERE Club_name != \"BK H\u00e4cken\""} {"question": "Are there any drivers with ID 8 who are not also school bus driver number 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7mi6u_12.png", "TableImg_79neb_5.png"], "original_data_index": 9681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are less than 3 in the driver table but not greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iil72_12.png", "TableImg_Csvhu_5.png"], "original_data_index": 9683, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What driver IDs are for drivers with IDs of 8 or more and are also for drivers with IDs greater than 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X3e9c_12.png", "TableImg_Rl2a7_5.png"], "original_data_index": 9685, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What aircraft IDs are exactly 2 in the aircraft table, or greater than 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mi0es_5.png", "TableImg_Crhge_4.png"], "original_data_index": 9686, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What ranks are shared between coaches who are not from club ID 3, or (not named \"Smith Brown\" and rank 2), or not male, or have coach ID greater than 5, and match results where (Big_Silver is less than 7, rank is not 1, and Gold is 12), or Small_Silver is not 9?", "answer": {"columns": ["Rank"], "index": [0], "data": [["2"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Wlo4r_5.png", "TableImg_L4jg9_6.png"], "original_data_index": 9684, "original_sql": "SELECT Rank FROM coach WHERE \"Club_ID\" <> 3 OR Coach_name != \"Smith Brown\" AND \"Rank\" = 2 OR Gender <> \"M\" OR \"Coach_ID\" > 5 INTERSECT SELECT Rank FROM match_result WHERE \"Big_Silver\" < 7 AND \"Rank\" != 1 AND \"Gold\" = 12 OR \"Small_Silver\" <> 9"} {"question": "What are the driver IDs that are 10 or less in the driver table or 4 or more in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wzcu0_12.png", "TableImg_8gg62_5.png"], "original_data_index": 9687, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are all the allergies, and also include Ragweed?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Eggs"], ["Nuts"], ["Milk"], ["Shellfish"], ["Anchovies"], ["Wheat"], ["Soy"], ["Ragweed"], ["Tree Pollen"], ["Grass Pollen"], ["Cat"], ["Dog"], ["Rodent"], ["Bee Stings"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_N1fox_14.png", "TableImg_Eczm0_14.png"], "original_data_index": 9689, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType = \"food\" UNION ALL SELECT Allergy FROM Allergy_Type WHERE AllergyType <> \"food\" OR Allergy = \"Ragweed\""} {"question": "Which driver IDs, that are less than 4, are listed in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bnv9q_12.png", "TableImg_Hj23l_5.png"], "original_data_index": 9690, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What driver IDs are 8 or less, but not among the driver IDs less than 4 that are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z0cqw_12.png", "TableImg_Rj95k_5.png"], "original_data_index": 9688, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What driver IDs are either 1 or less, or not 4, from the drivers and school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X5w97_12.png", "TableImg_V1749_5.png"], "original_data_index": 9691, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are less than 5 in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cliv2_12.png", "TableImg_Zy3lx_5.png"], "original_data_index": 9692, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What Aircraft IDs are greater than 1 in the aircraft table but not less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U533m_5.png", "TableImg_Uk73o_4.png"], "original_data_index": 9695, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What driver IDs are either 12, or any ID other than 9 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4p8d4_12.png", "TableImg_Pfdoj_5.png"], "original_data_index": 9693, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are both not 11 and greater than 9, and are used in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bulu8_12.png", "TableImg_Cnoja_5.png"], "original_data_index": 9698, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What driver IDs are both in the driver list (excluding driver 8) and the school bus driver list (with IDs under 4)?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oce34_12.png", "TableImg_Pptmv_5.png"], "original_data_index": 9696, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What driver IDs are less than 3 in the driver table, or equal to 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jbgju_12.png", "TableImg_Bptql_5.png"], "original_data_index": 9697, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "For the continents table, how many continents are named 'australia' and are not ContId 4? Also, for the countries table, how many continents are there that are either in countries with a CountryId of 15 or less, or are not continent 2 and are named 'russia'?", "answer": {"columns": ["COUNT(Continent)"], "index": [0, 1], "data": [["1"], ["15"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_E87uw_5.png", "TableImg_4h2p3_15.png"], "original_data_index": 9699, "original_sql": "SELECT COUNT(Continent) FROM continents WHERE Continent = \"australia\" AND \"ContId\" <> 4 UNION SELECT COUNT(Continent) FROM countries WHERE \"CountryId\" <= 15 OR \"Continent\" != 2 AND CountryName = \"russia\""} {"question": "What are the driver IDs that are greater than 11 from the driver table, or are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8lnhy_12.png", "TableImg_Ok04i_5.png"], "original_data_index": 9701, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What driver IDs are 3 or greater, except for those that are 10 or less in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xlual_12.png", "TableImg_74v7z_5.png"], "original_data_index": 9700, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What are the Aircraft IDs that are not 3 from the aircraft table, or are 1 or less from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2n1fh_5.png", "TableImg_Dcqcw_4.png"], "original_data_index": 9702, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the driver IDs less than 4 that are drivers but not school bus drivers, excluding school bus driver ID 4 from consideration?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J01kt_12.png", "TableImg_10r0w_5.png"], "original_data_index": 9703, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "List all unique Aircraft IDs that are either from the aircraft table, excluding ID 5, or from the airport_aircraft table, but only those that are 1 or higher.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jfwzw_5.png", "TableImg_D2p2b_4.png"], "original_data_index": 9704, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What driver ID is common to both drivers with ID 8 or higher and school bus drivers with ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3b4dm_12.png", "TableImg_5eggk_5.png"], "original_data_index": 9705, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the driver IDs that are on both the driver list (excluding driver ID 5) and the school bus list (only including IDs less than 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2pjf4_12.png", "TableImg_Lego3_5.png"], "original_data_index": 9707, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What driver IDs are greater than 3 and listed as drivers, but are not listed as school bus drivers if their ID is 4 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oshk5_12.png", "TableImg_42992_5.png"], "original_data_index": 9706, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What driver IDs are 8 or more in the driver table, or 10 or more in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7mlep_12.png", "TableImg_Lzmr1_5.png"], "original_data_index": 9708, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs, besides 1, are drivers but not school bus drivers with IDs greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zfvj2_12.png", "TableImg_Ny6fx_5.png"], "original_data_index": 9709, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What aircraft IDs are in the aircraft table with an ID of 1 or greater, but are not in the airport aircraft table with an ID of 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M6uis_5.png", "TableImg_Rj78k_4.png"], "original_data_index": 9710, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What driver IDs, other than 2, are drivers but not also driver ID 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vh21x_12.png", "TableImg_R7eki_5.png"], "original_data_index": 9714, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Could you list all Driver IDs, including every ID except 6 from the driver list, and also ID 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V44qz_12.png", "TableImg_Vrog7_5.png"], "original_data_index": 9711, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are 12 or less in the driver table, but not 9 or more in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7h7v2_12.png", "TableImg_Lad24_5.png"], "original_data_index": 9713, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What aircraft IDs are in the aircraft table, other than 5, and are not in the airport_aircraft table if their ID is 2 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xsh2q_5.png", "TableImg_Anxfb_4.png"], "original_data_index": 9712, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "What are the copy numbers, draft numbers, and document IDs of draft copies that are either for documents with an ID of 20 or less, or are copy number less than 4, and also are not draft number 2?", "answer": {"columns": ["copy_number", "draft_number", "document_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["4", "1", "2"], ["5", "8", "2"], ["6", "9", "4"], ["10", "12", "12"], ["10", "20", "10"], ["15", "17", "20"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_Um374_8.png", "TableImg_1i1mm_8.png"], "original_data_index": 9715, "original_sql": "SELECT copy_number, draft_number, document_id FROM Draft_Copies WHERE \"document_id\" <= 20 OR \"copy_number\" < 4 INTERSECT SELECT copy_number, draft_number, document_id FROM Draft_Copies WHERE \"draft_number\" != 2"} {"question": "What are the unique driver IDs that are either 10 or less, from the driver table, or 7 or more, from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qjpd9_12.png", "TableImg_H782e_5.png"], "original_data_index": 9717, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What driver ID is both less than 5 in the driver list and exactly 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pd1nm_12.png", "TableImg_Ubrl9_5.png"], "original_data_index": 9718, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What Aircraft IDs are below 4 in the aircraft table or below 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Am2ak_5.png", "TableImg_Lxdvi_4.png"], "original_data_index": 9721, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What driver IDs are both less than 9 and also listed as school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8edgo_12.png", "TableImg_J3d3v_5.png"], "original_data_index": 9719, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What driver IDs are assigned to drivers, other than driver ID 11, but are not assigned to school buses with driver IDs of 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2jsd4_12.png", "TableImg_Ps0lw_5.png"], "original_data_index": 9720, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the School IDs of schools that are either class A football schools or have an enrollment of 601 or more, but are not included in the budget information if they are not school ID 2 or meet certain budget requirements?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_67dxh_8.png", "TableImg_Fx3q3_8.png"], "original_data_index": 9716, "original_sql": "SELECT School_id FROM School WHERE IHSAA_Football_Class = \"A\" OR \"Enrollment\" >= 601 EXCEPT SELECT School_id FROM budget WHERE \"Budgeted\" >= 74849 AND \"Invested\" <= 140102 AND \"Year\" <> 2005 AND \"total_budget_percent_invested\" >= 2.0 AND \"total_budget_percent_budgeted\" != 2.0 OR \"School_id\" <> 2"} {"question": "What driver IDs are 6 or less from the driver list, or 10 or more from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7wbvb_12.png", "TableImg_Re4xr_5.png"], "original_data_index": 9724, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What driver IDs are both greater than 6 and also equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xkqmz_12.png", "TableImg_W1ewd_5.png"], "original_data_index": 9722, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What driver IDs less than 4 are drivers but not school bus drivers, excluding school bus driver ID 10 from consideration?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ntrmk_12.png", "TableImg_Gdykl_5.png"], "original_data_index": 9723, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "List all aircraft IDs greater than 1, except for aircraft ID 3 if it's also found in the airport aircraft list.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S41j4_5.png", "TableImg_Oj74m_4.png"], "original_data_index": 9728, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What are the smallest School IDs, one for schools that are not for junior-senior year, or have an ID less than 5, or are Punahou School, or are not Private Catholic, and another for school buses that are not for school ID 3, or are not full-time buses with experienced drivers and low Driver IDs?", "answer": {"columns": ["MIN(School_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_Mqgjv_7.png", "TableImg_G60lr_5.png"], "original_data_index": 9725, "original_sql": "SELECT MIN(School_ID) FROM school WHERE Grade <> \"Junior\u2013Senior year\" OR \"School_ID\" < 5 OR School = \"Punahou School\" OR Type != \"Private Catholic\" UNION SELECT MIN(School_ID) FROM school_bus WHERE \"School_ID\" <> 3 OR If_full_time != \"T\" AND \"Years_Working\" >= 8 AND \"Driver_ID\" < 4"} {"question": "Which drivers have an ID of 12 but are not listed as school bus drivers, disregarding school bus drivers with an ID of 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q2wlw_12.png", "TableImg_Kd848_5.png"], "original_data_index": 9727, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the names, football classes, counties, classes, locations, and mascots of schools that are either not named Triton, or are class AA, not in Knox, and have more than 495 students, or don't have the mascot Lions, or are not school ID 6 and not in Marshall County, or are not in football class AAA, but not including schools that are class A and don't have the mascot Jimmies?", "answer": {"columns": ["School_name", "IHSAA_Football_Class", "County", "IHSAA_Class", "Location", "Mascot"], "index": [0, 1, 2, 3, 4], "data": [["Bremen", "AA", "50 Marshall", "AA", "Bremen", "Lions"], ["Glenn", "AAA", "71 St. Joseph", "AAA", "Walkerton", "Falcons"], ["Jimtown", "AAA", "20 Elkhart", "AAA", "Elkhart", "Jimmies"], ["Knox Community", "AAA", "75 Starke", "AAA", "Knox", "Redskins"], ["New Prairie 1", "AAAA", "46 LaPorte 71 St. Joseph", "AAA", "New Carlisle", "Cougars"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_7pgpv_8.png", "TableImg_Estrv_8.png"], "original_data_index": 9726, "original_sql": "SELECT School_name, IHSAA_Football_Class, County, IHSAA_Class, Location, Mascot FROM School WHERE School_name != \"Triton\" OR IHSAA_Class = \"AA\" AND Location <> \"Knox\" AND \"Enrollment\" > 495 OR Mascot != \"Lions\" OR School_id <> \"6\" AND County <> \"50 Marshall\" OR IHSAA_Football_Class != \"AAA\" EXCEPT SELECT School_name, IHSAA_Football_Class, County, IHSAA_Class, Location, Mascot FROM School WHERE Mascot != \"Jimmies\" AND IHSAA_Football_Class = \"A\""} {"question": "What are driver ID 1 from the driver table and driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ujxge_12.png", "TableImg_66xjh_5.png"], "original_data_index": 9731, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "On March 9, 2018 at 7:03 PM, how many area codes are associated with states that had votes?", "answer": {"columns": ["COUNT(T1.area_code)", "created"], "index": [0], "data": [["36", "2018-03-09 19:03:39"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_M1ann_305.png", "TableImg_Yhqud_4.png"], "original_data_index": 9729, "original_sql": "SELECT COUNT(T1.area_code), T2.created FROM AREA_CODE_STATE as T1 JOIN VOTES as T2 ON T1.state = T2.state WHERE created = \"2018-03-09 19:03:39\""} {"question": "Which driver IDs are 3 or greater, excluding driver ID 9 if it is also listed for a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_26lyd_12.png", "TableImg_E3cpx_5.png"], "original_data_index": 9734, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What aircraft IDs, other than 4, are in the aircraft table but not in the airport aircraft table, considering only airport aircraft IDs up to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Md0fj_5.png", "TableImg_Kknox_4.png"], "original_data_index": 9733, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What driver IDs are 9 or greater in the driver list but not 7 or greater in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_140r6_12.png", "TableImg_7m9oj_5.png"], "original_data_index": 9735, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the Driver IDs that are both in the driver and school bus lists, are 10 or less, but not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8yo6j_12.png", "TableImg_K19vk_5.png"], "original_data_index": 9736, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the Club IDs for clubs that are not ID 1, or clubs that are not named 'Gefle IF', started after 2000, and are not in the UK? Also, include Club IDs for coaches who are coach ID 5, female, or rank 4 or higher.", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Jwu4i_6.png", "TableImg_G7end_5.png"], "original_data_index": 9730, "original_sql": "SELECT Club_ID FROM club WHERE \"Club_ID\" <> 1 OR Club_name != \"Gefle IF\" AND \"Start_year\" > 2000 AND Region != \"UK\" UNION SELECT Club_ID FROM coach WHERE \"Coach_ID\" = 5 OR Gender != \"M\" OR \"Rank\" >= 4"} {"question": "What is the total sum of region values for clubs that are either not named 'Djurg\u00e5rdens IF' and started in 2005 or later, or not in the USA, or have a Club ID greater than 3, or started in 2000 or earlier and are in the USA?", "answer": {"columns": ["SUM(Region)"], "index": [0, 1], "data": [["0.0"], [""]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_Bh7ed_6.png", "TableImg_Xmi4q_6.png"], "original_data_index": 9732, "original_sql": "SELECT SUM(Region) FROM club WHERE Club_name <> \"Djurg\u00e5rdens IF\" AND \"Start_year\" >= 2005 OR Region <> \"USA\" OR \"Club_ID\" > 3 UNION ALL SELECT SUM(Region) FROM club WHERE \"Start_year\" <= 2000 AND Region = \"USA\""} {"question": "Which driver IDs less than 12 are drivers but not school bus drivers with IDs of 3 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K9o9n_12.png", "TableImg_2bp0c_5.png"], "original_data_index": 9737, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What driver IDs are greater than 4 in the driver table, or less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kbpen_12.png", "TableImg_F8fcm_5.png"], "original_data_index": 9739, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What driver IDs under 7 are drivers but not school bus drivers, excluding school bus driver 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q6btu_12.png", "TableImg_Bk0ob_5.png"], "original_data_index": 9738, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the driver IDs that are both not 5 and at least 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wirwx_12.png", "TableImg_Axwsb_5.png"], "original_data_index": 9740, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What driver IDs from the driver table are not 4 and not 5?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_14zal_12.png", "TableImg_Yffrp_5.png"], "original_data_index": 9741, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What driver IDs are both 4 or greater and also greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qvkhb_12.png", "TableImg_41ofn_5.png"], "original_data_index": 9744, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What is the Aircraft ID that is both less than 3 in the aircraft table and equal to 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ig7y_5.png", "TableImg_2h9xz_4.png"], "original_data_index": 9743, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs, other than 2, are drivers but not school bus drivers, considering only school bus drivers other than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5rmg1_12.png", "TableImg_5yus6_5.png"], "original_data_index": 9742, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the aircraft IDs that are in the aircraft table, are not 3, and are not among the aircraft IDs less than 5 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7lsjg_5.png", "TableImg_Fdhi4_4.png"], "original_data_index": 9745, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What are the driver IDs of drivers who are not driver 11, and are also not school bus drivers with IDs of 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D1e55_12.png", "TableImg_Twix3_5.png"], "original_data_index": 9749, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What driver IDs are drivers, other than 7, but not school bus drivers, other than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tx0q8_12.png", "TableImg_Ucu1p_5.png"], "original_data_index": 9748, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are all driver IDs except 1, and also not 3 if 3 is a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ye50c_12.png", "TableImg_Ta7fw_5.png"], "original_data_index": 9746, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Could you provide a list of IDs, including flight IDs for high altitude flights, flights not from airport 6, flights piloted by Thompson, or flights with specific date, ID, and vehicle number characteristics, and also operating company IDs for companies not named Dragonair Holidays, companies with specific type, ID, incorporation, and activity characteristics, or companies without 100% group equity shareholding?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_50ae9_13.png", "TableImg_9m059_14.png"], "original_data_index": 9747, "original_sql": "SELECT id FROM flight WHERE \"Altitude\" >= 3650.0 OR \"airport_id\" != 6 OR Pilot = \"Thompson\" OR Date != \"October 25, 1963\" AND \"id\" != 6 AND Vehicle_Flight_number <> \"M2-F1 #39\" UNION ALL SELECT id FROM operate_company WHERE name != \"Dragonair Holidays\" OR Type <> \"Joint Venture\" AND \"id\" > 8 AND Incorporated_in != \"Canada\" AND Principal_activities = \"Travel agency\" OR \"Group_Equity_Shareholding\" != 100.0"} {"question": "What are the descriptions and codes of document statuses that are neither 'working' nor 'mailed late'?", "answer": {"columns": ["document_status_description", "document_status_code"], "index": [0], "data": [["mailed", "done"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_85ze1_3.png", "TableImg_3yngl_3.png"], "original_data_index": 9751, "original_sql": "SELECT document_status_description, document_status_code FROM Ref_Document_Status WHERE document_status_code != \"working\" INTERSECT SELECT document_status_description, document_status_code FROM Ref_Document_Status WHERE document_status_description <> \"mailed late\""} {"question": "List all unique Driver IDs that are less than 4 from the driver table and less than or equal to 3 from the school bus table.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_70awh_12.png", "TableImg_Tfmq8_5.png"], "original_data_index": 9752, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Could you give me two numbers: first, the count of coaches from the coach table who are either named Jameson Tomas and female, or associated with Club ID 1 or higher; and second, the count of coaches from the player_coach table who either have Coach ID 2, Player ID 14 or higher, or a starting year before 2013?", "answer": {"columns": ["COUNT(Coach_ID)"], "index": [0, 1], "data": [["5"], ["7"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_T2r7w_5.png", "TableImg_Whgvt_7.png"], "original_data_index": 9750, "original_sql": "SELECT COUNT(Coach_ID) FROM coach WHERE Coach_name = \"Jameson Tomas\" AND Gender = \"F\" OR \"Club_ID\" >= 1 UNION ALL SELECT COUNT(Coach_ID) FROM player_coach WHERE \"Coach_ID\" = 2 OR \"Player_ID\" >= 14 OR \"Starting_year\" < 2013"} {"question": "List aircraft ID 2 from the aircraft table and all aircraft IDs except 5 from the airport_aircraft table.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gwuxx_5.png", "TableImg_Bg9ny_4.png"], "original_data_index": 9753, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What Aircraft IDs, other than 1, are found in both the aircraft and airport aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Krgy2_5.png", "TableImg_5xdfw_4.png"], "original_data_index": 9754, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "What driver IDs are both not equal to 4 in the driver list and greater than 7 in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3eea5_12.png", "TableImg_3j3w8_5.png"], "original_data_index": 9755, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the aircraft IDs that are less than 2 in the aircraft table but not also less than 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qsrks_5.png", "TableImg_X65bv_4.png"], "original_data_index": 9758, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "What employee IDs are either '7' from the evaluation records or belong to part-time employees hired outside of 2008 and working in shops with an ID greater than 2?", "answer": {"columns": ["Employee_ID"], "index": [0, 1], "data": [["3"], ["7"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Pj81g_6.png", "TableImg_81wdy_7.png"], "original_data_index": 9759, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Employee_ID = \"7\" UNION SELECT Employee_ID FROM hiring WHERE Is_full_time <> \"T\" AND Start_from != \"2008\" AND \"Employee_ID\" >= 1 AND \"Shop_ID\" > 2"} {"question": "What driver IDs, besides 11 and 7, are in the driver or school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wkcil_12.png", "TableImg_7f9uq_5.png"], "original_data_index": 9762, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "For each IHSAA class, what are the enrollment and invested amounts for classes that contain schools meeting any of these criteria: school name is 'Glenn' and enrollment is below 495, budget invested percentage is not 42.9, or county is '71 St. Joseph'?", "answer": {"columns": ["Enrollment", "Invested"], "index": [0, 1], "data": [["495", "85249"], ["605", "8335"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_U6t3n_8.png", "TableImg_Xsln3_8.png"], "original_data_index": 9757, "original_sql": "SELECT T1.Enrollment, T2.Invested FROM School as T1 JOIN budget as T2 ON T1.School_id == T2.School_id GROUP BY IHSAA_Class HAVING Enrollment < 495 AND School_name = \"Glenn\" OR Budget_invested_percent <> \"42.9\" OR County = \"71 St. Joseph\""} {"question": "What are the driver IDs that are both greater than 8 and less than 10, and appear in both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qjlqe_12.png", "TableImg_Bd6wu_5.png"], "original_data_index": 9760, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What Driver IDs are listed in both the driver and school bus records and are number 3 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sd8pb_12.png", "TableImg_Vpkbk_5.png"], "original_data_index": 9763, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What aircraft IDs are less than or equal to 3 in the aircraft table but not less than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Teoz7_5.png", "TableImg_Twlrz_4.png"], "original_data_index": 9761, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What Aircraft IDs are in both the aircraft table (excluding ID 4) and the airport aircraft table (excluding ID 5)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jkv9u_5.png", "TableImg_I4c8n_4.png"], "original_data_index": 9764, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs are not 2, or are greater than 10 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U6rat_12.png", "TableImg_Qck0k_5.png"], "original_data_index": 9765, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "What aircraft IDs are 4 or less in the aircraft table, but not aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nrk9e_5.png", "TableImg_Ry283_4.png"], "original_data_index": 9767, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs, that are 1 or greater, are in the driver table but not driver ID 9 if it's in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R6iwq_12.png", "TableImg_2nn00_5.png"], "original_data_index": 9766, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What driver IDs are either number 6 from the drivers or not number 7 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ivmj5_12.png", "TableImg_0daeg_5.png"], "original_data_index": 9768, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the driver IDs, other than 2, that are drivers but not school bus drivers with IDs less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_793u1_12.png", "TableImg_17f0t_5.png"], "original_data_index": 9771, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which Book IDs are published by someone other than Bertelsmann and also meet at least one of these conditions: either the Book ID is less than 3, or they are from Pearson, not published in June 2006, and cost 3 million or more?", "answer": {"columns": ["Book_ID"], "index": [0], "data": [["1"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_23tsd_7.png", "TableImg_Xjkqt_7.png"], "original_data_index": 9770, "original_sql": "SELECT Book_ID FROM publication WHERE Publisher <> \"Bertelsmann\" INTERSECT SELECT Book_ID FROM publication WHERE \"Book_ID\" < 3 OR Publisher = \"Pearson\" AND Publication_Date <> \"June 2006\" AND \"Price\" >= 3000000.0"} {"question": "What are the document IDs for documents that are not hard drives or have 'p' as other details, as well as for mailed documents not sent to address ID 2?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["13"], ["14"], ["15"], ["17"], ["20"], ["2"], ["4"], ["4"], ["7"], ["10"], ["12"], ["12"], ["12"], ["13"], ["14"], ["20"], ["23"], ["24"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_Fh5fp_15.png", "TableImg_C8tf7_14.png"], "original_data_index": 9773, "original_sql": "SELECT document_id FROM Documents WHERE document_type_code <> \"Hard Drive\" OR other_details = \"p\" UNION ALL SELECT document_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" != 2"} {"question": "Which driver IDs are 2 or greater, except for driver ID 3 if it is also a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I0zu8_12.png", "TableImg_B11i4_5.png"], "original_data_index": 9769, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs are 2 or higher in the driver table, but not among those less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jakmf_12.png", "TableImg_Eznry_5.png"], "original_data_index": 9775, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the Driver IDs from the driver table, excluding driver ID 3, and from the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hgxih_12.png", "TableImg_Pkp3f_5.png"], "original_data_index": 9776, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the Major, city code, and Advisor for students who meet certain criteria, excluding those who meet other criteria? Include students if their Major is less than 100, or their first name is Tracy, or they satisfy a specific combination of ID, gender, and last name, or a combination of city, age, and advisor. However, exclude students if their last name is Lee, or if they are male and their Major is 600 or less.", "answer": {"columns": ["Major", "city_code", "Advisor"], "index": [0, 1, 2, 3], "data": [["50", "WAS", "5718"], ["540", "BAL", "7271"], ["600", "HKG", "7712"], ["600", "PIT", "8918"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Nlhu9_34.png", "TableImg_Ahyxq_34.png"], "original_data_index": 9774, "original_sql": "SELECT Major, city_code, Advisor FROM Student WHERE \"Major\" < 100 OR Fname = \"Tracy\" OR \"StuID\" <> 1003 AND Sex != \"F\" AND LName = \"Apap\" OR city_code <> \"WAS\" AND \"Age\" = 18 AND \"Advisor\" >= 2192 EXCEPT SELECT Major, city_code, Advisor FROM Student WHERE LName = \"Lee\" OR \"Major\" <= 600 AND Sex = \"M\""} {"question": "What are the number of stores in each district for districts with ID 15 or higher, or stores with ID 4 or lower, as well as for stores with ID 3?", "answer": {"columns": ["District_ID", "COUNT(Store_ID)"], "index": [0, 1], "data": [["11", "1"], ["15", "4"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_I0y94_5.png", "TableImg_Tn35p_5.png"], "original_data_index": 9777, "original_sql": "SELECT District_ID, COUNT(Store_ID) FROM store_district WHERE \"District_ID\" >= 15 OR \"Store_ID\" <= 4 UNION SELECT District_ID, COUNT(Store_ID) FROM store_district WHERE \"Store_ID\" = 3"} {"question": "What are the gender, rank, club ID, and coach ID for coaches who either have a Coach ID greater than 1, or are not Coach ID 3 and not named Jameson Tomas, or are not male, or have a rank greater than 1?", "answer": {"columns": ["Gender", "Rank", "Club_ID", "Coach_ID"], "index": [0, 1, 2, 3], "data": [["F", "2", "1", "2"], ["M", "3", "3", "3"], ["M", "4", "3", "4"], ["M", "5", "1", "5"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_7ghmv_5.png", "TableImg_Lm7bs_5.png"], "original_data_index": 9778, "original_sql": "SELECT Gender, Rank, Club_ID, Coach_ID FROM coach WHERE \"Coach_ID\" > 1 UNION SELECT Gender, Rank, Club_ID, Coach_ID FROM coach WHERE \"Coach_ID\" != 3 AND Coach_name != \"Jameson Tomas\" OR Gender <> \"M\" OR \"Rank\" > 1"} {"question": "Could you list the mailed address ID and document ID for documents that have a document ID of 12 or more, or were not mailed on the morning of November 4, 2010, or have a document ID greater than 14?", "answer": {"columns": ["mailed_to_address_id", "document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], "data": [["0", "12"], ["7", "12"], ["8", "12"], ["4", "13"], ["5", "14"], ["2", "20"], ["7", "20"], ["8", "23"], ["0", "24"], ["8", "2"], ["3", "4"], ["9", "4"], ["5", "7"], ["3", "10"], ["0", "12"], ["7", "12"], ["8", "12"], ["4", "13"], ["5", "14"], ["2", "20"], ["7", "20"], ["8", "23"], ["0", "24"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_Sq28o_14.png", "TableImg_Uycqi_14.png"], "original_data_index": 9779, "original_sql": "SELECT mailed_to_address_id, document_id FROM Documents_Mailed WHERE \"document_id\" >= 12 UNION ALL SELECT mailed_to_address_id, document_id FROM Documents_Mailed WHERE mailing_date <> \"2010-11-04 04:00:16\" OR \"document_id\" > 14"} {"question": "What are the IDs of airports that are in Barcelona, or not named 'National Airport', or with an ICAO code other than 'KBWI', or an IATA code other than 'BOS', or with an ID of 7 or more? And also, what are the IDs of flights that have an altitude less than 3650, or a flight number of 'M2-F1 #33', or an airport ID less than 5?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_4oxw2_9.png", "TableImg_Cie5n_13.png"], "original_data_index": 9780, "original_sql": "SELECT id FROM airport WHERE City = \"Barcelona\" OR name <> \"National Airport\" OR ICAO != \"KBWI\" OR IATA <> \"BOS\" OR \"id\" >= 7 UNION ALL SELECT id FROM flight WHERE \"Altitude\" < 3650.0 OR Vehicle_Flight_number = \"M2-F1 #33\" OR \"airport_id\" < 5"} {"question": "What are the Aircraft IDs that are in both the aircraft and airport aircraft lists and are 3 or less?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F98ki_5.png", "TableImg_70sts_4.png"], "original_data_index": 9781, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "List the Aircraft IDs that are greater than 1 from the aircraft table, excluding those Aircraft IDs less than 3 from the airport_aircraft table.", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1pyvh_5.png", "TableImg_Y3mop_4.png"], "original_data_index": 9784, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What driver IDs are both 10 or less and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sluyq_12.png", "TableImg_G3buc_5.png"], "original_data_index": 9782, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Could you list the name and code for shipping agents that are either coded 'UP', or named 'USPS' and not described as 'k', or described as 't', or not coded 'SH' and named 'Fedex'?", "answer": {"columns": ["shipping_agent_name", "shipping_agent_code"], "index": [0, 1, 2, 3], "data": [["UPS", "UP"], ["USPS", "US"], ["Fedex", "FE"], ["Ship", "SH"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Yn9su_5.png", "TableImg_030ha_5.png"], "original_data_index": 9783, "original_sql": "SELECT shipping_agent_name, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code = \"UP\" OR shipping_agent_name = \"USPS\" AND shipping_agent_description <> \"k\" UNION ALL SELECT shipping_agent_name, shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description = \"t\" OR shipping_agent_code <> \"SH\" AND shipping_agent_name = \"Fedex\""} {"question": "What are the driver IDs that are either less than 9 from the driver list or at least 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mfm89_12.png", "TableImg_Nfp36_5.png"], "original_data_index": 9788, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are not 5 from the driver list, and also driver ID 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yc6ol_12.png", "TableImg_Rpexi_5.png"], "original_data_index": 9787, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the Driver IDs that are at least 5, or are not 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Twkdk_12.png", "TableImg_Twjs4_5.png"], "original_data_index": 9785, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "For each maximum gross weight, what are the counts of descriptions, aircraft IDs, total disk areas, and aircraft, considering two different sets of criteria for aircraft and combining the results?", "answer": {"columns": ["COUNT(Description)", "COUNT(Aircraft_ID)", "COUNT(Total_disk_area)", "COUNT(Aircraft)", "Max_Gross_Weight"], "index": [0, 1, 2, 3], "data": [["1", "1", "1", "1", "1,370 lb (635 kg)"], ["1", "1", "1", "1", "123,500 lb (56,000 kg)"], ["1", "1", "1", "1", "3,200 lb (1,451 kg)"], ["1", "1", "1", "1", "73,500 lb (33,300 kg)"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Mvukt_5.png", "TableImg_Eega5_5.png"], "original_data_index": 9786, "original_sql": "SELECT COUNT(Description), COUNT(Aircraft_ID), COUNT(Total_disk_area), COUNT(Aircraft), Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight = \"3,200 lb (1,451 kg)\" AND Max_disk_Loading != \"3.7 lb/ft\u00b2 (18 kg/m\u00b2)\" AND \"Aircraft_ID\" <> 5 OR Total_disk_area != \"5,655 ft\u00b2 (526 m\u00b2)\" GROUP BY Max_Gross_Weight HAVING COUNT(Aircraft) < 1 OR COUNT(Total_disk_area) > 1 OR COUNT(Aircraft_ID) >= 1 UNION SELECT COUNT(Description), COUNT(Aircraft_ID), COUNT(Total_disk_area), COUNT(Aircraft), Max_Gross_Weight FROM aircraft WHERE \"Aircraft_ID\" >= 5 AND Max_Gross_Weight != \"123,500 lb (56,000 kg)\" OR Description = \"Tandem rotor helicopter\" OR Aircraft != \"Robinson R-22\" OR Total_disk_area = \"872 ft\u00b2 (81.1 m\u00b2)\" OR Max_disk_Loading <> \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\" GROUP BY Max_Gross_Weight HAVING COUNT(Description) < 1"} {"question": "Which drivers, other than driver ID 9, are not also school bus drivers, excluding school bus driver ID 3 from the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uj0q2_12.png", "TableImg_93py1_5.png"], "original_data_index": 9789, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are all the driver IDs, other than 9, that are listed in either the driver or school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pt9kh_12.png", "TableImg_Gbqls_5.png"], "original_data_index": 9790, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What driver IDs are both greater than 2 and less than 10, and are in both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8kwoz_12.png", "TableImg_F23q5_5.png"], "original_data_index": 9792, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the role codes for employees who are not part-time or whose other details are not 'u', as well as the role codes for roles that are not manager roles?", "answer": {"columns": ["role_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["ED"], ["ED"], ["PR"], ["PT"], ["PT"], ["MG"], ["ED"], ["PT"], ["PR"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_92lhn_6.png", "TableImg_Nncnh_4.png"], "original_data_index": 9794, "original_sql": "SELECT role_code FROM Employees WHERE role_code != \"PT\" OR other_details <> \"u\" UNION ALL SELECT role_code FROM Roles WHERE role_description != \"Manager\""} {"question": "What are the player IDs of players who are either not male or have at least 2353 votes, and are also coached by someone other than coach number 1?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["6"], ["10"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_Qlivp_14.png", "TableImg_Es3us_7.png"], "original_data_index": 9791, "original_sql": "SELECT Player_ID FROM player WHERE Gender <> \"M\" OR \"Votes\" >= 2353 INTERSECT SELECT Player_ID FROM player_coach WHERE \"Coach_ID\" != 1"} {"question": "What driver IDs are assigned to both drivers with an ID of 3 or higher and school bus drivers, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rowsv_12.png", "TableImg_Sl9a5_5.png"], "original_data_index": 9797, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "What are the average allergy type, excluding food, and the average allergy type, excluding animal but including grass pollen?", "answer": {"columns": ["AVG(AllergyType)"], "index": [0, 1], "data": [["0"], ["0"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_Us7c1_14.png", "TableImg_R7gkg_14.png"], "original_data_index": 9793, "original_sql": "SELECT AVG(AllergyType) FROM Allergy_Type WHERE AllergyType <> \"food\" UNION ALL SELECT AVG(AllergyType) FROM Allergy_Type WHERE AllergyType <> \"animal\" OR Allergy = \"Grass Pollen\""} {"question": "Which driver IDs are both greater than 6 and not equal to 9, and are present in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lrlyb_12.png", "TableImg_Zchi4_5.png"], "original_data_index": 9798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What are the unique Aircraft IDs that are either less than 1 in the aircraft table or less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_049iv_5.png", "TableImg_8cqtj_4.png"], "original_data_index": 9796, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What are the Driver IDs that are either less than 10 or greater than 4, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Azz32_12.png", "TableImg_D7kkb_5.png"], "original_data_index": 9795, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which aircraft IDs, other than 4, are in the aircraft table but not in the airport aircraft table if we only consider IDs greater than 5 there?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9omi6_5.png", "TableImg_M6gc8_4.png"], "original_data_index": 9800, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Give me all Driver IDs that are not 4 from the driver table, or are less than 3 from the school_bus table.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K9ck0_12.png", "TableImg_4ty2i_5.png"], "original_data_index": 9801, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Which driver IDs are in both the driver list (where IDs are 11 or less) and the school bus list (where IDs are not 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0x9or_12.png", "TableImg_Kmipj_5.png"], "original_data_index": 9802, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Are there any driver IDs that are 6 in the driver table but not among the driver IDs less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yxgrh_12.png", "TableImg_Axjwc_5.png"], "original_data_index": 9803, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the driver IDs that are in both the driver and school bus lists and are between 9 and 12?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kud1g_12.png", "TableImg_Suc4m_5.png"], "original_data_index": 9805, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Show me the car maker ID and year for each cylinder count, but only for groups of cars that meet a specific set of complex criteria.", "answer": {"columns": ["Id", "Year"], "index": [0, 1, 2], "data": [["11", "1970"], ["22", "1970"], ["1", "1970"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Tq59e_22.png", "TableImg_Arkb9_406.png"], "original_data_index": 9806, "original_sql": "SELECT T1.Id, T2.Year FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id == T2.Id GROUP BY Cylinders HAVING FullName <> \"Subaru\" AND Maker <> \"renault\" AND Weight >= 3459 OR Accelerate <> 12.2 OR Cylinders = 8 AND Edispl <> 351.0 OR Horsepower <> \"180\" AND MPG = \"13\" AND Year >= 1974 AND Country <> \"3\""} {"question": "Tell me the major, age, average sex, first name, advisor, and city code for students who are not named Thornton and also meet at least one of these conditions: they are either not advised by advisor 8722 and not from city LON, or their first name is William, or they are under 20, have last name Davis, and their major is not 600.", "answer": {"columns": ["Major", "Age", "AVG(Sex)", "Fname", "Advisor", "city_code"], "index": [0], "data": [["600", "18", "0", "Linda", "1121", "BAL"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Qgr1w_34.png", "TableImg_Ps35u_34.png"], "original_data_index": 9807, "original_sql": "SELECT Major, Age, AVG(Sex), Fname, Advisor, city_code FROM Student WHERE \"Advisor\" <> 8722 AND city_code <> \"LON\" OR Fname = \"William\" OR \"Major\" != 600 AND LName = \"Davis\" AND \"Age\" < 20 INTERSECT SELECT Major, Age, AVG(Sex), Fname, Advisor, city_code FROM Student WHERE LName != \"Thornton\""} {"question": "What are the driver IDs that are 3 or greater, excluding driver ID 4 if they are school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V550m_12.png", "TableImg_5sn0o_5.png"], "original_data_index": 9804, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the driver IDs, specifically those not equal to 4 from the driver table and those greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Flx8y_12.png", "TableImg_Elop5_5.png"], "original_data_index": 9809, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What driver IDs are either not 6 in the driver table, or greater than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_30v8d_12.png", "TableImg_844et_5.png"], "original_data_index": 9811, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the driver IDs that are both greater than 6 and no more than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ou2p_12.png", "TableImg_Qava9_5.png"], "original_data_index": 9810, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which Aircraft IDs are greater than 4 in the aircraft table and also greater than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Piwp4_5.png", "TableImg_7ffp3_4.png"], "original_data_index": 9812, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What are the car IDs that meet the criteria from both the car makers and cars data tables? For car makers, consider cars that are 'honda' but not 'Nissan Motors', or have an ID of 23 or less, or are not from country '8'. For cars data, consider cars that are not weight 2774, not ID 197, and not 6 cylinders, or have acceleration less than 12.0 and engine displacement greater than 91.0, or were made in 1980 or earlier and do not have 75 horsepower, or do not have 26.5 MPG?", "answer": {"columns": ["Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_Oe1x6_22.png", "TableImg_Vzug7_406.png"], "original_data_index": 9808, "original_sql": "SELECT Id FROM car_makers WHERE Maker = \"honda\" AND FullName <> \"Nissan Motors\" OR \"Id\" <= 23 OR Country <> \"8\" INTERSECT SELECT Id FROM cars_data WHERE \"Weight\" <> 2774 AND \"Id\" <> 197 AND \"Cylinders\" != 6 OR \"Accelerate\" < 12.0 AND \"Edispl\" > 91.0 OR \"Year\" <= 1980 AND Horsepower != \"75\" OR MPG != \"26.5\""} {"question": "What driver IDs are both greater than 1 and less than 9, and are listed in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lnxhu_12.png", "TableImg_Zdocx_5.png"], "original_data_index": 9814, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the counts of each sex, city codes, sums of last names, first names, maximum ages, majors, student IDs, and advisors for students who fit certain criteria about their age, city, name, major, advisor, and gender, but not if they also fit another criteria related to their student ID and advisor?", "answer": {"columns": ["COUNT(Sex)", "city_code", "SUM(LName)", "Fname", "MAX(Age)", "Major", "StuID", "Advisor"], "index": [0], "data": [["34", "LON", "0", "Bruce", "27", "600", "1017", "1148"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_Exuum_34.png", "TableImg_0l844_34.png"], "original_data_index": 9813, "original_sql": "SELECT COUNT(Sex), city_code, SUM(LName), Fname, MAX(Age), Major, StuID, Advisor FROM Student WHERE \"Age\" != 17 AND city_code != \"CHI\" OR LName != \"Brown\" AND \"Major\" < 520 AND \"Advisor\" >= 1148 OR Sex != \"F\" AND \"StuID\" != 1006 EXCEPT SELECT COUNT(Sex), city_code, SUM(LName), Fname, MAX(Age), Major, StuID, Advisor FROM Student WHERE \"StuID\" <> 1014 AND \"Advisor\" >= 7134"} {"question": "Could you list the parties and lieutenant governors for all years before 2006, as well as for 2006 when the lieutenant governor was not Dennis Mehiel and the party ID was 1?", "answer": {"columns": ["Party", "Lieutenant_Governor"], "index": [0, 1, 2, 3], "data": [["Democratic", "Dennis Mehiel"], ["Democratic", "Sandra Frankel"], ["Independence", "Mary Donohue"], ["Liberal", "Jonathan Reiter"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Mbezy_7.png", "TableImg_Qk8yq_7.png"], "original_data_index": 9816, "original_sql": "SELECT Party, Lieutenant_Governor FROM party WHERE \"Year\" < 2006.0 UNION SELECT Party, Lieutenant_Governor FROM party WHERE \"Year\" = 2006.0 AND Lieutenant_Governor != \"Dennis Mehiel\" AND \"Party_ID\" = 1"} {"question": "Which driver IDs are for drivers with an ID of 2 or less, but not for school bus drivers with an ID less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0cxp1_12.png", "TableImg_Xtczc_5.png"], "original_data_index": 9815, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the driver IDs that are both 11 or less and also 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cyu30_12.png", "TableImg_Npbb1_5.png"], "original_data_index": 9818, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the driver IDs, excluding driver 2 from the driver list and driver 3 from the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fe4a4_12.png", "TableImg_Ep0qr_5.png"], "original_data_index": 9820, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which Driver IDs are 2 or less in the driver table, or 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nw1j1_12.png", "TableImg_8v8bh_5.png"], "original_data_index": 9819, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Which driver IDs, other than 4, are drivers but not school bus drivers, considering only school bus drivers who are not ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hlsp1_12.png", "TableImg_Zxa1a_5.png"], "original_data_index": 9817, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the driver IDs that are not 8 from the driver table, and also the driver IDs that are 9 or less from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ktzn2_12.png", "TableImg_Kerbd_5.png"], "original_data_index": 9822, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Is driver ID 6 listed as a driver but not as a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U3vq6_12.png", "TableImg_T1hzr_5.png"], "original_data_index": 9824, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What is the total company ID and average velocity for flights that are either piloted by Thompson and not flight 'M2-F1 #1', or had an altitude other than 3650.0 on September 3, 1963, or are flight 'M2-F1 #61', or are not on March 28, 1966 with a velocity other than 240.0, or are not piloted by Peterson?", "answer": {"columns": ["SUM(company_id)", "AVG(Velocity)"], "index": [0, 1], "data": [["45", "228.3333333333"], ["48", "229.5"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_584x2_13.png", "TableImg_3ekma_13.png"], "original_data_index": 9821, "original_sql": "SELECT SUM(company_id), AVG(Velocity) FROM flight WHERE Pilot = \"Thompson\" AND Vehicle_Flight_number <> \"M2-F1 #1\" OR \"Altitude\" <> 3650.0 AND Date = \"September 3, 1963\" UNION ALL SELECT SUM(company_id), AVG(Velocity) FROM flight WHERE Vehicle_Flight_number = \"M2-F1 #61\" OR Date <> \"March 28, 1966\" AND \"Velocity\" <> 240.0 OR Pilot != \"Peterson\""} {"question": "List the aircraft IDs that are 3 or more, or for flights that have a distance less than 1749, or a price of 425.98 or less and an arrival date not '2005-12-04 05:03', or a destination other than 'New York' and origin 'Los Angeles' and flight number greater than 99, or a departure date not '2005-12-04 07:03'.", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_908vk_16.png", "TableImg_92bmx_10.png"], "original_data_index": 9823, "original_sql": "SELECT aid FROM aircraft WHERE \"aid\" >= 3 UNION SELECT aid FROM flight WHERE \"distance\" < 1749 OR \"price\" <= 425.98 AND arrival_date <> \"04/12/2005 05:03\" OR destination != \"New York\" AND origin = \"Los Angeles\" AND \"flno\" > 99 OR departure_date != \"04/12/2005 07:03\""} {"question": "List all flight details including departure date, destination, price, flight number, airline ID, distance, origin, and arrival date for flights that are either from Los Angeles, departing on '04/12/2005 08:32', or priced at 375.23 or more, as well as flights that have an airline ID of 1 or less and arrive at a time other than '04/12/2005 03:55', or depart at a time other than '04/12/2005 09:15', or have a price of 375.23 or less and are not going to Chicago, or are not originating from Chicago.", "answer": {"columns": ["departure_date", "destination", "price", "flno", "aid", "distance", "origin", "arrival_date"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["04/12/2005 09:30", "Washington D.C.", "235.98", "99", "1", "2308", "Los Angeles", "04/12/2005 09:40"], ["04/12/2005 08:45", "Chicago", "220.98", "13", "3", "1749", "Los Angeles", "04/12/2005 08:45"], ["04/12/2005 11:50", "Dallas", "182.0", "346", "2", "1251", "Los Angeles", "04/12/2005 07:05"], ["04/12/2005 07:03", "Boston", "261.56", "387", "6", "2606", "Los Angeles", "04/12/2005 05:03"], ["04/12/2005 05:30", "Sydney", "278.56", "7", "3", "7487", "Los Angeles", "04/12/2005 11:10"], ["04/12/2005 06:30", "Tokyo", "780.99", "2", "9", "5478", "Los Angeles", "04/12/2005 03:55"], ["04/12/2005 09:15", "Honolulu", "375.23", "33", "7", "2551", "Los Angeles", "04/12/2005 11:15"], ["04/12/2005 12:45", "Honolulu", "425.98", "34", "5", "2551", "Los Angeles", "04/12/2005 03:18"], ["04/12/2005 08:32", "Los Angeles", "220.98", "76", "9", "1749", "Chicago", "04/12/2005 10:03"], ["04/12/2005 09:30", "Washington D.C.", "235.98", "99", "1", "2308", "Los Angeles", "04/12/2005 09:40"], ["04/12/2005 08:45", "Chicago", "220.98", "13", "3", "1749", "Los Angeles", "04/12/2005 08:45"], ["04/12/2005 11:50", "Dallas", "182.0", "346", "2", "1251", "Los Angeles", "04/12/2005 07:05"], ["04/12/2005 07:03", "Boston", "261.56", "387", "6", "2606", "Los Angeles", "04/12/2005 05:03"], ["04/12/2005 05:30", "Sydney", "278.56", "7", "3", "7487", "Los Angeles", "04/12/2005 11:10"], ["04/12/2005 06:30", "Tokyo", "780.99", "2", "9", "5478", "Los Angeles", "04/12/2005 03:55"], ["04/12/2005 09:15", "Honolulu", "375.23", "33", "7", "2551", "Los Angeles", "04/12/2005 11:15"], ["04/12/2005 12:45", "Honolulu", "425.98", "34", "5", "2551", "Los Angeles", "04/12/2005 03:18"], ["04/12/2005 08:32", "Los Angeles", "220.98", "76", "9", "1749", "Chicago", "04/12/2005 10:03"], ["04/12/2005 09:00", "New York", "202.45", "68", "10", "802", "Chicago", "04/12/2005 12:02"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Mdxa5_10.png", "TableImg_M97qp_10.png"], "original_data_index": 9825, "original_sql": "SELECT departure_date, destination, price, flno, aid, distance, origin, arrival_date FROM flight WHERE origin = \"Los Angeles\" OR departure_date = \"04/12/2005 08:32\" OR \"price\" >= 375.23 UNION ALL SELECT departure_date, destination, price, flno, aid, distance, origin, arrival_date FROM flight WHERE \"aid\" <= 1 AND arrival_date <> \"04/12/2005 03:55\" OR departure_date <> \"04/12/2005 09:15\" OR \"price\" <= 375.23 AND destination != \"Chicago\" OR origin <> \"Chicago\""} {"question": "Which driver IDs are both in the driver list, excluding driver 12, and in the school bus list, excluding driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Afb37_12.png", "TableImg_4sf76_5.png"], "original_data_index": 9830, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What driver IDs are greater than 10 in the driver table, or less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9bpci_12.png", "TableImg_W3opf_5.png"], "original_data_index": 9826, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which Aircraft IDs are in both the aircraft and airport aircraft lists, and are also greater than or equal to 4 in the aircraft list and not equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tr6qv_5.png", "TableImg_Iaij1_4.png"], "original_data_index": 9827, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What are the IDs of albums with IDs less than 13 and media types with IDs less than or equal to 2?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_Y9kcj_347.png", "TableImg_Uu3po_5.png"], "original_data_index": 9829, "original_sql": "SELECT id FROM albums WHERE \"id\" < 13 UNION SELECT id FROM media_types WHERE \"id\" <= 2"} {"question": "What are the minimum document type codes, specifically: one excluding \"Hard Drive\", and another for those described as \"f\" and not \"CD\"?", "answer": {"columns": ["MIN(document_type_code)"], "index": [0, 1], "data": [["CD"], ["Hard Drive"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Wmqg3_3.png", "TableImg_Mtvvc_3.png"], "original_data_index": 9833, "original_sql": "SELECT MIN(document_type_code) FROM Ref_Document_Types WHERE document_type_code != \"Hard Drive\" UNION ALL SELECT MIN(document_type_code) FROM Ref_Document_Types WHERE document_type_description = \"f\" AND document_type_code <> \"CD\""} {"question": "What are the driver IDs that are number 11 or are not number 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hzz3o_12.png", "TableImg_S8gvh_5.png"], "original_data_index": 9835, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are for drivers who are not also school bus drivers? Exclude driver ID 2 from the drivers, and only consider school bus drivers with IDs up to 9.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9d6m2_12.png", "TableImg_Lrc82_5.png"], "original_data_index": 9832, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What driver IDs are common to both drivers with IDs greater than 2 and school bus drivers with ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qnejt_12.png", "TableImg_D3v3x_5.png"], "original_data_index": 9834, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the employee IDs for employees who are not from Bristol, as well as employee IDs from hiring records where either the shop ID is 1 or more and the start year is 2010, or the employee is not full-time?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["3"], ["6"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Ks4hc_10.png", "TableImg_Z7dat_7.png"], "original_data_index": 9836, "original_sql": "SELECT Employee_ID FROM employee WHERE City <> \"Bristol\" UNION ALL SELECT Employee_ID FROM hiring WHERE \"Shop_ID\" >= 1 AND Start_from = \"2010\" OR Is_full_time != \"T\""} {"question": "What is the highest car ID and its MPG for cars that are either from 1974 onwards with 150 horsepower and not 38 MPG, or have an engine displacement greater than 140, or accelerate in 16 seconds, or are not a Citroen, or are made by Citroen?", "answer": {"columns": ["MAX(T1.Id)", "MPG"], "index": [0], "data": [["23", "18"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_L4hcg_22.png", "TableImg_N50uj_406.png"], "original_data_index": 9837, "original_sql": "SELECT MAX(T1.Id), T2.MPG FROM car_makers as T1 JOIN cars_data as T2 ON T1.Id = T2.Id WHERE \"Year\" >= 1974 AND Horsepower = \"150\" AND MPG <> \"38\" OR \"Edispl\" > 140.0 OR \"Accelerate\" = 16.0 OR FullName <> \"Citroen\" OR Maker = \"citroen\""} {"question": "Which driver IDs are at least 2 in the driver table but are not in the school bus table, unless they are driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6aofu_12.png", "TableImg_82cjo_5.png"], "original_data_index": 9831, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the details and IDs of vans with a vehicle ID less than 2?", "answer": {"columns": ["vehicle_details", "vehicle_id"], "index": [0], "data": [["Van", "1"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Lt41a_3.png", "TableImg_U6f67_3.png"], "original_data_index": 9841, "original_sql": "SELECT vehicle_details, vehicle_id FROM Vehicles WHERE \"vehicle_id\" <> 2 AND vehicle_details = \"Van\" INTERSECT SELECT vehicle_details, vehicle_id FROM Vehicles WHERE \"vehicle_id\" <= 2"} {"question": "What are the working years and driver IDs for school buses with a school ID of 1 or higher that are not full-time, except for those with a driver ID less than 10 and working years of 2 or less?", "answer": {"columns": ["Years_Working", "Driver_ID"], "index": [0], "data": [["10", "10"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_Yrabf_5.png", "TableImg_Toexx_5.png"], "original_data_index": 9839, "original_sql": "SELECT Years_Working, Driver_ID FROM school_bus WHERE \"School_ID\" >= 1 AND If_full_time <> \"T\" EXCEPT SELECT Years_Working, Driver_ID FROM school_bus WHERE \"Driver_ID\" < 10 AND \"Years_Working\" <= 2"} {"question": "Give me the advisor and student ID for students who either have a major code of 540 or less, or a student ID of 1031 or more, or who are not 20 years old, or have a major code other than 600, or have an advisor other than 5718, or are named Lisa and from PIT, or are not male.", "answer": {"columns": ["Advisor", "StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33], "data": [["1121", "1001"], ["1121", "1005"], ["1121", "1018"], ["1148", "1006"], ["1148", "1011"], ["1148", "1017"], ["2192", "1009"], ["2192", "1010"], ["2192", "1016"], ["2192", "1019"], ["2311", "1028"], ["2311", "1029"], ["2311", "1030"], ["5718", "1034"], ["5718", "1035"], ["7134", "1025"], ["7134", "1026"], ["7271", "1020"], ["7271", "1024"], ["7712", "1002"], ["7723", "1012"], ["7792", "1003"], ["8423", "1004"], ["8721", "1015"], ["8722", "1021"], ["8722", "1022"], ["8722", "1023"], ["8723", "1027"], ["8741", "1014"], ["8772", "1031"], ["8772", "1032"], ["8772", "1033"], ["8918", "1007"], ["9172", "1008"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_E4von_34.png", "TableImg_5i0hk_34.png"], "original_data_index": 9838, "original_sql": "SELECT Advisor, StuID FROM Student WHERE \"Major\" <= 540 OR \"StuID\" >= 1031 UNION SELECT Advisor, StuID FROM Student WHERE \"Age\" <> 20 OR \"Major\" <> 600 OR \"Advisor\" != 5718 OR Fname = \"Lisa\" AND city_code = \"PIT\" OR Sex != \"M\""} {"question": "Which customer IDs are for payments made on February 19, 2018 at 09:06:29, excluding payments of $6782.84, or for customers who either don't have the phone number '192-395-2411' or have mobile number '081-097-3684' and an email address other than 'asha.kilback@example.org'?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["14"], ["15"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_4r146_15.png", "TableImg_Lgz1y_15.png"], "original_data_index": 9840, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment = \"2018-02-19 09:06:29\" AND \"amount_payment\" <> 6782.84 UNION SELECT customer_id FROM Customers WHERE phone_number != \"192-395-2411\" OR cell_mobile_phone_number = \"081-097-3684\" AND email_address <> \"asha.kilback@example.org\""} {"question": "What are the aircraft IDs that are in both the aircraft table (excluding ID 3) and the airport aircraft table (including only IDs 1 and 2)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cff59_5.png", "TableImg_Ri7o7_4.png"], "original_data_index": 9843, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "What driver IDs are ID 1 from the driver table, or IDs 1, 2, or 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0ltul_12.png", "TableImg_Rctjb_5.png"], "original_data_index": 9842, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What driver IDs are 1 or higher in the driver table, or 9 or higher in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Twwsx_12.png", "TableImg_Vt9hq_5.png"], "original_data_index": 9846, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What are the item IDs and their ranks for items with a rank less than 3, where the associated review has a reviewer ID of 7 or less?", "answer": {"columns": ["i_id", "rank"], "index": [0, 1], "data": [["1", "1"], ["1", "2"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Yx76c_8.png", "TableImg_78ite_7.png"], "original_data_index": 9844, "original_sql": "SELECT T1.i_id, T2.rank FROM item as T1 JOIN review as T2 ON T1.i_id == T2.i_id GROUP BY rank HAVING rank < 3 AND a_id <= 7"} {"question": "What are all District IDs from the 'district' table for districts that either have a City Population of 530438, or have a City Area not equal to 10, a District ID of 2 or less, and are not headquartered in \"Jhelum City\"? Also, include all District IDs from the 'store_district' table for stores that have a Store ID of 1 or less and a District ID less than 11.", "answer": {"columns": ["District_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_H11ub_15.png", "TableImg_5btwy_5.png"], "original_data_index": 9845, "original_sql": "SELECT District_ID FROM district WHERE \"City_Population\" = 530438.0 OR \"City_Area\" <> 10.0 AND \"District_ID\" <= 2 AND Headquartered_City != \"Jhelum City\" UNION ALL SELECT District_ID FROM store_district WHERE \"Store_ID\" <= 1 AND \"District_ID\" < 11"} {"question": "Is Aircraft ID 1 in both the aircraft and airport_aircraft tables, given we ignore Aircraft ID 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F2hyc_5.png", "TableImg_Kkz4j_4.png"], "original_data_index": 9849, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "What aircraft types, along with their minimum ID and maximum distance, meet one set of conditions but not another?", "answer": {"columns": ["MIN(aid)", "MAX(distance)", "name"], "index": [0, 1, 2, 3], "data": [["13", "2605", "Airbus A320"], ["14", "1805", "Airbus A319"], ["15", "1504", "Boeing 727"], ["16", "30", "Schwitzer 2-33"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Bddlx_16.png", "TableImg_Xsg1p_16.png"], "original_data_index": 9847, "original_sql": "SELECT MIN(aid), MAX(distance), name FROM aircraft WHERE \"aid\" >= 5 AND name != \"Airbus A340-300\" AND \"distance\" != 4103 GROUP BY name HAVING MIN(aid) >= 13 EXCEPT SELECT MIN(aid), MAX(distance), name FROM aircraft WHERE \"aid\" >= 5 AND \"distance\" < 7120 OR name != \"Boeing 767-400ER\" GROUP BY name HAVING MAX(distance) = 3383"} {"question": "For each airport ICAO code, what are the minimum airport ID and company ID, considering only the airports and flights that satisfy a very specific and complex set of criteria?", "answer": {"columns": ["MIN(T1.id)", "company_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1", "2"], ["9", "11"], ["2", "3"], ["7", "11"], ["6", "6"], ["8", "13"], ["5", "5"], ["3", "4"]]}, "table_names": "['airport' 'flight']", "table_image_ids": ["TableImg_Bay1n_9.png", "TableImg_05urk_13.png"], "original_data_index": 9848, "original_sql": "SELECT MIN(T1.id), T2.company_id FROM airport as T1 JOIN flight as T2 ON T1.id = T2.id WHERE IATA <> \"BLL\" OR Date = \"January 29, 1964\" OR \"Altitude\" <= 3650.0 AND ICAO <> \"EBBR\" AND \"airport_id\" > 2 AND name = \"Billund Airport\" GROUP BY ICAO HAVING City = \"Akureyri\" AND MIN(company_id) < 2 AND name <> \"Ted Stevens Airport\" AND IATA = \"BCN\" OR Vehicle_Flight_number = \"M2-F1 #61\" AND SUM(Velocity) >= 240.0 OR airport_id <> 3 OR Pilot = \"Thompson\" AND MIN(Altitude) <= 3650.0 AND Country = \"Netherlands\" OR ICAO = \"LEBL\""} {"question": "What are the head IDs for people who are not named 'Billy Mayfair' or have an ID of 9, excluding those who are non-temporary managers with an ID greater than 6?", "answer": {"columns": ["head_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Oecm3_10.png", "TableImg_9577z_5.png"], "original_data_index": 9853, "original_sql": "SELECT head_ID FROM head WHERE name != \"Billy Mayfair\" OR \"head_ID\" = 9 EXCEPT SELECT head_ID FROM management WHERE temporary_acting = \"No\" AND \"head_ID\" > 6"} {"question": "What are the Aircraft IDs that are not 1 from the aircraft table, and those that are 3 or less from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mwync_5.png", "TableImg_Nor3e_4.png"], "original_data_index": 9851, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which Aircraft IDs are in the aircraft table, except for 5, and are not among the Aircraft IDs that are 1 or less in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rrpxb_5.png", "TableImg_Lmdws_4.png"], "original_data_index": 9850, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "What are the store IDs that are for stores with area size 21.73 and also appear in store districts with an ID over 3?", "answer": {"columns": ["Store_ID"], "index": [0], "data": [["4"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_U4znu_5.png", "TableImg_Fcm3h_5.png"], "original_data_index": 9854, "original_sql": "SELECT Store_ID FROM store WHERE \"Area_size\" = 21.73 INTERSECT SELECT Store_ID FROM store_district WHERE \"Store_ID\" > 3"} {"question": "What are the budgeted amount, year, total budget percentage invested, total budget percentage budgeted, and school ID for budget records that satisfy either (school ID is 4 or less, percentage invested is less than 2.2, budgeted amount is 6803 or more, and invested amount is greater than 95542) or percentage budgeted is 2.0 or less or year is 2001 or later or percentage invested is 2.2 or more or budgeted amount is not 3666 and invested amount is not 8335?", "answer": {"columns": ["Budgeted", "Year", "total_budget_percent_invested", "total_budget_percent_budgeted", "School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["4979", "1999", "2.0", "2.0", "2"], ["3666", "2000", "2.0", "2.0", "2"], ["6803", "2001", "2.0", "2.0", "2"], ["6803", "2002", "2.0", "2.0", "3"], ["74849", "2004", "2.2", "2.0", "4"], ["61283", "2005", "2.7", "1.3", "5"], ["113531", "2006", "2.7", "2.0", "5"], ["4979", "1999", "2.0", "2.0", "2"], ["6803", "2001", "2.0", "2.0", "2"], ["6803", "2002", "2.0", "2.0", "3"], ["119527", "2003", "2.2", "2.4", "1"], ["74849", "2004", "2.2", "2.0", "4"], ["61283", "2005", "2.7", "1.3", "5"], ["113531", "2006", "2.7", "2.0", "5"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Sqlcp_8.png", "TableImg_Ml2pq_8.png"], "original_data_index": 9852, "original_sql": "SELECT Budgeted, Year, total_budget_percent_invested, total_budget_percent_budgeted, School_id FROM budget WHERE \"School_id\" <= 4 AND \"total_budget_percent_invested\" < 2.2 AND \"Budgeted\" >= 6803 AND \"Invested\" > 95542 OR \"total_budget_percent_budgeted\" <= 2.0 UNION ALL SELECT Budgeted, Year, total_budget_percent_invested, total_budget_percent_budgeted, School_id FROM budget WHERE \"Year\" >= 2001 OR \"total_budget_percent_invested\" >= 2.2 OR \"Budgeted\" <> 3666 AND \"Invested\" != 8335"} {"question": "What driver IDs are in both the list of drivers, excluding driver ID 12, and the list of school bus drivers, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dbiys_12.png", "TableImg_6kpvz_5.png"], "original_data_index": 9856, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What aircraft IDs are there that are 1 or higher in the aircraft table, or 3 or higher in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5kw5p_5.png", "TableImg_Pf3aj_4.png"], "original_data_index": 9855, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What continents are listed for continent IDs of 3 or greater, along with continents that are not continent number 4, or not named 'uk', or have a country ID less than 6?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["asia"], ["africa"], ["australia"], ["1"], ["2"], ["2"], ["3"], ["2"], ["2"], ["2"], ["3"], ["2"], ["4"], ["5"], ["5"], ["4"], ["1"], ["1"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_Eh7qe_5.png", "TableImg_9tr13_15.png"], "original_data_index": 9857, "original_sql": "SELECT Continent FROM continents WHERE \"ContId\" >= 3 UNION ALL SELECT Continent FROM countries WHERE \"Continent\" != 4 OR CountryName != \"uk\" OR \"CountryId\" < 6"} {"question": "For each airport, what is the largest aircraft ID that is associated with it?", "answer": {"columns": ["MAX(T1.Aircraft_ID)", "Airport_ID"], "index": [0], "data": [["5", "6"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iuphd_5.png", "TableImg_Fl7ug_4.png"], "original_data_index": 9860, "original_sql": "SELECT MAX(T1.Aircraft_ID), T2.Airport_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What document IDs are common to both document drafts with a document ID greater than 12 or a draft number greater than 20, and documents that are either of type 'Hard Drive' and not receipt number '93', or have a document ID of 2 or more, or were received on '1983-09-26 09:32:56' and are not 'done', not shipped by 'UP', and have other details not 'x'?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4], "data": [["13"], ["14"], ["17"], ["20"], ["23"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Tdt7x_15.png", "TableImg_Adgzo_15.png"], "original_data_index": 9859, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"document_id\" > 12 OR \"draft_number\" > 20 INTERSECT SELECT document_id FROM Documents WHERE document_type_code = \"Hard Drive\" AND receipt_number != \"93\" OR \"document_id\" >= 2 OR receipt_date = \"1983-09-26 09:32:56\" AND document_status_code <> \"done\" AND shipping_agent_code != \"UP\" AND other_details <> \"x\""} {"question": "What aircraft IDs greater than 2 are in the aircraft table but not in the airport_aircraft table, disregarding aircraft ID 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1n1u7_5.png", "TableImg_2txob_4.png"], "original_data_index": 9858, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What aircraft IDs are either less than 4, or specifically ID 1, from the aircraft and airport aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R5o9x_5.png", "TableImg_721dj_4.png"], "original_data_index": 9861, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the driver IDs that are not 4 from the driver table, or are greater than 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9hitm_12.png", "TableImg_Pkqwr_5.png"], "original_data_index": 9865, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What are the employee IDs for employees who either have a certificate ID other than 552455318, or a certificate aid less than 12, or are named 'Eric Cooper' and have an ID other than 574489457, or have a salary greater than 212156?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["11564812"], ["90873519"], ["141582651"], ["142519864"], ["159542516"], ["242518965"], ["269734834"], ["274878974"], ["310454876"], ["355548984"], ["356187925"], ["390487451"], ["548977562"], ["550156548"], ["552455318"], ["556784565"], ["567354612"], ["573284895"], ["574489456"], ["574489457"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Eblxz_69.png", "TableImg_Lt2m1_31.png"], "original_data_index": 9862, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" != 552455318 OR \"aid\" < 12 UNION SELECT eid FROM employee WHERE \"eid\" <> 574489457 AND name = \"Eric Cooper\" OR \"salary\" > 212156"} {"question": "Which Driver IDs are either greater than 9 in the driver table or not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zyfsk_12.png", "TableImg_Ybodh_5.png"], "original_data_index": 9867, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Which driver IDs are greater than 6, and are not among the driver IDs less than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ebkm4_12.png", "TableImg_8bq1q_5.png"], "original_data_index": 9866, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which aircraft ID is 5, but only if aircraft ID 1 is not an airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J89j5_5.png", "TableImg_Bpbbf_4.png"], "original_data_index": 9864, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Which Driver IDs are greater than 2 in the driver table, or less than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nl196_12.png", "TableImg_89q6e_5.png"], "original_data_index": 9869, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the unique Aircraft IDs that are either greater than 2 in the aircraft table, or not equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1ngrs_5.png", "TableImg_3rxln_4.png"], "original_data_index": 9870, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What are the driver IDs that are in the driver list, excluding driver ID 8, but are not in the school bus driver list for IDs 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9kwpf_12.png", "TableImg_9wywk_5.png"], "original_data_index": 9871, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are either 6 for drivers or 4 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lpa47_12.png", "TableImg_28jnu_5.png"], "original_data_index": 9868, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What driver IDs are 7 or less, or are not 9 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_48fta_12.png", "TableImg_I4r60_5.png"], "original_data_index": 9872, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What driver IDs are in the driver list, except for ID 4, and also not in the school bus list if they are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6eq17_12.png", "TableImg_2klbs_5.png"], "original_data_index": 9873, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the phone numbers and the corresponding sum of area codes, excluding records created on \"2018-03-09 19:03:21\"?", "answer": {"columns": ["SUM(T1.area_code)", "phone_number"], "index": [0], "data": [["31171", "7148407040"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_Xfsti_305.png", "TableImg_Dfb3u_4.png"], "original_data_index": 9876, "original_sql": "SELECT SUM(T1.area_code), T2.phone_number FROM AREA_CODE_STATE as T1 JOIN VOTES as T2 ON T1.state = T2.state WHERE created <> \"2018-03-09 19:03:21\""} {"question": "What driver IDs are both not equal to 6 and also greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fvdis_12.png", "TableImg_2887u_5.png"], "original_data_index": 9874, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What driver IDs are ID 6 from the driver list, or IDs less than 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Djnzt_12.png", "TableImg_D7fsm_5.png"], "original_data_index": 9878, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What driver IDs are 2 or less, but are not among those greater than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N7s4s_12.png", "TableImg_Kn35g_5.png"], "original_data_index": 9877, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What Aircraft IDs are in both the aircraft table (excluding ID 5) and the airport_aircraft table (including only IDs up to 3)?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Siwnt_5.png", "TableImg_Cs0af_4.png"], "original_data_index": 9879, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "What driver IDs are greater than 7 and are not school bus driver IDs, if we ignore school bus driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6uh32_12.png", "TableImg_42kqw_5.png"], "original_data_index": 9875, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the Driver IDs, excluding driver ID 4 and school bus driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fd7a7_12.png", "TableImg_Oll7w_5.png"], "original_data_index": 9881, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the sum of Model, along with Maker and ModelId, for models that are not 'audi', have a ModelId other than 31, and a Maker other than 5, and also for models that are not 'dodge' and either have a Maker less than 5 or a ModelId is 12 or less?", "answer": {"columns": ["SUM(Model)", "Maker", "ModelId"], "index": [0, 1], "data": [["0", "1", "1"], ["0", "1", "1"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Umeel_36.png", "TableImg_Vlaba_36.png"], "original_data_index": 9880, "original_sql": "SELECT SUM(Model), Maker, ModelId FROM model_list WHERE Model != \"audi\" AND \"ModelId\" <> 31 AND \"Maker\" <> 5 UNION ALL SELECT SUM(Model), Maker, ModelId FROM model_list WHERE Model <> \"dodge\" AND \"Maker\" < 5 OR \"ModelId\" <= 12"} {"question": "Which driver IDs are drivers other than driver 3 and also school bus drivers other than driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dbgyo_12.png", "TableImg_Hnhuz_5.png"], "original_data_index": 9882, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What driver IDs are less than 3 in the driver table, or less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Unc0n_12.png", "TableImg_Rvmp5_5.png"], "original_data_index": 9883, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the Aircraft IDs that are greater than 1 in the aircraft table or less than 2 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nxp30_5.png", "TableImg_Fk5u0_4.png"], "original_data_index": 9885, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What are the unique Aircraft IDs that are at most 2 from the aircraft table, or at least 5 from the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vwa8n_5.png", "TableImg_Ytjii_4.png"], "original_data_index": 9886, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "What driver IDs are 1 or greater and are not also IDs of school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6dfqx_12.png", "TableImg_Nag7b_5.png"], "original_data_index": 9884, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the item IDs, user IDs, and ratings for reviews that are both either not from user 2 or for item 2, and also either rated 5 or less by user 1 or for item 3 or less?", "answer": {"columns": ["a_id", "u_id", "rating"], "index": [0, 1, 2, 3], "data": [["1", "1", "10"], ["2", "2", "5"], ["3", "1", "7"], ["6", "1", "5"]]}, "table_names": "['review' 'review']", "table_image_ids": ["TableImg_Zk1m4_7.png", "TableImg_F2ljb_7.png"], "original_data_index": 9887, "original_sql": "SELECT a_id, u_id, rating FROM review WHERE \"u_id\" != 2 OR \"a_id\" = 2 INTERSECT SELECT a_id, u_id, rating FROM review WHERE \"rating\" <= 5 AND \"u_id\" = 1 OR \"a_id\" <= 3"} {"question": "What copy numbers, document IDs, and draft numbers are found in both the circulation history for documents other than document ID 2, and in the draft copies where the copy number is 4 or less, or the document ID is 20 or greater?", "answer": {"columns": ["copy_number", "document_id", "draft_number"], "index": [0], "data": [["15", "20", "17"]]}, "table_names": "['Circulation_History' 'Draft_Copies']", "table_image_ids": ["TableImg_2ff19_4.png", "TableImg_5bq66_8.png"], "original_data_index": 9888, "original_sql": "SELECT copy_number, document_id, draft_number FROM Circulation_History WHERE \"document_id\" <> 2 INTERSECT SELECT copy_number, document_id, draft_number FROM Draft_Copies WHERE \"copy_number\" <= 4 OR \"document_id\" >= 20"} {"question": "What driver IDs are found in drivers (excluding ID 9) or school buses (excluding ID 4)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qwsbe_12.png", "TableImg_4olbz_5.png"], "original_data_index": 9889, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver IDs are greater than 2 and not 10, and are in both driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Swviy_12.png", "TableImg_Dm53e_5.png"], "original_data_index": 9890, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "For districts with a city area less than 10 or equal to 147, could you list the headquartered city, district ID, and the counts of district names and city areas?", "answer": {"columns": ["Headquartered_City", "COUNT(District_name)", "District_ID", "COUNT(City_Area)"], "index": [0, 1], "data": [["", "0", "", "0"], ["Faisalabad City", "1", "8.0", "1"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_7gl69_15.png", "TableImg_Uot2w_15.png"], "original_data_index": 9891, "original_sql": "SELECT Headquartered_City, COUNT(District_name), District_ID, COUNT(City_Area) FROM district WHERE \"City_Area\" < 10.0 UNION ALL SELECT Headquartered_City, COUNT(District_name), District_ID, COUNT(City_Area) FROM district WHERE \"City_Area\" = 147.0"} {"question": "What Driver IDs are either 10 or less from the driver list or 3 or more from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O0e56_12.png", "TableImg_F1jk8_5.png"], "original_data_index": 9893, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the aircraft IDs, along with the number of names and total distance for each, for aircraft that either have a total distance less than 2128 and at least one name, or have more than one name?", "answer": {"columns": ["aid", "COUNT(name)", "SUM(distance)"], "index": [0, 1, 2, 3, 4, 5], "data": [["4", "1", "1502"], ["5", "1", "1530"], ["7", "1", "520"], ["14", "1", "1805"], ["15", "1", "1504"], ["16", "1", "30"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Tuf2e_16.png", "TableImg_1adkv_16.png"], "original_data_index": 9895, "original_sql": "SELECT aid, COUNT(name), SUM(distance) FROM aircraft GROUP BY aid HAVING SUM(distance) < 2128 AND COUNT(name) >= 1 UNION SELECT aid, COUNT(name), SUM(distance) FROM aircraft GROUP BY aid HAVING COUNT(name) > 1"} {"question": "What driver IDs are common to both drivers with IDs greater than or equal to 1 and school bus drivers with IDs greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R8iw9_12.png", "TableImg_Mx5xg_5.png"], "original_data_index": 9892, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What driver IDs are in the driver table, except for 8, or in the school bus table, except for 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Umyqq_12.png", "TableImg_0wd7y_5.png"], "original_data_index": 9894, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver IDs are in the driver table, excluding ID 9, but not driver ID 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lgh1g_12.png", "TableImg_Mdrym_5.png"], "original_data_index": 9899, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What driver IDs are either 4 or greater from the drivers, or not 10 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_55r2l_12.png", "TableImg_Zaois_5.png"], "original_data_index": 9897, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What driver IDs are in the driver list, are not 12, and are not among the driver IDs in the school bus list that are greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jt85h_12.png", "TableImg_Hud0c_5.png"], "original_data_index": 9896, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What average allergy level and allergy type are found in common between allergies that are not 'Dog', and allergies that are not 'Ragweed' and are not of 'animal' type?", "answer": {"columns": ["AVG(Allergy)", "AllergyType"], "index": [0], "data": [["0", "food"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_Gquf0_14.png", "TableImg_Jlhxq_14.png"], "original_data_index": 9898, "original_sql": "SELECT AVG(Allergy), AllergyType FROM Allergy_Type WHERE Allergy <> \"Dog\" INTERSECT SELECT AVG(Allergy), AllergyType FROM Allergy_Type WHERE AllergyType != \"animal\" AND Allergy <> \"Ragweed\""} {"question": "What driver IDs are common to drivers with IDs of 5 or less and school bus drivers with ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3kfq6_12.png", "TableImg_1twxt_5.png"], "original_data_index": 9901, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "What driver IDs are on the driver list, excluding driver ID 8, but are not on the school bus driver list, excluding driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6vzgw_12.png", "TableImg_Veals_5.png"], "original_data_index": 9902, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the Driver IDs that are greater than 11 in the driver table, or not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cd2gn_12.png", "TableImg_P9y1y_5.png"], "original_data_index": 9903, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the Driver IDs, excluding ID 8 for drivers and ID 10 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8su7f_12.png", "TableImg_Pi61b_5.png"], "original_data_index": 9905, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What are the Shop IDs of shops that either started hiring in a year other than 2012 or have fewer than 4 employees, or are not in 'Jakobstads Centralplan', have 1600 or more products, or are named 'FF Jaro'?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_5et3u_7.png", "TableImg_Gwd66_9.png"], "original_data_index": 9904, "original_sql": "SELECT Shop_ID FROM hiring WHERE Start_from != \"2012\" OR \"Employee_ID\" < 4 UNION SELECT Shop_ID FROM shop WHERE District != \"Jakobstads Centralplan\" OR \"Number_products\" >= 1600 OR Name = \"FF Jaro\""} {"question": "What are the driver IDs that are at least 7 from the driver list, or are any driver ID except 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Otk9m_12.png", "TableImg_Gz1vg_5.png"], "original_data_index": 9909, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver IDs are 6 or greater in the driver table but not also greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vnwac_12.png", "TableImg_2k1oo_5.png"], "original_data_index": 9907, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What Driver IDs are either 8 or greater in the driver table, or not 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4xkuv_12.png", "TableImg_0m53m_5.png"], "original_data_index": 9908, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What are the Driver IDs that are 1 or greater in the driver table, or less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M9e08_12.png", "TableImg_Mpcl9_5.png"], "original_data_index": 9911, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What driver IDs are smaller than 1 in the driver table, or smaller than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ke6rv_12.png", "TableImg_Sxisl_5.png"], "original_data_index": 9910, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What are the IDs of pets that are both owned by students other than student 1002 and are also cats weighing 9.3 pounds or more?", "answer": {"columns": ["PetID"], "index": [0], "data": [["2001"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_5dusr_3.png", "TableImg_Bt9l4_3.png"], "original_data_index": 9912, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"StuID\" <> 1002 INTERSECT SELECT PetID FROM Pets WHERE PetType = \"cat\" AND \"weight\" >= 9.3"} {"question": "What are the Aircraft IDs that appear on both the list of aircraft with an ID of 2 or higher, and the list of airport aircraft, excluding those with an ID of 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ibnpl_5.png", "TableImg_3pc6t_4.png"], "original_data_index": 9913, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which aircraft IDs from the aircraft table are 2 or less, but are not aircraft ID 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wn1ew_5.png", "TableImg_C7rew_4.png"], "original_data_index": 9914, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Show me the Final Table Made count, Earnings, Poker Player ID, People ID, Best Finish, and Money Rank for poker players who meet at least one of these conditions: Poker Player ID is 2 or less and Final Tables Made is 10 or more, Poker Player ID is not 1 and Final Tables Made is not 10, or People ID is 2 or more.", "answer": {"columns": ["Final_Table_Made", "Earnings", "Poker_Player_ID", "People_ID", "Best_Finish", "Money_Rank"], "index": [0, 1, 2, 3, 4, 5], "data": [["42", "476090", "1", "1", "1", "68"], ["10", "189233", "2", "2", "2", "141"], ["10", "189233", "2", "2", "2", "141"], ["21", "104871", "3", "5", "1", "166"], ["19", "596462", "4", "6", "2", "58"], ["26", "142800", "5", "7", "3", "154"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_72znx_5.png", "TableImg_Z6ogm_5.png"], "original_data_index": 9915, "original_sql": "SELECT Final_Table_Made, Earnings, Poker_Player_ID, People_ID, Best_Finish, Money_Rank FROM poker_player WHERE \"Poker_Player_ID\" <= 2 AND \"Final_Table_Made\" >= 10.0 UNION ALL SELECT Final_Table_Made, Earnings, Poker_Player_ID, People_ID, Best_Finish, Money_Rank FROM poker_player WHERE \"Poker_Player_ID\" <> 1 AND \"Final_Table_Made\" != 10.0 OR \"People_ID\" >= 2"} {"question": "What's the minimum city area for each store, considering only districts where either the city population isn't 530438, or the store ID is 1 or less, the city area isn't 22, and the district isn't 'Chiniot District'? Then, for these stores, only show those where either the store ID is greater than 1 and the city population is 134936, or the headquartered city isn't 'Khanewal City' and the district isn't 'Khanewal District'?", "answer": {"columns": ["MIN(T1.City_Area)", "Store_ID"], "index": [0, 1], "data": [["10", "3"], ["15", "4"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_T6nqd_15.png", "TableImg_Us1y4_5.png"], "original_data_index": 9916, "original_sql": "SELECT MIN(T1.City_Area), T2.Store_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID = T2.District_ID WHERE \"City_Population\" <> 530438.0 OR \"Store_ID\" <= 1 AND \"City_Area\" <> 22.0 AND District_name <> \"Chiniot District\" GROUP BY Store_ID HAVING Store_ID > 1 AND City_Population = 134936.0 OR Headquartered_City <> \"Khanewal City\" AND District_name <> \"Khanewal District\""} {"question": "What are the driver IDs that are not 5 from the drivers, and also those that are 7 or greater from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Htti6_12.png", "TableImg_Gqc2w_5.png"], "original_data_index": 9920, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which Aircraft IDs are in both the aircraft table, except for ID 5, and the airport_aircraft table, for IDs 3 and greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q2kid_5.png", "TableImg_07wgy_4.png"], "original_data_index": 9919, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "What driver IDs are either exactly 12, or 3 or greater in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qrt9a_12.png", "TableImg_Ykeb9_5.png"], "original_data_index": 9917, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are less than 12 in the driver list, but not among those that are 7 or less in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2bwy9_12.png", "TableImg_55lca_5.png"], "original_data_index": 9918, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Could you provide the Driver IDs that are less than 4 from the driver table, or Driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9cbd2_12.png", "TableImg_1khkl_5.png"], "original_data_index": 9922, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What are the Branch IDs for branches not on Abbey Rise and not named Stanley, or with an ID greater than 5 and membership amount not equal to 56? Also, include Branch IDs from purchases made by members with ID at most 1, excluding branch ID '1', in years other than 2018, and for purchases up to 20.99 pounds.", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Qp8ip_8.png", "TableImg_3gtzi_8.png"], "original_data_index": 9924, "original_sql": "SELECT Branch_ID FROM branch WHERE Address_road <> \"Abbey Rise\" AND Name != \"Stanley\" OR \"Branch_ID\" > 5 AND membership_amount <> \"56\" UNION ALL SELECT Branch_ID FROM purchase WHERE \"Member_ID\" <= 1 AND Branch_ID != \"1\" AND Year <> \"2018\" AND \"Total_pounds\" <= 20.99"} {"question": "What are the smallest endowment IDs under two separate conditions: either the donor is not 'Monte Plata', or the amount is less than 8.43, or the endowment ID is not 9; and also when the donor is 'San Jos\u00e9 de Ocoa', the amount is greater than 9.73, the school ID is 3 or higher, and the endowment ID is 10 or higher?", "answer": {"columns": ["MIN(endowment_id)"], "index": [0, 1], "data": [[""], ["1.0"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_2w19o_11.png", "TableImg_Dpw2w_11.png"], "original_data_index": 9923, "original_sql": "SELECT MIN(endowment_id) FROM endowment WHERE donator_name <> \"Monte Plata\" OR \"amount\" < 8.43 OR \"endowment_id\" <> 9 UNION SELECT MIN(endowment_id) FROM endowment WHERE \"endowment_id\" >= 10 AND donator_name = \"San Jos\u00e9 de Ocoa\" AND \"amount\" > 9.73 AND \"School_id\" >= 3"} {"question": "What driver IDs are either number 11 from the drivers list, or not number 4 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D53ts_12.png", "TableImg_Rlu71_5.png"], "original_data_index": 9925, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What driver IDs are 11 or greater in the driver table, or 10 or less in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K0qzp_12.png", "TableImg_Qn2o6_5.png"], "original_data_index": 9927, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "For each of two different sets of conditions, what is the budget and the count of departments that meet those conditions?", "answer": {"columns": ["Budget_in_Billions", "COUNT(Creation)"], "index": [0, 1], "data": [["10.7", "11"], ["9.96", "15"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Csaeu_15.png", "TableImg_6xa5v_15.png"], "original_data_index": 9921, "original_sql": "SELECT Budget_in_Billions, COUNT(Creation) FROM department WHERE \"Ranking\" >= 5 AND \"Budget_in_Billions\" <> 439.3 OR \"Num_Employees\" < 112557.0 AND Name != \"Homeland Security\" AND Creation = \"1989\" UNION ALL SELECT Budget_in_Billions, COUNT(Creation) FROM department WHERE \"Ranking\" != 4 OR Creation != \"2002\" AND \"Num_Employees\" > 10600.0 OR \"Budget_in_Billions\" < 62.8 AND Name != \"Housing and Urban Development\""} {"question": "Which driver IDs under 9 are drivers but not school bus drivers, disregarding school bus driver 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vlphr_12.png", "TableImg_Z4m7n_5.png"], "original_data_index": 9926, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What aircraft IDs are greater than 3 in the aircraft table but not less than 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Id97b_5.png", "TableImg_9ej4c_4.png"], "original_data_index": 9931, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "What is the average year for budgets with an investment percentage not equal to 122.5%, excluding the average year for budgets not in 2006 if they are the same?", "answer": {"columns": ["AVG(Year)"], "index": [0], "data": [["2002.7142857143"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_0tdh0_8.png", "TableImg_Jlvqx_8.png"], "original_data_index": 9932, "original_sql": "SELECT AVG(Year) FROM budget WHERE Budget_invested_percent <> \"122.5\" EXCEPT SELECT AVG(Year) FROM budget WHERE \"Year\" != 2006"} {"question": "Which driver IDs are 11 or less from the drivers, but are not also driver IDs of 4 or more in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ofgl_12.png", "TableImg_1y4kc_5.png"], "original_data_index": 9934, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What shipping agent codes are there for documents that are not document ID 3, are shipped by 'UP', were not received on '1996-07-27 03:30:40', and are either not 'Hard Drive' type or not 'working', excluding any codes that are also from reference shipping agents that are not 'UP' and described as 'q'?", "answer": {"columns": ["shipping_agent_code"], "index": [0, 1, 2], "data": [["AL"], ["FE"], ["UP"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Mu4g7_15.png", "TableImg_8jhfn_5.png"], "original_data_index": 9933, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE \"document_id\" != 3 AND shipping_agent_code = \"UP\" AND receipt_date <> \"1996-07-27 03:30:40\" AND document_type_code != \"Hard Drive\" OR document_status_code != \"working\" EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_code <> \"UP\" AND shipping_agent_description = \"q\""} {"question": "For student 1007, for each position, what are the total Club ID and the Club ID, for clubs that are not in 'HHH', or are 'Tennis Club' unless the position is 'Teaching Coordinator'?", "answer": {"columns": ["SUM(T1.ClubID)", "ClubID"], "index": [0], "data": [["4", "4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_Mkfgt_4.png", "TableImg_4lovz_4.png"], "original_data_index": 9929, "original_sql": "SELECT SUM(T1.ClubID), T2.ClubID FROM Club as T1 JOIN Member_of_club as T2 ON T1.ClubID = T2.ClubID WHERE ClubLocation <> \"HHH\" OR ClubName = \"Tennis Club\" AND Position <> \"Teaching Coordinator\" GROUP BY Position HAVING StuID = 1007"} {"question": "What are the common driver IDs for drivers with IDs under 11 and school bus drivers with IDs under 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q79vj_12.png", "TableImg_Ciyym_5.png"], "original_data_index": 9935, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What driver IDs are in both the driver and school bus lists and are 7 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0gleh_12.png", "TableImg_U7e0o_5.png"], "original_data_index": 9938, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the Aircraft IDs that are not 3 in the aircraft table, or are 5 or less in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Drz76_5.png", "TableImg_Wzez9_4.png"], "original_data_index": 9937, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "What are the regions, and for each region, what is the highest Club ID, the number of club names, and the number of start years, but only for regions that meet at least one of these conditions: (1) Regions that include clubs that are either (started in 2001 or later and not named 'AIK'), or have ID 5, or are not from Korea, and also have exactly one start year or more than two club names. (2) Regions that include clubs that are not Club ID 2, and also have at least one club name?", "answer": {"columns": ["Region", "MAX(Club_ID)", "COUNT(Club_name)", "COUNT(Start_year)"], "index": [0, 1, 2, 3, 4], "data": [["France", "6", "1", "1"], ["Korea", "4", "1", "1"], ["Russia", "5", "1", "1"], ["UK", "2", "1", "1"], ["USA", "3", "2", "2"]]}, "table_names": "['club' 'club']", "table_image_ids": ["TableImg_C8b7l_6.png", "TableImg_M62oc_6.png"], "original_data_index": 9930, "original_sql": "SELECT Region, MAX(Club_ID), COUNT(Club_name), COUNT(Start_year) FROM club WHERE \"Start_year\" >= 2001 AND Club_name <> \"AIK\" OR \"Club_ID\" = 5 OR Region <> \"Korea\" GROUP BY Region HAVING COUNT(Start_year) = 1 OR COUNT(Club_name) > 2 UNION SELECT Region, MAX(Club_ID), COUNT(Club_name), COUNT(Start_year) FROM club WHERE \"Club_ID\" != 2 GROUP BY Region HAVING COUNT(Club_name) >= 1"} {"question": "Is the average role code of employees the same as the average role code for roles with the code 'ED'?", "answer": {"columns": ["AVG(role_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Employees' 'Roles']", "table_image_ids": ["TableImg_Q0glj_6.png", "TableImg_Oe9ov_4.png"], "original_data_index": 9936, "original_sql": "SELECT AVG(role_code) FROM Employees WHERE employee_name != \"Erling\" AND role_code = \"ED\" OR \"employee_id\" != 1 OR other_details != \"b\" INTERSECT SELECT AVG(role_code) FROM Roles WHERE role_code = \"ED\""} {"question": "Which driver IDs are in the driver list, excluding driver ID 12, but not including any driver IDs less than 9 that are in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X8fit_12.png", "TableImg_M3qlq_5.png"], "original_data_index": 9940, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Show me the driver IDs that are not 8 from the driver list, and also those driver IDs from the school bus list that are less than 4.", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C15em_12.png", "TableImg_0dzh5_5.png"], "original_data_index": 9939, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Which driver IDs from the driver table are 3 or less, excluding any driver IDs that are also driver ID 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pjoa7_12.png", "TableImg_Olq8l_5.png"], "original_data_index": 9941, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What driver IDs are greater than 2, except for driver ID 7 if it is also a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5pzwc_12.png", "TableImg_Nlmch_5.png"], "original_data_index": 9942, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What are the counts, average principal activities, group equity shareholdings, earliest names, latest incorporation locations, and earliest types of companies in two groups: first, those not from Hong Kong, not named 'Cathay Pacific Holidays', or not doing 'Cargo airline'; and second, those not ID 12, with less than 100% equity, or not 'Laundry' and not 'Joint Venture'?", "answer": {"columns": ["COUNT(id)", "AVG(Principal_activities)", "Group_Equity_Shareholding", "MIN(name)", "MAX(Incorporated_in)", "MIN(Type)"], "index": [0], "data": [["14", "0", "18.77", "Air China", "Vietnam", "Corporate"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Me4pn_14.png", "TableImg_Septn_14.png"], "original_data_index": 9943, "original_sql": "SELECT COUNT(id), AVG(Principal_activities), Group_Equity_Shareholding, MIN(name), MAX(Incorporated_in), MIN(Type) FROM operate_company WHERE Incorporated_in != \"Hong Kong\" OR name != \"Cathay Pacific Holidays\" OR Principal_activities != \"Cargo airline\" UNION SELECT COUNT(id), AVG(Principal_activities), Group_Equity_Shareholding, MIN(name), MAX(Incorporated_in), MIN(Type) FROM operate_company WHERE \"id\" <> 12 OR \"Group_Equity_Shareholding\" < 100.0 OR Principal_activities != \"Laundry\" AND Type <> \"Joint Venture\""} {"question": "What Template Type Codes are both not 'PP' or not 'Paper' in template types, and also belong to templates effective until '2015-09-06 01:08:44' with either version not 4 and ID not 6, or having template details?", "answer": {"columns": ["Template_Type_Code"], "index": [0], "data": [["AD"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_D6922_5.png", "TableImg_X7urb_20.png"], "original_data_index": 9946, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code <> \"PP\" OR Template_Type_Description != \"Paper\" INTERSECT SELECT Template_Type_Code FROM Templates WHERE Date_Effective_To = \"2015-09-06 01:08:44\" AND \"Version_Number\" <> 4 AND \"Template_ID\" <> 6 OR Template_Details <> \"\""} {"question": "What are the total sum of disk areas, maximum disk loading, and average aircraft ID for Robinson R-22 aircraft that have a total disk area of 5,655 ft\u00b2 (526 m\u00b2), are not heavy-lift helicopters, and do not have a max gross weight of 3,200 lb (1,451 kg), excluding those that also are not CH-47D Chinook, are not light utility helicopters, and do not have a max disk loading of 3.7 lb/ft\u00b2 (18 kg/m\u00b2) or a max gross weight of 1,370 lb (635 kg)?", "answer": {"columns": ["SUM(Total_disk_area)", "Max_disk_Loading", "AVG(Aircraft_ID)"], "index": [0], "data": [["", "", ""]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Qdn5e_5.png", "TableImg_2uri5_5.png"], "original_data_index": 9945, "original_sql": "SELECT SUM(Total_disk_area), Max_disk_Loading, AVG(Aircraft_ID) FROM aircraft WHERE Total_disk_area = \"5,655 ft\u00b2 (526 m\u00b2)\" AND Max_Gross_Weight != \"3,200 lb (1,451 kg)\" AND Description <> \"Heavy-lift helicopter\" AND Aircraft = \"Robinson R-22\" EXCEPT SELECT SUM(Total_disk_area), Max_disk_Loading, AVG(Aircraft_ID) FROM aircraft WHERE Aircraft <> \"CH-47D Chinook\" AND Description <> \"Light utility helicopter\" AND Max_disk_Loading <> \"3.7 lb/ft\u00b2 (18 kg/m\u00b2)\" AND Max_Gross_Weight <> \"1,370 lb (635 kg)\""} {"question": "Which driver IDs greater than 4 are in both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H1nqn_12.png", "TableImg_1i6uc_5.png"], "original_data_index": 9949, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What are the maximum first name, birth date, and last name of customers who are not customer ID 7, or became customers on 2016-04-08 00:28:15, or are 'Bad Customers', or have email 'afranecki@example.com', or whose last name is not 'Spinka', or have cell phone '1-387-258-1016x96963' and a first name other than 'Genevieve', excluding those who are also staff members that either don't have 'Amara' as a middle name or are nicknamed 'thompson.constantin'?", "answer": {"columns": ["MAX(first_name)", "date_of_birth", "last_name"], "index": [0], "data": [["Sigrid", "1988-09-19 14:45:56", "Schmeler"]]}, "table_names": "['Customers' 'Staff']", "table_image_ids": ["TableImg_3pbz2_15.png", "TableImg_3yd64_15.png"], "original_data_index": 9948, "original_sql": "SELECT MAX(first_name), date_of_birth, last_name FROM Customers WHERE \"customer_id\" <> 7 OR date_became_customer = \"2016-04-08 00:28:15\" OR customer_status_code = \"Bad Customer\" OR email_address = \"afranecki@example.com\" OR last_name <> \"Spinka\" OR cell_mobile_phone_number = \"1-387-258-1016x96963\" AND first_name != \"Genevieve\" EXCEPT SELECT MAX(first_name), date_of_birth, last_name FROM Staff WHERE middle_name != \"Amara\" OR nickname = \"thompson.constantin\""} {"question": "Which employee IDs are common to employees who have records in the circulation history for documents with IDs less than 10 and copy numbers not equal to 5, and employees who are either not named Erling, or have an ID of 5, or have other details that are not 'f'?", "answer": {"columns": ["employee_id"], "index": [0], "data": [["2"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_C0z9v_4.png", "TableImg_Nbccv_6.png"], "original_data_index": 9950, "original_sql": "SELECT employee_id FROM Circulation_History WHERE \"document_id\" < 10 AND \"copy_number\" != 5 INTERSECT SELECT employee_id FROM Employees WHERE employee_name != \"Erling\" OR \"employee_id\" = 5 OR other_details != \"f\""} {"question": "Which Aircraft IDs are greater than 3 in the aircraft table, or are exactly 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jbc9m_5.png", "TableImg_Kdjqe_4.png"], "original_data_index": 9951, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What driver IDs are 3 or greater in the driver table, but not also 4 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tcybp_12.png", "TableImg_Xhqqx_5.png"], "original_data_index": 9952, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What are the number of beds, bed type count, room ID, and base price for rooms that are either not for couples, or priced under $175, or are 2-bed double rooms with non-rustic decor, and also for rooms that are king bed type, have more than 2 beds, and are not for 4 people?", "answer": {"columns": ["beds", "COUNT(bedType)", "RoomId", "basePrice"], "index": [0, 1], "data": [["1.0", "10", "RND", "150.0"], ["", "0", "", ""]]}, "table_names": "['Rooms' 'Rooms']", "table_image_ids": ["TableImg_H4db0_10.png", "TableImg_5477y_10.png"], "original_data_index": 9947, "original_sql": "SELECT beds, COUNT(bedType), RoomId, basePrice FROM Rooms WHERE \"maxOccupancy\" <> 2 OR \"basePrice\" < 175 OR \"beds\" = 2 AND decor != \"rustic\" AND bedType = \"Double\" UNION ALL SELECT beds, COUNT(bedType), RoomId, basePrice FROM Rooms WHERE \"beds\" > 2 AND bedType = \"King\" AND \"maxOccupancy\" != 4"} {"question": "What are the Driver IDs that are less than or equal to 1 from the driver table or greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pfp46_12.png", "TableImg_Josd1_5.png"], "original_data_index": 9955, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What driver IDs are drivers, excluding ID 8, but are not school bus drivers with IDs 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_441h7_12.png", "TableImg_Mf8gi_5.png"], "original_data_index": 9956, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "What driver IDs, other than 5, are in the driver table but not in the school bus table for IDs 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3tkys_12.png", "TableImg_Vljzc_5.png"], "original_data_index": 9953, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What is the total age, number of first names, last names, majors, and sum of sex for students who are not named George, have an advisor value less than 5718, are 22 years old, are not 17 years old, or are male and not from city PIT?", "answer": {"columns": ["SUM(Age)", "COUNT(Fname)", "LName", "Major", "SUM(Sex)"], "index": [0, 1], "data": [["646", "33", "Smith", "600", "0"], ["665", "34", "Smith", "600", "0"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_09xzc_34.png", "TableImg_Qq4uj_34.png"], "original_data_index": 9954, "original_sql": "SELECT SUM(Age), COUNT(Fname), LName, Major, SUM(Sex) FROM Student WHERE Fname <> \"George\" OR \"Advisor\" < 5718 OR \"Age\" = 22 UNION SELECT SUM(Age), COUNT(Fname), LName, Major, SUM(Sex) FROM Student WHERE \"Age\" != 17 OR Sex = \"M\" AND city_code != \"PIT\""} {"question": "What Driver IDs are both not equal to 9 and also less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vvf6p_12.png", "TableImg_Rc7zv_5.png"], "original_data_index": 9959, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What are the other details and document IDs for documents that are not document 3540024 or have 'None' as other details, except if they are also found in paragraphs that are not 'None' in other details, or have a paragraph ID greater than 9946, or have paragraph text other than 'Micronesia'?", "answer": {"columns": ["Other_Details", "Document_ID"], "index": [0, 1, 2, 3, 4], "data": [["", "0"], ["", "1"], ["", "76"], ["", "82"], ["", "801801"]]}, "table_names": "['Documents' 'Paragraphs']", "table_image_ids": ["TableImg_H4ekj_15.png", "TableImg_6eco6_15.png"], "original_data_index": 9958, "original_sql": "SELECT Other_Details, Document_ID FROM Documents WHERE \"Document_ID\" != 3540024 OR Other_Details = \"None\" EXCEPT SELECT Other_Details, Document_ID FROM Paragraphs WHERE Other_Details != \"None\" OR \"Paragraph_ID\" > 9946 OR Paragraph_Text != \"Micronesia\""} {"question": "What driver IDs are present in both the driver list (excluding driver 12) and the school bus driver list (for IDs 9 or greater)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3kvrh_12.png", "TableImg_Iwyh5_5.png"], "original_data_index": 9960, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What driver IDs are both drivers with IDs greater than 4 and school bus drivers with ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7scd9_12.png", "TableImg_Svwke_5.png"], "original_data_index": 9957, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What Aircraft IDs are 3 or greater in the aircraft table, excluding those that are less than 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0ts5u_5.png", "TableImg_D1p1g_4.png"], "original_data_index": 9962, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Which driver IDs that are less than 3 are drivers, but are not school bus drivers with IDs up to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1a164_12.png", "TableImg_So4qv_5.png"], "original_data_index": 9961, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "What driver IDs are in both the driver and school bus lists and are 4 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qdtfc_12.png", "TableImg_Cgv4l_5.png"], "original_data_index": 9963, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What are the driver IDs that are greater than 10, excluding any driver IDs greater than or equal to 7 that are also used for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I1km1_12.png", "TableImg_I146z_5.png"], "original_data_index": 9964, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the Driver IDs that are less than 6 from the driver list, and also those that are not 7 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_898ib_12.png", "TableImg_Jcm0o_5.png"], "original_data_index": 9965, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "What are the Driver IDs that are not 3 from the driver table, or are 9 or greater from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ypqnu_12.png", "TableImg_Wkydk_5.png"], "original_data_index": 9966, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What Aircraft IDs are either less than 1 in the aircraft table or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mmb1l_5.png", "TableImg_Wi6di_4.png"], "original_data_index": 9969, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which aircraft IDs are 5 or greater in the aircraft table, but are not aircraft ID 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X6am8_5.png", "TableImg_Giayd_4.png"], "original_data_index": 9970, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "What Aircraft IDs are common to both the aircraft and airport_aircraft tables, excluding ID 5 from the aircraft table and only considering IDs greater than 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jdqb3_5.png", "TableImg_Piozy_4.png"], "original_data_index": 9968, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "What driver IDs are both on the list of drivers, excluding driver 12, and on the list of school bus drivers with ID 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tlx7n_12.png", "TableImg_J3f1q_5.png"], "original_data_index": 9972, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What is an aircraft ID that is in both the aircraft and airport aircraft lists, and what is the smallest aircraft ID in the airport aircraft list for aircraft also in the aircraft list?", "answer": {"columns": ["Aircraft_ID", "MIN(T2.Aircraft_ID)"], "index": [0], "data": [["1", "1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ksncv_5.png", "TableImg_6tlg6_4.png"], "original_data_index": 9971, "original_sql": "SELECT T1.Aircraft_ID, MIN(T2.Aircraft_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "What are the item IDs for items named 'avocado', and also item IDs that are 3 in the reviews?", "answer": {"columns": ["i_id"], "index": [0, 1], "data": [["4"], ["3"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_0j8nt_8.png", "TableImg_Neqgg_7.png"], "original_data_index": 9974, "original_sql": "SELECT i_id FROM item WHERE title = \"avocado\" UNION ALL SELECT i_id FROM review WHERE \"i_id\" = 3"} {"question": "What are the driver IDs that are 5 or less in the driver list, but not among the driver IDs that are 4 or less in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A9hyf_12.png", "TableImg_Vglmi_5.png"], "original_data_index": 9975, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are in the driver list, except for driver ID 10, and are not also in the school bus list for IDs 7 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W9q5l_12.png", "TableImg_Ik8bj_5.png"], "original_data_index": 9978, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the driver IDs that are 3 or greater from the driver list, or 10 or greater from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Exx9g_12.png", "TableImg_F0u4b_5.png"], "original_data_index": 9977, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which Driver IDs are greater than 6 for drivers, or not 7 for school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5jh3m_12.png", "TableImg_Ukmr6_5.png"], "original_data_index": 9976, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "What is the average creation time, the minimum vote ID, the minimum state, and the phone number for votes that meet either of these conditions: either the contestant number is not 5, or the vote ID is 5 or less and the phone number is not 5112677315 and the creation time is not \"2018-03-09 19:03:40\", or the state is not NY; or the contestant number is less than 5, or the phone number is 5112677315 or less, or the creation time is \"2018-03-09 19:03:39\" and the vote ID is 2, or the state is NJ?", "answer": {"columns": ["AVG(created)", "MIN(vote_id)", "MIN(state)", "phone_number"], "index": [0, 1], "data": [["2018", "1", "CA", "6209222712"], ["2018", "1", "CA", "6209222712"]]}, "table_names": "['VOTES' 'VOTES']", "table_image_ids": ["TableImg_Dypb8_4.png", "TableImg_Tjtkh_4.png"], "original_data_index": 9973, "original_sql": "SELECT AVG(created), MIN(vote_id), MIN(state), phone_number FROM VOTES WHERE \"contestant_number\" <> 5 OR \"vote_id\" <= 5 AND \"phone_number\" != 5112677315 AND created != \"2018-03-09 19:03:40\" OR state != \"NY\" UNION ALL SELECT AVG(created), MIN(vote_id), MIN(state), phone_number FROM VOTES WHERE \"contestant_number\" < 5 OR \"phone_number\" <= 5112677315 OR created = \"2018-03-09 19:03:39\" AND \"vote_id\" = 2 OR state = \"NJ \""} {"question": "What Driver IDs are 11 or less from the driver list, or are exactly 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1ior1_12.png", "TableImg_Gqx5c_5.png"], "original_data_index": 9982, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are greater than 11 and listed as drivers, but are not listed as school bus drivers with IDs of 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gqvjs_12.png", "TableImg_P5byz_5.png"], "original_data_index": 9981, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What aircraft IDs from the aircraft table, other than 4, are not also ID 1 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9qrs5_5.png", "TableImg_3jnmn_4.png"], "original_data_index": 9980, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "What are the school IDs of schools not in Walkerton, except for those with budget records from 1999 or earlier, or 146.9% invested, or invested less than 8335 and budgeted over 6803?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_Ndcgr_8.png", "TableImg_Lyt5w_8.png"], "original_data_index": 9979, "original_sql": "SELECT School_id FROM School WHERE Location != \"Walkerton\" EXCEPT SELECT School_id FROM budget WHERE \"Year\" <= 1999 OR Budget_invested_percent = \"146.9\" OR \"Invested\" < 8335 AND \"Budgeted\" > 6803"} {"question": "Which driver IDs are both not equal to 5 and listed as a driver, and also at least 9 and listed as a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K00l2_12.png", "TableImg_Dvd9x_5.png"], "original_data_index": 9984, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Which driver IDs are greater than 2 from the driver list, or not equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zx1s0_12.png", "TableImg_Fcm1d_5.png"], "original_data_index": 9983, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Give me driver ID 11 if it is a driver but not in the school bus records.", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4p3ez_12.png", "TableImg_Rmkbk_5.png"], "original_data_index": 9986, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which Driver IDs are less than 3 in the driver table or greater than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_At8u4_12.png", "TableImg_50tjx_5.png"], "original_data_index": 9987, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are 6 or higher in the driver table, but not among the driver IDs less than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Is9n3_12.png", "TableImg_81hp4_5.png"], "original_data_index": 9989, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What driver IDs, other than 8 and 4, are in the driver table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pud8b_12.png", "TableImg_Qqv7f_5.png"], "original_data_index": 9985, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What are the Aircraft IDs that are less than 4 in the aircraft records or not equal to 2 in the airport aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M5glp_5.png", "TableImg_T1l5r_4.png"], "original_data_index": 9992, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are drivers with IDs greater than 7, but are not school bus drivers with IDs of 7 or more?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Irp6p_12.png", "TableImg_D0itw_5.png"], "original_data_index": 9993, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What are the Driver IDs that are 8 or less from the drivers, or not equal to 3 from the school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cxhwy_12.png", "TableImg_F0wou_5.png"], "original_data_index": 9994, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Which driver IDs are less than 8 from the driver table, and also driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Utapu_12.png", "TableImg_Hpgaa_5.png"], "original_data_index": 9995, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What aircraft IDs are number 1 in the aircraft records or less than 3 in the airport aircraft records?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gplvt_5.png", "TableImg_Esa5r_4.png"], "original_data_index": 9996, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "What driver IDs are both less than or equal to 8 and not equal to 9, considering drivers and school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vrdl9_12.png", "TableImg_5nxuc_5.png"], "original_data_index": 9991, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What are the distances and employee IDs for aircraft certificates, grouped by employee ID, but only for groups that include employee ID 356187925, or have an aircraft that is not a Boeing 757-300 and has a distance other than 3383?", "answer": {"columns": ["distance", "eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["2128", "90873519"], ["8430", "142519864"], ["1530", "159542516"], ["8430", "269734834"], ["4103", "310454876"], ["4103", "355548984"], ["2128", "356187925"], ["7120", "390487451"], ["520", "548977562"], ["8430", "550156548"], ["8430", "567354612"], ["7120", "573284895"], ["2128", "574489456"], ["520", "574489457"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_Foghp_16.png", "TableImg_Cohc7_69.png"], "original_data_index": 9990, "original_sql": "SELECT T1.distance, T2.eid FROM aircraft as T1 JOIN certificate as T2 ON T1.aid == T2.aid GROUP BY eid HAVING name <> \"Boeing 757-300\" AND distance <> 3383 OR eid = 356187925"} {"question": "What are the different types of stores that are either not ranked 3, or are named 'Neguac', or have a number of product categories other than 793, or have an area size other than 21.73 and a ranking other than 3, or have a store ID greater than 4?", "answer": {"columns": ["Type"], "index": [0, 1], "data": [["City Mall"], ["Village Store"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_Af8zj_5.png", "TableImg_6w31m_5.png"], "original_data_index": 9997, "original_sql": "SELECT Type FROM store WHERE \"Number_of_product_category\" <> 793.0 OR Store_Name = \"Neguac\" OR \"Area_size\" <> 21.73 AND \"Ranking\" <> 3 OR \"Store_ID\" > 4 UNION SELECT Type FROM store WHERE \"Ranking\" <> 3"} {"question": "What are the driver IDs that are less than 8, but not among the school bus driver IDs that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8npxp_12.png", "TableImg_Y7hx6_5.png"], "original_data_index": 9998, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What are the Driver IDs that are greater than 2 or not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xh68q_12.png", "TableImg_0awe4_5.png"], "original_data_index": 9999, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of Template IDs from the Documents table where the Document Name is not \"About Korea\", or the Other Details are not \"None\", or the Document Description is \"w\", combined with a list of Template IDs from the Templates table where the Date Effective To is not \"2001-04-18 09:29:52\", the Template Type Code is \"PPT\", and the Template ID is greater than or equal to 11?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["4"], ["6"], ["7"], ["8"], ["10"], ["11"], ["14"], ["20"], ["21"], ["22"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_K1qov_15.png", "TableImg_Oqhsx_20.png"], "original_data_index": 3, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Name != \"About Korea\" OR Other_Details <> \"None\" OR Document_Description = \"w\" UNION SELECT Template_ID FROM Templates WHERE Date_Effective_To != \"2001-04-18 09:29:52\" AND Template_Type_Code = \"PPT\" AND \"Template_ID\" >= 11"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 4, and also those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P6n3u_12.png", "TableImg_3dxwa_5.png"], "original_data_index": 0, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What aircraft IDs, excluding aircraft ID 5, are also aircraft IDs excluding aircraft ID 2, that are found in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ejgt0_5.png", "TableImg_6qgcr_4.png"], "original_data_index": 7, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list all department IDs from the management table where the head ID is greater than 10, and also list all department IDs from the management table where the head ID is greater than 3, including any duplicates?", "answer": {"columns": ["department_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["2"], ["11"], ["15"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_6050p_5.png", "TableImg_8izyw_5.png"], "original_data_index": 8, "original_sql": "SELECT department_ID FROM management WHERE \"head_ID\" > 10 UNION ALL SELECT department_ID FROM management WHERE \"head_ID\" > 3"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 4, and combine it with a list of aircraft IDs from the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ghh1y_5.png", "TableImg_M4rd3_4.png"], "original_data_index": 6, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 2 or greater, and also those from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B3bt1_12.png", "TableImg_1ij9l_5.png"], "original_data_index": 5, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are 3 or greater from the school bus table, making sure to remove any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kicj7_12.png", "TableImg_Tumvm_5.png"], "original_data_index": 9, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of all the driver IDs, excluding driver ID 9, from both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hu4bv_12.png", "TableImg_Befgv_5.png"], "original_data_index": 10, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of all item titles, including those that aren't shampoo and those with an i_id less than 5?", "answer": {"columns": ["title"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["pear"], ["orange"], ["apple"], ["avocado"], ["comb"], ["blue hoodie"], ["cup"], ["pear"], ["orange"], ["apple"], ["shampoo"], ["avocado"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_Rtwuh_8.png", "TableImg_Q5zhq_8.png"], "original_data_index": 11, "original_sql": "SELECT title FROM item WHERE title <> \"shampoo\" UNION ALL SELECT title FROM item WHERE \"i_id\" < 5"} {"question": "Which driver IDs appear in the driver list, excluding driver ID 6, and also appear in the school bus list, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ahz05_12.png", "TableImg_N1dw2_5.png"], "original_data_index": 12, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 2, and those from the school bus table with driver IDs of 10 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G0wmc_12.png", "TableImg_Gd96o_5.png"], "original_data_index": 13, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What is the smallest document ID from the Circulation History where the copy number is 10, the document ID is less than or equal to 2, and the employee ID is 2, excluding the smallest document ID from the Documents table where the receipt number is not 189, and either the other details are not \"u\" or the receipt date is \"1996-07-27 03:30:40\" and the shipping agent code is not \"FE\"?", "answer": {"columns": ["MIN(document_id)"], "index": [0], "data": [[""]]}, "table_names": "['Circulation_History' 'Documents']", "table_image_ids": ["TableImg_9515k_4.png", "TableImg_6f67g_15.png"], "original_data_index": 14, "original_sql": "SELECT MIN(document_id) FROM Circulation_History WHERE \"copy_number\" = 10 AND \"document_id\" <= 2 AND \"employee_id\" = 2 EXCEPT SELECT MIN(document_id) FROM Documents WHERE receipt_number <> \"189\" AND other_details != \"u\" OR receipt_date = \"1996-07-27 03:30:40\" AND shipping_agent_code <> \"FE\""} {"question": "Could you list the District IDs from the district table where the District ID is less than or equal to 13, or the City Population is less than or equal to 365198, or where the District Name is not \"Dera Ghazi Khan District\" but the Headquartered City is \"Bahawalpur City\" and the City Area is not 15, combined with the District IDs from the store_district table where the Store ID is not 1 or the District ID is greater than or equal to 4?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_8yav8_15.png", "TableImg_O3rya_5.png"], "original_data_index": 15, "original_sql": "SELECT District_ID FROM district WHERE \"District_ID\" <= 13 OR \"City_Population\" <= 365198.0 OR District_name != \"Dera Ghazi Khan District\" AND Headquartered_City = \"Bahawalpur City\" AND \"City_Area\" != 15.0 UNION SELECT District_ID FROM store_district WHERE \"Store_ID\" != 1 OR \"District_ID\" >= 4"} {"question": "Can you give me a list of driver IDs, removing driver ID 10 from the driver list and driver ID 7 from the school bus list, showing each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fn73k_12.png", "TableImg_Gbr30_5.png"], "original_data_index": 16, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list all driver IDs from the driver table that are 10 or greater, and combine that with a list of all driver IDs from the school_bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rxjl8_12.png", "TableImg_Pbkca_5.png"], "original_data_index": 17, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 5, combined with a list of driver IDs from the school_bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eupmh_12.png", "TableImg_Exxct_5.png"], "original_data_index": 18, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which aircraft IDs, excluding ID 2, are present in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lo0x7_5.png", "TableImg_Fg4t6_4.png"], "original_data_index": 20, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you list the driver IDs from the driver table that are less than or equal to 5, and combine that with a list of driver IDs from the school_bus table that are greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tgxok_12.png", "TableImg_Gd27u_5.png"], "original_data_index": 21, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Could you list the draft number, draft details, and document ID from the document drafts table, including entries where the draft number isn't zero, the draft details aren't \"w\", and the document ID is greater than 4, as well as entries where the draft number is less than 1, or the document ID is less than or equal to 13 and the draft details aren't \"k\"?", "answer": {"columns": ["draft_number", "draft_details", "document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["10", "m", "7"], ["20", "k", "10"], ["11", "b", "12"], ["12", "r", "12"], ["16", "p", "13"], ["14", "x", "14"], ["19", "a", "17"], ["17", "l", "20"], ["9", "r", "23"], ["0", "e", "1"], ["1", "v", "2"], ["8", "v", "2"], ["9", "r", "4"], ["10", "m", "7"], ["11", "b", "12"], ["12", "r", "12"], ["4", "w", "13"], ["16", "p", "13"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Vi2dd_15.png", "TableImg_X0qx4_15.png"], "original_data_index": 19, "original_sql": "SELECT draft_number, draft_details, document_id FROM Document_Drafts WHERE \"draft_number\" <> 0 AND draft_details <> \"w\" AND \"document_id\" > 4 UNION ALL SELECT draft_number, draft_details, document_id FROM Document_Drafts WHERE \"draft_number\" < 1 OR \"document_id\" <= 13 AND draft_details <> \"k\""} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are also greater than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M8l8g_12.png", "TableImg_Zuav4_5.png"], "original_data_index": 23, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs are present in both the driver list excluding driver ID 6, and the school bus list excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xkako_12.png", "TableImg_O28dj_5.png"], "original_data_index": 22, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are not equal to 2, excluding any driver IDs from the school bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xyii0_12.png", "TableImg_6bz3l_5.png"], "original_data_index": 25, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs that are less than or equal to 12 from the driver table, combined with a list of driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rx350_12.png", "TableImg_Dxic1_5.png"], "original_data_index": 24, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and all driver IDs from the school bus table except for driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C6x27_12.png", "TableImg_Hml8a_5.png"], "original_data_index": 27, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tca1j_12.png", "TableImg_4pc4u_5.png"], "original_data_index": 29, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the mailing date, document ID, and mailed-to address ID for all documents mailed, including those with a non-zero mailed-to address ID, and also specifically those with document ID 4 and mailed-to address ID 8?", "answer": {"columns": ["mailing_date", "document_id", "mailed_to_address_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1977-04-01 17:03:50", "2", "8"], ["1992-11-07 15:03:41", "4", "3"], ["1973-02-21 10:17:01", "4", "9"], ["1979-09-21 10:30:52", "7", "5"], ["1993-05-24 22:13:48", "10", "3"], ["2007-01-01 22:32:11", "12", "7"], ["2007-03-20 05:22:01", "12", "8"], ["1991-05-27 14:17:37", "13", "4"], ["1986-05-16 06:25:33", "14", "5"], ["2010-11-04 04:00:16", "20", "2"], ["1982-01-14 05:50:54", "20", "7"], ["1971-11-03 12:32:14", "23", "8"]]}, "table_names": "['Documents_Mailed' 'Documents_Mailed']", "table_image_ids": ["TableImg_M99au_14.png", "TableImg_Z9i3t_14.png"], "original_data_index": 28, "original_sql": "SELECT mailing_date, document_id, mailed_to_address_id FROM Documents_Mailed WHERE \"mailed_to_address_id\" <> 0 UNION ALL SELECT mailing_date, document_id, mailed_to_address_id FROM Documents_Mailed WHERE \"document_id\" = 4 AND \"mailed_to_address_id\" = 8"} {"question": "Can you list the rank and coach ID for all coaches who are not female and are not rank 4, or who have a club ID greater than 1, combined with the rank and coach ID for coaches who are rank 2, have a coach ID of 5 or greater, have a club ID of 1 or less, or whose name is not Joe Fabbri and are not male?", "answer": {"columns": ["Rank", "Coach_ID"], "index": [0, 1, 2, 3, 4], "data": [["1", "1"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Lraoj_5.png", "TableImg_Znexa_5.png"], "original_data_index": 26, "original_sql": "SELECT Rank, Coach_ID FROM coach WHERE Gender <> \"F\" AND \"Rank\" != 4 OR \"Club_ID\" > 1 UNION SELECT Rank, Coach_ID FROM coach WHERE \"Rank\" = 2 OR \"Coach_ID\" >= 5 OR \"Club_ID\" <= 1 OR Coach_name <> \"Joe Fabbri\" AND Gender != \"M\""} {"question": "Can you list all document status descriptions, including those with the code \"done\", but excluding \"mailed late\"?", "answer": {"columns": ["document_status_description"], "index": [0, 1], "data": [["currently working on"], ["mailed"]]}, "table_names": "['Ref_Document_Status' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Z7x6h_3.png", "TableImg_Ogt1x_3.png"], "original_data_index": 30, "original_sql": "SELECT document_status_description FROM Ref_Document_Status WHERE document_status_description != \"mailed late\" UNION SELECT document_status_description FROM Ref_Document_Status WHERE document_status_code = \"done\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 1, that are not also driver ID 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I9ftp_12.png", "TableImg_6mvv2_5.png"], "original_data_index": 33, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 7, combined with a list of driver IDs from the school_bus table where each ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C8kgi_12.png", "TableImg_Gzfg5_5.png"], "original_data_index": 31, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of Model IDs, including those where the Maker is 16 or higher, and also those where the Maker is not 6 or the Model is not a Cadillac?", "answer": {"columns": ["ModelId"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Nzr3y_36.png", "TableImg_3fdnk_36.png"], "original_data_index": 34, "original_sql": "SELECT ModelId FROM model_list WHERE \"Maker\" >= 16 UNION SELECT ModelId FROM model_list WHERE \"Maker\" != 6 OR Model <> \"cadillac\""} {"question": "Can you give me a list of school IDs, including those from schools that are either not Occidental College and are located in Jakarta, Indonesia, or are public schools, or serve junior and senior year students, combined with school IDs from the school bus table where either the School_ID is not 7 or the Driver_ID is less than 7?", "answer": {"columns": ["School_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_Wzt8i_7.png", "TableImg_M8itz_5.png"], "original_data_index": 32, "original_sql": "SELECT School_ID FROM school WHERE School != \"Occidental College\" AND Location = \"Jakarta, Indonesia\" OR Type = \"Public\" OR Grade = \"Junior\u2013Senior year\" UNION SELECT School_ID FROM school_bus WHERE \"School_ID\" <> 7 OR \"Driver_ID\" < 7"} {"question": "Can you give me a list of driver IDs that are greater than 6, excluding those driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Elflg_12.png", "TableImg_Usq38_5.png"], "original_data_index": 35, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are less than 6 and also appear as driver IDs in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3ynls_12.png", "TableImg_05yw2_5.png"], "original_data_index": 36, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of vehicle IDs, combining those from lessons where the staff ID is greater than 4, or the customer ID is less than or equal to 13 and the lesson isn't cancelled, or the lesson time is 2, or the vehicle ID is greater than 3, or the price is exactly 492, or the lesson ID isn't 2, with those from vehicles where the vehicle ID isn't 3 and the vehicle details aren't \"Car\"?", "answer": {"columns": ["vehicle_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["3"], ["3"], ["2"], ["2"], ["2"], ["2"], ["1"], ["2"], ["2"], ["2"], ["1"], ["2"], ["1"], ["1"], ["1"], ["1"], ["2"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_B7aoh_15.png", "TableImg_X4zbt_3.png"], "original_data_index": 37, "original_sql": "SELECT vehicle_id FROM Lessons WHERE \"staff_id\" > 4 OR \"customer_id\" <= 13 AND lesson_status_code <> \"Cancelled\" OR lesson_time = \"2\" OR \"vehicle_id\" > 3 OR \"price\" = 492.0 OR \"lesson_id\" != 2 UNION ALL SELECT vehicle_id FROM Vehicles WHERE \"vehicle_id\" <> 3 AND vehicle_details <> \"Car\""} {"question": "Can you give me the average student ID and age, along with the first name, minimum advisor and city code, and maximum last name, grouped by sex, for students where either the advisor is less than 1121, the age is 20, the sex is not male, and the city code is not PIT, or the first name is not Paul and the student ID is 1003, but excluding those students where the age is 20 or greater, the sex is female, the major is 600, or the last name is Adams?", "answer": {"columns": ["Sex", "AVG(StuID)", "AVG(Age)", "Fname", "MIN(Advisor)", "MIN(city_code)", "MAX(LName)"], "index": [0], "data": [["F", "1003", "21", "Shiela", "7792", "WAS", "Jones"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_44gj6_34.png", "TableImg_Wl8uh_34.png"], "original_data_index": 38, "original_sql": "SELECT Sex, AVG(StuID), AVG(Age), Fname, MIN(Advisor), MIN(city_code), MAX(LName) FROM Student WHERE \"Advisor\" < 1121 AND \"Age\" = 20 AND Sex <> \"M\" AND city_code <> \"PIT\" OR Fname != \"Paul\" AND \"StuID\" = 1003 EXCEPT SELECT Sex, AVG(StuID), AVG(Age), Fname, MIN(Advisor), MIN(city_code), MAX(LName) FROM Student WHERE \"Age\" >= 20 AND Sex = \"F\" OR \"Major\" = 600 OR LName = \"Adams\""} {"question": "Which aircraft IDs are both less than or equal to 3 and present in the airport aircraft list where the aircraft ID is exactly 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ymtu1_5.png", "TableImg_08zpw_4.png"], "original_data_index": 40, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs that are either exactly 12 from the driver table, or greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bsjri_12.png", "TableImg_H9f7j_5.png"], "original_data_index": 39, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 3, from both the aircraft and airport_aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Pav3s_5.png", "TableImg_0l92v_4.png"], "original_data_index": 41, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 2, and those from the school bus table where the ID is less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1pni7_12.png", "TableImg_Yus8o_5.png"], "original_data_index": 44, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are greater than 7, excluding any driver IDs that also appear in the school bus table, unless that driver ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3b6wi_12.png", "TableImg_Wcg3u_5.png"], "original_data_index": 43, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list the draft numbers and document IDs for all documents with an ID less than 13, along with the draft numbers and document IDs for all draft copies that have a draft number of 8 but a copy number that isn't 15?", "answer": {"columns": ["draft_number", "document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["0", "1"], ["1", "2"], ["2", "1"], ["8", "2"], ["9", "4"], ["10", "7"], ["11", "12"], ["12", "12"], ["20", "10"]]}, "table_names": "['Document_Drafts' 'Draft_Copies']", "table_image_ids": ["TableImg_Whugm_15.png", "TableImg_Jrryf_8.png"], "original_data_index": 42, "original_sql": "SELECT draft_number, document_id FROM Document_Drafts WHERE \"document_id\" < 13 UNION SELECT draft_number, document_id FROM Draft_Copies WHERE \"draft_number\" = 8 AND \"copy_number\" <> 15"} {"question": "Can you give me a list of all the driver IDs, combining those from the driver table excluding driver ID 4, and those from the school bus table excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4hhe4_12.png", "TableImg_Icl1c_5.png"], "original_data_index": 47, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are also aircraft IDs that are greater than or equal to 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hjf0m_5.png", "TableImg_Lzurt_4.png"], "original_data_index": 46, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding aircraft ID 2, and then from the airport_aircraft table including only aircraft IDs that are 2 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J2u8f_5.png", "TableImg_Yvldc_4.png"], "original_data_index": 48, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of feature IDs from the Other_Available_Features table, excluding feature ID 2, where the feature type is \"Amenity\" and the feature description isn't \"Burglar Alarm\", or the feature name is \"Pool\", combined with a list of feature IDs from the Other_Property_Features table, excluding feature ID 3 or property ID 6?", "answer": {"columns": ["feature_id"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Xaq18_3.png", "TableImg_Zjzsk_15.png"], "original_data_index": 50, "original_sql": "SELECT feature_id FROM Other_Available_Features WHERE \"feature_id\" <> 2 AND feature_type_code = \"Amenity\" AND feature_description <> \"Burglar Alarm\" OR feature_name = \"Pool\" UNION SELECT feature_id FROM Other_Property_Features WHERE \"feature_id\" <> 3 OR \"property_id\" <> 6"} {"question": "Can you give me the IDs of people who are not named Yevgeni Sivozhelez, or who are Russian born on July 14, 1983, or are at least 207 cm tall, excluding those poker players with an ID other than 4?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["6"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_8e0g7_7.png", "TableImg_Mzt60_5.png"], "original_data_index": 51, "original_sql": "SELECT People_ID FROM people WHERE Name <> \"Yevgeni Sivozhelez\" OR \"People_ID\" <> 1 AND Nationality = \"Russia\" AND Birth_Date = \"July 14, 1983\" OR \"Height\" >= 207.0 EXCEPT SELECT People_ID FROM poker_player WHERE \"Poker_Player_ID\" != 4"} {"question": "Which driver IDs, that are 6 or greater, are not also driver IDs in the school bus table, excluding driver ID 10 from that table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Virkn_12.png", "TableImg_V39pm_5.png"], "original_data_index": 52, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 7 or higher, and those from the school bus table where the ID is not 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sb6l3_12.png", "TableImg_Kghs0_5.png"], "original_data_index": 54, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 6, and those from the school bus table that are exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Frecr_12.png", "TableImg_0ia38_5.png"], "original_data_index": 49, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs that are not 11 from the driver table, but are also less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1hdwz_12.png", "TableImg_Yi1zg_5.png"], "original_data_index": 58, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 6, and those from the school_bus table with driver IDs of 7 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Omnc8_12.png", "TableImg_Q6tt6_5.png"], "original_data_index": 59, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of employee names from the employee table where the name is Lee Mears, or the age is less than or equal to 29 and the employee ID is not 6, or the city is Bristol, combined with a list of shop names from the shop table where the shop ID is greater than or equal to 5 and the manager's name is not Job Dragtsma, or the name is FC Lahti, or the number of products is less than 5000, or the district is not Arto Tolsa Areena and the location is not Kuopio?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["FC Haka"], ["FC Honka"], ["FC Inter"], ["FC KooTeePee"], ["FC Lahti"], ["FF Jaro"], ["George Chuter"], ["HJK"], ["IFK Mariehamn"], ["Jason Hobson"], ["KuPS"], ["Lee Mears"], ["Mark Regan"], ["Matt Stevens"], ["Tim Payne"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_S1qs3_10.png", "TableImg_A6s7f_9.png"], "original_data_index": 60, "original_sql": "SELECT Name FROM employee WHERE Name = \"Lee Mears\" OR \"Age\" <= 29 AND \"Employee_ID\" <> 6 OR City = \"Bristol\" UNION SELECT Name FROM shop WHERE \"Shop_ID\" >= 5 AND Manager_name <> \"Job Dragtsma\" OR Name = \"FC Lahti\" OR \"Number_products\" < 5000 OR District != \"Arto Tolsa Areena\" AND Location <> \"Kuopio\""} {"question": "What is the highest feature type code from the available features, excluding \"BurglarAlarm\" feature names and only considering feature IDs of 3 or greater, also excluding \"Security\" feature type codes, except for the highest feature type code from the feature types reference table, excluding \"Amenity, eg Pool.\" feature type names?", "answer": {"columns": ["MAX(feature_type_code)"], "index": [0], "data": [["Amenity"]]}, "table_names": "['Other_Available_Features' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Mydl3_3.png", "TableImg_Yz1ug_2.png"], "original_data_index": 61, "original_sql": "SELECT MAX(feature_type_code) FROM Other_Available_Features WHERE feature_name != \"BurglarAlarm\" AND \"feature_id\" >= 3 AND feature_type_code != \"Security\" EXCEPT SELECT MAX(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name <> \"Amenity, eg Pool.\""} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 1, excluding any driver IDs from the school bus table that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mdsn2_12.png", "TableImg_69i9p_5.png"], "original_data_index": 62, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me the total club ID and average coach name, broken down by gender, for coaches where the club ID is 1 or greater, combined with the same information for coaches where their rank is greater than 1, their coach ID is not 2, or their gender is not male and their club ID is 1 or greater?", "answer": {"columns": ["SUM(Club_ID)", "Gender", "AVG(Coach_name)"], "index": [0], "data": [["9", "M", "0"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_Erq1m_5.png", "TableImg_Cv9ns_5.png"], "original_data_index": 63, "original_sql": "SELECT SUM(Club_ID), Gender, AVG(Coach_name) FROM coach WHERE \"Club_ID\" >= 1 UNION SELECT SUM(Club_ID), Gender, AVG(Coach_name) FROM coach WHERE \"Rank\" > 1 OR \"Coach_ID\" <> 2 OR Gender <> \"M\" AND \"Club_ID\" >= 1"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and all driver IDs except 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y1cxm_12.png", "TableImg_Xe492_5.png"], "original_data_index": 55, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 2 with those from the school bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lkwm6_12.png", "TableImg_B8p86_5.png"], "original_data_index": 56, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the document type descriptions for both \"Paper\" and \"Hard Drive\"?", "answer": {"columns": ["document_type_description"], "index": [0, 1], "data": [["u"], ["f"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_9yx5y_3.png", "TableImg_2k4y8_3.png"], "original_data_index": 66, "original_sql": "SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = \"Paper\" UNION ALL SELECT document_type_description FROM Ref_Document_Types WHERE document_type_code = \"Hard Drive\""} {"question": "Which aircraft IDs are both less than 5 (when considering all aircraft) and equal to 2 (when considering aircraft at airports)?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_09734_5.png", "TableImg_Xtzgc_4.png"], "original_data_index": 65, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of member IDs for people from LaGrange, Georgia, along with member IDs from the membership register for any year other than 2016?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2], "data": [["5"], ["3"], ["6"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_A8mdw_10.png", "TableImg_U1tdt_8.png"], "original_data_index": 67, "original_sql": "SELECT Member_ID FROM member WHERE Hometown = \"LaGrange, Georgia\" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE Register_Year != \"2016\""} {"question": "Can you list all the aircraft IDs, first from the aircraft table where the ID is not 1, and then from the airport_aircraft table where the ID is 3 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hzo89_5.png", "TableImg_7fv25_4.png"], "original_data_index": 68, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Could you list the draft numbers from the circulation history where the copy number is not 10, and also include draft number 8 from the document drafts if its document ID is less than 12?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["8"], ["17"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_92692_4.png", "TableImg_Jibc5_15.png"], "original_data_index": 69, "original_sql": "SELECT draft_number FROM Circulation_History WHERE \"copy_number\" != 10 UNION SELECT draft_number FROM Document_Drafts WHERE \"draft_number\" = 8 AND \"document_id\" < 12"} {"question": "Which driver IDs are not equal to 2 and are also less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_95dn9_12.png", "TableImg_9530a_5.png"], "original_data_index": 70, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the aircraft IDs that are both less than or equal to 5 in the aircraft table and greater than 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E0r36_5.png", "TableImg_5jp7g_4.png"], "original_data_index": 71, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 4, and combine that with a list of all driver IDs from the school_bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_19phx_12.png", "TableImg_Rb8do_5.png"], "original_data_index": 73, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are greater than 2, excluding any driver IDs that are also less than or equal to 7 and are associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9h91h_12.png", "TableImg_Fs9h8_5.png"], "original_data_index": 74, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 9, excluding any driver IDs that are less than or equal to 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G7vg2_12.png", "TableImg_L81ao_5.png"], "original_data_index": 72, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 3, and those from the school bus table that are 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ysd0v_12.png", "TableImg_3gk6d_5.png"], "original_data_index": 77, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs appear in both the driver list where the ID is 7 and the school bus list where the ID is 9 or less?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zises_12.png", "TableImg_Sqmkt_5.png"], "original_data_index": 78, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 2, and those from the school bus table excluding ID 4, with no duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yy045_12.png", "TableImg_0mfif_5.png"], "original_data_index": 79, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs are greater than 3 and also less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L86h5_12.png", "TableImg_Ich50_5.png"], "original_data_index": 80, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "How many members are there, what's the average city value, how many names are there, and what are the branch IDs for branches on Abbey Rise, combined with the same information for branches that weren't opened in 2009 and don't have a membership amount of 112?", "answer": {"columns": ["COUNT(membership_amount)", "AVG(City)", "COUNT(Name)", "Branch_ID"], "index": [0, 1], "data": [["1", "0", "1", "4"], ["4", "0", "4", "3"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Q8lwv_8.png", "TableImg_6olna_8.png"], "original_data_index": 81, "original_sql": "SELECT COUNT(membership_amount), AVG(City), COUNT(Name), Branch_ID FROM branch WHERE Address_road = \"Abbey Rise\" UNION ALL SELECT COUNT(membership_amount), AVG(City), COUNT(Name), Branch_ID FROM branch WHERE Open_year != \"2009\" AND membership_amount <> \"112\""} {"question": "What is the sum of Branch IDs from the branch table where the address is Glebe Street, the Branch ID is less than 4, and the city is not London, or the membership amount is not 1418, excluding the sum of Branch IDs from the purchase table where the total pounds is greater than or equal to 988.09 or the Branch ID is not 2?", "answer": {"columns": ["SUM(Branch_ID)"], "index": [0], "data": [["31"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_P4dwm_8.png", "TableImg_3c4m3_8.png"], "original_data_index": 82, "original_sql": "SELECT SUM(Branch_ID) FROM branch WHERE Address_road = \"Glebe Street\" AND \"Branch_ID\" < 4 AND City != \"London\" OR membership_amount <> \"1418\" EXCEPT SELECT SUM(Branch_ID) FROM purchase WHERE \"Total_pounds\" >= 988.09 OR Branch_ID != \"2\""} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 3, but then remove any aircraft IDs from that list that also appear in the airport_aircraft table with an ID of 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0wuuf_5.png", "TableImg_Nmx3i_4.png"], "original_data_index": 83, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those driver IDs that are also less than 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sh8gl_12.png", "TableImg_7l6cu_5.png"], "original_data_index": 84, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What are the average item IDs and corresponding ranks for items and reviews, considering only the data where the user ID is greater than 2, the rank is less than 3, the assistant ID is greater than 1, the title is \"comb\", or the rating is less than or equal to 6?", "answer": {"columns": ["AVG(T1.i_id)", "rank"], "index": [0], "data": [["4", "1"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Ixbce_8.png", "TableImg_S2rh9_7.png"], "original_data_index": 85, "original_sql": "SELECT AVG(T1.i_id), T2.rank FROM item as T1 JOIN review as T2 ON T1.i_id = T2.i_id WHERE \"u_id\" > 2 OR \"rank\" < 3 OR \"a_id\" > 1 OR title = \"comb\" OR \"rating\" <= 6"} {"question": "Can you give me a list of driver IDs, where each ID is 12 or greater, but excluding any driver ID that appears in the school bus list, unless that ID is 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xoa28_12.png", "TableImg_Tty27_5.png"], "original_data_index": 64, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of aircraft IDs that are less than 2, but also not equal to 5 when looking at airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C47rp_5.png", "TableImg_Rw8je_4.png"], "original_data_index": 75, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you list the aircraft IDs that are equal to 4 from the aircraft table, and also list the aircraft IDs that are less than or equal to 5 from the airport_aircraft table, combining both lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_B9gox_5.png", "TableImg_Coyh4_4.png"], "original_data_index": 76, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of aircraft IDs that are less than 5, excluding any aircraft IDs greater than 3 that are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kl9xo_5.png", "TableImg_Zzqjv_4.png"], "original_data_index": 89, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of store IDs that sell products other than product 6, combined with a list of store IDs that sell products other than product 1?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Enoso_15.png", "TableImg_Mvqmd_15.png"], "original_data_index": 87, "original_sql": "SELECT Store_ID FROM store_product WHERE \"Product_ID\" != 6 UNION SELECT Store_ID FROM store_product WHERE \"Product_ID\" <> 1"} {"question": "Can you list the Aircraft IDs that are less than 4, first from the aircraft table, and then from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9ubn3_5.png", "TableImg_Qbt5f_4.png"], "original_data_index": 86, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you list the aircraft IDs that are greater than 3 from the aircraft table, and combine that with a list of aircraft IDs that are less than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gc4cl_5.png", "TableImg_Vqzip_4.png"], "original_data_index": 88, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or greater, and also those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2w33m_12.png", "TableImg_Dgwnq_5.png"], "original_data_index": 93, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 1, and those from the school_bus table that are greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nvra1_12.png", "TableImg_O3lfa_5.png"], "original_data_index": 91, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list the property type codes and descriptions for apartments, flats, condos, and anything that isn't a field or described as a house or bungalow?", "answer": {"columns": ["property_type_code", "property_type_description"], "index": [0, 1, 2, 3, 4], "data": [["Apartment", "Apartment, Flat, Condo, etc."], ["Field", "Field, Meadow."], ["House", "House, Bungalow, etc."], ["Other", "Other, to be determined."], ["Shop", "Shop, Retail Outlet."]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_14rts_5.png", "TableImg_W3lze_5.png"], "original_data_index": 92, "original_sql": "SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_description = \"Apartment, Flat, Condo, etc.\" UNION SELECT property_type_code, property_type_description FROM Ref_Property_Types WHERE property_type_code <> \"Field\" OR property_type_description != \"House, Bungalow, etc.\""} {"question": "Can you give me a list of driver IDs that are less than 5, excluding any driver IDs found in the school bus list that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R9icu_12.png", "TableImg_51mvh_5.png"], "original_data_index": 90, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are less than 10, excluding those driver IDs that are also less than or equal to 3 and appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3clwo_12.png", "TableImg_Kefwv_5.png"], "original_data_index": 95, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of property type codes from properties where either oth_feature_3 is not \"None\" and the property name is \"the cole\", or fld_feature_2 is not \"None\", the date sold is not \"1997-11-07 20:22:05\", hse_feature_3 is \"None\", and hse_feature_2 is \"None\", or fld_feature_1 is not \"None\", or the room count is not 7, combined with a list of property type codes from property types where the property type description is not \"Other, to be determined.\"?", "answer": {"columns": ["property_type_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["House"], ["Other"], ["Field"], ["Apartment"], ["Shop"], ["Shop"], ["Apartment"], ["Apartment"], ["Apartment"], ["Other"], ["Apartment"], ["Other"], ["Apartment"], ["House"], ["Apartment"], ["Field"], ["Shop"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_75ukq_15.png", "TableImg_178kn_5.png"], "original_data_index": 94, "original_sql": "SELECT property_type_code FROM Properties WHERE oth_feature_3 <> \"None\" AND property_name = \"the cole\" OR fld_feature_2 <> \"None\" AND date_sold != \"1997-11-07 20:22:05\" AND hse_feature_3 = \"None\" AND hse_feature_2 = \"None\" OR fld_feature_1 != \"None\" OR \"room_count\" != 7 UNION ALL SELECT property_type_code FROM Ref_Property_Types WHERE property_type_description <> \"Other, to be determined.\""} {"question": "Can you give me a list of driver IDs that are not 1 from the driver table, but also not 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K5a98_12.png", "TableImg_Ew9qv_5.png"], "original_data_index": 98, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which driver IDs are both not equal to 2 and greater than 4, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2rsq6_12.png", "TableImg_Mkr8z_5.png"], "original_data_index": 96, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list all the school locations, including those from schools that aren't Punahou School and don't have a School ID of 2, and also including locations from schools that don't have a grade level of Freshman\u2013Sophomore year?", "answer": {"columns": ["Location"], "index": [0, 1, 2, 3, 4], "data": [["Cambridge, Massachusetts"], ["Honolulu, Hawaii"], ["Jakarta, Indonesia"], ["Los Angeles, California"], ["New York City"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Yiztz_7.png", "TableImg_Sz2si_7.png"], "original_data_index": 97, "original_sql": "SELECT Location FROM school WHERE \"School_ID\" <> 2 AND School != \"Punahou School\" UNION SELECT Location FROM school WHERE Grade != \"Freshman\u2013Sophomore year\""} {"question": "Which driver IDs are both greater than or equal to 6 in the driver table and equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yoj9l_12.png", "TableImg_Trh61_5.png"], "original_data_index": 101, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of aircraft IDs from the aircraft table that are less than or equal to 3, excluding any aircraft IDs from the airport_aircraft table that are greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vkgri_5.png", "TableImg_T79un_4.png"], "original_data_index": 104, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs, including driver ID 8 from the driver table and all driver IDs except 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Msj5u_12.png", "TableImg_7ghhd_5.png"], "original_data_index": 100, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me all the lesson times, vehicle IDs, lesson dates, staff IDs, prices, lesson status codes, customer IDs, and lesson IDs from the Lessons table where the lesson time is not \"4\", or the lesson ID is greater than or equal to 9 and the price is not 223.0, or the staff ID is not 5 and the lesson date is \"2018-03-12 00:41:59\", or the vehicle ID is not 2, combined with all the lesson times, vehicle IDs, lesson dates, staff IDs, prices, lesson status codes, customer IDs, and lesson IDs from the Lessons table where the lesson time is \"6\", or the price is greater than or equal to 352.0 and the staff ID is greater than 8, or the lesson ID is 6 and the vehicle ID is less than 1 and the lesson date is \"2018-03-08 16:05:05\", or the customer ID is less than 10 and the lesson status code is \"Cancelled\"?", "answer": {"columns": ["lesson_time", "vehicle_id", "lesson_date", "staff_id", "price", "lesson_status_code", "customer_id", "lesson_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23], "data": [["5", "3", "2018-02-28 10:55:36", "8", "199", "Cancelled", "6", "1"], ["6", "3", "2018-03-07 16:12:36", "14", "167", "Cancelled", "8", "2"], ["3", "2", "2018-03-03 15:10:16", "11", "352", "Cancelled", "6", "3"], ["9", "2", "2018-03-17 19:02:07", "1", "306", "Completed", "8", "4"], ["9", "2", "2018-03-12 00:41:59", "3", "295", "Completed", "10", "5"], ["6", "2", "2018-03-07 22:03:49", "4", "492", "Completed", "5", "6"], ["9", "1", "2018-03-08 16:05:05", "11", "231", "Cancelled", "9", "7"], ["2", "2", "2018-03-21 06:48:45", "8", "277", "Completed", "3", "8"], ["9", "2", "2018-03-05 20:05:33", "4", "456", "Completed", "2", "9"], ["4", "2", "2018-02-26 02:36:35", "5", "495", "Cancelled", "2", "10"], ["2", "1", "2018-03-04 06:55:46", "15", "223", "Cancelled", "10", "11"], ["2", "2", "2018-03-16 07:08:52", "12", "184", "Cancelled", "11", "12"], ["5", "1", "2018-03-05 18:05:31", "12", "446", "Completed", "13", "13"], ["5", "1", "2018-03-07 11:53:32", "11", "483", "Cancelled", "11", "14"], ["9", "1", "2018-03-06 21:48:51", "8", "340", "Cancelled", "3", "15"], ["5", "3", "2018-02-28 10:55:36", "8", "199", "Cancelled", "6", "1"], ["6", "3", "2018-03-07 16:12:36", "14", "167", "Cancelled", "8", "2"], ["3", "2", "2018-03-03 15:10:16", "11", "352", "Cancelled", "6", "3"], ["6", "2", "2018-03-07 22:03:49", "4", "492", "Completed", "5", "6"], ["9", "1", "2018-03-08 16:05:05", "11", "231", "Cancelled", "9", "7"], ["4", "2", "2018-02-26 02:36:35", "5", "495", "Cancelled", "2", "10"], ["5", "1", "2018-03-05 18:05:31", "12", "446", "Completed", "13", "13"], ["5", "1", "2018-03-07 11:53:32", "11", "483", "Cancelled", "11", "14"], ["9", "1", "2018-03-06 21:48:51", "8", "340", "Cancelled", "3", "15"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Jxo7v_15.png", "TableImg_Vu6lk_15.png"], "original_data_index": 99, "original_sql": "SELECT lesson_time, vehicle_id, lesson_date, staff_id, price, lesson_status_code, customer_id, lesson_id FROM Lessons WHERE lesson_time <> \"4\" OR \"lesson_id\" >= 9 AND \"price\" <> 223.0 OR \"staff_id\" != 5 AND lesson_date = \"2018-03-12 00:41:59\" OR \"vehicle_id\" != 2 UNION ALL SELECT lesson_time, vehicle_id, lesson_date, staff_id, price, lesson_status_code, customer_id, lesson_id FROM Lessons WHERE lesson_time = \"6\" OR \"price\" >= 352.0 AND \"staff_id\" > 8 OR \"lesson_id\" = 6 AND \"vehicle_id\" < 1 AND lesson_date = \"2018-03-08 16:05:05\" OR \"customer_id\" < 10 AND lesson_status_code = \"Cancelled\""} {"question": "What is the sum of album IDs where the artist ID is not 150, or the title is \"The Best of Beethoven\", or the ID is not 219, combined with the sum of media type IDs where the name is \"Protected MPEG-4 video file\" or the ID is not 2?", "answer": {"columns": ["SUM(id)"], "index": [0, 1], "data": [["13"], ["60378"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_Vooja_347.png", "TableImg_Ez76n_5.png"], "original_data_index": 103, "original_sql": "SELECT SUM(id) FROM albums WHERE \"artist_id\" <> 150 OR title = \"The Best of Beethoven\" OR \"id\" <> 219 UNION SELECT SUM(id) FROM media_types WHERE name = \"Protected MPEG-4 video file\" OR \"id\" != 2"} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9q0lh_12.png", "TableImg_Vqswk_5.png"], "original_data_index": 105, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the distances and aircraft IDs for aircraft that aren't Boeing 727s and have an aircraft ID greater than 14, but exclude the distances and aircraft IDs for flights where the aircraft ID is 5 and the flight number is less than 99, or the distance isn't 2308, or the destination isn't Tokyo, or the departure date isn't 04/12/2005 09:15, and the price is greater than 278.56, and the origin isn't Los Angeles?", "answer": {"columns": ["distance", "aid"], "index": [0], "data": [["30", "16"]]}, "table_names": "['aircraft' 'flight']", "table_image_ids": ["TableImg_9xsdg_16.png", "TableImg_Xmlth_10.png"], "original_data_index": 107, "original_sql": "SELECT distance, aid FROM aircraft WHERE name <> \"Boeing 727\" AND \"aid\" > 14 EXCEPT SELECT distance, aid FROM flight WHERE \"aid\" = 5 AND \"flno\" < 99 OR \"distance\" <> 2308 OR destination <> \"Tokyo\" OR departure_date <> \"04/12/2005 09:15\" AND \"price\" > 278.56 AND origin != \"Los Angeles\""} {"question": "Could you list the shipping agent codes from the Documents table, excluding those codes that also appear in the Ref_Shipping_Agents table where the shipping agent description isn't \"w\" or the shipping agent code isn't \"AL\", and considering only documents that are not \"Hard Drive\" type, or were not received on \"2008-04-21 20:42:25\", or don't have a document ID of 10 and are not in \"working\" status, or have other details that are not \"u\", or don't have a shipping agent code of \"US\", or have a receipt number of \"37\"?", "answer": {"columns": ["shipping_agent_code"], "index": [0], "data": [["AL"]]}, "table_names": "['Documents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Qnux5_15.png", "TableImg_8zltx_5.png"], "original_data_index": 106, "original_sql": "SELECT shipping_agent_code FROM Documents WHERE document_type_code != \"Hard Drive\" OR receipt_date <> \"2008-04-21 20:42:25\" OR \"document_id\" <> 10 AND document_status_code != \"working\" OR other_details <> \"u\" OR shipping_agent_code != \"US\" OR receipt_number = \"37\" EXCEPT SELECT shipping_agent_code FROM Ref_Shipping_Agents WHERE shipping_agent_description <> \"w\" OR shipping_agent_code != \"AL\""} {"question": "Can you give me a list of employee IDs from the evaluation table, excluding those awarded in 2011, combined with a list of employee IDs from the hiring table where the employee ID is 4 and either the shop ID is less than 6 and they are full-time, or their start date is 2011?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["10"], ["2"], ["4"], ["7"], ["3"], ["4"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Ywzuu_6.png", "TableImg_X5rh5_7.png"], "original_data_index": 108, "original_sql": "SELECT Employee_ID FROM evaluation WHERE Year_awarded != \"2011\" UNION ALL SELECT Employee_ID FROM hiring WHERE \"Employee_ID\" = 4 AND \"Shop_ID\" < 6 AND Is_full_time = \"T\" OR Start_from = \"2011\""} {"question": "Can you list all aircraft IDs, including those from the aircraft table excluding ID 2, and those from the airport_aircraft table with IDs greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lwoi4_5.png", "TableImg_Xlclw_4.png"], "original_data_index": 109, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding aircraft ID 2, and then from the airport_aircraft table including only aircraft IDs that are 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Etyzw_5.png", "TableImg_R6tsn_4.png"], "original_data_index": 110, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are greater than 2 and also appear as driver IDs in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K0bwz_12.png", "TableImg_5r201_5.png"], "original_data_index": 111, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me the Driver ID if it's 7, looking at both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fq0oi_12.png", "TableImg_O9b48_5.png"], "original_data_index": 112, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of branch IDs from the membership register, including those that are not \"1\" or were registered in a year other than 2016, and also including those registered in a year other than 2016 or have a member ID less than 7?", "answer": {"columns": ["Branch_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Azqyx_8.png", "TableImg_59um9_8.png"], "original_data_index": 113, "original_sql": "SELECT Branch_ID FROM membership_register_branch WHERE Branch_ID <> \"1\" OR Register_Year != \"2016\" UNION SELECT Branch_ID FROM membership_register_branch WHERE Register_Year != \"2016\" OR \"Member_ID\" < 7"} {"question": "Can you list the aircraft IDs that are less than or equal to 3 from the aircraft table, combined with the aircraft IDs that are greater than 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Oio87_5.png", "TableImg_Y3rj2_4.png"], "original_data_index": 115, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Which driver IDs are less than 8 and also greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jbl7q_12.png", "TableImg_Xkkm7_5.png"], "original_data_index": 116, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of aircraft IDs that are less than 5, but also not equal to 2, based on the aircraft and airport aircraft data?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tisac_5.png", "TableImg_Rt1vj_4.png"], "original_data_index": 117, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me the IDs of aircraft that are both among the aircraft with an ID of 1 or less, and among the airport aircraft with an ID less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tiift_5.png", "TableImg_V98hg_4.png"], "original_data_index": 114, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs that are either exactly 8 from the driver table, or less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q3o0t_12.png", "TableImg_Uvtrl_5.png"], "original_data_index": 121, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of aircraft IDs that are less than 2, excluding any aircraft IDs greater than 2 that are also associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zl35h_5.png", "TableImg_I7qdb_4.png"], "original_data_index": 120, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you list all aircraft IDs less than 5, combining those from the aircraft table and the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Spi3a_5.png", "TableImg_Dmmz4_4.png"], "original_data_index": 118, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you list all the aircraft IDs, including those from the aircraft table that are greater than or equal to 1 and those from the airport_aircraft table that are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jvvch_5.png", "TableImg_5wvsl_4.png"], "original_data_index": 119, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me the IATA code, ICAO code, name, and ID for all airports that are either in Baltimore, or have an ICAO code that isn't PANC, or an IATA code that isn't ANC, or a name that isn't Ted Stevens Airport and are not in the United States, or have an ID greater than 1, combined with airports that are not in Brussels and are not named Billund Airport?", "answer": {"columns": ["IATA", "ICAO", "name", "id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["AEY", "BIAR", "Akureyri Airport", "1"], ["AMS", "EHAM", "Schiphol Airport", "2"], ["ANC", "PANC", "Ted Stevens Airport", "3"], ["BCN", "LEBL", "El Prat Airport", "5"], ["BGO", "ENBR", "Bergen Airport", "6"], ["BLL", "EKBI", "Billund Airport", "7"], ["BOS", "KBOS", "Logan International Airport", "8"], ["BRU", "EBBR", "National Airport", "9"], ["BWI", "KBWI", "Baltimore-Washington Airport", "4"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_7w36m_9.png", "TableImg_Ybqaa_9.png"], "original_data_index": 122, "original_sql": "SELECT IATA, ICAO, name, id FROM airport WHERE City = \"Baltimore\" OR ICAO != \"PANC\" OR IATA != \"ANC\" OR name != \"Ted Stevens Airport\" AND Country <> \"United States\" OR \"id\" > 1 UNION SELECT IATA, ICAO, name, id FROM airport WHERE City != \"Brussels\" AND name <> \"Billund Airport\""} {"question": "Can you list the aircraft IDs that are less than 2 from the aircraft table, and also list the aircraft IDs that are less than or equal to 3 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ngv9c_5.png", "TableImg_Aftq1_4.png"], "original_data_index": 125, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include the driver IDs that are also not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U70oh_12.png", "TableImg_Oynjn_5.png"], "original_data_index": 124, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me the IDs of drivers that are less than 5, excluding the IDs of school bus drivers that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4f332_12.png", "TableImg_K29hj_5.png"], "original_data_index": 123, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the IDs of drivers that are both less than or equal to 10 and not equal to 4, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2l1g3_12.png", "TableImg_Ak3co_5.png"], "original_data_index": 128, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 6, that are not also driver IDs greater than 7 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_80n6e_12.png", "TableImg_6yazy_5.png"], "original_data_index": 127, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which driver IDs, excluding driver ID 12, are also driver IDs of school buses specifically with driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jrfeb_12.png", "TableImg_8kelr_5.png"], "original_data_index": 126, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs less than 7 found in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mvb40_12.png", "TableImg_H8vw5_5.png"], "original_data_index": 129, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 7, that are not also driver IDs greater than 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C2s62_12.png", "TableImg_F7ztk_5.png"], "original_data_index": 133, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "What aircraft IDs appear exactly once in the aircraft table with an ID of 2, but do not appear exactly once in the airport_aircraft table with an ID of 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1l84b_5.png", "TableImg_9rjba_4.png"], "original_data_index": 134, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 2, that are not also aircraft IDs greater than 3 found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_St8n8_5.png", "TableImg_Q04a5_4.png"], "original_data_index": 135, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me the IDs of drivers that are both less than or equal to 7 and not equal to 7, considering only drivers that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4ni2o_12.png", "TableImg_63d2t_5.png"], "original_data_index": 136, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of aircraft IDs that are greater than 1, excluding any aircraft IDs that are equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_82a0t_5.png", "TableImg_Gywnr_4.png"], "original_data_index": 137, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "What aircraft IDs are both less than or equal to 5 when grouped in the aircraft table and also less than or equal to 1 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2ok2t_5.png", "TableImg_1z8i2_4.png"], "original_data_index": 138, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 9, and those from the school bus table where the ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aub1f_12.png", "TableImg_Lucnv_5.png"], "original_data_index": 139, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me the party affiliation, home city, name, average age, and driver ID for all drivers, combining those who either don't have a Driver ID of 8, don't live in Hartford, or are affiliated with the Dem party, along with those whose name is not Brandon McGee?", "answer": {"columns": ["Party", "Home_city", "Name", "AVG(Age)", "Driver_ID"], "index": [0, 1], "data": [["Dem", "Hartford", "Matthew Ritter", "40.75", "1"], ["Dem", "Hartford", "Matthew Ritter", "40.3636363636", "1"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_1l1be_12.png", "TableImg_Oasmj_12.png"], "original_data_index": 140, "original_sql": "SELECT Party, Home_city, Name, AVG(Age), Driver_ID FROM driver WHERE \"Driver_ID\" <> 8 OR Home_city <> \"Hartford\" OR Party = \"Dem\" UNION ALL SELECT Party, Home_city, Name, AVG(Age), Driver_ID FROM driver WHERE Name <> \"Brandon McGee\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 4, excluding those aircraft IDs from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F370q_5.png", "TableImg_Fmm5a_4.png"], "original_data_index": 141, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7, and also those from the school bus table that are greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q2m4w_12.png", "TableImg_Bhci8_5.png"], "original_data_index": 130, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cw0t3_12.png", "TableImg_S5o6z_5.png"], "original_data_index": 132, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are 9 or less, but only include those that are not also driver IDs greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ocuk1_12.png", "TableImg_Jf604_5.png"], "original_data_index": 131, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs greater than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6rle6_12.png", "TableImg_Mz2j1_5.png"], "original_data_index": 143, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What are the average feature type names and feature type codes for entries where the feature type name is \"Securiyt, eg Burglar Alarm.\" and the feature type code is not \"Security\", combined with the average feature type name and feature type code for entries where the feature type code is \"Security\"?", "answer": {"columns": ["AVG(feature_type_name)", "feature_type_code"], "index": [0, 1], "data": [["", ""], ["0.0", "Security"]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_N6xw5_2.png", "TableImg_Br9zj_2.png"], "original_data_index": 144, "original_sql": "SELECT AVG(feature_type_name), feature_type_code FROM Ref_Feature_Types WHERE feature_type_name = \"Securiyt, eg Burglar Alarm.\" AND feature_type_code != \"Security\" UNION SELECT AVG(feature_type_name), feature_type_code FROM Ref_Feature_Types WHERE feature_type_code = \"Security\""} {"question": "Can you list all environmental allergies, and also list all allergies other than Ragweed for students with an ID of 1010 or less?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["Anchovies"], ["Cat"], ["Dog"], ["Eggs"], ["Grass Pollen"], ["Milk"], ["Nuts"], ["Ragweed"], ["Shellfish"], ["Tree Pollen"]]}, "table_names": "['Allergy_Type' 'Has_Allergy']", "table_image_ids": ["TableImg_Elhx2_14.png", "TableImg_M078k_59.png"], "original_data_index": 145, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE AllergyType = \"environmental\" UNION SELECT Allergy FROM Has_Allergy WHERE Allergy != \"Ragweed\" AND \"StuID\" <= 1010"} {"question": "Can you give me a list of employee IDs that are either greater than 574489456 from the certificate table, or are not equal to 141582651, have a name other than \"Patricia Jones\", and have a salary less than or equal to 43723 from the employee table?", "answer": {"columns": ["eid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["15645489"], ["90873519"], ["248965255"], ["310454877"], ["348121549"], ["486512566"], ["489221823"], ["489456522"], ["574489457"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_Aa2r5_69.png", "TableImg_Qatvj_31.png"], "original_data_index": 142, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" > 574489456 UNION SELECT eid FROM employee WHERE \"eid\" <> 141582651 AND name != \"Patricia Jones\" AND \"salary\" <= 43723"} {"question": "Which driver has an ID of 5, excluding any drivers who have an ID other than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bvt79_12.png", "TableImg_Aukli_5.png"], "original_data_index": 147, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Could you list all the endowment IDs, including those where the donator's name is not \"San Crist\u00f3bal\", and also those where the amount isn't 9.83, the School ID isn't 3, the donator's name isn't \"San Jos\u00e9 de Ocoa\", and the endowment ID is greater than 6?", "answer": {"columns": ["endowment_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['endowment' 'endowment']", "table_image_ids": ["TableImg_62jzx_11.png", "TableImg_P30cn_11.png"], "original_data_index": 149, "original_sql": "SELECT endowment_id FROM endowment WHERE donator_name != \"San Crist\u00f3bal\" UNION ALL SELECT endowment_id FROM endowment WHERE \"amount\" <> 9.83 AND \"School_id\" <> 3 AND donator_name <> \"San Jos\u00e9 de Ocoa\" AND \"endowment_id\" > 6"} {"question": "Can you give me a list of vehicle IDs from the lessons table where either the staff ID is greater than 1 or the price is less than or equal to 231.0 and the lesson time is not \"9\", but exclude any vehicle IDs from the vehicles table where the vehicle ID is less than 2 or the vehicle details are \"Van\"?", "answer": {"columns": ["vehicle_id"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_O89hg_15.png", "TableImg_L944m_3.png"], "original_data_index": 146, "original_sql": "SELECT vehicle_id FROM Lessons WHERE \"staff_id\" > 1 OR \"price\" <= 231.0 AND lesson_time != \"9\" EXCEPT SELECT vehicle_id FROM Vehicles WHERE \"vehicle_id\" < 2 OR vehicle_details = \"Van\""} {"question": "Could you give me the house feature 2, buyer offered price, other feature 1, house feature 1, field feature 1, field feature 2, date on market, agreed selling price, date sold, apartment feature 1, vendor requested price, room count, property type code, other property details, other feature 3, shop feature 2, shop feature 1, house feature 3, apartment feature 2, apartment feature 3, property address, other feature 2, and property ID for properties that meet these two sets of criteria: first, properties where other feature 1 is \"None\" and either house feature 2 is not \"None\", shop feature 2 is not \"None\", the property ID is not 11, or the property type is \"Field\" and shop feature 3 is \"None\"; and second, properties where either the date sold is \"2003-02-27 18:17:11\", or house feature 2 is not \"None\", shop feature 3 is not \"None\", the date on market is not \"1976-06-10 20:25:38\", the vendor requested price is at most 331.0, apartment feature 2 is not \"culpa\", and the property name is \"high line\"?", "answer": {"columns": ["hse_feature_2", "buyer_offered_price", "oth_feature_1", "hse_feature_1", "fld_feature_1", "fld_feature_2", "date_on_market", "agreed_selling_price", "date_sold", "apt_feature_1", "vendor_requested_price", "room_count", "property_type_code", "other_property_details", "oth_feature_3", "shp_feature_2", "shp_feature_1", "hse_feature_3", "apt_feature_2", "apt_feature_3", "property_address", "oth_feature_2", "property_id"], "index": [0], "data": [["", "15.17", "", "", "", "", "2017-09-14 15:49:23", "4514.807", "2003-02-27 18:17:11", "nesciunt", "192374065.8", "6", "Field", "", "", "", "", "", "adipisci", "", "49578 Ayden Mountains\nNew Russellhaven, UT 46626", "", "4"]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Sqtzc_15.png", "TableImg_U2fxh_15.png"], "original_data_index": 148, "original_sql": "SELECT hse_feature_2, buyer_offered_price, oth_feature_1, hse_feature_1, fld_feature_1, fld_feature_2, date_on_market, agreed_selling_price, date_sold, apt_feature_1, vendor_requested_price, room_count, property_type_code, other_property_details, oth_feature_3, shp_feature_2, shp_feature_1, hse_feature_3, apt_feature_2, apt_feature_3, property_address, oth_feature_2, property_id FROM Properties WHERE oth_feature_1 = \"None\" AND hse_feature_2 != \"None\" OR shp_feature_2 <> \"None\" OR \"property_id\" != 11 OR property_type_code = \"Field\" AND shp_feature_3 = \"None\" INTERSECT SELECT hse_feature_2, buyer_offered_price, oth_feature_1, hse_feature_1, fld_feature_1, fld_feature_2, date_on_market, agreed_selling_price, date_sold, apt_feature_1, vendor_requested_price, room_count, property_type_code, other_property_details, oth_feature_3, shp_feature_2, shp_feature_1, hse_feature_3, apt_feature_2, apt_feature_3, property_address, oth_feature_2, property_id FROM Properties WHERE date_sold = \"2003-02-27 18:17:11\" OR hse_feature_2 <> \"None\" AND shp_feature_3 != \"None\" AND date_on_market != \"1976-06-10 20:25:38\" AND \"vendor_requested_price\" <= 331.0 AND apt_feature_2 != \"culpa\" AND property_name = \"high line\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs less than or equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vj5pc_12.png", "TableImg_P4t5n_5.png"], "original_data_index": 151, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 7, and those from the school bus table with driver IDs less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yxlg5_12.png", "TableImg_H3zpq_5.png"], "original_data_index": 150, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Could you list the school IDs from the School table where either the enrollment is greater than 287 and the football class is AAAA but not AAA, or the location isn't Bremen, or the school ID isn't 1 and the school name is Jimtown, or the county isn't 20 Elkhart and the mascot isn't Falcons, and also include all school IDs from the Budget table where the budget invested percentage isn't 71.3?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["2"], ["2"], ["2"], ["3"], ["4"], ["5"], ["5"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_Pcyew_8.png", "TableImg_Zcust_8.png"], "original_data_index": 152, "original_sql": "SELECT School_id FROM School WHERE \"Enrollment\" > 287 AND IHSAA_Football_Class = \"AAAA\" AND IHSAA_Class <> \"AAA\" OR Location <> \"Bremen\" OR School_id != \"1\" AND School_name = \"Jimtown\" OR County != \"20 Elkhart\" AND Mascot != \"Falcons\" UNION ALL SELECT School_id FROM budget WHERE Budget_invested_percent != \"71.3\""} {"question": "Can you give me the IDs of drivers, where each ID is less than or equal to 5, excluding the IDs of school bus drivers where each ID is greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ikoz1_12.png", "TableImg_115rn_5.png"], "original_data_index": 153, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 10, and those from the school bus table that are equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0n3nn_12.png", "TableImg_Axa34_5.png"], "original_data_index": 157, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, excluding any driver IDs less than 4 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Isxzp_12.png", "TableImg_Ok9kn_5.png"], "original_data_index": 155, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are less than 3 from the driver table, combined with a list of driver IDs that are 7 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nvsq1_12.png", "TableImg_Wywb3_5.png"], "original_data_index": 156, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list the assets in billions, industry, headquarters, and name for all companies that are not headquartered in the USA, combined with a list of companies whose sales are greater than 433.5 billion, or whose name is not Wells Fargo, or whose company ID is less than 11 and are not in the Conglomerate industry?", "answer": {"columns": ["Assets_in_Billion", "Industry", "Headquarters", "Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["340.5", "Oil and gas", "Netherlands", "Royal Dutch Shell"], ["2039.1", "Banking", "China", "Industrial and Commercial Bank of China"], ["2550.0", "Banking", "UK", "HSBC"], ["304.7", "Oil and gas", "China", "PetroChina"], ["319.4", "Oil and gas", "Brazil", "Petrobras"], ["292.5", "Oil and gas", "UK", "BP"], ["1637.8", "Banking", "China", "China Construction Bank"], ["302.6", "Oil and gas", "Russia", "Gazprom"], ["328.7", "Automotive", "Germany", "Volkswagen Group"], ["213.0", "Oil and gas", "France", "Total"], ["1563.9", "Banking", "China", "Agricultural Bank of China"], ["331.1", "Oil and gas", "USA", "ExxonMobil"], ["2265.8", "Banking", "USA", "JPMorgan Chase"], ["717.2", "Conglomerate", "USA", "General Electric"], ["340.5", "Oil and gas", "Netherlands", "Royal Dutch Shell"], ["2039.1", "Banking", "China", "Industrial and Commercial Bank of China"], ["2550.0", "Banking", "UK", "HSBC"], ["304.7", "Oil and gas", "China", "PetroChina"], ["392.6", "Conglomerate", "USA", "Berkshire Hathaway"], ["1313.9", "Banking", "USA", "Wells Fargo"], ["319.4", "Oil and gas", "Brazil", "Petrobras"], ["292.5", "Oil and gas", "UK", "BP"], ["209.5", "Oil and gas", "USA", "Chevron"], ["1637.8", "Banking", "China", "China Construction Bank"], ["1873.9", "Banking", "USA", "Citigroup"], ["302.6", "Oil and gas", "Russia", "Gazprom"], ["193.4", "Retailing", "USA", "Walmart"], ["328.7", "Automotive", "Germany", "Volkswagen Group"], ["213.0", "Oil and gas", "France", "Total"], ["1563.9", "Banking", "China", "Agricultural Bank of China"]]}, "table_names": "['company' 'company']", "table_image_ids": ["TableImg_2euth_19.png", "TableImg_Gwgwa_19.png"], "original_data_index": 154, "original_sql": "SELECT Assets_in_Billion, Industry, Headquarters, Name FROM company WHERE Headquarters <> \"USA\" UNION ALL SELECT Assets_in_Billion, Industry, Headquarters, Name FROM company WHERE \"Sales_in_Billion\" > 433.5 OR Name <> \"Wells Fargo\" OR \"Company_ID\" < 11.0 AND Industry <> \"Conglomerate\""} {"question": "What are the average product IDs and store IDs for stores that aren't store 2, excluding the average product IDs and store IDs for stores that aren't store 2 and don't have product 6?", "answer": {"columns": ["AVG(Product_ID)", "Store_ID"], "index": [0], "data": [["3.1666666667", "1"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Tggjb_15.png", "TableImg_Gzr5i_15.png"], "original_data_index": 160, "original_sql": "SELECT AVG(Product_ID), Store_ID FROM store_product WHERE \"Store_ID\" != 2 EXCEPT SELECT AVG(Product_ID), Store_ID FROM store_product WHERE \"Store_ID\" != 2 AND \"Product_ID\" <> 6"} {"question": "Can you give me a list of driver IDs that are less than 6 from the driver table, combined with a list of driver IDs that are less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wbhpf_12.png", "TableImg_72aur_5.png"], "original_data_index": 158, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the aircraft IDs, first those from the aircraft table excluding aircraft ID 1, and then those from the airport_aircraft table that are less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2abnj_5.png", "TableImg_Xapg4_4.png"], "original_data_index": 161, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Could you list the names of aircraft that either have a distance of at least 2128 and an aid greater than 4, or have a distance not equal to 520?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Airbus A319"], ["Airbus A320"], ["Airbus A340-300"], ["Boeing 727"], ["Boeing 737-800"], ["Boeing 747-400"], ["Boeing 757-300"], ["Boeing 767-400ER"], ["Boeing 777-300"], ["British Aerospace Jetstream 41"], ["Embraer ERJ-145"], ["Lockheed L1011"], ["SAAB 340"], ["Schwitzer 2-33"], ["Tupolev 154"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_M8k9h_16.png", "TableImg_R3hb5_16.png"], "original_data_index": 162, "original_sql": "SELECT name FROM aircraft WHERE \"distance\" >= 2128 AND \"aid\" > 4 UNION SELECT name FROM aircraft WHERE \"distance\" <> 520"} {"question": "Can you list the Aircraft IDs for aircraft that either don't have a max gross weight of \"123,500 lb (56,000 kg)\" and don't have a total disk area of \"872 ft\u00b2 (81.1 m\u00b2)\", or don't have a description of \"Light utility helicopter\", along with the Aircraft IDs from the airport_aircraft table where the Airport ID is less than or equal to 2, or the ID is less than 1 and the Aircraft ID is greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bftcl_5.png", "TableImg_Kohi5_4.png"], "original_data_index": 163, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Max_Gross_Weight <> \"123,500 lb (56,000 kg)\" AND Total_disk_area != \"872 ft\u00b2 (81.1 m\u00b2)\" OR Description <> \"Light utility helicopter\" UNION ALL SELECT Aircraft_ID FROM airport_aircraft WHERE \"Airport_ID\" <= 2 OR \"ID\" < 1 AND \"Aircraft_ID\" > 5"} {"question": "Which driver IDs are both greater than or equal to 2 in the driver table and equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_56lzr_12.png", "TableImg_G336m_5.png"], "original_data_index": 164, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 5, that are in the aircraft table, but not in the airport_aircraft table where the aircraft ID is less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4yhgy_5.png", "TableImg_2g9ga_4.png"], "original_data_index": 167, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12 from the driver table and driver ID 3 from the school_bus table, combining both lists into one?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nh8bw_12.png", "TableImg_Qkyss_5.png"], "original_data_index": 166, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are less than 3, excluding any driver IDs that are also greater than 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Muas4_12.png", "TableImg_Jsayk_5.png"], "original_data_index": 165, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 11, and also including driver ID 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K2byr_12.png", "TableImg_8mwza_5.png"], "original_data_index": 168, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which driver IDs are not equal to 7 and are also not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hw7dx_12.png", "TableImg_4kbsr_5.png"], "original_data_index": 169, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the total i_id for all items titled \"blue hoodie\", and what is the total i_id for all items titled \"cup\" with an i_id less than 1?", "answer": {"columns": ["SUM(i_id)"], "index": [0, 1], "data": [["6.0"], [""]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_B0mjy_8.png", "TableImg_H6jvf_8.png"], "original_data_index": 171, "original_sql": "SELECT SUM(i_id) FROM item WHERE title = \"blue hoodie\" UNION ALL SELECT SUM(i_id) FROM item WHERE title = \"cup\" AND \"i_id\" < 1"} {"question": "Can you list all driver IDs that are greater than 9 from the driver table, combined with all driver IDs that are less than 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ajcc4_12.png", "TableImg_2mu7b_5.png"], "original_data_index": 170, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 3, and those from the school bus table with driver IDs up to and including 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0n8xc_12.png", "TableImg_Bh8sf_5.png"], "original_data_index": 173, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What template type descriptions and codes are common between records that are either for template type code \"BK\" or not for the description \"Book\", and records that are neither for the description \"Book\" nor for the template type code \"BK\"?", "answer": {"columns": ["Template_Type_Description", "Template_Type_Code"], "index": [0, 1, 2, 3], "data": [["Advertisement", "AD"], ["CV", "CV"], ["Paper", "PP"], ["Presentation", "PPT"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_2o3t5_5.png", "TableImg_32d3b_5.png"], "original_data_index": 172, "original_sql": "SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = \"BK\" OR Template_Type_Description <> \"Book\" INTERSECT SELECT Template_Type_Description, Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Description != \"Book\" AND Template_Type_Code != \"BK\""} {"question": "Can you list all driver IDs that are less than or equal to 10 from the driver table, and also list all driver IDs that are less than 10 from the school_bus table, combining the two lists into one?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rm2ps_12.png", "TableImg_Uisoe_5.png"], "original_data_index": 176, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the average property feature descriptions, feature IDs, and largest property IDs for features with IDs less than 3, combined with the same information for properties where the feature description is not \"corrupti\"?", "answer": {"columns": ["AVG(property_feature_description)", "feature_id", "MAX(property_id)"], "index": [0, 1], "data": [["0", "2", "13"], ["0", "3", "15"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Yp0yh_15.png", "TableImg_6nfon_15.png"], "original_data_index": 177, "original_sql": "SELECT AVG(property_feature_description), feature_id, MAX(property_id) FROM Other_Property_Features WHERE \"feature_id\" < 3 UNION ALL SELECT AVG(property_feature_description), feature_id, MAX(property_id) FROM Other_Property_Features WHERE property_feature_description <> \"corrupti\""} {"question": "Can you give me a list of driver IDs that are not 11, and also are greater than or equal to 4, considering only drivers who have driven both a regular driver vehicle and a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Effhp_12.png", "TableImg_7ot3j_5.png"], "original_data_index": 174, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Which student IDs, excluding 1002, are also associated with pet ID 2001 or have a student ID less than 1002?", "answer": {"columns": ["StuID"], "index": [0], "data": [["1001"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Kdca6_3.png", "TableImg_Dkqj4_3.png"], "original_data_index": 175, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" != 1002 INTERSECT SELECT StuID FROM Has_Pet WHERE \"PetID\" = 2001 OR \"StuID\" < 1002"} {"question": "Can you give me a list of aircraft IDs, including those from the aircraft table that are greater than or equal to 2, and those from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_A0dkp_5.png", "TableImg_41rgb_4.png"], "original_data_index": 178, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Could you give me the payment amount, payment date and time, payment method code, and customer ID for all payments that are both less than $6782.84 and also either made with a credit card by a customer other than customer 13, or are less than or equal to $9886.62 and not made on 2018-02-06 13:35:58?", "answer": {"columns": ["amount_payment", "datetime_payment", "payment_method_code", "customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["787.12", "2018-02-06 13:35:58", "Credit Card", "3"], ["1708.18", "2018-03-20 21:38:41", "Direct Debit", "2"], ["3073.98", "2018-02-19 01:49:59", "Credit Card", "14"], ["4032.33", "2018-03-12 08:41:47", "Direct Debit", "6"], ["4610.26", "2018-02-27 20:08:53", "Direct Debit", "14"], ["4773.16", "2018-02-15 16:38:49", "Direct Debit", "7"], ["5475.26", "2018-02-19 09:06:29", "Direct Debit", "6"], ["6311.37", "2018-02-03 15:04:36", "Direct Debit", "4"]]}, "table_names": "['Customer_Payments' 'Customer_Payments']", "table_image_ids": ["TableImg_Em2wy_15.png", "TableImg_G04pd_15.png"], "original_data_index": 179, "original_sql": "SELECT amount_payment, datetime_payment, payment_method_code, customer_id FROM Customer_Payments WHERE \"amount_payment\" < 6782.84 INTERSECT SELECT amount_payment, datetime_payment, payment_method_code, customer_id FROM Customer_Payments WHERE payment_method_code = \"Credit Card\" AND \"customer_id\" != 13 OR \"amount_payment\" <= 9886.62 AND datetime_payment != \"2018-02-06 13:35:58\""} {"question": "Which aircraft IDs are less than 4 and appear in the aircraft table, and are also less than 5 and appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ujl2g_5.png", "TableImg_Byffm_4.png"], "original_data_index": 180, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver IDs are both not equal to 5 and also greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_88z08_12.png", "TableImg_Hgroi_5.png"], "original_data_index": 181, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of IDs, combining album IDs where the artist ID is 91 or greater and the album ID is greater than 28, with media type IDs that are greater than 5 and the media type name is not \"Purchased AAC audio file\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198], "data": [["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["123"], ["124"], ["125"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["256"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["199"], ["200"], ["201"], ["202"], ["203"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["261"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["255"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["257"], ["258"], ["260"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["272"], ["273"], ["274"], ["315"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["311"], ["343"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["312"], ["313"], ["314"], ["316"], ["320"], ["336"], ["317"], ["318"], ["319"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["344"], ["345"], ["346"], ["347"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_Zrh29_347.png", "TableImg_Pmnb1_5.png"], "original_data_index": 183, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" >= 91 AND \"id\" > 28 UNION ALL SELECT id FROM media_types WHERE \"id\" > 5 AND name != \"Purchased AAC audio file\""} {"question": "Can you give me the Aircraft IDs that are not equal to 2 when looking at the aircraft table, and are also less than or equal to 1 when looking at the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_414t9_5.png", "TableImg_3uyu5_4.png"], "original_data_index": 182, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me the smallest ID from car makers that are either from country \"1\" and not Renault, or whose full name isn't Renault and whose ID is at least 21, combined with the smallest ID from cars that have more than 8 cylinders or an engine displacement less than 455?", "answer": {"columns": ["MIN(Id)"], "index": [0], "data": [["1"]]}, "table_names": "['car_makers' 'cars_data']", "table_image_ids": ["TableImg_R2lky_22.png", "TableImg_It4f0_406.png"], "original_data_index": 187, "original_sql": "SELECT MIN(Id) FROM car_makers WHERE Country = \"1\" AND Maker <> \"renault\" OR FullName != \"Renault\" AND \"Id\" >= 21 UNION SELECT MIN(Id) FROM cars_data WHERE \"Cylinders\" > 8 OR \"Edispl\" < 455.0"} {"question": "Can you give me a list of aircraft IDs, including aircraft ID 4 from the aircraft table and aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2509e_5.png", "TableImg_V815z_4.png"], "original_data_index": 189, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Which aircraft IDs are common to both the aircraft and airport_aircraft tables, considering only those aircraft IDs that are greater than 2 in each table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jbw4c_5.png", "TableImg_Fi6ma_4.png"], "original_data_index": 191, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you show me the weight, age, type, and ID of pets that are either older than 3 years or weigh 12 pounds or less, or have an ID of 2002 or higher, along with the weight, age, type, and ID of pets that weigh exactly 9.3 pounds or are dogs older than 3 years?", "answer": {"columns": ["weight", "pet_age", "PetType", "PetID"], "index": [0, 1, 2], "data": [["9.3", "1", "dog", "2003"], ["12.0", "3", "cat", "2001"], ["13.4", "2", "dog", "2002"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_Fc357_3.png", "TableImg_Aqp2z_3.png"], "original_data_index": 192, "original_sql": "SELECT weight, pet_age, PetType, PetID FROM Pets WHERE \"pet_age\" > 3 OR \"weight\" <= 12.0 OR \"PetID\" >= 2002 UNION SELECT weight, pet_age, PetType, PetID FROM Pets WHERE \"weight\" = 9.3 OR PetType = \"dog\" AND \"pet_age\" > 3"} {"question": "Which stores are located in districts other than district 15 and also sell product number 2?", "answer": {"columns": ["Store_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_Ks2qu_5.png", "TableImg_Sobhs_15.png"], "original_data_index": 190, "original_sql": "SELECT Store_ID FROM store_district WHERE \"District_ID\" != 15 INTERSECT SELECT Store_ID FROM store_product WHERE \"Product_ID\" = 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5 from the driver table and driver ID 10 from the school_bus table, making sure to list each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nrx0n_12.png", "TableImg_5g8lb_5.png"], "original_data_index": 194, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of airports, showing the average name, city, sum of IDs, country, and IATA code, combining two sets of results: one where the ID is not 1, and another where the city isn't Amsterdam, the airport name is \"El Prat Airport,\" and the ID isn't 5?", "answer": {"columns": ["AVG(name)", "City", "SUM(id)", "Country", "IATA"], "index": [0, 1], "data": [["0.0", "Amsterdam", "44.0", "Netherlands", "AMS"], ["", "", "", "", ""]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Htie4_9.png", "TableImg_D8nr3_9.png"], "original_data_index": 196, "original_sql": "SELECT AVG(name), City, SUM(id), Country, IATA FROM airport WHERE \"id\" != 1 UNION ALL SELECT AVG(name), City, SUM(id), Country, IATA FROM airport WHERE City <> \"Amsterdam\" AND name = \"El Prat Airport\" AND \"id\" <> 5"} {"question": "How many vehicles are associated with lessons that are not completed, or have a price less than or equal to 306, or have a staff ID greater than or equal to 12, combined with the number of vehicles that have details other than \"Car\"?", "answer": {"columns": ["COUNT(vehicle_id)"], "index": [0, 1], "data": [["2"], ["13"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_K2cy4_15.png", "TableImg_1df9n_3.png"], "original_data_index": 195, "original_sql": "SELECT COUNT(vehicle_id) FROM Lessons WHERE lesson_status_code != \"Completed\" OR \"price\" <= 306.0 OR \"staff_id\" >= 12 UNION SELECT COUNT(vehicle_id) FROM Vehicles WHERE vehicle_details != \"Car\""} {"question": "Could you give me a list of album titles and IDs, excluding album ID 136 or including albums by artist ID 245, but then remove any employee titles and IDs where the postal code is \"T2P 5G3\" and their reports_to value is less than or equal to 2, or their title isn't \"Sales Support Agent\", or their email isn't \"nancy@chinookcorp.com\", or their first name isn't \"Margaret\" and they're from Canada, or their ID isn't 2 and their phone number isn't \"+1 (403) 262-3443\" and their last name isn't \"Edwards\", or their city is \"Calgary\" and their birth date isn't \"1973-08-29 00:00:00\" and their hire date isn't \"2002-08-14 00:00:00\", or their state isn't \"AB\", or their address isn't \"11120 Jasper Ave NW\"?", "answer": {"columns": ["title", "id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345], "data": [["...And Justice For All", "156"], ["1997 Black Light Syndrome", "208"], ["20th Century Masters - The Millennium Collection: The Best of Scorpions", "257"], ["A Copland Celebration, Vol. I", "296"], ["A Matter of Life and Death", "94"], ["A Real Dead One", "95"], ["A Real Live One", "96"], ["A Soprano Inspired", "285"], ["A TempestadeTempestade Ou O Livro Dos Dias", "139"], ["A-Sides", "203"], ["Ace Of Spades", "160"], ["Achtung Baby", "232"], ["Ac\u00fastico", "224"], ["Ac\u00fastico MTV", "167"], ["Ac\u00fastico MTV live", "26"], ["Adams, John: The Chairman Dances", "307"], ["Adorate Deum: Gregorian Chant from the Proper of the Mass", "272"], ["Afrociberdelia", "24"], ["Album Of The Year", "74"], ["Alcohol Fueled Brewtality Live! [Disc 1]", "14"], ["Alcohol Fueled Brewtality Live! [Disc 2]", "15"], ["All That You Can't Leave Behind", "233"], ["Allegri: Miserere", "273"], ["American Idiot", "89"], ["Angel Dust", "75"], ["Ao Vivo IMPORT", "248"], ["Appetite for Destruction", "90"], ["Aquaman", "254"], ["Are You Experienced?", "120"], ["Armada: Music from the Courts of England and Spain", "319"], ["Arquivo II", "168"], ["Arquivo Os Paralamas Do Sucesso", "169"], ["As Can\u00e7\u00f5es de Eu Tu Eles", "85"], ["Audioslave", "10"], ["Ax\u00e9 Bahia 2001", "29"], ["B-Sides 1980-1990", "234"], ["BBC Sessions [Disc 1] live", "30"], ["BBC Sessions [Disc 2] live", "127"], ["Bach: Goldberg Variations", "277"], ["Bach: Orchestral Suites Nos. 1 - 4", "327"], ["Bach: The Brandenburg Concertos", "300"], ["Bach: The Cello Suites", "278"], ["Bach: Toccata & Fugue in D Minor", "297"], ["Bach: Violin Concertos", "276"], ["Back to Black", "321"], ["BackBeat Soundtrack", "12"], ["Balls to the Wall", "2"], ["Bark at the Moon (Remastered)", "170"], ["Bartok: Violin & Viola Concertos", "325"], ["Barulhinho Bom", "145"], ["Battlestar Galactica (Classic), Season 1", "253"], ["Battlestar Galactica, Season 3", "227"], ["Battlestar Galactica: The Story So Far", "226"], ["Beethoven Piano Sonatas: Moonlight & Pastorale", "304"], ["Beethoven: Symhonies Nos. 5 & 6", "284"], ["Beethoven: Symphony No. 6 'Pastoral' Etc.", "324"], ["Berlioz: Symphonie Fantastique", "312"], ["Beyond Good And Evil", "212"], ["Big Ones", "5"], ["Bizet: Carmen Highlights", "313"], ["Black Album", "148"], ["Black Sabbath", "16"], ["Black Sabbath Vol. 4 (Remaster)", "17"], ["Blizzard of Ozz", "171"], ["Blood Sugar Sex Magik", "193"], ["Blue Moods", "93"], ["Body Count", "18"], ["Bongo Fury", "31"], ["Brave New World", "97"], ["By The Way", "194"], ["Cafezinho", "124"], ["Cake: B-Sides and Rarities", "260"], ["Californication", "195"], ["Carmina Burana", "295"], ["Carnaval 2001", "32"], ["Carried to Dust (Bonus Track Version)", "323"], ["Carry On", "270"], ["Cesta B\u00e1sica", "191"], ["Charpentier: Divertissements, Airs & Concerts", "328"], ["Chemical Wedding", "19"], ["Chill: Brazil (Disc 1)", "33"], ["Chill: Brazil (Disc 2)", "34"], ["Chopin: Piano Concertos Nos. 1 & 2", "301"], ["Chronicle, Vol. 1", "54"], ["Chronicle, Vol. 2", "55"], ["Cidade Negra - Hits", "27"], ["Coda", "128"], ["Come Taste The Band", "58"], ["Compositores", "165"], ["Contraband", "246"], ["Core", "206"], ["C\u00e1ssia Eller - Cole\u00e7\u00e3o Sem Limite [Disc 2]", "56"], ["C\u00e1ssia Eller - Sem Limite [Disc 1]", "57"], ["Da Lama Ao Caos", "25"], ["Dance Of Death", "98"], ["Dark Side Of The Moon", "183"], ["Deep Purple In Rock", "59"], ["Deixa Entrar", "78"], ["Demorou...", "161"], ["Diary of a Madman (Remastered)", "172"], ["Diver Down", "242"], ["Djavan Ao Vivo - Vol. 02", "69"], ["Djavan Ao Vivo - Vol. 1", "70"], ["Duos II", "266"], ["Elgar: Cello Concerto & Vaughan Williams: Fantasias", "306"], ["Elis Regina-Minha Hist\u00f3ria", "71"], ["Emergency On Planet Earth", "116"], ["English Renaissance", "314"], ["Every Kind of Light", "265"], ["Faceless", "88"], ["Facelift", "7"], ["Faur\u00e9: Requiem, Ravel: Pavane & Others", "288"], ["Fear Of The Dark", "99"], ["Fireball", "60"], ["For Those About To Rock We Salute You", "1"], ["Frank", "322"], ["From The Muddy Banks Of The Wishkah live", "163"], ["Garage Inc. (Disc 1)", "35"], ["Garage Inc. (Disc 2)", "149"], ["Get Born", "119"], ["Great Opera Choruses", "286"], ["Great Performances - Barber's Adagio and Other Romantic Favorites for Strings", "294"], ["Great Recordings of the Century - Mahler: Das Lied von der Erde", "305"], ["Great Recordings of the Century - Shubert: Schwanengesang, 4 Lieder", "341"], ["Great Recordings of the Century: Paganini's 24 Caprices", "339"], ["Greatest Hits", "141"], ["Greatest Hits I", "185"], ["Greatest Hits II", "36"], ["Greatest Kiss", "37"], ["Green", "188"], ["Grieg: Peer Gynt Suites & Sibelius: Pell\u00e9as et M\u00e9lisande", "316"], ["G\u00f3recki: Symphony No. 3", "330"], ["Handel: Music for the Royal Fireworks (Original Version 1749)", "315"], ["Handel: The Messiah (Highlights)", "279"], ["Haydn: Symphonies 99 - 104", "283"], ["Heart of the Night", "38"], ["Heroes, Season 1", "228"], ["Holst: The Planets, Op. 32 & Vaughan Williams: Fantasies", "292"], ["Hot Rocks, 1964-1971 (Disc 1)", "216"], ["House of Pain", "258"], ["Houses Of The Holy", "129"], ["How To Dismantle An Atomic Bomb", "235"], ["IV", "131"], ["In Step", "205"], ["In Through The Out Door", "130"], ["In Your Honor [Disc 1]", "79"], ["In Your Honor [Disc 2]", "80"], ["Instant Karma: The Amnesty International Campaign to Save Darfur", "255"], ["International Superhits", "39"], ["Into The Light", "40"], ["Iron Maiden", "100"], ["J.S. Bach: Chaconne, Suite in E Minor, Partita in E Major & Prelude, Fugue and Allegro", "335"], ["Jagged Little Pill", "6"], ["Jorge Ben Jor 25 Anos", "122"], ["Jota Quest-1995", "123"], ["Judas 0: B-Sides and Rarities", "201"], ["Kill 'Em All", "150"], ["Killers", "101"], ["King For A Day Fool For A Lifetime", "76"], ["Knocking at Your Back Door: The Best Of Deep Purple in the 80's", "61"], ["Koyaanisqatsi (Soundtrack from the Motion Picture)", "347"], ["LOST, Season 4", "261"], ["Led Zeppelin I", "132"], ["Led Zeppelin II", "133"], ["Led Zeppelin III", "134"], ["Let There Be Rock", "4"], ["Liszt - 12 \u00c9tudes D'Execution Transcendante", "340"], ["Live After Death", "102"], ["Live At Donington 1992 (Disc 1)", "103"], ["Live At Donington 1992 (Disc 2)", "104"], ["Live On Two Legs live", "178"], ["Live [Disc 1]", "209"], ["Live [Disc 2]", "210"], ["Living After Midnight", "125"], ["Load", "151"], ["Locatelli: Concertos for Violin, Strings and Continuo, Vol. 3", "342"], ["Lost, Season 1", "230"], ["Lost, Season 2", "231"], ["Lost, Season 3", "229"], ["Lulu Santos - RCA 100 Anos De M\u00fasica - \u00c1lbum 01", "142"], ["Lulu Santos - RCA 100 Anos De M\u00fasica - \u00c1lbum 02", "143"], ["MK III The Final Concerts [Disc 1]", "43"], ["Machine Head", "62"], ["Mais Do Mesmo", "140"], ["Maquinarama", "199"], ["Mascagni: Cavalleria Rusticana", "302"], ["Master Of Puppets", "152"], ["Mendelssohn: A Midsummer Night's Dream", "326"], ["Meus Momentos", "41"], ["Mezmerize", "207"], ["Miles Ahead", "157"], ["Milton Nascimento Ao Vivo", "158"], ["Minas", "159"], ["Minha Historia", "23"], ["Minha Hist\u00f3ria", "42"], ["Misplaced Childhood", "144"], ["Monteverdi: L'Orfeo", "345"], ["Morning Dance", "204"], ["Motley Crue Greatest Hits", "162"], ["Mozart Gala: Famous Arias", "317"], ["Mozart: Chamber Music", "346"], ["Mozart: Symphonies Nos. 40 & 41", "320"], ["Mozart: Wind Concertos", "282"], ["Muso Ko", "263"], ["My Generation - The Very Best Of The Who", "221"], ["My Way: The Best Of Frank Sinatra [Disc 1]", "83"], ["Na Pista", "28"], ["Nevermind", "164"], ["New Adventures In Hi-Fi", "189"], ["News Of The World", "186"], ["Nielsen: The Six Symphonies", "338"], ["No More Tears (Remastered)", "173"], ["No Prayer For The Dying", "105"], ["No Security", "217"], ["O Samba Pocon\u00e9", "200"], ["Olodum", "166"], ["One By One", "81"], ["Original Soundtracks 1", "176"], ["Os C\u00e3es Ladram Mas A Caravana N\u00e3o P\u00e1ra", "184"], ["Out Of Exile", "11"], ["Out Of Time", "187"], ["Outbreak", "68"], ["Pachelbel: Canon & Gigue", "274"], ["Palestrina: Missa Papae Marcelli & Allegri: Miserere", "309"], ["Pavarotti's Opera Made Easy", "293"], ["Pearl Jam", "179"], ["Physical Graffiti [Disc 1]", "44"], ["Physical Graffiti [Disc 2]", "135"], ["Piece Of Mind", "106"], ["Plays Metallica By Four Cellos", "9"], ["Pop", "236"], ["Powerslave", "107"], ["Prenda Minha", "21"], ["Prokofiev: Romeo & Juliet", "310"], ["Prokofiev: Symphony No.1", "298"], ["Prokofiev: Symphony No.5 & Stravinksy: Le Sacre Du Printemps", "336"], ["Puccini: Madama Butterfly - Highlights", "291"], ["Purcell: Music for the Queen Mary", "333"], ["Purcell: The Fairy Queen", "331"], ["Pure Cult: The Best Of The Cult (For Rockers, Ravers, Lovers & Sinners) UK", "213"], ["Purpendicular", "63"], ["Quanta Gente Veio Ver (Live)", "86"], ["Quanta Gente Veio ver--B\u00f4nus De Carnaval", "87"], ["Quiet Songs", "262"], ["Radio Brasil (O Som da Jovem Vanguarda) - Seleccao de Henrique Amaro", "259"], ["Rattle And Hum", "237"], ["Raul Seixas", "192"], ["ReLoad", "153"], ["Realize", "264"], ["Respighi:Pines of Rome", "343"], ["Restless and Wild", "3"], ["Retrospective I (1974-1980)", "196"], ["Revelations", "271"], ["Ride The Lightning", "154"], ["Riot Act", "180"], ["Rock In Rio CD1", "108"], ["Rock In Rio CD2", "109"], ["Roda De Funk", "84"], ["Rotten Apples: Greatest Hits", "202"], ["SCRIABIN: Vers la flamme", "318"], ["Sambas De Enredo 2001", "45"], ["Santana - As Years Go By", "197"], ["Santana Live", "198"], ["Scheherazade", "299"], ["Schubert: The Late String Quartets & String Quintet (3 CD's)", "344"], ["Seek And Shall Find: More Of The Best (1963-1981)", "146"], ["Serie Sem Limite (Disc 1)", "222"], ["Serie Sem Limite (Disc 2)", "223"], ["Seventh Son of a Seventh Son", "110"], ["Sex Machine", "115"], ["Sibelius: Finlandia", "303"], ["Sir Neville Marriner: A Celebration", "281"], ["Slaves And Masters", "64"], ["Somewhere in Time", "111"], ["South American Getaway", "329"], ["Sozinho Remix Ao Vivo", "22"], ["Speak of the Devil", "256"], ["St. Anger", "155"], ["Stormbringer", "65"], ["Strauss: Waltzes", "311"], ["Supernatural", "46"], ["Surfing with the Alien (Remastered)", "121"], ["Synkronized", "117"], ["Szymanowski: Piano Works, Vol. 1", "337"], ["Tangents", "219"], ["Tchaikovsky: 1812 Festival Overture, Op.49, Capriccio Italien & Beethoven: Wellington's Victory", "308"], ["Tchaikovsky: The Nutcracker", "289"], ["Temple of the Dog", "269"], ["Ten", "181"], ["The Battle Rages On", "66"], ["The Beast Live", "177"], ["The Best Of 1980-1990", "238"], ["The Best Of Billy Cobham", "13"], ["The Best Of Buddy Guy - The Millenium Collection", "20"], ["The Best Of Men At Work", "147"], ["The Best Of R.E.M.: The IRS Years", "190"], ["The Best Of Van Halen, Vol. I", "243"], ["The Best of Beethoven", "268"], ["The Best of Ed Motta", "47"], ["The Colour And The Shape", "82"], ["The Cream Of Clapton", "72"], ["The Doors", "214"], ["The Essential Miles Davis [Disc 1]", "48"], ["The Essential Miles Davis [Disc 2]", "49"], ["The Final Concerts (Disc 2)", "50"], ["The Last Night of the Proms", "290"], ["The Number of The Beast", "112"], ["The Office, Season 1", "249"], ["The Office, Season 2", "250"], ["The Office, Season 3", "251"], ["The Police Greatest Hits", "215"], ["The Real Thing", "77"], ["The Return Of The Space Cowboy", "118"], ["The Singles", "211"], ["The Song Remains The Same (Disc 1)", "137"], ["The Song Remains The Same (Disc 2)", "138"], ["The Ultimate Relexation Album", "332"], ["The World of Classical Favourites", "280"], ["The X Factor", "113"], ["Transmission", "220"], ["Tribute", "174"], ["UB40 The Best Of - Volume Two UK", "241"], ["Un-Led-Ed", "252"], ["Unplugged", "73"], ["Unplugged live", "126"], ["Up An' Atom", "51"], ["Use Your Illusion I", "91"], ["Use Your Illusion II", "92"], ["Van Halen", "244"], ["Van Halen III", "245"], ["Vault: Def Leppard's Greatest Hits", "67"], ["Vinicius De Moraes", "247"], ["Vin\u00edcius De Moraes - Sem Limite", "52"], ["Virtual XI", "114"], ["Vivaldi: The Four Seasons", "275"], ["Volume Dois", "225"], ["Voodoo Lounge", "218"], ["Vozes do MPB", "53"], ["Vs.", "182"], ["Wagner: Favourite Overtures", "287"], ["Walking Into Clarksdale", "175"], ["War", "239"], ["Warner 25 Anos", "8"], ["Weill: The Seven Deadly Sins", "334"], ["Worlds", "267"], ["Zooropa", "240"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_Ngud2_347.png", "TableImg_B5tfo_8.png"], "original_data_index": 197, "original_sql": "SELECT title, id FROM albums WHERE \"id\" != 136 OR \"artist_id\" = 245 EXCEPT SELECT title, id FROM employees WHERE postal_code = \"T2P 5G3\" AND \"reports_to\" <= 2.0 OR title != \"Sales Support Agent\" OR email <> \"nancy@chinookcorp.com\" OR first_name != \"Margaret\" AND country = \"Canada\" OR \"id\" <> 2 AND phone <> \"+1 (403) 262-3443\" AND last_name <> \"Edwards\" OR city = \"Calgary\" AND birth_date <> \"1973-08-29 00:00:00\" AND hire_date != \"2002-08-14 00:00:00\" OR state != \"AB\" OR address != \"11120 Jasper Ave NW\""} {"question": "Which driver IDs, excluding driver ID 9, are not also driver IDs in the school bus table, excluding driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Quv4u_12.png", "TableImg_M7xo0_5.png"], "original_data_index": 198, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding the driver ID 9, considering only the drivers that appear in the driver table and school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K9g1g_12.png", "TableImg_Tua36_5.png"], "original_data_index": 199, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of all aircraft IDs, excluding aircraft ID 5, from both the aircraft and airport_aircraft lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ekk29_5.png", "TableImg_Bwd0a_4.png"], "original_data_index": 200, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me a list of driver IDs that are 11 or less, excluding those driver IDs that are 7 or greater and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ssrkr_12.png", "TableImg_P5wgc_5.png"], "original_data_index": 201, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, greater than 9, that are in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fl9pp_12.png", "TableImg_5opd7_5.png"], "original_data_index": 203, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Could you give me the Template ID and Version Number for templates where either the Template ID is 16, the Version Number is not 6, the Template Details are empty, the Date Effective To is not 2006-02-06 23:52:04, or the Date Effective From is not 1979-12-24 10:28:16, combined with templates where the Version Number is less than or equal to 5 or the Date Effective From is not 2002-03-02 14:39:49 and the Template Type Code is \"AD\"?", "answer": {"columns": ["Template_ID", "Version_Number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19], "data": [["0", "5"], ["1", "9"], ["4", "4"], ["6", "2"], ["7", "8"], ["8", "3"], ["9", "2"], ["10", "1"], ["11", "6"], ["14", "7"], ["15", "9"], ["16", "5"], ["18", "5"], ["19", "7"], ["20", "6"], ["21", "9"], ["22", "0"], ["23", "2"], ["24", "8"], ["25", "5"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_7e8bm_20.png", "TableImg_Sxoh1_20.png"], "original_data_index": 202, "original_sql": "SELECT Template_ID, Version_Number FROM Templates WHERE \"Template_ID\" = 16 OR \"Version_Number\" <> 6 OR Template_Details = \"\" OR Date_Effective_To != \"2006-02-06 23:52:04\" OR Date_Effective_From <> \"1979-12-24 10:28:16\" UNION SELECT Template_ID, Version_Number FROM Templates WHERE \"Version_Number\" <= 5 OR Date_Effective_From <> \"2002-03-02 14:39:49\" AND Template_Type_Code = \"AD\""} {"question": "Which driver IDs, excluding driver ID 6, are not also driver IDs greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pubdm_12.png", "TableImg_6sls6_5.png"], "original_data_index": 188, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ad6m9_5.png", "TableImg_A1t11_4.png"], "original_data_index": 207, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Can you give me the alphabetically first branch name from London that isn't Taverner and opened in 2015, or where the branch ID isn't 1, combined with the alphabetically first member name where their level is 6 or higher, or their name isn't Trevard Lindley?", "answer": {"columns": ["MIN(Name)"], "index": [0, 1], "data": [["Brooke Greville"], ["Braxton Kelley"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_B00gn_8.png", "TableImg_Gw3n4_10.png"], "original_data_index": 205, "original_sql": "SELECT MIN(Name) FROM branch WHERE Name <> \"Taverner\" AND Open_year = \"2015\" AND City = \"London\" OR \"Branch_ID\" <> 1 UNION ALL SELECT MIN(Name) FROM member WHERE \"Level\" >= 6 OR Name <> \"Trevard Lindley\""} {"question": "What document status codes are found in documents with receipt numbers other than 55, and also have a document status description that is not \"currently working on\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1], "data": [["done"], ["overdue"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_Q8h22_15.png", "TableImg_3ttzx_3.png"], "original_data_index": 204, "original_sql": "SELECT document_status_code FROM Documents WHERE receipt_number != \"55\" INTERSECT SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description != \"currently working on\""} {"question": "Can you list the aircraft IDs that are less than 4 when grouped, excluding any aircraft IDs that are equal to 5 when grouped in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4962b_5.png", "TableImg_0jxq4_4.png"], "original_data_index": 206, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs from the driver table that are 5 or greater, excluding any driver IDs from the school bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B4g5l_12.png", "TableImg_3exl3_5.png"], "original_data_index": 210, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "What is the earliest state alphabetically, excluding New Jersey, among area codes less than 727, and also the earliest state alphabetically from California?", "answer": {"columns": ["MIN(state)"], "index": [0, 1], "data": [["AL"], ["CA"]]}, "table_names": "['AREA_CODE_STATE' 'VOTES']", "table_image_ids": ["TableImg_4de3k_305.png", "TableImg_Wcl2h_4.png"], "original_data_index": 211, "original_sql": "SELECT MIN(state) FROM AREA_CODE_STATE WHERE state <> \"NJ\" AND \"area_code\" < 727 UNION SELECT MIN(state) FROM VOTES WHERE state = \"CA\""} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 8 with those from the school_bus table excluding ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3k64g_12.png", "TableImg_Hp654_5.png"], "original_data_index": 209, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me the school IDs from the School table where either the school name is \"New Prairie 1\" and the IHSAA class isn't \"AAA\", or the county is \"20 Elkhart\" and the IHSAA football class isn't \"AAA\", or the location is \"Elkhart\", or the mascot isn't \"Cavaliers\", the school ID is \"6\", and the enrollment is at least 316; and also give me the school IDs from the Budget table where either the total budget percent budgeted is at least 1.3 and the school ID is less than 2, or the year isn't 2001, or the budget invested percent isn't \"146.9\" and the total budget percent invested is less than 2.2?", "answer": {"columns": ["School_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["4"], ["6"], ["2"], ["2"], ["2"], ["3"], ["1"], ["4"], ["5"], ["5"]]}, "table_names": "['School' 'budget']", "table_image_ids": ["TableImg_5hzrd_8.png", "TableImg_8u3dy_8.png"], "original_data_index": 208, "original_sql": "SELECT School_id FROM School WHERE School_name = \"New Prairie 1\" AND IHSAA_Class <> \"AAA\" OR County = \"20 Elkhart\" AND IHSAA_Football_Class <> \"AAA\" OR Location = \"Elkhart\" OR Mascot != \"Cavaliers\" AND School_id = \"6\" AND \"Enrollment\" >= 316 UNION ALL SELECT School_id FROM budget WHERE \"total_budget_percent_budgeted\" >= 1.3 AND \"School_id\" < 2 OR \"Year\" != 2001 OR Budget_invested_percent <> \"146.9\" AND \"total_budget_percent_invested\" < 2.2"} {"question": "Can you give me a list of district IDs from the district table, excluding those that are also in the store_district table where the district ID is 11 or less and the store ID is not 4, and where the districts are either in city area 22, or have a city population of 134936 and are not headquartered in Attock City, or are not named Chakwal District?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Muz06_15.png", "TableImg_8pnji_5.png"], "original_data_index": 214, "original_sql": "SELECT District_ID FROM district WHERE \"City_Area\" = 22.0 OR \"City_Population\" = 134936.0 AND Headquartered_City != \"Attock City\" OR District_name <> \"Chakwal District\" EXCEPT SELECT District_ID FROM store_district WHERE \"District_ID\" <= 11 AND \"Store_ID\" != 4"} {"question": "What is the smallest city name for employees who are not employee ID 3 and live in Sale, combined with the smallest city name for employees who are employee ID 3 or less and either younger than 36, live in Wasps, or are not named Jason Hobson?", "answer": {"columns": ["MIN(City)"], "index": [0, 1], "data": [["Bath"], ["Sale"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Anoih_10.png", "TableImg_78uji_10.png"], "original_data_index": 212, "original_sql": "SELECT MIN(City) FROM employee WHERE \"Employee_ID\" <> 3 AND City = \"Sale\" UNION SELECT MIN(City) FROM employee WHERE \"Employee_ID\" <= 3 AND \"Age\" < 36 OR City = \"Wasps\" OR Name <> \"Jason Hobson\""} {"question": "Can you give me a list of driver IDs, including driver ID 11 from the driver table and all driver IDs from the school bus table except for driver ID 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ja2t3_12.png", "TableImg_0eyds_5.png"], "original_data_index": 213, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are not 8, and are also not driver IDs less than 4 that are associated with school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ymu04_12.png", "TableImg_56mv8_5.png"], "original_data_index": 215, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What is the sum of feature type codes where the feature type name is not \"Securiyt, eg Burglar Alarm.\", plus the sum of feature type codes that are equal to \"Security\"?", "answer": {"columns": ["SUM(feature_type_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_An0ol_2.png", "TableImg_Ppib5_2.png"], "original_data_index": 218, "original_sql": "SELECT SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_name <> \"Securiyt, eg Burglar Alarm.\" UNION SELECT SUM(feature_type_code) FROM Ref_Feature_Types WHERE feature_type_code = \"Security\""} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 2, and those from the airport_aircraft table that are less than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5kor9_5.png", "TableImg_Jxdb2_4.png"], "original_data_index": 217, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs that are not 11 and are also less than 9, considering all drivers and school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P5awj_12.png", "TableImg_9vr7z_5.png"], "original_data_index": 216, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are less than or equal to 4 from the driver table, combined with a list of driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U7yj5_12.png", "TableImg_Wwo71_5.png"], "original_data_index": 219, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 1, and combine that with a list of aircraft IDs from the airport_aircraft table that are less than 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7gj53_5.png", "TableImg_K2atu_4.png"], "original_data_index": 222, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What is the highest item ID and the average title for items where the item ID is not 3, and also, what is the highest item ID and average title for items where the item ID is less than 6 and the title is not \"apple\"?", "answer": {"columns": ["MAX(i_id)", "AVG(title)"], "index": [0, 1], "data": [["7", "0"], ["5", "0"]]}, "table_names": "['item' 'item']", "table_image_ids": ["TableImg_1mf47_8.png", "TableImg_Jdpsm_8.png"], "original_data_index": 220, "original_sql": "SELECT MAX(i_id), AVG(title) FROM item WHERE \"i_id\" <> 3 UNION ALL SELECT MAX(i_id), AVG(title) FROM item WHERE \"i_id\" < 6 AND title <> \"apple\""} {"question": "Can you give me the major, student ID, first name, last name, age, and advisor for all students, including those whose last name isn't Leighton, combined with those whose student ID is less than 1024 and are not male and whose first name isn't Dinesh, or whose last name isn't Lee and whose major is less than 540, or whose age isn't 17, or who live in PHL and have an advisor number greater than 9172?", "answer": {"columns": ["Major", "StuID", "Fname", "LName", "Age", "Advisor"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63], "data": [["600", "1001", "Linda", "Smith", "18", "1121"], ["600", "1002", "Tracy", "Kim", "19", "7712"], ["600", "1003", "Shiela", "Jones", "21", "7792"], ["600", "1004", "Dinesh", "Kumar", "20", "8423"], ["600", "1005", "Paul", "Gompers", "26", "1121"], ["600", "1006", "Andy", "Schultz", "18", "1148"], ["600", "1007", "Lisa", "Apap", "18", "8918"], ["600", "1008", "Jandy", "Nelson", "20", "9172"], ["600", "1009", "Eric", "Tai", "19", "2192"], ["600", "1010", "Derek", "Lee", "17", "2192"], ["600", "1011", "David", "Adams", "22", "1148"], ["600", "1012", "Steven", "Davis", "20", "7723"], ["600", "1014", "Charles", "Norris", "18", "8741"], ["600", "1015", "Susan", "Lee", "16", "8721"], ["600", "1016", "Mark", "Schwartz", "17", "2192"], ["600", "1017", "Bruce", "Wilson", "27", "1148"], ["600", "1019", "Arthur", "Pang", "18", "2192"], ["520", "1020", "Ian", "Thornton", "22", "7271"], ["520", "1021", "George", "Andreou", "19", "8722"], ["540", "1022", "Michael", "Woods", "17", "8722"], ["520", "1023", "David", "Shieber", "20", "8722"], ["540", "1024", "Stacy", "Prater", "18", "7271"], ["520", "1025", "Mark", "Goldman", "18", "7134"], ["520", "1026", "Eric", "Pang", "19", "7134"], ["520", "1027", "Paul", "Brody", "18", "8723"], ["550", "1028", "Eric", "Rugh", "20", "2311"], ["100", "1029", "Jun", "Han", "17", "2311"], ["550", "1030", "Lisa", "Cheng", "21", "2311"], ["550", "1031", "Sarah", "Smith", "20", "8772"], ["550", "1032", "Eric", "Brown", "20", "8772"], ["550", "1033", "William", "Simms", "18", "8772"], ["50", "1034", "Eric", "Epp", "18", "5718"], ["50", "1035", "Sarah", "Schmidt", "26", "5718"], ["600", "1001", "Linda", "Smith", "18", "1121"], ["600", "1002", "Tracy", "Kim", "19", "7712"], ["600", "1003", "Shiela", "Jones", "21", "7792"], ["600", "1004", "Dinesh", "Kumar", "20", "8423"], ["600", "1005", "Paul", "Gompers", "26", "1121"], ["600", "1006", "Andy", "Schultz", "18", "1148"], ["600", "1007", "Lisa", "Apap", "18", "8918"], ["600", "1008", "Jandy", "Nelson", "20", "9172"], ["600", "1009", "Eric", "Tai", "19", "2192"], ["600", "1011", "David", "Adams", "22", "1148"], ["600", "1012", "Steven", "Davis", "20", "7723"], ["600", "1014", "Charles", "Norris", "18", "8741"], ["600", "1015", "Susan", "Lee", "16", "8721"], ["600", "1017", "Bruce", "Wilson", "27", "1148"], ["600", "1018", "Michael", "Leighton", "20", "1121"], ["600", "1019", "Arthur", "Pang", "18", "2192"], ["520", "1020", "Ian", "Thornton", "22", "7271"], ["520", "1021", "George", "Andreou", "19", "8722"], ["520", "1023", "David", "Shieber", "20", "8722"], ["540", "1024", "Stacy", "Prater", "18", "7271"], ["520", "1025", "Mark", "Goldman", "18", "7134"], ["520", "1026", "Eric", "Pang", "19", "7134"], ["520", "1027", "Paul", "Brody", "18", "8723"], ["550", "1028", "Eric", "Rugh", "20", "2311"], ["100", "1029", "Jun", "Han", "17", "2311"], ["550", "1030", "Lisa", "Cheng", "21", "2311"], ["550", "1031", "Sarah", "Smith", "20", "8772"], ["550", "1032", "Eric", "Brown", "20", "8772"], ["550", "1033", "William", "Simms", "18", "8772"], ["50", "1034", "Eric", "Epp", "18", "5718"], ["50", "1035", "Sarah", "Schmidt", "26", "5718"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_044uj_34.png", "TableImg_Rpvtx_34.png"], "original_data_index": 224, "original_sql": "SELECT Major, StuID, Fname, LName, Age, Advisor FROM Student WHERE LName != \"Leighton\" UNION ALL SELECT Major, StuID, Fname, LName, Age, Advisor FROM Student WHERE \"StuID\" < 1024 AND Sex <> \"M\" AND Fname != \"Dinesh\" OR LName <> \"Lee\" AND \"Major\" < 540 OR \"Age\" <> 17 OR city_code = \"PHL\" AND \"Advisor\" > 9172"} {"question": "Could you give me a list of shop IDs from the hiring shop where the starting year isn't 2011 and the shop ID isn't 2, combined with a list of shop IDs from the shop table where the manager's name isn't Ilkka M\u00e4kel\u00e4 and the district isn't Finnair Stadium?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_Lfyqs_7.png", "TableImg_2itv4_9.png"], "original_data_index": 226, "original_sql": "SELECT Shop_ID FROM hiring WHERE Start_from <> \"2011\" AND \"Shop_ID\" != 2 UNION SELECT Shop_ID FROM shop WHERE Manager_name != \"Ilkka M\u00e4kel\u00e4\" AND District <> \"Finnair Stadium\""} {"question": "Can you give me the draft numbers from the circulation history where the draft number isn't 17, the copy number is 10 or less, the document ID isn't 20, or the employee ID is less than 2, but excluding any draft numbers from the document drafts that are 12 or less and have a document ID that isn't 23?", "answer": {"columns": ["draft_number"], "index": [0], "data": [["20"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_A6mo8_4.png", "TableImg_T50vt_15.png"], "original_data_index": 228, "original_sql": "SELECT draft_number FROM Circulation_History WHERE \"draft_number\" != 17 OR \"copy_number\" <= 10 OR \"document_id\" != 20 OR \"employee_id\" < 2 EXCEPT SELECT draft_number FROM Document_Drafts WHERE \"draft_number\" <= 12 AND \"document_id\" != 23"} {"question": "How many parties are there in elections where either the counties represented aren't 13, the first elected year wasn't 2003, or the delegate isn't Elizabeth Elizabeth Bobo, or the election ID is less than 7 and the district isn't 2, combined with the number of parties where the comptroller is Alan Hevesi, the lieutenant governor isn't David Paterson, and the attorney general isn't Eliot Spitzer?", "answer": {"columns": ["COUNT(Party)"], "index": [0, 1], "data": [["8"], ["0"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_Of9s5_8.png", "TableImg_3637l_7.png"], "original_data_index": 223, "original_sql": "SELECT COUNT(Party) FROM election WHERE Counties_Represented != \"13\" OR \"First_Elected\" != 2003.0 AND Delegate != \"Bobo, Elizabeth Elizabeth Bobo\" OR \"Election_ID\" < 7 AND \"District\" <> 2 UNION ALL SELECT COUNT(Party) FROM party WHERE Comptroller = \"Alan Hevesi\" AND Lieutenant_Governor <> \"David Paterson\" AND Attorney_General != \"Eliot Spitzer\""} {"question": "Can you give me a list of aircraft IDs that are greater than 3, including those from the aircraft table and the airport_aircraft table, without any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ob21g_5.png", "TableImg_Kneji_4.png"], "original_data_index": 229, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of aircraft IDs that are less than 1, and also a list of aircraft IDs from the airport aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_P1yoy_5.png", "TableImg_8wesn_4.png"], "original_data_index": 230, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are both greater than or equal to 2 and also not equal to 7, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I0lvf_12.png", "TableImg_Wj01w_5.png"], "original_data_index": 231, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are not equal to 4 from the driver table, excluding any driver IDs from the school bus table that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ad66f_12.png", "TableImg_Lgy01_5.png"], "original_data_index": 232, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of aircraft IDs, including aircraft ID 1 from the aircraft table, and all aircraft IDs except 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fc0uu_5.png", "TableImg_60z55_4.png"], "original_data_index": 233, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are not equal to 2 and are also not equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0ys8c_12.png", "TableImg_Pic5o_5.png"], "original_data_index": 234, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs are both greater than or equal to 1 in the driver table and greater than or equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P0r3q_12.png", "TableImg_Mjr2i_5.png"], "original_data_index": 235, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that aren't 3, and those from the school bus table that are less than 10, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qomnp_12.png", "TableImg_6wb4n_5.png"], "original_data_index": 236, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which aircraft have an ID of 4 in the aircraft table, excluding those aircraft IDs that are not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4oosx_5.png", "TableImg_Wzgwv_4.png"], "original_data_index": 225, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs are both less than 9 and present in the driver table, and also less than 4 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kiy7o_12.png", "TableImg_K7cwf_5.png"], "original_data_index": 239, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list the aircraft IDs that are less than 5 from the aircraft table and also list the aircraft IDs that are greater than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tmxeh_5.png", "TableImg_Nxifr_4.png"], "original_data_index": 240, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Which driver IDs are both not equal to 7 and greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fh556_12.png", "TableImg_3p3v0_5.png"], "original_data_index": 241, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of member IDs for members with a level of 6 or lower and a member ID of 4 or higher, excluding those named Myron Pryor, combined with a list of member IDs from the membership register branch for all entries not registered in 2016 at branch number 2?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_Wfm0u_10.png", "TableImg_Zizll_8.png"], "original_data_index": 242, "original_sql": "SELECT Member_ID FROM member WHERE \"Level\" <= 6 AND \"Member_ID\" >= 4 AND Name != \"Myron Pryor\" UNION ALL SELECT Member_ID FROM membership_register_branch WHERE Register_Year <> \"2016\" AND Branch_ID = \"2\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 2, and combine that with a list of aircraft IDs from the airport_aircraft table that are less than or equal to 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2028c_5.png", "TableImg_6ws31_4.png"], "original_data_index": 243, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Which driver IDs are both less than or equal to 6 and also greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I4cq0_12.png", "TableImg_Le44r_5.png"], "original_data_index": 244, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 6 and also greater than 3, considering only unique driver IDs from the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K2f9f_12.png", "TableImg_2ywvi_5.png"], "original_data_index": 246, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list the aircraft IDs that are less than 5 from the aircraft table, combined with the aircraft IDs that are not equal to 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jj1xw_5.png", "TableImg_Wkbq1_4.png"], "original_data_index": 245, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs less than or equal to 3 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Afiyg_12.png", "TableImg_1vv52_5.png"], "original_data_index": 247, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are greater than or equal to 7, but not also greater than or equal to 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qo0ru_12.png", "TableImg_Rrkh6_5.png"], "original_data_index": 248, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the total disk area and aircraft ID for each aircraft?", "answer": {"columns": ["Total_disk_area", "Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["872 ft\u00b2 (81.1 m\u00b2)", "2"], ["497 ft\u00b2 (46.2 m\u00b2)", "1"], ["4,900 ft\u00b2 (460 m\u00b2)", "5"], ["5,655 ft\u00b2 (526 m\u00b2)", "3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U3mud_5.png", "TableImg_12fdt_4.png"], "original_data_index": 238, "original_sql": "SELECT T1.Total_disk_area, T2.Aircraft_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs that are greater than 5, but only those that are not also school bus driver IDs greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oe57d_12.png", "TableImg_04d2z_5.png"], "original_data_index": 237, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What are the average area sizes and types of stores, considering both stores with an area size greater than 28.74 or a type that isn't \"City Mall\" and a ranking of at least 1, as well as stores with a number of product categories not equal to 793 or a store ID greater than 2?", "answer": {"columns": ["AVG(Area_size)", "Type"], "index": [0, 1], "data": [["52.846", "City Mall"], ["58.8725", "City Mall"]]}, "table_names": "['store' 'store']", "table_image_ids": ["TableImg_J7a1m_5.png", "TableImg_3w968_5.png"], "original_data_index": 252, "original_sql": "SELECT AVG(Area_size), Type FROM store WHERE \"Area_size\" > 28.74 OR Type != \"City Mall\" AND \"Ranking\" >= 1 UNION SELECT AVG(Area_size), Type FROM store WHERE \"Number_of_product_category\" <> 793.0 OR \"Store_ID\" > 2"} {"question": "Can you give me a list of driver IDs that are greater than 8, excluding any driver IDs from the school bus list that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4455o_12.png", "TableImg_Dpgtp_5.png"], "original_data_index": 251, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 7, and those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ao9r6_12.png", "TableImg_75g6l_5.png"], "original_data_index": 250, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me the number of distances, the number of destinations, the departure date, the average origin, and the average flight number for flights that don't originate in Chicago but do go to Chicago, where the distance is not 5478, the arrival date isn't 04/12/2005 05:03, and the flight number is less than 387, combined with the same information for flights where the flight number isn't 68 or the aid is greater than 2?", "answer": {"columns": ["COUNT(distance)", "COUNT(destination)", "departure_date", "AVG(origin)", "AVG(flno)"], "index": [0, 1], "data": [["1", "1", "04/12/2005 08:45", "0", "13.0"], ["10", "10", "04/12/2005 09:30", "0", "106.5"]]}, "table_names": "['flight' 'flight']", "table_image_ids": ["TableImg_Zhwsp_10.png", "TableImg_Wm9r3_10.png"], "original_data_index": 249, "original_sql": "SELECT COUNT(distance), COUNT(destination), departure_date, AVG(origin), AVG(flno) FROM flight WHERE origin != \"Chicago\" AND destination = \"Chicago\" AND \"distance\" != 5478 AND arrival_date != \"04/12/2005 05:03\" AND \"flno\" < 387 UNION ALL SELECT COUNT(distance), COUNT(destination), departure_date, AVG(origin), AVG(flno) FROM flight WHERE \"flno\" <> 68 OR \"aid\" > 2"} {"question": "Can you give me a list of vehicle IDs that are not cars and have an ID less than 2, combined with a list of vehicle IDs that are not trucks?", "answer": {"columns": ["vehicle_id"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Nzsc3_3.png", "TableImg_Sr6pb_3.png"], "original_data_index": 253, "original_sql": "SELECT vehicle_id FROM Vehicles WHERE vehicle_details != \"Car\" AND \"vehicle_id\" < 2 UNION SELECT vehicle_id FROM Vehicles WHERE vehicle_details <> \"Truck\""} {"question": "Can you give me the height and birth date of people named Teodor Salparov who are not 194 cm tall, or who were born on January 22, 1987, but exclude anyone taller than 182 cm who wasn't born on May 26, 1986, isn't Russian, and isn't named Roman Bragin?", "answer": {"columns": ["Height", "Birth_Date"], "index": [0, 1], "data": [["182", "August 16, 1982"], ["193", "January 22, 1987"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_E2v1a_7.png", "TableImg_Rpfaz_7.png"], "original_data_index": 254, "original_sql": "SELECT Height, Birth_Date FROM people WHERE Name = \"Teodor Salparov\" AND \"Height\" <> 194.0 OR Birth_Date = \"January 22, 1987\" EXCEPT SELECT Height, Birth_Date FROM people WHERE \"Height\" > 182.0 AND Birth_Date <> \"May 26, 1986\" AND Nationality <> \"Russia\" AND Name != \"Roman Bragin\""} {"question": "What are the earliest document IDs, earliest draft numbers, and draft details for documents with IDs greater than 7 and draft details not equal to \"a\", excluding those with draft numbers less than or equal to 2 and draft details not equal to \"r\"?", "answer": {"columns": ["MIN(document_id)", "MIN(draft_number)", "draft_details"], "index": [0], "data": [["10", "4", "w"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Bybda_15.png", "TableImg_Sf534_15.png"], "original_data_index": 255, "original_sql": "SELECT MIN(document_id), MIN(draft_number), draft_details FROM Document_Drafts WHERE \"document_id\" > 7 AND draft_details <> \"a\" EXCEPT SELECT MIN(document_id), MIN(draft_number), draft_details FROM Document_Drafts WHERE \"draft_number\" <= 2 AND draft_details != \"r\""} {"question": "Can you tell me the earliest Governor and Comptroller, along with the Attorney General, for cases where the Lieutenant Governor was David Paterson, the Comptroller wasn't Alan Hevesi, the year was 2006 or earlier, the US Senator wasn't Hillary Rodham Clinton, the party wasn't Democratic, and the Governor wasn't Peter Vallone, combined with the earliest Governor and Comptroller, and Attorney General, for cases where the year was 1998 or the Attorney General wasn't Eliot Spitzer?", "answer": {"columns": ["MIN(Governor)", "Attorney_General", "MIN(Comptroller)"], "index": [0, 1], "data": [["", "", ""], ["Betsy McCaughey Ross", "Andrew Cuomo", "Alan Hevesi"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_K94tk_7.png", "TableImg_Am05t_7.png"], "original_data_index": 256, "original_sql": "SELECT MIN(Governor), Attorney_General, MIN(Comptroller) FROM party WHERE Lieutenant_Governor = \"David Paterson\" AND Comptroller <> \"Alan Hevesi\" AND \"Year\" <= 2006.0 AND US_Senate <> \"Hillary Rodham Clinton\" AND Party != \"Democratic\" AND Governor <> \"Peter Vallone\" UNION ALL SELECT MIN(Governor), Attorney_General, MIN(Comptroller) FROM party WHERE \"Year\" = 1998.0 OR Attorney_General <> \"Eliot Spitzer\""} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 1, combined with a list of driver IDs from the school_bus table that are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hpaj2_12.png", "TableImg_Xte6m_5.png"], "original_data_index": 257, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, from the driver table, but remove any driver IDs that are also driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2utuw_12.png", "TableImg_Alywo_5.png"], "original_data_index": 260, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the publication date, price, book ID, and publication ID for all publications where the publisher is not Pearson, the book ID is 5 or less, the price is greater than 2,000,000, and the publication date is not March 2007, combined with all publications where the book ID is 9 or greater?", "answer": {"columns": ["Publication_Date", "Price", "Book_ID", "Publication_ID"], "index": [0, 1, 2, 3, 4], "data": [["April 2007", "2000000", "10", "7"], ["June 2006", "4100000", "4", "3"], ["March 2007", "2000000", "9", "6"], ["March 2008", "6000000", "3", "2"], ["October 2005", "3000000", "5", "4"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_Tofzr_7.png", "TableImg_Ggdds_7.png"], "original_data_index": 259, "original_sql": "SELECT Publication_Date, Price, Book_ID, Publication_ID FROM publication WHERE Publisher <> \"Pearson\" AND \"Book_ID\" <= 5 AND \"Price\" > 2000000.0 AND Publication_Date <> \"March 2007\" UNION SELECT Publication_Date, Price, Book_ID, Publication_ID FROM publication WHERE \"Book_ID\" >= 9"} {"question": "Can you give me a list of PetIDs that either are not 2002 or have a StuID less than 1002, combined with a list of PetIDs for pets that are not cats, are older than 2, weigh 13.4, and have a PetID of 2002 or less?", "answer": {"columns": ["PetID"], "index": [0, 1], "data": [["2001"], ["2003"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_X9fuh_3.png", "TableImg_Qqcft_3.png"], "original_data_index": 258, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"PetID\" <> 2002 OR \"StuID\" < 1002 UNION SELECT PetID FROM Pets WHERE PetType != \"cat\" AND \"pet_age\" > 2 AND \"weight\" = 13.4 AND \"PetID\" <= 2002"} {"question": "Can you give me a list of aircraft IDs that are less than 5, excluding any aircraft IDs that are also equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uhg8c_5.png", "TableImg_Hyz3g_4.png"], "original_data_index": 261, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Could you list the feature type names that are either \"Securiyt, eg Burglar Alarm.\" or have a feature type code of \"Amenity\", along with any feature type names that have a feature type code of \"Security\"?", "answer": {"columns": ["feature_type_name"], "index": [0, 1], "data": [["Amenity, eg Pool."], ["Securiyt, eg Burglar Alarm."]]}, "table_names": "['Ref_Feature_Types' 'Ref_Feature_Types']", "table_image_ids": ["TableImg_Qast1_2.png", "TableImg_Gt4if_2.png"], "original_data_index": 264, "original_sql": "SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_name = \"Securiyt, eg Burglar Alarm.\" OR feature_type_code = \"Amenity\" UNION SELECT feature_type_name FROM Ref_Feature_Types WHERE feature_type_code = \"Security\""} {"question": "Can you give me a list of driver IDs that are greater than 6, excluding any driver IDs from the school bus list that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dwuaw_12.png", "TableImg_X23gn_5.png"], "original_data_index": 263, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 6, and those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V8gw4_12.png", "TableImg_926gy_5.png"], "original_data_index": 262, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me the full name, ID, maker, and country of all car makers, including those where the country isn't \"3\", the ID is less than 2, or the full name isn't \"Mazda\", combined with those where the country isn't \"4\", the ID is greater than 7, or the maker isn't \"volvo\"?", "answer": {"columns": ["FullName", "Id", "Maker", "Country"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["American Motor Company", "1", "amc", "1"], ["BMW", "3", "bmw", "2"], ["Chrysler", "6", "chrysler", "1"], ["Citroen", "7", "citroen", "3"], ["Daimler Benz", "13", "daimler benz", "2"], ["Fiat", "9", "fiat", "5"], ["Ford Motor Company", "5", "ford", "1"], ["General Motors", "4", "gm", "1"], ["Honda", "11", "honda", "4"], ["Hyundai", "23", "hyundai", "8"], ["Kia Motors", "22", "kia", "8"], ["Mazda", "12", "mazda", "4"], ["Nissan Motors", "8", "nissan", "4"], ["Opel", "14", "opel", "2"], ["Peugeaut", "15", "peugeaut", "3"], ["Renault", "16", "renault", "3"], ["Saab", "17", "saab", "6"], ["Subaru", "18", "subaru", "4"], ["Toyota", "19", "toyota", "4"], ["Triumph", "20", "triumph", "7"], ["Volkswagen", "2", "volkswagen", "2"], ["Volvo", "21", "volvo", "6"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_R9pi5_22.png", "TableImg_Iwzc7_22.png"], "original_data_index": 269, "original_sql": "SELECT FullName, Id, Maker, Country FROM car_makers WHERE Country != \"3\" OR \"Id\" < 2 OR FullName != \"Mazda\" UNION SELECT FullName, Id, Maker, Country FROM car_makers WHERE Country != \"4\" OR \"Id\" > 7 OR Maker <> \"volvo\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 1, and combine that with a list of aircraft IDs from the airport_aircraft table that are not equal to 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wuozw_5.png", "TableImg_Bkces_4.png"], "original_data_index": 268, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of customer IDs from the Customers table where either the first name is Jordy and the birthdate isn't 1993-07-09 11:11:36, or the date they became a customer is 2015-06-24 03:50:04, or the amount outstanding is greater than 3751.0, or the cell phone number is 577-584-4864 and the last name isn't Grant, or the customer status code isn't \"Bad Customer\", or the customer ID isn't 12, or the phone number isn't 1-875-045-0806, or the customer address ID is less than or equal to 10 and the email address isn't ehowell@example.com, combined with a list of customer IDs from the Lessons table where the lesson ID is 4?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_Fii1v_15.png", "TableImg_Bmzkh_15.png"], "original_data_index": 265, "original_sql": "SELECT customer_id FROM Customers WHERE first_name = \"Jordy\" AND date_of_birth <> \"1993-07-09 11:11:36\" OR date_became_customer = \"2015-06-24 03:50:04\" OR \"amount_outstanding\" > 3751.0 OR cell_mobile_phone_number = \"577-584-4864\" AND last_name <> \"Grant\" OR customer_status_code != \"Bad Customer\" OR \"customer_id\" != 12 OR phone_number != \"1-875-045-0806\" OR \"customer_address_id\" <= 10 AND email_address != \"ehowell@example.com\" UNION SELECT customer_id FROM Lessons WHERE \"lesson_id\" = 4"} {"question": "Which aircraft IDs are both greater than 4 when grouped in the aircraft table and greater than or equal to 1 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3ybmj_5.png", "TableImg_Nzy06_4.png"], "original_data_index": 270, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you tell me the average registration year for each branch, excluding branch 5 and members with IDs less than 1, combined with the average registration year for each branch, excluding branch 5 or registrations in 2016?", "answer": {"columns": ["Branch_ID", "AVG(Register_Year)"], "index": [0, 1], "data": [["", ""], ["1.0", "2016.2857142857"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_31uh8_8.png", "TableImg_Q3w57_8.png"], "original_data_index": 267, "original_sql": "SELECT Branch_ID, AVG(Register_Year) FROM membership_register_branch WHERE Branch_ID <> \"5\" AND \"Member_ID\" < 1 UNION SELECT Branch_ID, AVG(Register_Year) FROM membership_register_branch WHERE Branch_ID != \"5\" OR Register_Year != \"2016\""} {"question": "Can you give me a list of driver IDs, including those with the ID 6 from the driver table and those with IDs 9 or greater from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["6"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sml7x_12.png", "TableImg_Qwzgr_5.png"], "original_data_index": 271, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs that are greater than 10, excluding those driver IDs that are also in the school bus list and are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1exzm_12.png", "TableImg_9lilz_5.png"], "original_data_index": 272, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "What document type codes are associated with the description \"f\", excluding the code \"CD\"?", "answer": {"columns": ["document_type_code"], "index": [0], "data": [["Hard Drive"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Cvoa2_3.png", "TableImg_Dizln_3.png"], "original_data_index": 274, "original_sql": "SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description = \"f\" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_code != \"CD\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver IDs greater than 3 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tl0jf_12.png", "TableImg_N3t6l_5.png"], "original_data_index": 273, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Which driver IDs are both less than or equal to 6 and also equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Totyh_12.png", "TableImg_Paquu_5.png"], "original_data_index": 276, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Could you give me the document IDs that are not shipped by \"UP\" and are greater than 1, but only for documents that were not mailed on \"2010-11-04 04:00:16\"?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["4"], ["7"], ["12"], ["14"], ["23"], ["24"]]}, "table_names": "['Documents' 'Documents_Mailed']", "table_image_ids": ["TableImg_85ceu_15.png", "TableImg_Ln515_14.png"], "original_data_index": 275, "original_sql": "SELECT document_id FROM Documents WHERE shipping_agent_code != \"UP\" AND \"document_id\" > 1 INTERSECT SELECT document_id FROM Documents_Mailed WHERE mailing_date <> \"2010-11-04 04:00:16\""} {"question": "Can you list all address details that are \"ES\", and also include any address details where the address ID is less than or equal to 4, or the address details are not \"PT\"?", "answer": {"columns": ["address_details"], "index": [0, 1, 2, 3, 4, 5], "data": [["DE"], ["ES"], ["IE"], ["IT"], ["MX"], ["US"]]}, "table_names": "['Addresses' 'Addresses']", "table_image_ids": ["TableImg_58mcv_10.png", "TableImg_Rtevm_10.png"], "original_data_index": 277, "original_sql": "SELECT address_details FROM Addresses WHERE address_details = \"ES\" UNION SELECT address_details FROM Addresses WHERE \"address_id\" <= 4 OR address_details <> \"PT\""} {"question": "Which driver IDs are both greater than or equal to 5 in the driver table and greater than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ic9i1_12.png", "TableImg_7iyd4_5.png"], "original_data_index": 278, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which aircraft IDs, excluding aircraft ID 2, are also aircraft ID 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jy8ie_5.png", "TableImg_Bxby9_4.png"], "original_data_index": 280, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs that are less than 2 from the driver table, combined with a list of driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2oarb_12.png", "TableImg_J9sb4_5.png"], "original_data_index": 282, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are both less than or equal to 5 in the driver table and greater than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fyd56_12.png", "TableImg_P7wa1_5.png"], "original_data_index": 281, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 1, and those from the school bus table with driver IDs greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_75msp_12.png", "TableImg_Dz71w_5.png"], "original_data_index": 279, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is less than or equal to 2, and those from the school_bus table where the ID is less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3h054_12.png", "TableImg_P3qju_5.png"], "original_data_index": 283, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "What are the maximum city area, minimum headquartered city, district name, minimum district ID, and total city population for districts where the city area is not 22, excluding those districts where the headquartered city is not \"Khanewal City\" and the city area is not 38 and the city population is not 134936, or where the district name is not \"Attock District\" and the district ID is less than 15?", "answer": {"columns": ["MAX(City_Area)", "MIN(Headquartered_City)", "District_name", "MIN(District_ID)", "SUM(City_Population)"], "index": [0], "data": [["147", "Attock City", "Attock District", "1", "6841342"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_P7go3_15.png", "TableImg_U4yd1_15.png"], "original_data_index": 284, "original_sql": "SELECT MAX(City_Area), MIN(Headquartered_City), District_name, MIN(District_ID), SUM(City_Population) FROM district WHERE \"City_Area\" <> 22.0 EXCEPT SELECT MAX(City_Area), MIN(Headquartered_City), District_name, MIN(District_ID), SUM(City_Population) FROM district WHERE Headquartered_City <> \"Khanewal City\" AND \"City_Area\" <> 38.0 AND \"City_Population\" != 134936.0 OR District_name != \"Attock District\" AND \"District_ID\" < 15"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 1 and not equal to 10, considering only the driver IDs present in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C2nk1_12.png", "TableImg_Nqghr_5.png"], "original_data_index": 285, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those that are also less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X1vi3_12.png", "TableImg_Oucx3_5.png"], "original_data_index": 287, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "How many people from Bulgaria, or those with a final table made not equal to 26, or a best finish of 1, or a money rank not equal to 68, or a birth date other than April 17, 1987, who also have a Poker_Player_ID of 1 and a height less than 196, are there, and what are their Poker Player IDs?", "answer": {"columns": ["COUNT(T1.People_ID)", "Poker_Player_ID"], "index": [0], "data": [["5", "1"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_N625p_7.png", "TableImg_Ambtp_5.png"], "original_data_index": 286, "original_sql": "SELECT COUNT(T1.People_ID), T2.Poker_Player_ID FROM people as T1 JOIN poker_player as T2 ON T1.People_ID = T2.People_ID WHERE Nationality = \"Bulgaria\" OR \"Final_Table_Made\" <> 26.0 OR \"Best_Finish\" = 1.0 OR \"Money_Rank\" <> 68.0 OR Birth_Date <> \"April 17, 1987\" AND \"Poker_Player_ID\" = 1 AND \"Height\" < 196.0"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 1, combined with a list of driver IDs from the school_bus table that are equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V5jah_12.png", "TableImg_Lplpy_5.png"], "original_data_index": 288, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those driver IDs that are also less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5rp2u_12.png", "TableImg_68z6x_5.png"], "original_data_index": 289, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs are both not equal to 11 and less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X3q54_12.png", "TableImg_2qnmu_5.png"], "original_data_index": 292, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 6, that are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cx6v2_12.png", "TableImg_H873x_5.png"], "original_data_index": 291, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you tell me, for each date, how many lessons there were where either the vehicle ID wasn't 2 or the lesson time wasn't 9, combined with the number of lessons for each date that were either cancelled or didn't happen on March 7th, 2018 at 11:53:32?", "answer": {"columns": ["lesson_date", "COUNT(lesson_status_code)"], "index": [0, 1], "data": [["2018-02-28 10:55:36", "12"], ["2018-02-28 10:55:36", "15"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_Xfodm_15.png", "TableImg_Ejskm_15.png"], "original_data_index": 290, "original_sql": "SELECT lesson_date, COUNT(lesson_status_code) FROM Lessons WHERE \"vehicle_id\" != 2 OR lesson_time != \"9\" UNION SELECT lesson_date, COUNT(lesson_status_code) FROM Lessons WHERE lesson_status_code = \"Cancelled\" OR lesson_date <> \"2018-03-07 11:53:32\""} {"question": "Can you give me a list of driver IDs, including driver ID 6 from the driver table and any driver IDs less than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xxzkp_12.png", "TableImg_Ocy5g_5.png"], "original_data_index": 293, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of aircraft IDs that are greater than 1, and also include aircraft IDs from the airport aircraft list that are greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_40ud1_5.png", "TableImg_17a8l_4.png"], "original_data_index": 297, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What aircraft IDs, excluding ID 3, are present in the aircraft table but not in the airport_aircraft table, also excluding aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ob9q3_5.png", "TableImg_P27j7_4.png"], "original_data_index": 295, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs that are less than 8 and also not equal to 9, considering only the unique driver IDs from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rrtl2_12.png", "TableImg_N4pk4_5.png"], "original_data_index": 296, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me the driver ID that appears exactly once as driver in the driver table, is equal to 6, and does not appear as a driver ID less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kp2hn_12.png", "TableImg_Nuyow_5.png"], "original_data_index": 294, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are not 6 and are also less than or equal to 9, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R7kl9_12.png", "TableImg_4otr3_5.png"], "original_data_index": 299, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of aircraft IDs that are less than 5 from the aircraft table, combined with a list of aircraft IDs that are not equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5v71b_5.png", "TableImg_Z3k1x_4.png"], "original_data_index": 300, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 2, with those from the school bus table where the ID is less than 3, making sure to list each ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ft8bc_12.png", "TableImg_U7pmw_5.png"], "original_data_index": 298, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you tell me the average employee ID and other details for employees, combining two sets of results: first, those where the other details are not \"b\", and second, those where the employee name isn't \"Clemens\" and the other details are \"u\", or where the role code is \"PR\" and the employee ID is 1 or greater?", "answer": {"columns": ["other_details", "AVG(employee_id)"], "index": [0, 1], "data": [["h", "4.5"], ["b", "5.5"]]}, "table_names": "['Employees' 'Employees']", "table_image_ids": ["TableImg_1173s_6.png", "TableImg_8cfu5_6.png"], "original_data_index": 301, "original_sql": "SELECT other_details, AVG(employee_id) FROM Employees WHERE other_details <> \"b\" UNION ALL SELECT other_details, AVG(employee_id) FROM Employees WHERE employee_name <> \"Clemens\" AND other_details = \"u\" OR role_code = \"PR\" AND \"employee_id\" >= 1"} {"question": "Which driver IDs are both greater than or equal to 4 in the driver table and greater than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Txjbf_12.png", "TableImg_Ce8il_5.png"], "original_data_index": 303, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you tell me the earliest home city and party from the driver list, excluding driver ID 5, and then combine that with the earliest home city and party from drivers who either live in Bethel and aren't driver ID 4, or don't have the name Angel Acre, or aren't in the Dem party and are at least 30 years old?", "answer": {"columns": ["MIN(Home_city)", "MIN(Party)"], "index": [0, 1], "data": [["Bethel", "Dem"], ["Bethel", "Dem"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_5yi6q_12.png", "TableImg_Drnju_12.png"], "original_data_index": 304, "original_sql": "SELECT MIN(Home_city), MIN(Party) FROM driver WHERE \"Driver_ID\" != 5 UNION ALL SELECT MIN(Home_city), MIN(Party) FROM driver WHERE Home_city = \"Bethel\" AND \"Driver_ID\" <> 4 OR Name <> \"Angel Acre\" OR Party <> \"Dem\" AND \"Age\" >= 30"} {"question": "What is the minimum weight for each pet type, considering only pets whose weight is not 12 and age is not 2, and also considering only dogs with a pet ID of 2001 or higher?", "answer": {"columns": ["PetType", "MIN(weight)"], "index": [0], "data": [["dog", "9.3"]]}, "table_names": "['Pets' 'Pets']", "table_image_ids": ["TableImg_T7h7o_3.png", "TableImg_T9vi1_3.png"], "original_data_index": 305, "original_sql": "SELECT PetType, MIN(weight) FROM Pets WHERE \"weight\" <> 12.0 AND \"pet_age\" <> 2 UNION SELECT PetType, MIN(weight) FROM Pets WHERE PetType = \"dog\" AND \"PetID\" >= 2001"} {"question": "Can you give me a list of driver IDs, where each ID is 9 or greater, excluding those driver IDs that appear in the school bus table where the ID is not 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rqwnc_12.png", "TableImg_Xjw7l_5.png"], "original_data_index": 306, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the last name, count of customer address IDs, amount outstanding, count of customer IDs, sum of customer status codes, email address, date of birth, and count of phone numbers for customers, excluding those where the email is mayert.judy@example.com, the last name is Tromp, the amount outstanding is greater than 2099, or the date of birth is 1994-05-07 01:32:16 and the first name is Dameon, but then remove from that list any customers where the customer address ID is 1, the phone number is not (297)122-0086, the first name is not Dameon, the email address is not kitty.hand@example.net, and the customer status code is Good Customer, or the cell mobile phone number is not 1-401-108-8016x078 and the date they became a customer is 2016-05-13 07:38:23 and the amount outstanding is greater than or equal to 2099, or the date of birth is not 1996-08-29 00:03:08 and the customer ID is 12, or the last name is Grant?", "answer": {"columns": ["last_name", "COUNT(customer_address_id)", "amount_outstanding", "COUNT(customer_id)", "SUM(customer_status_code)", "email_address", "date_of_birth", "COUNT(phone_number)"], "index": [0], "data": [["Bernhard", "15", "255", "15", "0", "everette.goyette@example.org", "1998-12-15 13:24:40", "15"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_8yxap_15.png", "TableImg_Bflyp_15.png"], "original_data_index": 302, "original_sql": "SELECT last_name, COUNT(customer_address_id), amount_outstanding, COUNT(customer_id), SUM(customer_status_code), email_address, date_of_birth, COUNT(phone_number) FROM Customers WHERE email_address <> \"mayert.judy@example.com\" OR last_name <> \"Tromp\" OR \"amount_outstanding\" > 2099.0 OR date_of_birth = \"1994-05-07 01:32:16\" AND first_name = \"Dameon\" EXCEPT SELECT last_name, COUNT(customer_address_id), amount_outstanding, COUNT(customer_id), SUM(customer_status_code), email_address, date_of_birth, COUNT(phone_number) FROM Customers WHERE \"customer_address_id\" = 1 AND phone_number <> \"(297)122-0086\" AND first_name != \"Dameon\" AND email_address <> \"kitty.hand@example.net\" AND customer_status_code = \"Good Customer\" OR cell_mobile_phone_number <> \"1-401-108-8016x078\" AND date_became_customer = \"2016-05-13 07:38:23\" AND \"amount_outstanding\" >= 2099.0 OR date_of_birth != \"1996-08-29 00:03:08\" AND \"customer_id\" = 12 OR last_name = \"Grant\""} {"question": "Can you give me a list of driver IDs where the ID is greater than 8, and also include a list of driver IDs from the school bus table where the ID is not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ti58v_12.png", "TableImg_0l0b6_5.png"], "original_data_index": 307, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are both in the driver table and less than or equal to 8, and also in the school_bus table and less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O92fz_12.png", "TableImg_Fxoe9_5.png"], "original_data_index": 308, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the Aircraft IDs that appear exactly once in the aircraft table, excluding any Aircraft IDs that appear three or more times in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U2arv_5.png", "TableImg_Hgxi1_4.png"], "original_data_index": 310, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you list the aircraft IDs from the aircraft table that are greater than or equal to 1, combined with the aircraft IDs from the airport_aircraft table that are less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Zop0w_5.png", "TableImg_Iniy8_4.png"], "original_data_index": 311, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Which District and Store IDs are associated with districts that are not district 4 and also have a district ID less than 15?", "answer": {"columns": ["District_ID", "Store_ID"], "index": [0, 1], "data": [["3", "5"], ["11", "3"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_40wxu_5.png", "TableImg_230ai_5.png"], "original_data_index": 312, "original_sql": "SELECT District_ID, Store_ID FROM store_district WHERE \"District_ID\" != 4 INTERSECT SELECT District_ID, Store_ID FROM store_district WHERE \"District_ID\" < 15"} {"question": "Can you give me the middle name, last name, date they left, date of birth, staff ID, earliest date joined, earliest first name, and the number of staff address IDs for staff members, combining two groups: those who didn't leave on March 6, 2018, or join on November 5, 2016, and those with a staff address ID greater than 4, or a birthdate of January 16, 2003, or a last name other than Kuphal?", "answer": {"columns": ["middle_name", "last_name", "date_left_staff", "date_of_birth", "staff_id", "MIN(date_joined_staff)", "MIN(first_name)", "COUNT(staff_address_id)"], "index": [0, 1], "data": [["Icie", "Weissnat", "2018-03-10 15:25:00", "2015-08-01 13:22:43", "2", "2016-05-01 02:22:45", "Camylle", "14"], ["Icie", "Weissnat", "2018-03-10 15:25:00", "2015-08-01 13:22:43", "2", "2016-05-01 02:22:45", "Camylle", "15"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_29on4_15.png", "TableImg_Qhnnj_15.png"], "original_data_index": 309, "original_sql": "SELECT middle_name, last_name, date_left_staff, date_of_birth, staff_id, MIN(date_joined_staff), MIN(first_name), COUNT(staff_address_id) FROM Staff WHERE date_left_staff != \"2018-03-06 23:17:41\" AND date_joined_staff <> \"2016-11-05 01:43:52\" UNION SELECT middle_name, last_name, date_left_staff, date_of_birth, staff_id, MIN(date_joined_staff), MIN(first_name), COUNT(staff_address_id) FROM Staff WHERE \"staff_address_id\" > 4 OR date_of_birth = \"2003-01-16 06:29:11\" OR last_name <> \"Kuphal\""} {"question": "What is the difference between the total driver ID of drivers who don't live in East Hartford and are not affiliated with the Dem party, and the total driver ID of school bus drivers who are either full-time or have a school ID of 1 or greater?", "answer": {"columns": ["SUM(Driver_ID)"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S1nb6_12.png", "TableImg_3e6lz_5.png"], "original_data_index": 315, "original_sql": "SELECT SUM(Driver_ID) FROM driver WHERE Home_city != \"East Hartford\" AND Party <> \"Dem\" EXCEPT SELECT SUM(Driver_ID) FROM school_bus WHERE If_full_time = \"T\" OR \"School_ID\" >= 1"} {"question": "Which driver IDs are not equal to 7 and are also not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C8t30_12.png", "TableImg_Cqqad_5.png"], "original_data_index": 316, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of driver IDs that are not 12 and are also greater than 7, considering only driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wd7f7_12.png", "TableImg_377fs_5.png"], "original_data_index": 317, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Which aircraft IDs, excluding aircraft ID 4, are also aircraft ID 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kig8a_5.png", "TableImg_Xyr5v_4.png"], "original_data_index": 318, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Can you give me a list of driver IDs that are greater than 4 from the driver table, combined with a list of driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_17pyc_12.png", "TableImg_Op8q2_5.png"], "original_data_index": 319, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are less than 9 from the driver table, combined with a list of driver IDs that are less than 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5lvv9_12.png", "TableImg_937fu_5.png"], "original_data_index": 320, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs that are equal to 4 from the driver table, combined with a list of driver IDs that are greater than or equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1jsnv_12.png", "TableImg_8c0e1_5.png"], "original_data_index": 321, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, including driver ID 3 from the driver table, and all driver IDs except 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9l0pi_12.png", "TableImg_Plp1r_5.png"], "original_data_index": 322, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Which driver IDs, excluding driver ID 6, are not also driver IDs in the school bus table, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S2s16_12.png", "TableImg_B4w0d_5.png"], "original_data_index": 323, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 9 and those from the school bus table that are equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vb4kn_12.png", "TableImg_Hm73h_5.png"], "original_data_index": 314, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list all template type descriptions, including those with the code \"BK\" and also including all descriptions that are not \"Presentation\"?", "answer": {"columns": ["Template_Type_Description"], "index": [0, 1, 2, 3, 4], "data": [["Book"], ["CV"], ["Advertisement"], ["Paper"], ["Book"]]}, "table_names": "['Ref_Template_Types' 'Ref_Template_Types']", "table_image_ids": ["TableImg_Dzwxx_5.png", "TableImg_B388j_5.png"], "original_data_index": 313, "original_sql": "SELECT Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Code = \"BK\" UNION ALL SELECT Template_Type_Description FROM Ref_Template_Types WHERE Template_Type_Description != \"Presentation\""} {"question": "Which aircraft IDs are both less than or equal to 4 and present with an aircraft ID of 1 in the airport aircraft data?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vz53e_5.png", "TableImg_A2kc7_4.png"], "original_data_index": 325, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me the employee IDs and names of employees who either have an ID greater than 574489456, or whose name is not Mark Young and salary is 20, but only if they also have a salary that isn't 205187, or an ID of 274878974, or a name of Richard Jackson?", "answer": {"columns": ["eid", "name"], "index": [0, 1], "data": [["574489457", "Milo Brooks"], ["619023588", "Jennifer Thomas"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Fbfv7_31.png", "TableImg_50apo_31.png"], "original_data_index": 324, "original_sql": "SELECT eid, name FROM employee WHERE \"eid\" > 574489456 OR name != \"Mark Young\" AND \"salary\" = 20 INTERSECT SELECT eid, name FROM employee WHERE \"salary\" != 205187 OR \"eid\" = 274878974 OR name = \"Richard Jackson\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 2, and also those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vci9u_12.png", "TableImg_Yuilw_5.png"], "original_data_index": 326, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 6 or higher, and those from the school bus table that are 10 or lower?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_19lzt_12.png", "TableImg_Nmd09_5.png"], "original_data_index": 327, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "What countries have airports with a minimum ID of 5 or greater, excluding those countries where the airports have a minimum ID of 6 or less?", "answer": {"columns": ["Country", "MIN(id)"], "index": [0, 1], "data": [["Belgium", "9"], ["Denmark", "7"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Ahfp1_9.png", "TableImg_4177c_9.png"], "original_data_index": 328, "original_sql": "SELECT Country, MIN(id) FROM airport GROUP BY Country HAVING MIN(id) >= 5 EXCEPT SELECT Country, MIN(id) FROM airport GROUP BY Country HAVING MIN(id) <= 6"} {"question": "Can you give me a list of driver IDs that are less than or equal to 9 from the driver table and also include driver ID 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X6jbo_12.png", "TableImg_Kgtqn_5.png"], "original_data_index": 329, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 4, but exclude any driver IDs that also appear in the school bus table, unless that ID is 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6npxa_12.png", "TableImg_0mrtv_5.png"], "original_data_index": 331, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 1, and those from the school bus table where the ID is not 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3113k_12.png", "TableImg_Kqr8e_5.png"], "original_data_index": 330, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Which driver IDs are both less than or equal to 5 in the driver table and less than or equal to 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_29p6v_12.png", "TableImg_4sshk_5.png"], "original_data_index": 332, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "What is the minimum aircraft ID associated with each freight metric tonnage amount, considering only the airports and their aircraft?", "answer": {"columns": ["Freight_Metric_Tonnes", "MIN(T2.Aircraft_ID)"], "index": [0], "data": [["107702", "1"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_8km7r_10.png", "TableImg_R1rl2_4.png"], "original_data_index": 335, "original_sql": "SELECT T1.Freight_Metric_Tonnes, MIN(T2.Aircraft_ID) FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Can you give me a list of driver IDs where each ID is greater than 5 from the driver table, combined with a list of driver IDs that are not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_78k9r_12.png", "TableImg_Ramjx_5.png"], "original_data_index": 333, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What is the average student ID from the Has_Pet table, excluding student ID 1002, where that average is not found within the same average?", "answer": {"columns": ["AVG(StuID)"], "index": [0], "data": [["1001.6666666667"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_W6wrq_3.png", "TableImg_5srer_3.png"], "original_data_index": 334, "original_sql": "SELECT AVG(StuID) FROM Has_Pet WHERE \"StuID\" <> 1002 NOT IN (SELECT AVG(StuID) FROM Has_Pet WHERE \"StuID\" <> 1002)"} {"question": "Can you list the aircraft IDs that are greater than 1, excluding those aircraft IDs that are also greater than or equal to 3 and associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V8zy6_5.png", "TableImg_6ie9o_4.png"], "original_data_index": 339, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 1, that are not aircraft ID 5 found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_4rfm2_5.png", "TableImg_9huv4_4.png"], "original_data_index": 338, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Could you give me a list of coach IDs for coaches with an ID greater than 1, combined with a list of coach IDs from the player_coach table where the starting year is 2011 or later?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_Uhk3k_5.png", "TableImg_2qygv_7.png"], "original_data_index": 337, "original_sql": "SELECT Coach_ID FROM coach WHERE \"Coach_ID\" > 1 UNION SELECT Coach_ID FROM player_coach WHERE \"Starting_year\" >= 2011"} {"question": "Can you give me a list of driver IDs that are not 11 and are also less than or equal to 3, considering only driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P601e_12.png", "TableImg_Cwp82_5.png"], "original_data_index": 336, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the student IDs from the Has_Pet table where the student ID is less than 1002 or the pet ID is greater than 2003, combined with the student IDs from the Student table where the major is not 520 and the sex is not male, or the first name is Sarah and the last name is not Wilson, or the student ID is not 1026, or the city code is not HKG, or the age is 18 or older and the advisor is 7712 or less?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34], "data": [["1001"], ["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Pet' 'Student']", "table_image_ids": ["TableImg_0nbs2_3.png", "TableImg_2fvxw_34.png"], "original_data_index": 341, "original_sql": "SELECT StuID FROM Has_Pet WHERE \"StuID\" < 1002 OR \"PetID\" > 2003 UNION ALL SELECT StuID FROM Student WHERE \"Major\" <> 520 AND Sex != \"M\" OR Fname = \"Sarah\" AND LName <> \"Wilson\" OR \"StuID\" <> 1026 OR city_code != \"HKG\" OR \"Age\" >= 18 AND \"Advisor\" <= 7712"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 7, and those from the school bus table that are equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O8sn0_12.png", "TableImg_Faz4p_5.png"], "original_data_index": 340, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Could you provide the date they became a customer, their customer address ID, and date of birth for all customers, including those who either didn't become a customer on \"2016-07-22 15:53:44\", or have a customer address ID greater than or equal to 9 and an email address of \"afranecki@example.com\" and an amount outstanding that is not 3900.0, or have a cell phone number that is not \"1-401-108-8016x078\", or don't have a customer status code of \"Good Customer\", along with those who have a first name other than \"Omer\", or a cell phone number other than \"1-197-686-2849x8761\" and a date of birth other than \"1993-07-09 11:11:36\", or a last name other than \"Mertz\", or a customer address ID greater than 10 and a date they became a customer other than \"2016-02-17 08:26:23\"?", "answer": {"columns": ["date_became_customer", "customer_address_id", "date_of_birth"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29], "data": [["2016-05-11 17:03:48", "13", "1998-12-15 13:24:40"], ["2015-11-16 22:52:14", "10", "1995-07-17 12:13:16"], ["2016-04-08 00:28:15", "10", "1994-06-21 01:34:56"], ["2016-07-22 15:53:44", "8", "1993-02-07 05:40:26"], ["2017-11-12 04:34:44", "2", "1991-02-10 00:42:17"], ["2017-04-16 05:12:21", "9", "1993-03-08 08:48:42"], ["2015-06-24 03:50:04", "1", "1996-11-07 05:30:55"], ["2017-10-05 14:15:46", "10", "1998-09-18 04:45:01"], ["2016-02-17 08:26:23", "12", "1991-12-05 02:50:15"], ["2017-11-25 01:42:26", "1", "1996-08-29 00:03:08"], ["2016-11-30 10:37:41", "13", "1994-05-07 01:32:16"], ["2016-05-13 07:38:23", "9", "1993-07-09 11:11:36"], ["2016-09-04 23:08:20", "7", "1988-09-19 14:45:56"], ["2016-03-18 06:14:18", "10", "1996-05-23 01:21:54"], ["2015-09-25 13:59:21", "1", "1996-08-30 06:17:50"], ["2016-05-11 17:03:48", "13", "1998-12-15 13:24:40"], ["2015-11-16 22:52:14", "10", "1995-07-17 12:13:16"], ["2016-04-08 00:28:15", "10", "1994-06-21 01:34:56"], ["2016-07-22 15:53:44", "8", "1993-02-07 05:40:26"], ["2017-11-12 04:34:44", "2", "1991-02-10 00:42:17"], ["2017-04-16 05:12:21", "9", "1993-03-08 08:48:42"], ["2015-06-24 03:50:04", "1", "1996-11-07 05:30:55"], ["2017-10-05 14:15:46", "10", "1998-09-18 04:45:01"], ["2016-02-17 08:26:23", "12", "1991-12-05 02:50:15"], ["2017-11-25 01:42:26", "1", "1996-08-29 00:03:08"], ["2016-11-30 10:37:41", "13", "1994-05-07 01:32:16"], ["2016-05-13 07:38:23", "9", "1993-07-09 11:11:36"], ["2016-09-04 23:08:20", "7", "1988-09-19 14:45:56"], ["2016-03-18 06:14:18", "10", "1996-05-23 01:21:54"], ["2015-09-25 13:59:21", "1", "1996-08-30 06:17:50"]]}, "table_names": "['Customers' 'Customers']", "table_image_ids": ["TableImg_2zna0_15.png", "TableImg_L7f5f_15.png"], "original_data_index": 342, "original_sql": "SELECT date_became_customer, customer_address_id, date_of_birth FROM Customers WHERE date_became_customer <> \"2016-07-22 15:53:44\" OR \"customer_address_id\" >= 9 AND email_address = \"afranecki@example.com\" AND \"amount_outstanding\" <> 3900.0 OR cell_mobile_phone_number != \"1-401-108-8016x078\" OR customer_status_code <> \"Good Customer\" UNION ALL SELECT date_became_customer, customer_address_id, date_of_birth FROM Customers WHERE first_name <> \"Omer\" OR cell_mobile_phone_number <> \"1-197-686-2849x8761\" AND date_of_birth <> \"1993-07-09 11:11:36\" OR last_name <> \"Mertz\" OR \"customer_address_id\" > 10 AND date_became_customer != \"2016-02-17 08:26:23\""} {"question": "Which driver IDs, excluding 11, are also driver IDs greater than 7 that are used in school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W2x3w_12.png", "TableImg_5jo0v_5.png"], "original_data_index": 345, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the aircraft IDs that are less than 5, excluding those aircraft IDs that are also greater than 3 and associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gxiuu_5.png", "TableImg_5tg9d_4.png"], "original_data_index": 346, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs that are greater than 4, excluding any driver IDs that also appear in the school bus table, unless that driver ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jgimh_12.png", "TableImg_Mwmg6_5.png"], "original_data_index": 344, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which aircraft have an ID of 3, but are not aircraft with an ID of 1 that are located at an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_7tu47_5.png", "TableImg_Z1o56_4.png"], "original_data_index": 351, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "How many domestic passengers are there for each aircraft?", "answer": {"columns": ["COUNT(T1.Domestic_Passengers)", "Aircraft_ID"], "index": [0], "data": [["4", "2"]]}, "table_names": "['airport' 'airport_aircraft']", "table_image_ids": ["TableImg_Mtv3j_10.png", "TableImg_5r316_4.png"], "original_data_index": 352, "original_sql": "SELECT COUNT(T1.Domestic_Passengers), T2.Aircraft_ID FROM airport as T1 JOIN airport_aircraft as T2 ON T1.Airport_ID = T2.Airport_ID"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 6, combined with a list of driver IDs from the school_bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tuncg_12.png", "TableImg_Ibeuq_5.png"], "original_data_index": 353, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Could you list the shipping agent codes and names that are not \"UP\" or \"Fedex\", but also have a description that isn't \"t\" or a code that is \"UP\"?", "answer": {"columns": ["shipping_agent_code", "shipping_agent_name"], "index": [0, 1], "data": [["AL", "Airline"], ["US", "USPS"]]}, "table_names": "['Ref_Shipping_Agents' 'Ref_Shipping_Agents']", "table_image_ids": ["TableImg_Cb6a9_5.png", "TableImg_Vhpem_5.png"], "original_data_index": 354, "original_sql": "SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_code != \"UP\" AND shipping_agent_name <> \"Fedex\" INTERSECT SELECT shipping_agent_code, shipping_agent_name FROM Ref_Shipping_Agents WHERE shipping_agent_description <> \"t\" OR shipping_agent_code = \"UP\""} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 5, combined with a list of driver IDs from the school_bus table that are greater than 4, making sure to remove any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5f1vj_12.png", "TableImg_Tprzo_5.png"], "original_data_index": 355, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list all the aircraft IDs, combining those from the aircraft table that are not equal to 1 with those from the airport_aircraft table that are greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jol7d_5.png", "TableImg_Jws20_4.png"], "original_data_index": 356, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which aircraft IDs are not equal to 4 and are also less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Me428_5.png", "TableImg_59efe_4.png"], "original_data_index": 357, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 1 and not equal to 10, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kuzsk_12.png", "TableImg_Hx3l4_5.png"], "original_data_index": 358, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the rank and club ID for coaches where the club ID is greater than 1 or the gender is male, combined with the rank and club ID for match results where the small silver is less than 16, or the gold is not equal to 20, or the points are less than 139 and the big silver is less than or equal to 12?", "answer": {"columns": ["Rank", "Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1", "1"], ["2", "2"], ["3", "3"], ["4", "3"], ["4", "4"], ["5", "1"], ["5", "5"], ["6", "6"]]}, "table_names": "['coach' 'match_result']", "table_image_ids": ["TableImg_Ujtok_5.png", "TableImg_2si2y_6.png"], "original_data_index": 359, "original_sql": "SELECT Rank, Club_ID FROM coach WHERE \"Club_ID\" > 1 OR Gender = \"M\" UNION SELECT Rank, Club_ID FROM match_result WHERE \"Small_Silver\" < 16 OR \"Gold\" != 20 OR \"Points\" < 139 AND \"Big_Silver\" <= 12"} {"question": "Can you give me a list of Driver IDs that are less than 7 from the driver table, combined with a list of Driver IDs that are less than 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Giv6h_12.png", "TableImg_S0q26_5.png"], "original_data_index": 361, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs that are 5 or greater, excluding any driver IDs less than 9 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dphfx_12.png", "TableImg_5hk1d_5.png"], "original_data_index": 349, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list the ranks from the coach table where the coach is not female and the coach's name is not Jameson Tomas, or where the coach ID is 5 and the club ID is less than 1, combined with the ranks from the player table where the sponsor name is not Saint Boniface, or the votes are not 4673, or the player ID is 4, or the residence is not Birtle, or the rank is not 1st?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["5"], ["1st"], ["2nd"], ["3rd"], ["4th"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_6zabv_5.png", "TableImg_Yjz5e_14.png"], "original_data_index": 350, "original_sql": "SELECT Rank FROM coach WHERE Gender != \"F\" AND Coach_name <> \"Jameson Tomas\" OR \"Coach_ID\" = 5 AND \"Club_ID\" < 1 UNION SELECT Rank FROM player WHERE Sponsor_name != \"Saint Boniface\" OR \"Votes\" != 4673 OR \"Player_ID\" = 4 OR Residence <> \"Birtle\" OR Rank != \"1st\""} {"question": "Can you list the total disk area, aircraft name, maximum gross weight, description, and maximum disk loading for all aircraft that either are CH-47D Chinooks and not heavy-lift helicopters with a total disk area of 5,655 ft\u00b2, or have a total disk area of 5,655 ft\u00b2?", "answer": {"columns": ["Total_disk_area", "Aircraft", "Max_Gross_Weight", "Description", "Max_disk_Loading"], "index": [0], "data": [["5,655 ft\u00b2 (526 m\u00b2)", "CH-47D Chinook", "50,000 lb (22,680 kg)", "Tandem rotor helicopter", "8.8 lb/ft\u00b2 (43 kg/m\u00b2)"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_A2qzx_5.png", "TableImg_Jv4fg_5.png"], "original_data_index": 362, "original_sql": "SELECT Total_disk_area, Aircraft, Max_Gross_Weight, Description, Max_disk_Loading FROM aircraft WHERE Description <> \"Heavy-lift helicopter\" AND Aircraft = \"CH-47D Chinook\" AND Total_disk_area = \"5,655 ft\u00b2 (526 m\u00b2)\" UNION SELECT Total_disk_area, Aircraft, Max_Gross_Weight, Description, Max_disk_Loading FROM aircraft WHERE Total_disk_area = \"5,655 ft\u00b2 (526 m\u00b2)\""} {"question": "What are the ages and birth states of people in the head table who were born in California, excluding those who are 43 or younger, or not from California and have a head ID of 10 or greater and a name other than P\u00e1draig Harrington?", "answer": {"columns": ["age", "born_state"], "index": [0, 1, 2, 3], "data": [["52", "California"], ["56", "California"], ["68", "California"], ["69", "California"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Fwwab_10.png", "TableImg_Hhktc_10.png"], "original_data_index": 363, "original_sql": "SELECT age, born_state FROM head WHERE born_state = \"California\" EXCEPT SELECT age, born_state FROM head WHERE \"age\" <= 43.0 OR born_state <> \"California\" AND \"head_ID\" >= 10 AND name != \"P\u00e1draig Harrington\""} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 6, and those from the school bus table with driver IDs up to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4jzzr_12.png", "TableImg_1vqii_5.png"], "original_data_index": 365, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table that are not 11, and also including driver ID 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_71joz_12.png", "TableImg_9ujoo_5.png"], "original_data_index": 364, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list all Aircraft IDs, including those that are equal to 1 from the aircraft table and those that are not equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ny5hd_5.png", "TableImg_52vmc_4.png"], "original_data_index": 368, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of aircraft IDs, first from the aircraft table excluding aircraft ID 3, and then from the airport_aircraft table including only those less than 5, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2qnq1_5.png", "TableImg_53bg0_4.png"], "original_data_index": 366, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you list all the aircraft IDs, combining those from the aircraft table that are not equal to 2 with those from the airport_aircraft table that are not equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0oyu7_5.png", "TableImg_Zkkqh_4.png"], "original_data_index": 367, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that aren't 5, and those from the school bus table that are 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kj2di_12.png", "TableImg_R1orj_5.png"], "original_data_index": 371, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not 12 with those from the school_bus table that are less than 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D8tzt_12.png", "TableImg_Gl06h_5.png"], "original_data_index": 360, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs that are 12 or greater from the driver table, excluding any driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K668c_12.png", "TableImg_Ymnca_5.png"], "original_data_index": 374, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 8, combined with a list of driver IDs from the school_bus table where each ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8zgc0_12.png", "TableImg_Jn0zj_5.png"], "original_data_index": 375, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Could you give me the total name value from the airport table for entries where the city is Bergen, the ICAO code is PANC, and the name is Schiphol Airport, with an id less than 3, or where the country is not Norway and the IATA code is not BRU, combined with the total name value from the operate_company table for entries incorporated in Hong Kong?", "answer": {"columns": ["SUM(name)"], "index": [0], "data": [["0"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_0xfc5_9.png", "TableImg_Q5qtp_14.png"], "original_data_index": 376, "original_sql": "SELECT SUM(name) FROM airport WHERE City = \"Bergen\" AND ICAO = \"PANC\" AND name = \"Schiphol Airport\" AND \"id\" < 3 OR Country != \"Norway\" AND IATA <> \"BRU\" UNION SELECT SUM(name) FROM operate_company WHERE Incorporated_in = \"Hong Kong\""} {"question": "Can you give me a list of driver IDs that are less than 7, excluding any driver IDs that are not equal to 10 and are also found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jg4v7_12.png", "TableImg_Cs3i3_5.png"], "original_data_index": 377, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list whether the positions are full-time from the hiring information, including those with a Shop ID of 4 or less, or that started in a year other than 2003, along with positions that started in a year other than 2011 and are not full-time?", "answer": {"columns": ["Is_full_time"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["T"], ["T"], ["F"], ["T"], ["T"], ["F"], ["T"], ["F"]]}, "table_names": "['hiring' 'hiring']", "table_image_ids": ["TableImg_Tzbn4_7.png", "TableImg_Fy42b_7.png"], "original_data_index": 378, "original_sql": "SELECT Is_full_time FROM hiring WHERE \"Shop_ID\" <= 4 OR Start_from <> \"2003\" UNION ALL SELECT Is_full_time FROM hiring WHERE Start_from <> \"2011\" AND Is_full_time != \"T\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are also driver IDs greater than or equal to 3, based on the driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lckhq_12.png", "TableImg_Nkswl_5.png"], "original_data_index": 370, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs, excluding ID 7, are present in both the driver list and the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sbult_12.png", "TableImg_Cy1ph_5.png"], "original_data_index": 379, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs, excluding driver ID 6, are also driver ID 3 on the school bus?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8oei3_12.png", "TableImg_Ctu2f_5.png"], "original_data_index": 372, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those driver IDs that are also not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O3clj_12.png", "TableImg_3be1a_5.png"], "original_data_index": 381, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 9, that are in the driver table but not in the school bus table where the driver ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ypyv1_12.png", "TableImg_Bi0su_5.png"], "original_data_index": 380, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 3, excluding those drivers whose IDs are not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uzxyc_12.png", "TableImg_73cky_5.png"], "original_data_index": 382, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What are the average feature name, count of feature type codes, and feature descriptions for features that are not pools or air conditioning, or whose ID is not 2 and type is not security, excluding those that are not air conditioning and are of security type?", "answer": {"columns": ["AVG(feature_name)", "COUNT(feature_type_code)", "feature_description"], "index": [0], "data": [["0", "2", "Swimming Pool."]]}, "table_names": "['Other_Available_Features' 'Other_Available_Features']", "table_image_ids": ["TableImg_Sxk3y_3.png", "TableImg_6fgo9_3.png"], "original_data_index": 383, "original_sql": "SELECT AVG(feature_name), COUNT(feature_type_code), feature_description FROM Other_Available_Features WHERE feature_name <> \"Pool\" AND feature_description <> \"Air Conditioning.\" OR \"feature_id\" != 2 AND feature_type_code != \"Security\" EXCEPT SELECT AVG(feature_name), COUNT(feature_type_code), feature_description FROM Other_Available_Features WHERE feature_description <> \"Air Conditioning.\" AND feature_type_code = \"Security\""} {"question": "Can you give me a list of album IDs for albums titled \"Kill 'Em All\", combined with a list of playlist IDs for playlists that aren't named \"Heavy Metal Classic\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["18"], ["150"]]}, "table_names": "['albums' 'playlists']", "table_image_ids": ["TableImg_81xin_347.png", "TableImg_W1ebh_18.png"], "original_data_index": 384, "original_sql": "SELECT id FROM albums WHERE title = \"Kill 'Em All\" UNION SELECT id FROM playlists WHERE name <> \"Heavy Metal Classic\""} {"question": "Can you give me a list of driver IDs that are less than 7, excluding those driver IDs that are also in the school bus list and are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_69chp_12.png", "TableImg_8gqks_5.png"], "original_data_index": 385, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Which driver IDs are both not equal to 2 and also greater than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tutvt_12.png", "TableImg_Xvpcm_5.png"], "original_data_index": 386, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of aircraft IDs that are greater than 2, and also not equal to 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ypzgy_5.png", "TableImg_Czr6z_4.png"], "original_data_index": 387, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Which driver IDs are both greater than 5 and also less than or equal to 9, appearing in both the driver and school_bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_79yrg_12.png", "TableImg_Ia4nl_5.png"], "original_data_index": 388, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are equal to 1 in the driver table, but not equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xzwo5_12.png", "TableImg_N9npk_5.png"], "original_data_index": 389, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What aircraft IDs are present in both the aircraft table (excluding ID 1) and the airport_aircraft table (including only IDs 5 or greater)?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mthao_5.png", "TableImg_Baw5f_4.png"], "original_data_index": 393, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 9, but only include those IDs that are not less than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zwuu6_12.png", "TableImg_Tjys6_5.png"], "original_data_index": 390, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 5, but only if they are not also aircraft IDs that appear in the airport_aircraft table with an aircraft ID greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qt1lx_5.png", "TableImg_Ckasp_4.png"], "original_data_index": 392, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me the maximum gross weight, maximum disk loading, aircraft ID, aircraft name, and description for aircraft that meet these two sets of criteria: first, they are either heavy-lift helicopters, or their aircraft ID is greater than 5 and they are not a Robinson R-22, or their total disk area is not 872 square feet and their maximum disk loading is 15 lb/ft\u00b2; and second, their maximum gross weight is not 73,500 lb, and their maximum disk loading is not 15 lb/ft\u00b2, and their total disk area is not 4,900 square feet, or their aircraft ID is not 2?", "answer": {"columns": ["Max_Gross_Weight", "Max_disk_Loading", "Aircraft_ID", "Aircraft", "Description"], "index": [0, 1], "data": [["123,500 lb (56,000 kg)", "14.5 lb/ft\u00b2 (71 kg/m\u00b2)", "4", "Mil Mi-26", "Heavy-lift helicopter"], ["73,500 lb (33,300 kg)", "15 lb/ft\u00b2 (72 kg/m\u00b2)", "5", "CH-53E Super Stallion", "Heavy-lift helicopter"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Dbyqh_5.png", "TableImg_Qs796_5.png"], "original_data_index": 391, "original_sql": "SELECT Max_Gross_Weight, Max_disk_Loading, Aircraft_ID, Aircraft, Description FROM aircraft WHERE Description = \"Heavy-lift helicopter\" OR \"Aircraft_ID\" > 5 AND Aircraft != \"Robinson R-22\" OR Total_disk_area <> \"872 ft\u00b2 (81.1 m\u00b2)\" AND Max_disk_Loading = \"15 lb/ft\u00b2 (72 kg/m\u00b2)\" INTERSECT SELECT Max_Gross_Weight, Max_disk_Loading, Aircraft_ID, Aircraft, Description FROM aircraft WHERE Max_Gross_Weight != \"73,500 lb (33,300 kg)\" AND Max_disk_Loading <> \"15 lb/ft\u00b2 (72 kg/m\u00b2)\" AND Total_disk_area <> \"4,900 ft\u00b2 (460 m\u00b2)\" OR \"Aircraft_ID\" <> 2"} {"question": "Which driver IDs are not equal to 3 and are also greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1ocuf_12.png", "TableImg_4zeks_5.png"], "original_data_index": 395, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 2, but only if they are not also listed in the airport_aircraft table with an aircraft ID of 1 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ljuu7_5.png", "TableImg_S5w4o_4.png"], "original_data_index": 396, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than or equal to 2, and those from the school bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cw6sk_12.png", "TableImg_X88c0_5.png"], "original_data_index": 394, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs, other than 3, are in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_13bmg_12.png", "TableImg_N1ddn_5.png"], "original_data_index": 397, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Could you list the Aircraft IDs that are both less than or equal to 1 in the aircraft table and less than 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ajeaw_5.png", "TableImg_Rmc96_4.png"], "original_data_index": 398, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R1m82_12.png", "TableImg_Eb5du_5.png"], "original_data_index": 401, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are greater than 3, including those from the driver table and the school bus table, but without any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nabjs_12.png", "TableImg_Gi4ep_5.png"], "original_data_index": 400, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the smallest aircraft name among those with a distance of at least 7120, excluding the smallest employee name among those with a salary less than 23980?", "answer": {"columns": ["MIN(name)"], "index": [0], "data": [["Airbus A340-300"]]}, "table_names": "['aircraft' 'employee']", "table_image_ids": ["TableImg_3v5w9_16.png", "TableImg_Qb6wv_31.png"], "original_data_index": 399, "original_sql": "SELECT MIN(name) FROM aircraft WHERE \"distance\" >= 7120 EXCEPT SELECT MIN(name) FROM employee WHERE \"salary\" < 23980"} {"question": "Can you give me a list of driver IDs from the driver table, but only those IDs that are 3 or less, combined with a list of driver IDs from the school_bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_10cu4_12.png", "TableImg_Ughof_5.png"], "original_data_index": 402, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 2, and combine that with a list of aircraft IDs from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M5ab2_5.png", "TableImg_03h6g_4.png"], "original_data_index": 404, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "What aircraft IDs are greater than or equal to 5, excluding those aircraft IDs less than 2 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jbg8m_5.png", "TableImg_Etpba_4.png"], "original_data_index": 406, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you list the full name, country, ID, and maker for all car makers with an ID less than 20, excluding those that are either not named \"BMW\" or have an ID greater than 7?", "answer": {"columns": ["FullName", "Country", "Id", "Maker"], "index": [0], "data": [["BMW", "2", "3", "bmw"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_18q8d_22.png", "TableImg_5l3a7_22.png"], "original_data_index": 403, "original_sql": "SELECT FullName, Country, Id, Maker FROM car_makers WHERE \"Id\" < 20 EXCEPT SELECT FullName, Country, Id, Maker FROM car_makers WHERE FullName <> \"BMW\" OR \"Id\" > 7"} {"question": "Could you give me the total Book IDs and their corresponding prices from the publication table, combining two sets of results? The first set includes publications where the publication date isn't June 2006, or the Publication ID is less than or equal to 2 and the price is under 4,100,000, or the publisher is Pearson, or the Book ID is less than 5. The second set includes publications where the Book ID is less than or equal to 7 and the price is at least 4,100,000 and the Publication ID is 7, or the publisher is Wiley and the publication date isn't April 2007.", "answer": {"columns": ["SUM(Book_ID)", "Price"], "index": [0, 1], "data": [["9", "4100000"], ["39", "15000000"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_8cnmh_7.png", "TableImg_Gb33i_7.png"], "original_data_index": 405, "original_sql": "SELECT SUM(Book_ID), Price FROM publication WHERE Publication_Date <> \"June 2006\" OR \"Publication_ID\" <= 2 AND \"Price\" < 4100000.0 OR Publisher = \"Pearson\" OR \"Book_ID\" < 5 UNION SELECT SUM(Book_ID), Price FROM publication WHERE \"Book_ID\" <= 7 AND \"Price\" >= 4100000.0 AND \"Publication_ID\" = 7 OR Publisher = \"Wiley\" AND Publication_Date != \"April 2007\""} {"question": "Can you give me a list of driver IDs that are greater than 4, but exclude any driver IDs that are equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9zaxp_12.png", "TableImg_H3acv_5.png"], "original_data_index": 409, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Could you list the aircraft IDs that are less than 2, excluding any aircraft IDs greater than 3 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_97kez_5.png", "TableImg_5khe4_4.png"], "original_data_index": 408, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs less than or equal to 12, excluding any driver IDs that are not equal to 3 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I2z5y_12.png", "TableImg_7r50f_5.png"], "original_data_index": 407, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, where the IDs are not equal to 3, and also include driver IDs from the school bus list that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fxirw_12.png", "TableImg_K2xo4_5.png"], "original_data_index": 410, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 6, and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rdt9v_12.png", "TableImg_6yl2n_5.png"], "original_data_index": 414, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which driver IDs, excluding driver ID 9, are also driver IDs that are equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Slet1_12.png", "TableImg_1m6tm_5.png"], "original_data_index": 413, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 7, excluding any driver IDs from the school bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T0xh0_12.png", "TableImg_T0vb3_5.png"], "original_data_index": 411, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Which driver IDs, other than 3, are in the driver list but not in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7kbus_12.png", "TableImg_3oaak_5.png"], "original_data_index": 412, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "What is the number of available features that are not feature ID 4 or are security features, and also the number of property features with a property ID greater than 13?", "answer": {"columns": ["COUNT(feature_id)"], "index": [0], "data": [["3"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_A46qq_3.png", "TableImg_8b3d9_15.png"], "original_data_index": 416, "original_sql": "SELECT COUNT(feature_id) FROM Other_Available_Features WHERE \"feature_id\" <> 4 OR feature_type_code = \"Security\" INTERSECT SELECT COUNT(feature_id) FROM Other_Property_Features WHERE \"property_id\" > 13"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver ID 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vheve_12.png", "TableImg_34ab0_5.png"], "original_data_index": 417, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the middle name, date they left, date they joined, last name, birth date, and first name of all staff members, including those who either didn't join on \"2017-12-22 03:06:32\" and don't have the last name \"Jast\", or don't have the first name \"Jedidiah\", combined with those who either don't have the nickname \"nicholaus92\" and don't have the last name \"Herzog\", or whose staff ID isn't 3 and staff address ID isn't 7, or don't have the first name \"Ludie\" and didn't join on \"2017-10-21 17:20:57\"?", "answer": {"columns": ["middle_name", "date_left_staff", "date_joined_staff", "last_name", "date_of_birth", "first_name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Amara", "2018-03-23 22:53:12", "2017-04-27 03:21:26", "Sawayn", "2010-12-08 16:55:14", "Janessa"], ["Benny", "2018-03-06 23:17:41", "2016-11-05 01:43:52", "Carroll", "1996-03-09 08:19:49", "Lincoln"], ["Caesar", "2018-03-08 12:31:16", "2017-12-22 03:06:32", "Doyle", "1995-06-03 08:09:17", "Margie"], ["Clarabelle", "2018-02-26 17:56:31", "2016-11-13 20:44:23", "Mraz", "2004-05-19 14:11:13", "Ernestina"], ["Dejon", "2018-03-08 04:23:14", "2016-05-16 20:56:53", "Herzog", "2015-08-10 11:37:39", "Jedidiah"], ["Duane", "2018-03-05 18:30:12", "2016-05-26 00:55:07", "Durgan", "2005-05-02 06:23:36", "Titus"], ["Icie", "2018-03-10 15:25:00", "2016-06-06 08:54:28", "Weissnat", "2015-08-01 13:22:43", "Camylle"], ["Liam", "2018-03-09 05:08:35", "2016-05-01 02:22:45", "Jast", "2000-06-13 18:09:11", "Winnifred"], ["Madelyn", "2018-03-08 05:16:29", "2017-06-04 14:30:41", "Macejkovic", "2007-06-11 20:03:28", "Queenie"], ["Maiya", "2018-03-14 07:14:37", "2016-06-05 22:22:23", "Rogahn", "1996-09-24 09:51:42", "Jaleel"], ["Mayra", "2018-03-01 17:10:03", "2017-02-20 18:45:20", "Turner", "1997-03-29 10:55:45", "Simeon"], ["Sherwood", "2018-03-04 17:13:53", "2017-10-21 17:20:57", "Hermann", "2003-01-16 06:29:11", "Rebekah"], ["Stephania", "2018-03-24 10:11:08", "2018-01-02 12:24:24", "Mertz", "1994-05-17 05:32:11", "Kaitlin"], ["Tre", "2018-02-28 08:26:10", "2017-08-27 19:19:44", "Maggio", "1998-04-27 12:55:05", "Eulalia"], ["Ulices", "2018-03-02 01:48:15", "2017-08-30 15:08:37", "Kuphal", "2000-11-16 06:55:12", "Ludie"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_T6mmj_15.png", "TableImg_82o73_15.png"], "original_data_index": 415, "original_sql": "SELECT middle_name, date_left_staff, date_joined_staff, last_name, date_of_birth, first_name FROM Staff WHERE date_joined_staff <> \"2017-12-22 03:06:32\" AND last_name <> \"Jast\" OR first_name != \"Jedidiah\" UNION SELECT middle_name, date_left_staff, date_joined_staff, last_name, date_of_birth, first_name FROM Staff WHERE nickname <> \"nicholaus92\" AND last_name != \"Herzog\" OR \"staff_id\" != 3 AND \"staff_address_id\" <> 7 OR first_name != \"Ludie\" AND date_joined_staff != \"2017-10-21 17:20:57\""} {"question": "Can you give me a list of aircraft IDs that are greater than 3, excluding any aircraft IDs that are less than or equal to 3 and are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ne6wf_5.png", "TableImg_7tpv2_4.png"], "original_data_index": 420, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs that appear in the driver table, excluding driver ID 2, but then remove any driver IDs that also appear in the school_bus table and are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nwchm_12.png", "TableImg_H1vle_5.png"], "original_data_index": 419, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of member IDs from the membership register branch for the year 2016, or those not associated with branch 5, along with member IDs from purchases not made at branch 1?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["1"], ["2"], ["2"], ["2"], ["3"], ["6"]]}, "table_names": "['membership_register_branch' 'purchase']", "table_image_ids": ["TableImg_Jl1yz_8.png", "TableImg_Q4afa_8.png"], "original_data_index": 418, "original_sql": "SELECT Member_ID FROM membership_register_branch WHERE Register_Year = \"2016\" OR Branch_ID != \"5\" UNION ALL SELECT Member_ID FROM purchase WHERE Branch_ID <> \"1\""} {"question": "Can you list the aircraft IDs that are greater than or equal to 5 from the aircraft table, and combine that with a list of aircraft IDs greater than 1 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q611d_5.png", "TableImg_5fgu8_4.png"], "original_data_index": 421, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs, including driver ID 12 from the driver table and any driver IDs greater than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L8a1n_12.png", "TableImg_7hx0j_5.png"], "original_data_index": 425, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the aircraft IDs that are less than or equal to 1, excluding those aircraft IDs less than 1 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_R6me0_5.png", "TableImg_0s92t_4.png"], "original_data_index": 423, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you list all the role descriptions, including those that aren't \"Editor\", and also those with a role code that isn't \"PT\" or that are specifically \"Editor\"?", "answer": {"columns": ["role_description"], "index": [0, 1, 2, 3, 4, 5], "data": [["Photo"], ["Manager"], ["Proof Manager"], ["Editor"], ["Manager"], ["Proof Manager"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_E7vrb_4.png", "TableImg_Zyxo2_4.png"], "original_data_index": 424, "original_sql": "SELECT role_description FROM Roles WHERE role_description != \"Editor\" UNION ALL SELECT role_description FROM Roles WHERE role_code <> \"PT\" OR role_description = \"Editor\""} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 3, and combine that with a list of all aircraft IDs from the airport aircraft table, excluding aircraft ID 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_71de7_5.png", "TableImg_Xukvy_4.png"], "original_data_index": 422, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What are the genders and ranks of coaches with a rank of 5 or lower, or who are not male, excluding the genders and ranks of players who are not ranked 3rd?", "answer": {"columns": ["Gender", "Rank"], "index": [0, 1, 2, 3, 4], "data": [["F", "2"], ["M", "1"], ["M", "3"], ["M", "4"], ["M", "5"]]}, "table_names": "['coach' 'player']", "table_image_ids": ["TableImg_Fgyt1_5.png", "TableImg_Pbw5j_14.png"], "original_data_index": 428, "original_sql": "SELECT Gender, Rank FROM coach WHERE \"Rank\" <= 5 OR Gender <> \"M\" EXCEPT SELECT Gender, Rank FROM player WHERE Rank != \"3rd\""} {"question": "Can you give me a list of driver IDs from the driver table where each ID is 3 or greater, combined with a list of driver IDs from the school_bus table where each ID is greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L6qp2_12.png", "TableImg_Z3hn8_5.png"], "original_data_index": 426, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me the sum of draft numbers, the average document ID, the employee ID, and the average copy number from the circulation history, first for records where the document ID is less than or equal to 1, the employee ID is not 2, the copy number is 15, or the draft number is less than or equal to 20, and then again for records where the employee ID is not 1, combining the results?", "answer": {"columns": ["SUM(draft_number)", "AVG(document_id)", "employee_id", "AVG(copy_number)"], "index": [0, 1], "data": [["38", "10.6666666667", "8", "9.6666666667"], ["40", "8.25", "8", "8.5"]]}, "table_names": "['Circulation_History' 'Circulation_History']", "table_image_ids": ["TableImg_Xr05b_4.png", "TableImg_Hqkjs_4.png"], "original_data_index": 427, "original_sql": "SELECT SUM(draft_number), AVG(document_id), employee_id, AVG(copy_number) FROM Circulation_History WHERE \"document_id\" <= 1 OR \"employee_id\" <> 2 OR \"copy_number\" = 15 OR \"draft_number\" <= 20 UNION SELECT SUM(draft_number), AVG(document_id), employee_id, AVG(copy_number) FROM Circulation_History WHERE \"employee_id\" != 1"} {"question": "Can you give me the minimum number of employees, the count of department names, the average department ID, the count of creation dates, the ranking, and the maximum budget in billions for departments, grouped by ranking, first where the budget isn't 44.6 billion and the department ID is 7 or less, but only if the maximum budget is 77.6 billion or less, or the count of department names and creation dates are not equal to 1, or the minimum number of employees is 30266, or the average department ID is greater than 5; and then also give me the same information for departments grouped by ranking where the department ID is greater than 1, or the ranking is greater than 15, or the department name is Treasury, or the number of employees is less than 36000, but only if the minimum number of employees is greater than 208000 and the average department ID is greater than 12?", "answer": {"columns": ["MIN(Num_Employees)", "COUNT(Name)", "AVG(Department_ID)", "COUNT(Creation)", "Ranking", "MAX(Budget_in_Billions)"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["30266", "1", "1", "1", "1", "9.96"], ["36000", "1", "7", "1", "7", "6.2"], ["71436", "1", "5", "1", "5", "10.7"], ["109832", "1", "6", "1", "6", "77.6"], ["112557", "1", "4", "1", "4", "23.4"], ["115897", "1", "2", "1", "2", "11.1"], ["235000", "1", "14", "1", "14", "73.2"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Y4zin_15.png", "TableImg_Wkddl_15.png"], "original_data_index": 429, "original_sql": "SELECT MIN(Num_Employees), COUNT(Name), AVG(Department_ID), COUNT(Creation), Ranking, MAX(Budget_in_Billions) FROM department WHERE \"Budget_in_Billions\" <> 44.6 AND \"Department_ID\" <= 7 GROUP BY Ranking HAVING MAX(Budget_in_Billions) <= 77.6 OR COUNT(Name) != 1 AND COUNT(Creation) != 1 OR MIN(Num_Employees) = 30266.0 OR AVG(Department_ID) > 5.0 UNION SELECT MIN(Num_Employees), COUNT(Name), AVG(Department_ID), COUNT(Creation), Ranking, MAX(Budget_in_Billions) FROM department WHERE \"Department_ID\" > 1 OR \"Ranking\" > 15 OR Name = \"Treasury\" OR \"Num_Employees\" < 36000.0 GROUP BY Ranking HAVING MIN(Num_Employees) > 208000.0 AND AVG(Department_ID) > 12.0"} {"question": "Which driver IDs are both greater than 8 and also equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1m98i_12.png", "TableImg_B295t_5.png"], "original_data_index": 430, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the Aircraft IDs that are less than 3 from the aircraft table, and also include the Aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_0cncs_5.png", "TableImg_5bw1y_4.png"], "original_data_index": 431, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of driver IDs that are greater than 6 from the driver table, combined with a list of driver IDs that are greater than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_67ci2_12.png", "TableImg_Pfnc4_5.png"], "original_data_index": 433, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Which driver IDs are both greater than or equal to 4 in the driver table and greater than 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kuksa_12.png", "TableImg_3lmd2_5.png"], "original_data_index": 432, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of aircraft IDs that are greater than 1, excluding those aircraft IDs less than 5 that are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tuecg_5.png", "TableImg_Vlf32_4.png"], "original_data_index": 437, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Which driver has an ID of 5, excluding any drivers with IDs less than 4 who are also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_75ufv_12.png", "TableImg_0syu7_5.png"], "original_data_index": 438, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What is the earliest property type description, excluding \"Other\", that is not \"Shop, Retail Outlet.\"?", "answer": {"columns": ["MIN(property_type_description)"], "index": [0], "data": [["Apartment, Flat, Condo, etc."]]}, "table_names": "['Ref_Property_Types' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Nwpqh_5.png", "TableImg_Qbyld_5.png"], "original_data_index": 439, "original_sql": "SELECT MIN(property_type_description) FROM Ref_Property_Types WHERE property_type_code != \"Other\" EXCEPT SELECT MIN(property_type_description) FROM Ref_Property_Types WHERE property_type_description = \"Shop, Retail Outlet.\""} {"question": "Which driver IDs, that are 6 or greater, are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_55t41_12.png", "TableImg_C8891_5.png"], "original_data_index": 440, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 11, and those from the school bus table with driver IDs up to and including 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dpq46_12.png", "TableImg_Fn85q_5.png"], "original_data_index": 441, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are less than or equal to 12 from the driver table, combined with a list of driver IDs that are not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_65dpa_12.png", "TableImg_2hao8_5.png"], "original_data_index": 442, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What aircraft IDs are not equal to 5 and are also not equal to 2 when considering aircraft associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6xfoq_5.png", "TableImg_4sfke_4.png"], "original_data_index": 443, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you list the aircraft IDs that are less than or equal to 5, excluding those aircraft IDs that are not equal to 2 and are also present in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Oatff_5.png", "TableImg_Mnerf_4.png"], "original_data_index": 444, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of aircraft IDs that are greater than 2, and also not equal to 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5foz3_5.png", "TableImg_9bntw_4.png"], "original_data_index": 445, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "What is the average name from the airport table, considering only airports that are not KBOS or have an ID less than or equal to 9 and are not in the United States, combined with the average name from the operate_company table, considering only companies that are not Cathay Pacific Services Limited or have an ID less than or equal to 9?", "answer": {"columns": ["AVG(name)"], "index": [0], "data": [["0"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_9ae5x_9.png", "TableImg_Unvig_14.png"], "original_data_index": 434, "original_sql": "SELECT AVG(name) FROM airport WHERE ICAO <> \"KBOS\" OR \"id\" <= 9 AND Country <> \"United States\" UNION SELECT AVG(name) FROM operate_company WHERE name != \"Cathay Pacific Services Limited\" OR \"id\" <= 9"} {"question": "Can you give me a list of driver IDs that are less than 11 and also not equal to 9, considering only the driver IDs that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9cbok_12.png", "TableImg_Plq69_5.png"], "original_data_index": 436, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of aircraft IDs that are less than 3 when grouped in the aircraft table, but also not equal to 1 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Za3jc_5.png", "TableImg_S0jim_4.png"], "original_data_index": 435, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of aircraft IDs that are less than 3, where the list excludes any aircraft IDs from the airport aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jh3xe_5.png", "TableImg_48shg_4.png"], "original_data_index": 448, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 9, excluding any driver IDs from the school_bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yh3fn_12.png", "TableImg_Rxdtn_5.png"], "original_data_index": 446, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are 3 or greater, excluding those driver IDs that are less than 4 and are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M3pyh_12.png", "TableImg_Rf92e_5.png"], "original_data_index": 449, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you show me the draft number, document ID, and draft details for all document drafts that are not draft number 17, but only if the draft details are not \"v\" or the document ID is not 4?", "answer": {"columns": ["draft_number", "document_id", "draft_details"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["0", "1", "e"], ["1", "2", "v"], ["2", "1", "k"], ["4", "13", "w"], ["8", "2", "v"], ["9", "4", "r"], ["9", "23", "r"], ["10", "7", "m"], ["11", "12", "b"], ["12", "12", "r"], ["14", "14", "x"], ["16", "13", "p"], ["19", "17", "a"], ["20", "10", "k"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_6h4dn_15.png", "TableImg_Sgam3_15.png"], "original_data_index": 447, "original_sql": "SELECT draft_number, document_id, draft_details FROM Document_Drafts WHERE \"draft_number\" != 17 INTERSECT SELECT draft_number, document_id, draft_details FROM Document_Drafts WHERE draft_details != \"v\" OR \"document_id\" <> 4"} {"question": "Could you list all draft numbers that are either greater than 9 and not associated with document ID 13, or are not associated with document ID 2?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["0"], ["2"], ["4"], ["9"], ["10"], ["11"], ["12"], ["14"], ["16"], ["17"], ["19"], ["20"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_Rptr3_15.png", "TableImg_7r9tq_15.png"], "original_data_index": 452, "original_sql": "SELECT draft_number FROM Document_Drafts WHERE \"draft_number\" > 9 AND \"document_id\" != 13 UNION SELECT draft_number FROM Document_Drafts WHERE \"document_id\" != 2"} {"question": "Can you give me the IDs of drivers with IDs less than 3, excluding those drivers who also have IDs that are not equal to 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ysulg_12.png", "TableImg_Fsucy_5.png"], "original_data_index": 450, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are both greater than 9 and appear in the driver table, and also greater than or equal to 3 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X9a0g_12.png", "TableImg_Gmgws_5.png"], "original_data_index": 453, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Could you give me the company IDs that are both from companies not headquartered in the USA with assets not equal to 331.1 billion, a company ID greater than 17, profits of at least 15.7 billion, a name other than \"Total\", or a market value not equal to 107.5 billion, and also from employments where the people ID is not 3 and the company ID is no more than 11?", "answer": {"columns": ["Company_ID"], "index": [0], "data": [["7"]]}, "table_names": "['company' 'employment']", "table_image_ids": ["TableImg_Ed0yb_19.png", "TableImg_Rkodz_5.png"], "original_data_index": 451, "original_sql": "SELECT Company_ID FROM company WHERE Headquarters <> \"USA\" AND \"Assets_in_Billion\" <> 331.1 AND \"Company_ID\" > 17.0 OR \"Profits_in_Billion\" >= 15.7 OR Name != \"Total\" OR \"Market_Value_in_Billion\" <> 107.5 INTERSECT SELECT Company_ID FROM employment WHERE \"People_ID\" != 3 AND \"Company_ID\" <= 11"} {"question": "Can you give me a list of driver IDs that are less than 11 and are also driver IDs that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O0513_12.png", "TableImg_8gk9l_5.png"], "original_data_index": 455, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me the employee IDs of those who have certificate ID 3, excluding those who either aren't employee ID 269734834 or have a salary of 24450 or less and aren't named Dorthy Lewis?", "answer": {"columns": ["eid"], "index": [0], "data": [["269734834"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_S2t6j_69.png", "TableImg_Ppe9j_31.png"], "original_data_index": 457, "original_sql": "SELECT eid FROM certificate WHERE \"aid\" = 3 EXCEPT SELECT eid FROM employee WHERE \"eid\" != 269734834 OR \"salary\" <= 24450 AND name != \"Dorthy Lewis\""} {"question": "Which driver IDs are greater than 2 and also greater than 7, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xld3u_12.png", "TableImg_Whfd8_5.png"], "original_data_index": 454, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the Company and People IDs from the employment table where either the People ID is less than 1 or the working year is 2 or more, combined with another list of Company and People IDs from the same table where the working year is less than 1 and the Company ID is 7, or the People ID is 7 or less?", "answer": {"columns": ["Company_ID", "People_ID"], "index": [0, 1, 2, 3, 4], "data": [["7", "4"], ["11", "3"], ["13", "2"], ["15", "1"], ["17", "7"]]}, "table_names": "['employment' 'employment']", "table_image_ids": ["TableImg_T1e5a_5.png", "TableImg_Zuvzv_5.png"], "original_data_index": 456, "original_sql": "SELECT Company_ID, People_ID FROM employment WHERE \"People_ID\" < 1 OR \"Year_working\" >= 2 UNION SELECT Company_ID, People_ID FROM employment WHERE \"Year_working\" < 1 AND \"Company_ID\" = 7 OR \"People_ID\" <= 7"} {"question": "Can you list all the aircraft IDs, excluding ID 1, that appear in either the aircraft table or the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Poivf_5.png", "TableImg_Nr7pu_4.png"], "original_data_index": 460, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "How many continents are named \"america\", and how many countries are not named \"egypt\" and don't have a CountryId of 3?", "answer": {"columns": ["COUNT(Continent)"], "index": [0, 1], "data": [["1"], ["13"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_2564j_5.png", "TableImg_1lugx_15.png"], "original_data_index": 461, "original_sql": "SELECT COUNT(Continent) FROM continents WHERE Continent = \"america\" UNION ALL SELECT COUNT(Continent) FROM countries WHERE CountryName != \"egypt\" AND \"CountryId\" != 3"} {"question": "Can you give me a list of all driver IDs, combining those from the driver table excluding ID 5, and those from the school bus table excluding ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Acwwa_12.png", "TableImg_Zyljo_5.png"], "original_data_index": 458, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs that are not equal to 5, but exclude any driver IDs less than 10 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N36i2_12.png", "TableImg_G02vc_5.png"], "original_data_index": 463, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 11, and those from the school bus table that are exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pb04a_12.png", "TableImg_Img4e_5.png"], "original_data_index": 465, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 2, and those from the school bus table that are less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N6ouv_12.png", "TableImg_Gkg0e_5.png"], "original_data_index": 464, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you list all the branch names located on Abbott Street or that aren't named Taverner, along with all the member names who have a level greater than 6 or a card number of RCB32?", "answer": {"columns": ["Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["Alexandre"], ["Popert"], ["Stanley"], ["Zytogorski"], ["Cochrane"], ["Saint Amant"], ["Brooke Greville"], ["Trevard Lindley"]]}, "table_names": "['branch' 'member']", "table_image_ids": ["TableImg_P4f9a_8.png", "TableImg_P2mbj_10.png"], "original_data_index": 462, "original_sql": "SELECT Name FROM branch WHERE Address_road = \"Abbott Street\" OR Name != \"Taverner\" UNION ALL SELECT Name FROM member WHERE \"Level\" > 6 OR Card_Number = \"RCB32\""} {"question": "What are the maximum age, minimum student ID, count of first names, and average major for students who are at least 19 years old, combined with the same information for students who either don't have a major of 600, don't have the last name Simms, or are 18 years old?", "answer": {"columns": ["MAX(Age)", "MIN(StuID)", "COUNT(Fname)", "AVG(Major)"], "index": [0, 1], "data": [["27", "1001", "34", "527.9411764706"], ["27", "1002", "19", "543.6842105263"]]}, "table_names": "['Student' 'Student']", "table_image_ids": ["TableImg_C671x_34.png", "TableImg_G04zs_34.png"], "original_data_index": 466, "original_sql": "SELECT MAX(Age), MIN(StuID), COUNT(Fname), AVG(Major) FROM Student WHERE \"Age\" >= 19 UNION SELECT MAX(Age), MIN(StuID), COUNT(Fname), AVG(Major) FROM Student WHERE \"Major\" <> 600 OR LName != \"Simms\" OR \"Age\" = 18"} {"question": "Which driver IDs are not equal to 2 and appear in the driver table, and are also not equal to 4 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P24rd_12.png", "TableImg_0xkjd_5.png"], "original_data_index": 467, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of aircraft IDs that are less than 5, excluding any aircraft IDs greater than 2 that are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Y1ydz_5.png", "TableImg_O66ek_4.png"], "original_data_index": 468, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 8, and those from the school bus table with driver IDs of 3 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J8fc5_12.png", "TableImg_0bxb8_5.png"], "original_data_index": 469, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are less than 5 from the driver table, combined with a list of driver IDs that are exactly 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2kp79_12.png", "TableImg_Cge41_5.png"], "original_data_index": 470, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of aircraft IDs that are greater than 1, excluding those aircraft IDs from the airport aircraft list that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_F5m6m_5.png", "TableImg_Nnbiz_4.png"], "original_data_index": 471, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which aircraft IDs are both greater than 1 when grouped in the aircraft table, and greater than or equal to 3 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Azk9q_5.png", "TableImg_Bq3l2_4.png"], "original_data_index": 472, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs that are less than 9, excluding those driver IDs that are also greater than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P9rq7_12.png", "TableImg_Ezj28_5.png"], "original_data_index": 474, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me the Driver ID that appears exactly as 7 in the driver table, but is not a Driver ID greater than or equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ptsi7_12.png", "TableImg_Neulf_5.png"], "original_data_index": 473, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 5, and those from the school bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uziel_12.png", "TableImg_Vwt1s_5.png"], "original_data_index": 475, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the state of birth, age, ID, and name of people from the head table who are either at least head ID 3, named Stewart Cink, not from Delaware, or younger than 43, but exclude anyone who is from California, older than head ID 6, and not 43 years old?", "answer": {"columns": ["born_state", "age", "head_ID", "name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Alabama", "67", "1", "Tiger Woods"], ["Alabama", "69", "3", "K. J. Choi"], ["California", "52", "4", "Dudley Hart"], ["California", "68", "2", "Sergio Garc\u00eda"], ["California", "69", "6", "Billy Mayfair"], ["Connecticut", "43", "9", "P\u00e1draig Harrington"], ["Connecticut", "67", "10", "Franklin Langham"], ["Delaware", "53", "5", "Jeff Maggert"], ["Florida", "50", "7", "Stewart Cink"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Wzr2o_10.png", "TableImg_Eensz_10.png"], "original_data_index": 476, "original_sql": "SELECT born_state, age, head_ID, name FROM head WHERE \"head_ID\" >= 3 OR name = \"Stewart Cink\" OR born_state <> \"Delaware\" OR \"age\" < 43.0 EXCEPT SELECT born_state, age, head_ID, name FROM head WHERE \"age\" <> 43.0 AND born_state = \"California\" AND \"head_ID\" > 6"} {"question": "Could you list the document IDs from the circulation history where the employee ID is less than 1, combined with the document IDs from the documents mailed table where the document ID is less than or equal to 10?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3], "data": [["2"], ["4"], ["7"], ["10"]]}, "table_names": "['Circulation_History' 'Documents_Mailed']", "table_image_ids": ["TableImg_Qcyxv_4.png", "TableImg_P4xta_14.png"], "original_data_index": 478, "original_sql": "SELECT document_id FROM Circulation_History WHERE \"employee_id\" < 1 UNION SELECT document_id FROM Documents_Mailed WHERE \"document_id\" <= 10"} {"question": "What are the total Department IDs, total rankings, and budgets in billions for departments with more than 4487 employees and a name other than \"Defense\", excluding the total Department IDs, total rankings, and budgets in billions for departments that either have a Department ID not equal to 11 and a ranking not equal to 8, or have 67000 employees and a name other than \"Commerce\", or have a budget over 439.3 billion?", "answer": {"columns": ["SUM(Department_ID)", "SUM(Ranking)", "Budget_in_Billions"], "index": [0], "data": [["104", "104", "9.96"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_9nktj_15.png", "TableImg_Hqe38_15.png"], "original_data_index": 479, "original_sql": "SELECT SUM(Department_ID), SUM(Ranking), Budget_in_Billions FROM department WHERE \"Num_Employees\" > 4487.0 AND Name != \"Defense\" EXCEPT SELECT SUM(Department_ID), SUM(Ranking), Budget_in_Billions FROM department WHERE \"Department_ID\" != 11 AND \"Ranking\" <> 8 OR \"Num_Employees\" = 67000.0 AND Name != \"Commerce\" OR \"Budget_in_Billions\" > 439.3"} {"question": "Can you give me a list of driver IDs, including driver ID 8 from the driver table and any driver IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cz0q3_12.png", "TableImg_X2ldx_5.png"], "original_data_index": 477, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you show me the address, city, membership amount, earliest open year, branch ID, and name for all branches, excluding Brooke Greville, where the branch ID is 1 or higher or the opening year isn't 2015, but then remove any branches that have a membership amount of 11 and are located on Abbott Street?", "answer": {"columns": ["Address_road", "City", "membership_amount", "MIN(Open_year)", "Branch_ID", "Name"], "index": [0], "data": [["Valleys Place", "London", "112", "2001", "1", "Alexandre"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_7calt_8.png", "TableImg_C0czj_8.png"], "original_data_index": 480, "original_sql": "SELECT Address_road, City, membership_amount, MIN(Open_year), Branch_ID, Name FROM branch WHERE Name != \"Brooke Greville\" AND \"Branch_ID\" >= 1 OR Open_year <> \"2015\" EXCEPT SELECT Address_road, City, membership_amount, MIN(Open_year), Branch_ID, Name FROM branch WHERE membership_amount = \"11\" AND Address_road = \"Abbott Street\""} {"question": "Can you give me a list of driver IDs that are less than 7 and also not equal to 3, considering only the unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_45oe7_12.png", "TableImg_Lu6l6_5.png"], "original_data_index": 484, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are less than 4 and also appear in the list of school bus driver IDs, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K1h41_12.png", "TableImg_Dg9a1_5.png"], "original_data_index": 481, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not 11 with those from the school bus table that are 10 or less, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6o7zg_12.png", "TableImg_L8s0j_5.png"], "original_data_index": 482, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of staff IDs from the Lessons table where the staff ID is 11 or higher, or the lesson status is 'Completed', or the vehicle ID is less than 2 and the customer ID is 6 or higher, combined with a list of staff IDs from the Staff table where the date of birth is September 24, 1996 at 9:51:42 AM, or the middle name is not 'Sherwood', or the staff ID is less than 5 and the date they joined is not June 4, 2017 at 2:30:41 PM and the date they left is March 9, 2018 at 5:08:35 AM?", "answer": {"columns": ["staff_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25], "data": [["14"], ["11"], ["1"], ["3"], ["4"], ["11"], ["8"], ["4"], ["15"], ["12"], ["12"], ["11"], ["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['Lessons' 'Staff']", "table_image_ids": ["TableImg_Slaks_15.png", "TableImg_Qhb4u_15.png"], "original_data_index": 483, "original_sql": "SELECT staff_id FROM Lessons WHERE \"staff_id\" >= 11 OR lesson_status_code = \"Completed\" OR \"vehicle_id\" < 2 AND \"customer_id\" >= 6 UNION ALL SELECT staff_id FROM Staff WHERE date_of_birth = \"1996-09-24 09:51:42\" OR middle_name != \"Sherwood\" OR \"staff_id\" < 5 AND date_joined_staff <> \"2017-06-04 14:30:41\" AND date_left_staff = \"2018-03-09 05:08:35\""} {"question": "Can you give me a list of driver IDs that are less than 5, excluding any driver IDs that are 10 or greater and are also associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iqaz8_12.png", "TableImg_Sme69_5.png"], "original_data_index": 485, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 7, excluding those driver IDs greater than 7 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rjotj_12.png", "TableImg_Blsjl_5.png"], "original_data_index": 489, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the ranks from the match results where either the gold is 13 or less, or the rank is not 3, combined with the ranks where either the big silver is greater than 14 or the points are greater than 139?", "answer": {"columns": ["Rank"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Q0z2i_6.png", "TableImg_T8rth_6.png"], "original_data_index": 487, "original_sql": "SELECT Rank FROM match_result WHERE \"Gold\" <= 13 OR \"Rank\" <> 3 UNION SELECT Rank FROM match_result WHERE \"Big_Silver\" > 14 OR \"Points\" > 139"} {"question": "Can you give me the template type code that is \"PPT\" and also has templates with effective dates not equal to \"2005-11-12 07:09:48\", version numbers not equal to 5, a template type code of \"PP\", and effective to dates not equal to \"1992-05-02 20:06:11\"?", "answer": {"columns": ["Template_Type_Code"], "index": [0], "data": [["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_Q27aw_5.png", "TableImg_Pjt7n_20.png"], "original_data_index": 488, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code = \"PPT\" INTERSECT SELECT Template_Type_Code FROM Templates WHERE Date_Effective_From <> \"2005-11-12 07:09:48\" OR \"Version_Number\" <> 5 AND Template_Type_Code = \"PP\" AND Date_Effective_To != \"1992-05-02 20:06:11\""} {"question": "Can you give me the minimum party, delegate, maximum committee, counties represented, average district, and the count of election IDs from the election table, combining two sets of results? The first set should include records where counties represented is not \"12.1 12A\", or election ID is not 3 and first elected is not 1994, or the committee is not \"Environmental Matters\", or the party is greater than 1 and the district is less than 1, or the delegate is \"Malone, James E. Jr. James E. Malone, Jr.\". The second set should include records where the committee is not \"Environmental Matters\" and first elected is not 1994, or the delegate is not \"Bobo, Elizabeth Elizabeth Bobo\", or the election ID is greater than 2 and the district is less than or equal to 3, or the party is less than or equal to 3.", "answer": {"columns": ["MIN(Party)", "Delegate", "MAX(Committee)", "Counties_Represented", "AVG(District)", "COUNT(Election_ID)"], "index": [0, 1], "data": [["1", "Turner, Frank S. Frank S. Turner", "Ways and Means", "13", "2.125", "8"], ["1", "Turner, Frank S. Frank S. Turner", "Ways and Means", "13", "2.125", "8"]]}, "table_names": "['election' 'election']", "table_image_ids": ["TableImg_Aoep1_8.png", "TableImg_Kmc6y_8.png"], "original_data_index": 486, "original_sql": "SELECT MIN(Party), Delegate, MAX(Committee), Counties_Represented, AVG(District), COUNT(Election_ID) FROM election WHERE Counties_Represented <> \"12.1 12A\" OR \"Election_ID\" != 3 AND \"First_Elected\" <> 1994.0 OR Committee <> \"Environmental Matters\" OR \"Party\" > 1 AND \"District\" < 1 OR Delegate = \"Malone, James E. Jr. James E. Malone, Jr.\" UNION ALL SELECT MIN(Party), Delegate, MAX(Committee), Counties_Represented, AVG(District), COUNT(Election_ID) FROM election WHERE Committee != \"Environmental Matters\" AND \"First_Elected\" != 1994.0 OR Delegate <> \"Bobo, Elizabeth Elizabeth Bobo\" OR \"Election_ID\" > 2 AND \"District\" <= 3 OR \"Party\" <= 3"} {"question": "Can you give me the driver ID of drivers with ID 10, excluding the driver IDs of school bus drivers with IDs up to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1axda_12.png", "TableImg_Ek0ez_5.png"], "original_data_index": 490, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 1, and those from the school_bus table that are less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iujru_12.png", "TableImg_4uqkg_5.png"], "original_data_index": 491, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of names and IDs from airports that aren't BGO, combined with the names and IDs from operating companies where the ID isn't 5 or the Group Equity Shareholding is 100 or more?", "answer": {"columns": ["name", "id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["Air China", "1"], ["Air China Cargo", "2"], ["Air Hong Kong", "3"], ["Akureyri Airport", "1"], ["Baltimore-Washington Airport", "4"], ["Billund Airport", "7"], ["CLS Catering Services Limited", "14"], ["Cathay Pacific Cargo", "5"], ["Cathay Pacific Catering Services (HK) Limited", "6"], ["Cathay Pacific Holidays", "8"], ["Cathay Pacific Services Limited", "7"], ["China Pacific Laundry Services", "12"], ["Dragonair", "4"], ["Dragonair Holidays", "9"], ["El Prat Airport", "5"], ["Hong Kong Airport Services", "10"], ["Logan International Airport", "8"], ["National Airport", "9"], ["Schiphol Airport", "2"], ["Ted Stevens Airport", "3"], ["VN/CX Catering Services Limited", "13"], ["Vogue Laundry Service Limited", "11"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Qbvor_9.png", "TableImg_9pj96_14.png"], "original_data_index": 493, "original_sql": "SELECT name, id FROM airport WHERE IATA != \"BGO\" UNION SELECT name, id FROM operate_company WHERE \"id\" != 5 OR \"Group_Equity_Shareholding\" >= 100.0"} {"question": "Can you give me a list of employee IDs from the evaluation table where the bonus is greater than 2900 and the year awarded is not 2016 and the employee ID is 10, combined with a list of employee IDs from the hiring table where the start date is not 2011 and the shop ID is not 1, or the employee is not full-time?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['evaluation' 'hiring']", "table_image_ids": ["TableImg_Lmt8p_6.png", "TableImg_0qn5g_7.png"], "original_data_index": 492, "original_sql": "SELECT Employee_ID FROM evaluation WHERE \"Bonus\" > 2900.0 AND Year_awarded != \"2016\" AND Employee_ID = \"10\" UNION ALL SELECT Employee_ID FROM hiring WHERE Start_from <> \"2011\" AND \"Shop_ID\" <> 1 OR Is_full_time <> \"F\""} {"question": "Can you list the aircraft IDs from the aircraft table that are less than 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M0vb9_5.png", "TableImg_Dyc8x_4.png"], "original_data_index": 496, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Can you give me the IDs of drivers with IDs less than or equal to 2, excluding those driver IDs that are also less than 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jsmsg_12.png", "TableImg_511k7_5.png"], "original_data_index": 494, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 10, and those from the school bus table with driver IDs greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rluri_12.png", "TableImg_Pfn6q_5.png"], "original_data_index": 497, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me a list of employee IDs that either match ID 567354612 in the certificate list or are less than 548977562 and belong to someone named Linda Davis in the employee list?", "answer": {"columns": ["eid"], "index": [0, 1], "data": [["489456522"], ["567354612"]]}, "table_names": "['certificate' 'employee']", "table_image_ids": ["TableImg_R3fwd_69.png", "TableImg_8izi1_31.png"], "original_data_index": 495, "original_sql": "SELECT eid FROM certificate WHERE \"eid\" = 567354612 UNION SELECT eid FROM employee WHERE \"eid\" < 548977562 AND name = \"Linda Davis\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 6, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E2qwv_12.png", "TableImg_Bow7a_5.png"], "original_data_index": 498, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the driver ID of drivers with ID 10, excluding the driver IDs of school bus drivers with IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_45bbh_12.png", "TableImg_Gke7n_5.png"], "original_data_index": 499, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What aircraft IDs are both greater than 2 in the aircraft table and greater than or equal to 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ddhxb_5.png", "TableImg_8i22y_4.png"], "original_data_index": 501, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs, making sure to include all driver IDs from the driver table that are not 4, and all driver IDs from the school_bus table that are less than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ykelz_12.png", "TableImg_Ws4cp_5.png"], "original_data_index": 502, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of member IDs from the member table, excluding any member IDs that are also found in the membership_register_branch table, where the member IDs in the member table have a card number that's not LCB7 or a member ID less than or equal to 1 and a hometown that's not Fort Campbell, Kentucky, and the member IDs in the membership_register_branch table are those that are not 6 or have a branch ID of 5?", "answer": {"columns": ["Member_ID"], "index": [0, 1], "data": [["6"], ["10"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_98ma2_10.png", "TableImg_Zbv1a_8.png"], "original_data_index": 500, "original_sql": "SELECT Member_ID FROM member WHERE Card_Number <> \"LCB7\" OR \"Member_ID\" <= 1 AND Hometown != \"Fort Campbell, Kentucky\" EXCEPT SELECT Member_ID FROM membership_register_branch WHERE \"Member_ID\" <> 6 OR Branch_ID = \"5\""} {"question": "Which aircraft IDs, excluding aircraft ID 3, are also aircraft IDs that are greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fhyk4_5.png", "TableImg_Ja0zt_4.png"], "original_data_index": 505, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs, excluding driver ID 4, are not also driver IDs in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_35o2n_12.png", "TableImg_F7yw7_5.png"], "original_data_index": 504, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are 3 or less from the driver table, excluding any driver IDs that are 4 or less from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_I569u_12.png", "TableImg_Ib94s_5.png"], "original_data_index": 506, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than 4, excluding any driver IDs from the school_bus table that are greater than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mj8j4_12.png", "TableImg_7kce4_5.png"], "original_data_index": 503, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of driver IDs that are less than 5, excluding any driver IDs that are not equal to 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cq7ab_12.png", "TableImg_Z5cgn_5.png"], "original_data_index": 509, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs that are not 10 and also are less than or equal to 7, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yov2b_12.png", "TableImg_7abe2_5.png"], "original_data_index": 507, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me the IDs of drivers, with IDs greater than 7, excluding those driver IDs that are also in the school bus list and are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5zgsd_12.png", "TableImg_Pyed3_5.png"], "original_data_index": 508, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you tell me the largest company name from the company table, considering companies that are not in the oil and gas industry or don't have sales of 117.6 billion, or have profits less than or equal to 11.1 billion and market value less than or equal to 164.3 billion, or have a company ID less than 19, or don't have assets of 319.4 billion, or whose name is not Total, combined with the largest name from the people table, considering people with a People ID greater than or equal to 7, or who didn't graduate from Oklahoma and are 34 or younger, or whose name is not Brad Lohaus, or who are not from the United States?", "answer": {"columns": ["MAX(Name)"], "index": [0, 1], "data": [["Tom Sheehey"], ["Wells Fargo"]]}, "table_names": "['company' 'people']", "table_image_ids": ["TableImg_L66ra_19.png", "TableImg_Sdttk_7.png"], "original_data_index": 510, "original_sql": "SELECT MAX(Name) FROM company WHERE Industry <> \"Oil and gas\" AND \"Sales_in_Billion\" != 117.6 OR \"Profits_in_Billion\" <= 11.1 AND \"Market_Value_in_Billion\" <= 164.3 OR \"Company_ID\" < 19.0 OR \"Assets_in_Billion\" <> 319.4 OR Name <> \"Total\" UNION SELECT MAX(Name) FROM people WHERE \"People_ID\" >= 7 OR Graduation_College <> \"Oklahoma\" AND \"Age\" <= 34 OR Name != \"Brad Lohaus\" OR Nationality != \"United States\""} {"question": "Can you list all the club IDs from the club table where the ID is greater than 1, and also include all the club IDs from the match result table where either the small silver value is not 9, or the points are less than or equal to 139, the club ID is not 4, the gold value is greater than or equal to 13, and the bronze value is not 10?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["2"], ["3"], ["4"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_Gu04q_6.png", "TableImg_Jof68_6.png"], "original_data_index": 511, "original_sql": "SELECT Club_ID FROM club WHERE \"Club_ID\" > 1 UNION ALL SELECT Club_ID FROM match_result WHERE \"Small_Silver\" <> 9 OR \"Points\" <= 139 AND \"Club_ID\" != 4 AND \"Gold\" >= 13 AND \"Bronze\" != 10"} {"question": "Which driver IDs are equal to 6 in the driver table, but not greater than or equal to 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ln441_12.png", "TableImg_Ttwz5_5.png"], "original_data_index": 513, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you list the draft numbers from the Draft Copies table where the draft number is 12, or the document ID is less than or equal to 2 and the copy number is 15, combined with draft numbers where the draft number is not 2, or the document ID is not 2 and the copy number is less than 15?", "answer": {"columns": ["draft_number"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["8"], ["9"], ["12"], ["17"], ["20"]]}, "table_names": "['Draft_Copies' 'Draft_Copies']", "table_image_ids": ["TableImg_Xjnqe_8.png", "TableImg_U8rmw_8.png"], "original_data_index": 515, "original_sql": "SELECT draft_number FROM Draft_Copies WHERE \"draft_number\" = 12 OR \"document_id\" <= 2 AND \"copy_number\" = 15 UNION SELECT draft_number FROM Draft_Copies WHERE \"draft_number\" <> 2 OR \"document_id\" != 2 AND \"copy_number\" < 15"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, that appear in the driver table but not in the school_bus table, where you also exclude driver ID 3 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tsa4g_12.png", "TableImg_Jxwbw_5.png"], "original_data_index": 514, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Could you give me the customer IDs that appear both in a list of customers who made payments where either the payment wasn't made at \"2018-03-18 13:48:13\", the customer ID wasn't 2, or the payment method wasn't \"Direct Debit\", and in a list of customers who had lessons where either the vehicle ID was greater than 2, the lesson ID was less than or equal to 13, the staff ID was greater than or equal to 4, or the customer ID was 9 and the lesson date was \"2018-02-28 10:55:36\" and the lesson time wasn't \"4\"?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5], "data": [["2"], ["3"], ["6"], ["10"], ["11"], ["13"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_G0qa9_15.png", "TableImg_42wbc_15.png"], "original_data_index": 512, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE datetime_payment != \"2018-03-18 13:48:13\" OR \"customer_id\" != 2 OR payment_method_code != \"Direct Debit\" INTERSECT SELECT customer_id FROM Lessons WHERE \"vehicle_id\" > 2 OR \"lesson_id\" <= 13 OR \"staff_id\" >= 4 OR \"customer_id\" = 9 AND lesson_date = \"2018-02-28 10:55:36\" AND lesson_time != \"4\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 5 from the driver table and excluding driver ID 7 from the school_bus table, combining the results and removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_21was_12.png", "TableImg_Nfimi_5.png"], "original_data_index": 516, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, and also list the aircraft IDs from the airport_aircraft table that are less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jbstb_5.png", "TableImg_Rbm7k_4.png"], "original_data_index": 518, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only aircraft IDs greater than or equal to 3, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Baw2a_5.png", "TableImg_2kpde_4.png"], "original_data_index": 519, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Can you give me a list of driver IDs that are 11 or less from the driver table, excluding any driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mzi53_12.png", "TableImg_Epgz0_5.png"], "original_data_index": 517, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Which driver IDs are both greater than 2 and used by school buses with driver IDs less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Chvrf_12.png", "TableImg_P10cg_5.png"], "original_data_index": 521, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 6, and those from the school_bus table with driver IDs of 10 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kszff_12.png", "TableImg_Co9hs_5.png"], "original_data_index": 520, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me the IDs of features that are both greater than 2 in the Other_Available_Features table and also have a property feature description of \"quo\" or a property ID less than or equal to 6 or a feature ID greater than or equal to 4 in the Other_Property_Features table?", "answer": {"columns": ["feature_id"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_2krve_3.png", "TableImg_Kg6pm_15.png"], "original_data_index": 523, "original_sql": "SELECT feature_id FROM Other_Available_Features WHERE \"feature_id\" > 2 INTERSECT SELECT feature_id FROM Other_Property_Features WHERE property_feature_description = \"quo\" OR \"property_id\" <= 6 OR \"feature_id\" >= 4"} {"question": "Could you give me the Shop ID, Name, and District of shops that meet both of these conditions: either they're not in Magnum Areena, or Job Dragtsma is the manager, or they don't have 6000 products, or their name isn't FC KooTeePee, or their Shop ID is 4 or less, or they're located in Jakobstad; and also, they're either not in Magnum Areena or their Shop ID isn't 4?", "answer": {"columns": ["Shop_ID", "Name", "District"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1", "FC Haka", "Tehtaan kentt\u00e4"], ["2", "HJK", "Finnair Stadium"], ["3", "FC Honka", "Tapiolan Urheilupuisto"], ["4", "FC Inter", "Veritas Stadion"], ["5", "FF Jaro", "Jakobstads Centralplan"], ["6", "FC KooTeePee", "Arto Tolsa Areena"], ["7", "KuPS", "Magnum Areena"], ["8", "FC Lahti", "Lahden Stadion"], ["9", "IFK Mariehamn", "Wikl\u00f6f Holding Arena"]]}, "table_names": "['shop' 'shop']", "table_image_ids": ["TableImg_Ltbxs_9.png", "TableImg_9qr9q_9.png"], "original_data_index": 522, "original_sql": "SELECT Shop_ID, Name, District FROM shop WHERE District <> \"Magnum Areena\" OR Manager_name = \"Job Dragtsma\" OR \"Number_products\" <> 6000 OR Name != \"FC KooTeePee\" OR \"Shop_ID\" <= 4 OR Location = \"Jakobstad\" INTERSECT SELECT Shop_ID, Name, District FROM shop WHERE District != \"Magnum Areena\" OR \"Shop_ID\" != 4"} {"question": "Can you give me the driver IDs that are both less than or equal to 9 in the driver table and equal to 9 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cgdk8_12.png", "TableImg_Oqrrk_5.png"], "original_data_index": 525, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the aircraft IDs, up to and including 5, that appear in the aircraft table but not in the airport_aircraft table, considering only the aircraft IDs up to and including 2 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N1hcm_5.png", "TableImg_0ggto_4.png"], "original_data_index": 524, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which aircraft IDs are both less than or equal to 5 when considering all aircraft, and equal to 1 when considering aircraft at airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qk4ch_5.png", "TableImg_P0b7x_4.png"], "original_data_index": 527, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Could you list the driver IDs that are less than 11, excluding those driver IDs that are also less than or equal to 9 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R6yzw_12.png", "TableImg_Ai42x_5.png"], "original_data_index": 526, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 9 or greater, and also including driver IDs from the school bus table where the ID is exactly 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N9kbm_12.png", "TableImg_Jodr6_5.png"], "original_data_index": 529, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of Driver IDs, including those that are exactly 12 from the driver table, and those that are 10 or greater from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4gsxk_12.png", "TableImg_Uypsq_5.png"], "original_data_index": 528, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs are both less than or equal to 8 in the driver table and greater than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dirpn_12.png", "TableImg_2a9bv_5.png"], "original_data_index": 533, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you list all the aircraft IDs, including those from the aircraft table where the ID is 1 or greater, and those from the airport_aircraft table where the ID is not 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Utrkx_5.png", "TableImg_Whi18_4.png"], "original_data_index": 532, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list the aircraft IDs, up to and including 5, that appear in the aircraft table, excluding those aircraft IDs less than 5 that also appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_545h7_5.png", "TableImg_B1rx7_4.png"], "original_data_index": 531, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Could you give me a list of club IDs that either belong to club number 3 but didn't start in the year 2000, or are not located in the USA, combined with a list of club IDs from match results where the rank is 1, the club ID is less than 3, and the bronze score is no more than 9?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_Ymxas_6.png", "TableImg_Ahayx_6.png"], "original_data_index": 530, "original_sql": "SELECT Club_ID FROM club WHERE \"Club_ID\" = 3 AND \"Start_year\" <> 2000 OR Region != \"USA\" UNION SELECT Club_ID FROM match_result WHERE \"Rank\" = 1 AND \"Club_ID\" < 3 AND \"Bronze\" <= 9"} {"question": "Which aircraft have an ID of 3, but are not aircraft that have an ID less than 3 and are associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Eog7j_5.png", "TableImg_Evjki_4.png"], "original_data_index": 536, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 5 with those from the school bus table where the ID is greater than 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yhl1z_12.png", "TableImg_4xabi_5.png"], "original_data_index": 535, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of customer IDs from the Customer_Payments table where the customer ID is 14 or greater, combined with a list of customer IDs from the Customers table where the amount outstanding is greater than 9447 or the cell phone number is \"00659133944\"?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2], "data": [["5"], ["8"], ["14"]]}, "table_names": "['Customer_Payments' 'Customers']", "table_image_ids": ["TableImg_Cbozl_15.png", "TableImg_Nkmmk_15.png"], "original_data_index": 537, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"customer_id\" >= 14 UNION SELECT customer_id FROM Customers WHERE \"amount_outstanding\" > 9447.0 OR cell_mobile_phone_number = \"00659133944\""} {"question": "Could you give me a list of People IDs that either belong to people who are at least 196 cm tall or are Russian but not named Sergey Grankin and have a People ID of 1 or less, combined with a list of People IDs that belong to poker players who have either achieved a best finish of 1 or better, or have made 19 final tables, or whose People ID is not 6, Money Rank is not 154, Earnings are not 142800, and Poker Player ID is less than 5?", "answer": {"columns": ["People_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["7"]]}, "table_names": "['people' 'poker_player']", "table_image_ids": ["TableImg_Cctew_7.png", "TableImg_23eha_5.png"], "original_data_index": 534, "original_sql": "SELECT People_ID FROM people WHERE \"Height\" >= 196.0 OR Nationality = \"Russia\" AND Name != \"Sergey Grankin\" AND \"People_ID\" <= 1 UNION SELECT People_ID FROM poker_player WHERE \"Best_Finish\" >= 1.0 OR \"Final_Table_Made\" = 19.0 OR \"People_ID\" <> 6 AND \"Money_Rank\" <> 154.0 AND \"Earnings\" != 142800.0 AND \"Poker_Player_ID\" < 5"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 1, and those from the school bus table where the ID is not 3, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ez80x_12.png", "TableImg_0oym5_5.png"], "original_data_index": 538, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 5, and those from the school bus table where the ID is less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xawv7_12.png", "TableImg_B68n9_5.png"], "original_data_index": 541, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "What is the highest template type code, excluding those with the description \"Book\" or the code \"BK\", and also the highest template type code from templates that have no details?", "answer": {"columns": ["MAX(Template_Type_Code)"], "index": [0], "data": [["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_L3544_5.png", "TableImg_Jqh9e_20.png"], "original_data_index": 540, "original_sql": "SELECT MAX(Template_Type_Code) FROM Ref_Template_Types WHERE Template_Type_Description <> \"Book\" OR Template_Type_Code != \"BK\" UNION SELECT MAX(Template_Type_Code) FROM Templates WHERE Template_Details = \"\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 4 from the driver table and driver ID 3 from the school_bus table, making sure to list each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_37ufb_12.png", "TableImg_X7s0d_5.png"], "original_data_index": 539, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me the lesson ID, customer ID, lesson time, vehicle ID, staff ID, lesson status code, lesson date, and price for all lessons where the price is greater than 223, the lesson status is cancelled, or the customer ID is not 11, combined with all lessons where the vehicle ID is 1, the customer ID is greater than 10, the lesson ID is not 11 and the lesson date is March 6th, 2018, the price is not 277, the lesson time is 9, or the staff ID is not 4 and the lesson status is not cancelled?", "answer": {"columns": ["lesson_id", "customer_id", "lesson_time", "vehicle_id", "staff_id", "lesson_status_code", "lesson_date", "price"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24], "data": [["1", "6", "5", "3", "8", "Cancelled", "2018-02-28 10:55:36", "199"], ["2", "8", "6", "3", "14", "Cancelled", "2018-03-07 16:12:36", "167"], ["3", "6", "3", "2", "11", "Cancelled", "2018-03-03 15:10:16", "352"], ["4", "8", "9", "2", "1", "Completed", "2018-03-17 19:02:07", "306"], ["5", "10", "9", "2", "3", "Completed", "2018-03-12 00:41:59", "295"], ["6", "5", "6", "2", "4", "Completed", "2018-03-07 22:03:49", "492"], ["7", "9", "9", "1", "11", "Cancelled", "2018-03-08 16:05:05", "231"], ["8", "3", "2", "2", "8", "Completed", "2018-03-21 06:48:45", "277"], ["9", "2", "9", "2", "4", "Completed", "2018-03-05 20:05:33", "456"], ["10", "2", "4", "2", "5", "Cancelled", "2018-02-26 02:36:35", "495"], ["11", "10", "2", "1", "15", "Cancelled", "2018-03-04 06:55:46", "223"], ["12", "11", "2", "2", "12", "Cancelled", "2018-03-16 07:08:52", "184"], ["13", "13", "5", "1", "12", "Completed", "2018-03-05 18:05:31", "446"], ["14", "11", "5", "1", "11", "Cancelled", "2018-03-07 11:53:32", "483"], ["15", "3", "9", "1", "8", "Cancelled", "2018-03-06 21:48:51", "340"], ["4", "8", "9", "2", "1", "Completed", "2018-03-17 19:02:07", "306"], ["5", "10", "9", "2", "3", "Completed", "2018-03-12 00:41:59", "295"], ["7", "9", "9", "1", "11", "Cancelled", "2018-03-08 16:05:05", "231"], ["8", "3", "2", "2", "8", "Completed", "2018-03-21 06:48:45", "277"], ["9", "2", "9", "2", "4", "Completed", "2018-03-05 20:05:33", "456"], ["11", "10", "2", "1", "15", "Cancelled", "2018-03-04 06:55:46", "223"], ["12", "11", "2", "2", "12", "Cancelled", "2018-03-16 07:08:52", "184"], ["13", "13", "5", "1", "12", "Completed", "2018-03-05 18:05:31", "446"], ["14", "11", "5", "1", "11", "Cancelled", "2018-03-07 11:53:32", "483"], ["15", "3", "9", "1", "8", "Cancelled", "2018-03-06 21:48:51", "340"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_2rcga_15.png", "TableImg_Ej8h0_15.png"], "original_data_index": 542, "original_sql": "SELECT lesson_id, customer_id, lesson_time, vehicle_id, staff_id, lesson_status_code, lesson_date, price FROM Lessons WHERE \"price\" > 223.0 OR lesson_status_code = \"Cancelled\" OR \"customer_id\" != 11 UNION ALL SELECT lesson_id, customer_id, lesson_time, vehicle_id, staff_id, lesson_status_code, lesson_date, price FROM Lessons WHERE \"vehicle_id\" = 1 OR \"customer_id\" > 10 OR \"lesson_id\" <> 11 AND lesson_date = \"2018-03-06 21:48:51\" AND \"price\" != 277.0 OR lesson_time = \"9\" OR \"staff_id\" <> 4 AND lesson_status_code <> \"Cancelled\""} {"question": "Which driver IDs, excluding driver ID 11, are also driver ID 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cc1r1_12.png", "TableImg_Ckv4o_5.png"], "original_data_index": 543, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What aircraft IDs are greater than 2, considering only aircraft IDs that appear more than once, excluding any aircraft IDs that are not equal to 2 and appear in the airport aircraft table more than once?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Iy15d_5.png", "TableImg_Trxi6_4.png"], "original_data_index": 544, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list the aircraft IDs, where each ID is at least 3, excluding any aircraft IDs that also appear in the airport aircraft table where the ID is not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vhqlh_5.png", "TableImg_7exrt_4.png"], "original_data_index": 546, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 12, and those from the school bus table where the ID is not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ukh21_12.png", "TableImg_Cwebu_5.png"], "original_data_index": 545, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are greater than 9, excluding any driver IDs that are also equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gqiwj_12.png", "TableImg_3co63_5.png"], "original_data_index": 550, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the Model IDs that are both less than or equal to 3, and also either equal to 14 or have a Maker that is not 17?", "answer": {"columns": ["ModelId"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Fvt9b_36.png", "TableImg_3e275_36.png"], "original_data_index": 549, "original_sql": "SELECT ModelId FROM model_list WHERE \"ModelId\" <= 3 INTERSECT SELECT ModelId FROM model_list WHERE \"ModelId\" = 14 OR \"Maker\" <> 17"} {"question": "Can you give me a list of driver IDs, combining those from the driver table where the ID is not 2, and those from the school bus table where the ID is 3 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8umcd_12.png", "TableImg_Ba1gm_5.png"], "original_data_index": 548, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "How many books are there for each price, considering only books titled \"The Dome: Ground Zero\" or those not published in August 2008, or where the price isn't 2,000,000, or those not written by Garth Ennis and with a publication ID greater than 5?", "answer": {"columns": ["COUNT(T1.Book_ID)", "Price"], "index": [0], "data": [["7", "15000000"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_9m0lq_10.png", "TableImg_4mg8t_7.png"], "original_data_index": 547, "original_sql": "SELECT COUNT(T1.Book_ID), T2.Price FROM book as T1 JOIN publication as T2 ON T1.Book_ID = T2.Book_ID WHERE Title = \"The Dome: Ground Zero\" OR Publication_Date <> \"August 2008\" OR \"Price\" <> 2000000.0 OR Writer <> \"Garth Ennis\" AND \"Publication_ID\" > 5"} {"question": "Can you list the aircraft IDs, first including those from the aircraft table that are not equal to 1, and then adding those from the airport_aircraft table that are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rjexo_5.png", "TableImg_1au6d_4.png"], "original_data_index": 551, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Which driver IDs, excluding driver ID 12, are also driver ID 10 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_21s9d_12.png", "TableImg_Zmzo1_5.png"], "original_data_index": 553, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which aircraft have an ID of 3 and are also associated with airports that do not have an aircraft ID of 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Dto4y_5.png", "TableImg_Agi4y_4.png"], "original_data_index": 552, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs that are less than or equal to 2, excluding any driver IDs that are also in a list of driver IDs less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0t8e3_12.png", "TableImg_Evf8r_5.png"], "original_data_index": 554, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are greater than 2, excluding those driver IDs that are less than 7 and also appear in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lqwi8_12.png", "TableImg_5blld_5.png"], "original_data_index": 555, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the highest People ID from the employment table for people who worked in year 1, combined with the highest People ID from the people table for those who didn't graduate from Wisconsin\u2013Stevens Point or are not from the United States?", "answer": {"columns": ["MAX(People_ID)"], "index": [0, 1], "data": [["4"], ["7"]]}, "table_names": "['employment' 'people']", "table_image_ids": ["TableImg_Mlat2_5.png", "TableImg_Xx1gu_7.png"], "original_data_index": 556, "original_sql": "SELECT MAX(People_ID) FROM employment WHERE \"Year_working\" = 1 UNION ALL SELECT MAX(People_ID) FROM people WHERE Graduation_College != \"Wisconsin\u2013Stevens Point\" OR Nationality != \"United States\""} {"question": "Which product IDs are associated with stores having an ID of 3 or greater, or are product ID 1, but are also associated with stores having an ID of 3 or greater, excluding product ID 1?", "answer": {"columns": ["Product_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["6"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_Gdxd6_15.png", "TableImg_Ksh2j_15.png"], "original_data_index": 558, "original_sql": "SELECT Product_ID FROM store_product WHERE \"Store_ID\" >= 3 OR \"Product_ID\" = 1 INTERSECT SELECT Product_ID FROM store_product WHERE \"Product_ID\" != 1 AND \"Store_ID\" >= 3"} {"question": "Can you list the Branch ID, total pounds, and year for all purchases where the total pounds is less than or equal to 343.76, or the year is not 2018, or the Branch ID is 3, excluding any purchases where the total pounds is greater than or equal to 988.09?", "answer": {"columns": ["Branch_ID", "Total_pounds", "Year"], "index": [0, 1, 2, 3, 4], "data": [["1", "20.99", "2018"], ["3", "430.29", "2018"], ["5", "321.13", "2018"], ["5", "343.76", "2018"], ["6", "232.09", "2018"]]}, "table_names": "['purchase' 'purchase']", "table_image_ids": ["TableImg_Ua3gf_8.png", "TableImg_L2jf2_8.png"], "original_data_index": 557, "original_sql": "SELECT Branch_ID, Total_pounds, Year FROM purchase WHERE \"Total_pounds\" <= 343.76 OR Year <> \"2018\" OR Branch_ID = \"3\" EXCEPT SELECT Branch_ID, Total_pounds, Year FROM purchase WHERE \"Total_pounds\" >= 988.09"} {"question": "How many Big Silver counts are there where Small Silver is not 6, Points is 168, and Club ID is not 5, combined with the number of Big Silver counts where Rank is less than 3 or Gold is less than or equal to 12 and Club ID is less than or equal to 1?", "answer": {"columns": ["COUNT(Big_Silver)"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['match_result' 'match_result']", "table_image_ids": ["TableImg_Yyg2u_6.png", "TableImg_Qb0tl_6.png"], "original_data_index": 559, "original_sql": "SELECT COUNT(Big_Silver) FROM match_result WHERE \"Small_Silver\" != 6 AND \"Points\" = 168 AND \"Club_ID\" <> 5 UNION SELECT COUNT(Big_Silver) FROM match_result WHERE \"Rank\" < 3 OR \"Gold\" <= 12 AND \"Club_ID\" <= 1"} {"question": "Can you list all the aircraft IDs from the aircraft table, excluding those with ID 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9gkqh_5.png", "TableImg_Ooz24_4.png"], "original_data_index": 560, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Could you give me the document IDs and draft numbers that appear in both the circulation history where the employee ID is less than 1, the copy number is less than 4, the draft number is not 2, or the document ID is not 20, and in the document drafts where the document ID is greater than 12 or the draft number is less than or equal to 20?", "answer": {"columns": ["document_id", "draft_number"], "index": [0, 1, 2, 3], "data": [["1", "2"], ["2", "1"], ["10", "20"], ["20", "17"]]}, "table_names": "['Circulation_History' 'Document_Drafts']", "table_image_ids": ["TableImg_Riird_4.png", "TableImg_Nfotq_15.png"], "original_data_index": 561, "original_sql": "SELECT document_id, draft_number FROM Circulation_History WHERE \"employee_id\" < 1 AND \"copy_number\" < 4 OR \"draft_number\" != 2 OR \"document_id\" != 20 INTERSECT SELECT document_id, draft_number FROM Document_Drafts WHERE \"document_id\" > 12 OR \"draft_number\" <= 20"} {"question": "How many of each type of property feature, excluding those described as \"odio\", \"illo\", or associated with property ID 6, and including those described as \"Swimming Pool.\", are associated with each property? Also, don't count \"Pool\" as a feature name.", "answer": {"columns": ["COUNT(T1.feature_id)", "property_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1", "1"], ["1", "13"], ["1", "3"], ["1", "15"], ["1", "12"], ["1", "7"], ["1", "14"], ["1", "4"], ["2", "14"], ["1", "11"]]}, "table_names": "['Other_Available_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Dtb62_3.png", "TableImg_Po70k_15.png"], "original_data_index": 563, "original_sql": "SELECT COUNT(T1.feature_id), T2.property_id FROM Other_Available_Features as T1 JOIN Other_Property_Features as T2 ON T1.feature_id = T2.feature_id WHERE property_feature_description <> \"odio\" AND feature_name <> \"Pool\" OR feature_description = \"Swimming Pool.\" GROUP BY property_feature_description HAVING property_id <> 6 AND property_feature_description <> \"illo\""} {"question": "Can you list the description and maximum gross weight of CH-53E Super Stallion aircraft with a maximum disk loading of 8.8 lb/ft\u00b2 (43 kg/m\u00b2) where the maximum gross weight is not 3,200 lb (1,451 kg) or where the total disk area is not 5,655 ft\u00b2 (526 m\u00b2), and also include the description and maximum gross weight of all aircraft with a maximum gross weight of 73,500 lb (33,300 kg) that don't have an Aircraft ID of 4?", "answer": {"columns": ["Description", "Max_Gross_Weight"], "index": [0, 1, 2, 3, 4], "data": [["Light utility helicopter", "1,370 lb (635 kg)"], ["Turboshaft utility helicopter", "3,200 lb (1,451 kg)"], ["Heavy-lift helicopter", "123,500 lb (56,000 kg)"], ["Heavy-lift helicopter", "73,500 lb (33,300 kg)"], ["Heavy-lift helicopter", "73,500 lb (33,300 kg)"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_Y605d_5.png", "TableImg_5plee_5.png"], "original_data_index": 562, "original_sql": "SELECT Description, Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight != \"3,200 lb (1,451 kg)\" AND Aircraft = \"CH-53E Super Stallion\" AND Max_disk_Loading = \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\" OR Total_disk_area != \"5,655 ft\u00b2 (526 m\u00b2)\" UNION ALL SELECT Description, Max_Gross_Weight FROM aircraft WHERE Max_Gross_Weight = \"73,500 lb (33,300 kg)\" AND \"Aircraft_ID\" <> 4"} {"question": "Can you give me a list of driver IDs less than 8 that appear in the driver table, excluding any driver IDs less than 9 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Laa5w_12.png", "TableImg_Arsqh_5.png"], "original_data_index": 564, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list the aircraft IDs that are less than 2 from the aircraft table, and also list the aircraft IDs that are not equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rmarx_5.png", "TableImg_Qo6f7_4.png"], "original_data_index": 568, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs, up to 8, that are in the driver table but not in the school_bus table, where only driver IDs up to 10 are considered in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vy6tf_12.png", "TableImg_U15yu_5.png"], "original_data_index": 566, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 11, and those from the school bus table that are greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vwvl0_12.png", "TableImg_F4nyb_5.png"], "original_data_index": 567, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you show me the maximum disk loading, aircraft ID, and aircraft name from the aircraft table where the aircraft is a \"CH-47D Chinook\" and the total disk area is \"872 ft\u00b2 (81.1 m\u00b2)\" and the description is not \"Light utility helicopter\", or where the maximum gross weight is not \"73,500 lb (33,300 kg)\", or the aircraft ID is less than or equal to 2, combined with the maximum disk loading, aircraft ID, and aircraft name where the total disk area is \"8,495 ft\u00b2 (789 m\u00b2)\" or the maximum disk loading is not \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" and the aircraft ID is greater than 2, or the aircraft is a \"CH-47D Chinook\"?", "answer": {"columns": ["Max_disk_Loading", "Aircraft_ID", "Aircraft"], "index": [0, 1, 2, 3, 4], "data": [["14.5 lb/ft\u00b2 (71 kg/m\u00b2)", "4", "Mil Mi-26"], ["15 lb/ft\u00b2 (72 kg/m\u00b2)", "5", "CH-53E Super Stallion"], ["2.6 lb/ft\u00b2 (14 kg/m\u00b2)", "1", "Robinson R-22"], ["3.7 lb/ft\u00b2 (18 kg/m\u00b2)", "2", "Bell 206B3 JetRanger"], ["8.8 lb/ft\u00b2 (43 kg/m\u00b2)", "3", "CH-47D Chinook"]]}, "table_names": "['aircraft' 'aircraft']", "table_image_ids": ["TableImg_1cn8w_5.png", "TableImg_9abij_5.png"], "original_data_index": 565, "original_sql": "SELECT Max_disk_Loading, Aircraft_ID, Aircraft FROM aircraft WHERE Aircraft = \"CH-47D Chinook\" AND Total_disk_area = \"872 ft\u00b2 (81.1 m\u00b2)\" AND Description != \"Light utility helicopter\" OR Max_Gross_Weight != \"73,500 lb (33,300 kg)\" OR \"Aircraft_ID\" <= 2 UNION SELECT Max_disk_Loading, Aircraft_ID, Aircraft FROM aircraft WHERE Total_disk_area = \"8,495 ft\u00b2 (789 m\u00b2)\" OR Max_disk_Loading <> \"14.5 lb/ft\u00b2 (71 kg/m\u00b2)\" AND \"Aircraft_ID\" > 2 OR Aircraft = \"CH-47D Chinook\""} {"question": "Can you give me a list of aircraft IDs from the aircraft table that are 5 or less, excluding any aircraft IDs from the airport_aircraft table that are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3c4av_5.png", "TableImg_N68oa_4.png"], "original_data_index": 570, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Could you give me the head IDs that belong to heads who are not Franklin Langham, and also belong to management with a head ID of 5 or a department ID greater than 11, excluding those with temporary acting status of \"Yes\"?", "answer": {"columns": ["head_ID"], "index": [0], "data": [["5"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_T0cn8_10.png", "TableImg_Bn9iq_5.png"], "original_data_index": 569, "original_sql": "SELECT head_ID FROM head WHERE name != \"Franklin Langham\" INTERSECT SELECT head_ID FROM management WHERE \"head_ID\" = 5 OR \"department_ID\" > 11 AND temporary_acting <> \"Yes\""} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding ID 2, and then from the airport_aircraft table including only IDs up to 3, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1w3mm_5.png", "TableImg_Qwc2d_4.png"], "original_data_index": 571, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Could you give me a list of driver IDs that are less than 11 and also greater than or equal to 10, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kuv9f_12.png", "TableImg_Xcjdc_5.png"], "original_data_index": 572, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Which driver IDs, excluding driver ID 9, are present in the driver table but not in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F8fz8_12.png", "TableImg_Nt2h0_5.png"], "original_data_index": 576, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What is the total of role descriptions for roles with the code \"ED\" or a description other than \"Photo\", combined with the total of role descriptions for roles with the description \"Photo\" or a code not equal to \"MG\"?", "answer": {"columns": ["SUM(role_description)"], "index": [0], "data": [["0"]]}, "table_names": "['Roles' 'Roles']", "table_image_ids": ["TableImg_Wm4g3_4.png", "TableImg_8jca7_4.png"], "original_data_index": 573, "original_sql": "SELECT SUM(role_description) FROM Roles WHERE role_code = \"ED\" OR role_description != \"Photo\" UNION SELECT SUM(role_description) FROM Roles WHERE role_description = \"Photo\" OR role_code <> \"MG\""} {"question": "What is the total number of car makers, excluding Daimler Benz or those not from country 4, combined with the total number of model list entries where the model is not Datsun, the ModelId is less than or equal to 22, and the Maker is less than 5?", "answer": {"columns": ["SUM(Maker)"], "index": [0, 1], "data": [["0"], ["22"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Gj4nc_22.png", "TableImg_Ltykp_36.png"], "original_data_index": 575, "original_sql": "SELECT SUM(Maker) FROM car_makers WHERE Maker != \"daimler benz\" OR Country != \"4\" UNION ALL SELECT SUM(Maker) FROM model_list WHERE Model <> \"datsun\" AND \"ModelId\" <= 22 AND \"Maker\" < 5"} {"question": "Can you give me a list of album IDs that are greater than 116 or have a title that isn't \"No Security\", along with a list of media type IDs where the name is \"AAC audio file\" or the ID is greater than 4?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["83"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["5"]]}, "table_names": "['albums' 'media_types']", "table_image_ids": ["TableImg_37qhp_347.png", "TableImg_Losqp_5.png"], "original_data_index": 574, "original_sql": "SELECT id FROM albums WHERE \"id\" > 116 OR title != \"No Security\" UNION ALL SELECT id FROM media_types WHERE name = \"AAC audio file\" OR \"id\" > 4"} {"question": "Can you give me a list of driver IDs from the driver table that are 4 or greater, excluding any driver IDs that appear in the school_bus table, unless that driver ID is 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_736g1_12.png", "TableImg_Kgv98_5.png"], "original_data_index": 577, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "What aircraft IDs, excluding ID 4, are present in the aircraft table and also have an ID of 1 or greater in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rw6pz_5.png", "TableImg_2y8u4_4.png"], "original_data_index": 579, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs are greater than 7 and also greater than 4 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gkaa6_12.png", "TableImg_Ty4s5_5.png"], "original_data_index": 580, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver has an ID of 7, but is not a driver with an ID less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xkkac_12.png", "TableImg_3yynz_5.png"], "original_data_index": 581, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me the template type codes that are either not \"CV\" or don't have the description \"Paper\" and are also associated with templates that either don't have a template ID of 11 or have a template type code of \"BK\"?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3, 4], "data": [["AD"], ["BK"], ["CV"], ["PP"], ["PPT"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_Y545g_5.png", "TableImg_Lu95u_20.png"], "original_data_index": 578, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != \"CV\" OR Template_Type_Description <> \"Paper\" INTERSECT SELECT Template_Type_Code FROM Templates WHERE \"Template_ID\" <> 11 OR Template_Type_Code = \"BK\""} {"question": "Can you list all the driver IDs that are equal to 1, and also list all driver IDs from the school bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mvtcr_12.png", "TableImg_Alm4j_5.png"], "original_data_index": 584, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are less than 9 from the driver table, combined with a list of driver IDs that are exactly 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5vqwd_12.png", "TableImg_Mz1ua_5.png"], "original_data_index": 583, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of employee IDs, including those of employees who aren't named George Chuter, and those from the hiring table who are full-time and not associated with shop ID 1?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['employee' 'hiring']", "table_image_ids": ["TableImg_Lxe4t_10.png", "TableImg_F8bhr_7.png"], "original_data_index": 582, "original_sql": "SELECT Employee_ID FROM employee WHERE Name <> \"George Chuter\" UNION SELECT Employee_ID FROM hiring WHERE Is_full_time = \"T\" AND \"Shop_ID\" != 1"} {"question": "Which driver IDs are both greater than or equal to 8 in the driver table and greater than 4 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_T4bc3_12.png", "TableImg_4owy3_5.png"], "original_data_index": 586, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are greater than 9, excluding any driver IDs less than 7 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3mn8z_12.png", "TableImg_W9rlp_5.png"], "original_data_index": 587, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 5, excluding any driver IDs that appear in the school_bus table where the driver ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R88y7_12.png", "TableImg_W7jxn_5.png"], "original_data_index": 585, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me the smallest flight ID where the company ID is 11 and the airport ID is less than 2, or where the flight number isn't \"M2-F1 #14\" and the altitude isn't 3650, but only if it also matches the smallest operate company ID where the name isn't \"Cathay Pacific Catering Services (HK) Limited\" and the principal activities aren't \"Laundry\", or the type isn't \"Joint Venture\" and the group equity shareholding is 100 and the ID is at least 10, or it's incorporated in \"Hong Kong\"?", "answer": {"columns": ["MIN(id)"], "index": [0], "data": [["1"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_Efbiv_13.png", "TableImg_Xu4e5_14.png"], "original_data_index": 588, "original_sql": "SELECT MIN(id) FROM flight WHERE \"company_id\" = 11 AND \"airport_id\" < 2 OR Vehicle_Flight_number <> \"M2-F1 #14\" AND \"Altitude\" <> 3650.0 INTERSECT SELECT MIN(id) FROM operate_company WHERE name != \"Cathay Pacific Catering Services (HK) Limited\" AND Principal_activities <> \"Laundry\" OR Type <> \"Joint Venture\" AND \"Group_Equity_Shareholding\" = 100.0 AND \"id\" >= 10 OR Incorporated_in = \"Hong Kong\""} {"question": "Which driver has an ID of 10 and also drives a school bus, but not bus number 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oquz7_12.png", "TableImg_Z6muv_5.png"], "original_data_index": 589, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Which driver IDs are not equal to 2 and are also less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y3uwe_12.png", "TableImg_9kmcm_5.png"], "original_data_index": 591, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including driver ID 9 from the driver table and driver IDs up to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4pt8l_12.png", "TableImg_Xtq9x_5.png"], "original_data_index": 592, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are less than 9 from the driver table, excluding any driver IDs that are less than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pyz69_12.png", "TableImg_6cpxr_5.png"], "original_data_index": 590, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs that are less than 10, but also greater than 4 and used in school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xihlr_12.png", "TableImg_Cdbjp_5.png"], "original_data_index": 595, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 6, excluding any driver IDs that are also in the school_bus table and are greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mz2d0_12.png", "TableImg_Aiee2_5.png"], "original_data_index": 593, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me the nationalities and birth dates of people who meet both of these conditions: first, their ID is 2 or less, or their height isn't 205, they're Russian, and their name isn't Aleksey Ostapenko, or their birth date isn't May 26, 1986; and second, their height isn't 207, or they're Russian, their name isn't Yevgeni Sivozhelez, their ID is less than 4, and their birth date is April 17, 1987?", "answer": {"columns": ["Nationality", "Birth_Date"], "index": [0, 1, 2, 3, 4, 5], "data": [["Bulgaria", "August 16, 1982"], ["Russia", "April 17, 1987"], ["Russia", "August 8, 1986"], ["Russia", "February 8, 1981"], ["Russia", "January 22, 1987"], ["Russia", "July 14, 1983"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Pp84a_7.png", "TableImg_2imxm_7.png"], "original_data_index": 596, "original_sql": "SELECT Nationality, Birth_Date FROM people WHERE \"People_ID\" <= 2 OR \"Height\" != 205.0 AND Nationality = \"Russia\" AND Name != \"Aleksey Ostapenko\" OR Birth_Date != \"May 26, 1986\" INTERSECT SELECT Nationality, Birth_Date FROM people WHERE \"Height\" != 207.0 OR Nationality = \"Russia\" AND Name <> \"Yevgeni Sivozhelez\" AND \"People_ID\" < 4 AND Birth_Date = \"April 17, 1987\""} {"question": "What aircraft IDs, excluding ID 3, are present in the aircraft table but not in the airport_aircraft table, also excluding ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Au74w_5.png", "TableImg_Qzatn_4.png"], "original_data_index": 598, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Could you give me the Player IDs of players who either have 14355 votes, or are female named Judy Wasylycia-Leis, or don't live in Brandon and aren't ranked 2nd and have a Player ID other than 6 and don't work as a Design Coordinator, excluding any Player IDs that are in the player_coach table where the Player ID is less than or equal to 1 and the Starting year is less than or equal to 2010, or the Coach ID is less than 1?", "answer": {"columns": ["Player_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["2"], ["3"], ["5"], ["7"], ["9"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['player' 'player_coach']", "table_image_ids": ["TableImg_80yfn_14.png", "TableImg_3e5i9_7.png"], "original_data_index": 599, "original_sql": "SELECT Player_ID FROM player WHERE \"Votes\" = 14355 OR Gender = \"F\" AND Player_name = \"Judy Wasylycia-Leis\" OR Residence <> \"Brandon\" AND Rank != \"2nd\" AND \"Player_ID\" <> 6 AND Occupation <> \"Design Coordinator\" EXCEPT SELECT Player_ID FROM player_coach WHERE \"Player_ID\" <= 1 AND \"Starting_year\" <= 2010 OR \"Coach_ID\" < 1"} {"question": "Can you give me the minimum principal activity, group equity shareholding, name, minimum incorporation location, maximum ID, and total type for companies, excluding those with a principal activity of \"Cargo\" and a type of \"Subsidiary\", or those incorporated in \"Hong Kong\", but then remove any companies not incorporated in \"Taiwan\", or with a group equity shareholding of 100, or with a principal activity other than \"Airline\" and a type of \"Subsidiary\" and an ID other than 6 and a name other than \"Air Hong Kong\"?", "answer": {"columns": ["MIN(Principal_activities)", "Group_Equity_Shareholding", "name", "MIN(Incorporated_in)", "MAX(id)", "SUM(Type)"], "index": [0], "data": [["Airline", "100", "Vogue Laundry Service Limited", "Hong Kong", "11", "0"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Sdzm7_14.png", "TableImg_Bjn6c_14.png"], "original_data_index": 600, "original_sql": "SELECT MIN(Principal_activities), Group_Equity_Shareholding, name, MIN(Incorporated_in), MAX(id), SUM(Type) FROM operate_company WHERE Principal_activities != \"Cargo\" AND Type = \"Subsidiary\" OR Incorporated_in = \"Hong Kong\" EXCEPT SELECT MIN(Principal_activities), Group_Equity_Shareholding, name, MIN(Incorporated_in), MAX(id), SUM(Type) FROM operate_company WHERE Incorporated_in <> \"Taiwan\" OR \"Group_Equity_Shareholding\" = 100.0 OR Principal_activities != \"Airline\" AND Type = \"Subsidiary\" AND \"id\" != 6 AND name != \"Air Hong Kong\""} {"question": "Can you give me a list of aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only aircraft IDs greater than 2, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Sc9rz_5.png", "TableImg_Ia9g5_4.png"], "original_data_index": 601, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 5, that are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9369z_12.png", "TableImg_T6fuk_5.png"], "original_data_index": 602, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are both not equal to 9 and less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_85unt_12.png", "TableImg_L1dp4_5.png"], "original_data_index": 603, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs are both greater than 1 and also less than or equal to 3, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Arhyo_12.png", "TableImg_Kjc6o_5.png"], "original_data_index": 604, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 5, with those from the school bus table excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D3lx5_12.png", "TableImg_Aatny_5.png"], "original_data_index": 605, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 4, excluding any aircraft IDs from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2rndf_5.png", "TableImg_22ndt_4.png"], "original_data_index": 606, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me the IDs of drivers, up to ID 5, excluding the IDs of school bus drivers up to ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ks702_12.png", "TableImg_Ss521_5.png"], "original_data_index": 597, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me a list of driver IDs, including driver ID 12 from the driver table and all driver IDs except 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8eork_12.png", "TableImg_Kwk8o_5.png"], "original_data_index": 610, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 7 from the driver table, combined with a list of driver IDs that are greater than 7 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rn2oh_12.png", "TableImg_3s522_5.png"], "original_data_index": 611, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 3, and those from the school bus table where the ID is less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_27m6x_12.png", "TableImg_Hflge_5.png"], "original_data_index": 612, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of Branch IDs, Member IDs, and Register Years for all memberships, excluding those from Branch 8 unless the Register Year is 2016, but then remove from that list any memberships that are not from Branch 4 and also not registered in 2016?", "answer": {"columns": ["Branch_ID", "Member_ID", "Register_Year"], "index": [0, 1, 2, 3, 4, 5], "data": [["1", "1", "2016"], ["1", "4", "2016"], ["2", "7", "2016"], ["4", "2", "2016"], ["5", "5", "2016"], ["8", "8", "2016"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_8ishd_8.png", "TableImg_9zo6n_8.png"], "original_data_index": 613, "original_sql": "SELECT Branch_ID, Member_ID, Register_Year FROM membership_register_branch WHERE Branch_ID <> \"8\" OR Register_Year = \"2016\" EXCEPT SELECT Branch_ID, Member_ID, Register_Year FROM membership_register_branch WHERE Branch_ID != \"4\" AND Register_Year <> \"2016\""} {"question": "Could you list the vehicle IDs from the lessons, excluding those associated with cancelled lessons, or lessons with a price greater than 231, a vehicle ID not equal to 2, a staff ID of 11, a lesson ID less than or equal to 14, or a customer ID not equal to 8, but then remove any vehicle IDs that are associated with cars and have a vehicle ID greater than 1?", "answer": {"columns": ["vehicle_id"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['Lessons' 'Vehicles']", "table_image_ids": ["TableImg_C5ky9_15.png", "TableImg_Ackfy_3.png"], "original_data_index": 614, "original_sql": "SELECT vehicle_id FROM Lessons WHERE lesson_status_code != \"Cancelled\" OR \"price\" > 231.0 AND \"vehicle_id\" != 2 AND \"staff_id\" = 11 OR \"lesson_id\" <= 14 OR \"customer_id\" != 8 EXCEPT SELECT vehicle_id FROM Vehicles WHERE vehicle_details = \"Car\" AND \"vehicle_id\" > 1"} {"question": "Can you give me the Club IDs that are associated with clubs named \"Pen and Paper Gaming\" or clubs that are not Club ID 3 and don't have the description \"Play pen and paper games on campus.\" and are not located in \"HHH\", but only if those Club IDs are also associated with members where the Club ID is less than or equal to 1 or the position is not \"CTO\"?", "answer": {"columns": ["ClubID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['Club' 'Member_of_club']", "table_image_ids": ["TableImg_M7mu8_4.png", "TableImg_4jfmf_4.png"], "original_data_index": 615, "original_sql": "SELECT ClubID FROM Club WHERE ClubName = \"Pen and Paper Gaming\" OR \"ClubID\" != 3 AND ClubDesc != \"Play pen and paper games on campus.\" AND ClubLocation <> \"HHH\" INTERSECT SELECT ClubID FROM Member_of_club WHERE \"ClubID\" <= 1 OR Position <> \"CTO\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, from the driver table, but only those IDs that are not also in the school bus table where the driver ID is less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hyxwa_12.png", "TableImg_Hqcxr_5.png"], "original_data_index": 616, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you tell me, for each issue, how many writers there are and how many books there are, but only if there's more than one writer and either not exactly two books or at least one book, and also if there are more than three writers and at least one book?", "answer": {"columns": ["COUNT(Writer)", "Issues", "COUNT(Book_ID)"], "index": [0], "data": [["3", "4", "3"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_Rgwqm_10.png", "TableImg_Xfsu4_10.png"], "original_data_index": 617, "original_sql": "SELECT COUNT(Writer), Issues, COUNT(Book_ID) FROM book GROUP BY Issues HAVING COUNT(Book_ID) <> 2 AND COUNT(Writer) > 1 UNION SELECT COUNT(Writer), Issues, COUNT(Book_ID) FROM book GROUP BY Issues HAVING COUNT(Book_ID) >= 1 AND COUNT(Writer) > 3"} {"question": "Can you give me a list of document IDs for documents that either have a template ID of 21 or less, or have a document ID greater than 80, a template ID greater than 1, a document name that is not \"Understanding DB\", other details that are not \"None\", and a document description that is \"b\"?", "answer": {"columns": ["Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["0"], ["3"], ["76"], ["80"], ["82"], ["2394"], ["3830"], ["33930"], ["50123"], ["651512"], ["801801"], ["3540024"], ["16514113"], ["385906526"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Id85e_15.png", "TableImg_57h2b_15.png"], "original_data_index": 618, "original_sql": "SELECT Document_ID FROM Documents WHERE \"Template_ID\" <= 21 UNION SELECT Document_ID FROM Documents WHERE \"Document_ID\" > 80 OR \"Template_ID\" > 1 AND Document_Name != \"Understanding DB\" AND Other_Details != \"None\" AND Document_Description = \"b\""} {"question": "Can you give me a list of driver IDs that are less than 2, excluding those driver IDs that are also greater than 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["1"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X0rie_12.png", "TableImg_Vsvea_5.png"], "original_data_index": 608, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, and combine that with a list of aircraft IDs from the airport_aircraft table that are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gfarh_5.png", "TableImg_7l800_4.png"], "original_data_index": 609, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me the IATA, ICAO, country, and city for Schiphol Airport, as well as for any airport with an ID less than 1 or named Akureyri Airport?", "answer": {"columns": ["IATA", "ICAO", "Country", "City"], "index": [0, 1], "data": [["AMS", "EHAM", "Netherlands", "Amsterdam"], ["AEY", "BIAR", "Iceland", "Akureyri"]]}, "table_names": "['airport' 'airport']", "table_image_ids": ["TableImg_Id2aw_9.png", "TableImg_H1z8j_9.png"], "original_data_index": 607, "original_sql": "SELECT IATA, ICAO, Country, City FROM airport WHERE name = \"Schiphol Airport\" UNION ALL SELECT IATA, ICAO, Country, City FROM airport WHERE \"id\" < 1 OR name = \"Akureyri Airport\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver ID 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_77wf1_12.png", "TableImg_E1deg_5.png"], "original_data_index": 621, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "What continents, excluding Asia, are not continents with at least 5 countries?", "answer": {"columns": ["Continent"], "index": [0, 1, 2, 3], "data": [["africa"], ["america"], ["australia"], ["europe"]]}, "table_names": "['continents' 'countries']", "table_image_ids": ["TableImg_846mh_5.png", "TableImg_Olfv8_15.png"], "original_data_index": 622, "original_sql": "SELECT Continent FROM continents WHERE Continent != \"asia\" EXCEPT SELECT Continent FROM countries WHERE \"Continent\" >= 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs less than 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7uj76_12.png", "TableImg_Qiv5c_5.png"], "original_data_index": 620, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me the smallest School ID, the total Years Working, whether they are full-time, and the total Driver ID for all school bus drivers who either have more than 2 years of experience or whose School ID is less than 5, combined with the same information for all drivers where the Driver ID is at least 9, or they have less than 6 years of experience, or they are full-time?", "answer": {"columns": ["MIN(School_ID)", "SUM(Years_Working)", "If_full_time", "SUM(Driver_ID)"], "index": [0, 1], "data": [["1", "27", "F", "24"], ["1", "29", "F", "33"]]}, "table_names": "['school_bus' 'school_bus']", "table_image_ids": ["TableImg_St4qc_5.png", "TableImg_Jdmgp_5.png"], "original_data_index": 619, "original_sql": "SELECT MIN(School_ID), SUM(Years_Working), If_full_time, SUM(Driver_ID) FROM school_bus WHERE \"Years_Working\" > 2 OR \"School_ID\" < 5 UNION SELECT MIN(School_ID), SUM(Years_Working), If_full_time, SUM(Driver_ID) FROM school_bus WHERE \"Driver_ID\" >= 9 OR \"Years_Working\" < 6 OR If_full_time = \"T\""} {"question": "Can you give me a list of driver IDs that are greater than or equal to 9, excluding any driver IDs less than or equal to 7 that are also in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qoaw8_12.png", "TableImg_Laj8i_5.png"], "original_data_index": 623, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are 10 or greater, excluding driver ID 4 if it's in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_07q5g_12.png", "TableImg_Kgcu3_5.png"], "original_data_index": 626, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What is the smallest template ID from documents where the other details are not \"None\" and the document name is not \"Data base\", or the document ID is greater than 3540024, excluding the smallest template ID from templates where the template ID is not 21?", "answer": {"columns": ["MIN(Template_ID)"], "index": [0], "data": [["11"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Kctt7_15.png", "TableImg_052ll_20.png"], "original_data_index": 625, "original_sql": "SELECT MIN(Template_ID) FROM Documents WHERE Other_Details != \"None\" AND Document_Name <> \"Data base\" OR \"Document_ID\" > 3540024 EXCEPT SELECT MIN(Template_ID) FROM Templates WHERE \"Template_ID\" <> 21"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 4, that appear more than once, and then remove any aircraft IDs from that list that are also in a list of aircraft IDs that appear more than once and are less than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aoxnq_5.png", "TableImg_Uilsa_4.png"], "original_data_index": 627, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs that are less than 6, excluding any driver IDs from the school bus list that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4sja7_12.png", "TableImg_Rkyzp_5.png"], "original_data_index": 624, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4 from the driver table and driver ID 7 from the school_bus table, with each ID appearing only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tl7uh_12.png", "TableImg_Xv8ja_5.png"], "original_data_index": 628, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are less than 1 from the driver table, combined with a list of driver IDs that are exactly 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ynqs_12.png", "TableImg_W47zh_5.png"], "original_data_index": 631, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list all the template type codes, including those that are not 'AD' or have a description other than 'Presentation', and also include the template type codes from templates with an ID greater than 21?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["PPT"], ["CV"], ["AD"], ["PP"], ["BK"], ["PP"], ["BK"], ["PP"], ["PP"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_Weeiu_5.png", "TableImg_Pkp1v_20.png"], "original_data_index": 632, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != \"AD\" OR Template_Type_Description <> \"Presentation\" UNION ALL SELECT Template_Type_Code FROM Templates WHERE \"Template_ID\" > 21"} {"question": "What is the average property type code for properties that meet certain price, feature, address, ID, offering price, name, room count, date, and vendor price criteria, but only considering those averages that also meet criteria related to property type code and description in a separate list of property types?", "answer": {"columns": ["AVG(property_type_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Properties' 'Ref_Property_Types']", "table_image_ids": ["TableImg_Czz23_15.png", "TableImg_89ep8_5.png"], "original_data_index": 630, "original_sql": "SELECT AVG(property_type_code) FROM Properties WHERE \"agreed_selling_price\" <= 2794972.2495 OR fld_feature_3 = \"None\" AND oth_feature_2 <> \"None\" AND oth_feature_1 != \"None\" OR property_address != \"4745 Emerson Stravenue Suite 829 South Garret, IN 16772-5682\" AND \"property_id\" >= 6 OR apt_feature_1 != \"nesciunt\" AND \"buyer_offered_price\" <= 13991131.434 OR property_name = \"avalon\" OR hse_feature_1 <> \"None\" AND shp_feature_1 = \"None\" AND apt_feature_3 <> \"None\" OR fld_feature_2 = \"None\" OR \"room_count\" != 9 OR date_on_market <> \"1986-11-26 04:12:18\" OR shp_feature_3 != \"None\" OR \"vendor_requested_price\" > 2219.6778 OR hse_feature_3 <> \"None\" AND apt_feature_2 <> \"culpa\" AND oth_feature_3 = \"None\" AND shp_feature_2 = \"None\" INTERSECT SELECT AVG(property_type_code) FROM Ref_Property_Types WHERE property_type_code <> \"House\" OR property_type_description != \"Shop, Retail Outlet.\""} {"question": "Can you give me the IDs from the flight table where either the airport ID isn't 1 and the date is January 29, 1964, and the flight number is M2-F1 #70, or the pilot is Thompson, the company ID isn't 11, and the altitude is above 3650, or the velocity is above 240, or the ID isn't 8, combined with the IDs from the operate_company table where either the name isn't CLS Catering Services Limited and the incorporation location isn't Hong Kong, or the type isn't Corporate and the ID is greater than 13?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_N3y7f_13.png", "TableImg_Jj2dj_14.png"], "original_data_index": 629, "original_sql": "SELECT id FROM flight WHERE \"airport_id\" <> 1 AND Date = \"January 29, 1964\" AND Vehicle_Flight_number = \"M2-F1 #70\" OR Pilot = \"Thompson\" AND \"company_id\" <> 11 AND \"Altitude\" > 3650.0 OR \"Velocity\" > 240.0 OR \"id\" <> 8 UNION SELECT id FROM operate_company WHERE name <> \"CLS Catering Services Limited\" AND Incorporated_in != \"Hong Kong\" OR Type <> \"Corporate\" AND \"id\" > 13"} {"question": "Can you give me a list of driver IDs, including driver ID 12 from the driver table and driver ID 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["4"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oxsji_12.png", "TableImg_Qoj4r_5.png"], "original_data_index": 634, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are 3 or greater, excluding those driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ah4a2_12.png", "TableImg_G4at4_5.png"], "original_data_index": 633, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are equal to 5 in the driver table, but not greater than or equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vx93m_12.png", "TableImg_57pju_5.png"], "original_data_index": 636, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of aircraft IDs that are both less than or equal to 4 and also not equal to 1, considering the aircraft and airport aircraft datasets?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xlzhc_5.png", "TableImg_S32m9_4.png"], "original_data_index": 637, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 4 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs that are either driver ID 10 from the driver table, or any driver ID except 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lkg37_12.png", "TableImg_8vxrq_5.png"], "original_data_index": 638, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs, excluding driver ID 9, are also driver IDs less than 4 who drive school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hcdv4_12.png", "TableImg_Jr52c_5.png"], "original_data_index": 639, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are less than 6 and also not equal to 3, considering only the IDs that appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Dg0iy_12.png", "TableImg_Z93cy_5.png"], "original_data_index": 640, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12, from the driver table, but only those IDs that are not also in the school bus table with driver IDs less than or equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W4p0d_12.png", "TableImg_Ddtu3_5.png"], "original_data_index": 641, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Which driver IDs, other than 11, are also driver IDs that equal 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_31hsg_12.png", "TableImg_9zq49_5.png"], "original_data_index": 643, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are less than 7, excluding the driver ID 4, from the drivers and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zrol1_12.png", "TableImg_2avrl_5.png"], "original_data_index": 642, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "What is the highest document type code that appears in both the documents table (excluding entries received on \"1986-12-14 14:18:59\" with shipping agent \"UP\", receipt number \"19\" with other details \"w\", document ID 13 with \"working\" status, or document type \"Hard Drive\") and the reference document types table (excluding entries with document type \"Paper\" or description \"b\")?", "answer": {"columns": ["MAX(document_type_code)"], "index": [0], "data": [["Paper"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_9o2ur_15.png", "TableImg_1ky54_3.png"], "original_data_index": 644, "original_sql": "SELECT MAX(document_type_code) FROM Documents WHERE receipt_date <> \"1986-12-14 14:18:59\" AND shipping_agent_code = \"UP\" OR receipt_number <> \"19\" AND other_details = \"w\" OR \"document_id\" = 13 AND document_status_code = \"working\" OR document_type_code <> \"Hard Drive\" INTERSECT SELECT MAX(document_type_code) FROM Ref_Document_Types WHERE document_type_code <> \"Paper\" OR document_type_description <> \"b\""} {"question": "Can you list the country, maker, and ID of car makers, including those that aren't Subaru and are from country 3, combined with those that aren't from country 4, or are named Mazda and made by bmw, or have an ID of 14 or greater?", "answer": {"columns": ["Country", "Maker", "Id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18], "data": [["1", "amc", "1"], ["1", "chrysler", "6"], ["1", "ford", "5"], ["1", "gm", "4"], ["2", "bmw", "3"], ["2", "daimler benz", "13"], ["2", "opel", "14"], ["2", "volkswagen", "2"], ["3", "citroen", "7"], ["3", "peugeaut", "15"], ["3", "renault", "16"], ["4", "subaru", "18"], ["4", "toyota", "19"], ["5", "fiat", "9"], ["6", "saab", "17"], ["6", "volvo", "21"], ["7", "triumph", "20"], ["8", "hyundai", "23"], ["8", "kia", "22"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_H8lam_22.png", "TableImg_Gipr9_22.png"], "original_data_index": 635, "original_sql": "SELECT Country, Maker, Id FROM car_makers WHERE FullName != \"Subaru\" AND Country = \"3\" UNION SELECT Country, Maker, Id FROM car_makers WHERE Country != \"4\" OR FullName = \"Mazda\" AND Maker = \"bmw\" OR \"Id\" >= 14"} {"question": "Can you list the writer, title, and number of issues for all books where the Book ID is 4 or less, combined with the writer, title, and number of issues for books titled \"Cyberella\" where the writer isn't Elaine Lee, or where the number of issues is 4 or more?", "answer": {"columns": ["Writer", "Title", "Issues"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["Christopher Hinz", "Dead Corps", "4"], ["Christopher Hinz", "Gemini Blood", "9"], ["Christopher Moeller", "Sheva's War", "5"], ["Elaine Lee", "BrainBanx", "6"], ["Garth Ennis", "Bloody Mary", "4"], ["Garth Ennis", "Bloody Mary : Lady Liberty", "4"], ["Howard Chaykin", "Cyberella", "12"], ["Michael Moorcock", "Michael Moorcock's Multiverse", "12"], ["Timothy Truman", "The Black Lamb", "6"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_5d3q3_10.png", "TableImg_8yzb9_10.png"], "original_data_index": 648, "original_sql": "SELECT Writer, Title, Issues FROM book WHERE \"Book_ID\" <= 4 UNION SELECT Writer, Title, Issues FROM book WHERE Title = \"Cyberella\" AND Writer != \"Elaine Lee\" OR \"Issues\" >= 4.0"} {"question": "Can you give me the student IDs from the allergy list where the ID is 1010 or higher, or the allergy is to dogs, but exclude any student IDs from the student list where the city code isn't HOU or the ID is greater than 1015?", "answer": {"columns": ["StuID"], "index": [0, 1], "data": [["1010"], ["1013"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Zm273_59.png", "TableImg_Uj9sw_34.png"], "original_data_index": 649, "original_sql": "SELECT StuID FROM Has_Allergy WHERE \"StuID\" >= 1010 OR Allergy = \"Dog\" EXCEPT SELECT StuID FROM Student WHERE city_code != \"HOU\" OR \"StuID\" > 1015"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 8, combined with a list of driver IDs from the school_bus table where the ID is 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0nbvh_12.png", "TableImg_Dmecm_5.png"], "original_data_index": 650, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 3, excluding any driver IDs from the school_bus table that are equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Go8ko_12.png", "TableImg_Jww2n_5.png"], "original_data_index": 651, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Which aircraft are turboshaft utility helicopters and also listed in the airport aircraft table, excluding those with ID 1 and aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_47gng_5.png", "TableImg_Eh528_4.png"], "original_data_index": 652, "original_sql": "SELECT Aircraft_ID FROM aircraft WHERE Description = \"Turboshaft utility helicopter\" INTERSECT SELECT Aircraft_ID FROM airport_aircraft WHERE \"ID\" <> 1 AND \"Aircraft_ID\" <> 3"} {"question": "Can you give me a list of driver IDs that are not equal to 4, but are also less than or equal to 3, considering only drivers that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fe14r_12.png", "TableImg_Nk67b_5.png"], "original_data_index": 653, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which driver IDs are both not equal to 7 and also greater than 7, considering drivers and school buses separately?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V9x9s_12.png", "TableImg_23gd1_5.png"], "original_data_index": 654, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of aircraft IDs that are less than 5, but also not equal to 2, based on the aircraft and airport aircraft data?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O6ap8_5.png", "TableImg_40cq0_4.png"], "original_data_index": 655, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver ID 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F7xzi_12.png", "TableImg_7sqk0_5.png"], "original_data_index": 656, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs greater than 4 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jh3do_12.png", "TableImg_T6dxd_5.png"], "original_data_index": 646, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs that are not 10 and are also greater than or equal to 7, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_F0gmo_12.png", "TableImg_Bamnb_5.png"], "original_data_index": 645, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 2, and also those from the school bus table where the ID is not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ulfpt_12.png", "TableImg_B6l3j_5.png"], "original_data_index": 647, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, removing driver ID 4 from the driver table and driver ID 3 from the school bus table, and combining the results?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_M0lkz_12.png", "TableImg_78l8k_5.png"], "original_data_index": 658, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs that are not equal to 1 from the driver table, but only include those driver IDs that are also not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5z8zl_12.png", "TableImg_925lt_5.png"], "original_data_index": 657, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you list the city area, headquartered city, and district ID for districts, excluding those where the city area is at least 25, the city population is no more than 219254, and the headquartered city isn't Bhakkar City, or where the district name is Kasur District, or the district ID isn't 7, but including only those districts where the district name isn't Attock District, or the city population is 2793721 and the headquartered city isn't Bahawalnagar City?", "answer": {"columns": ["City_Area", "Headquartered_City", "District_ID"], "index": [0], "data": [["22", "Dera Ghazi Khan City", "7"]]}, "table_names": "['district' 'district']", "table_image_ids": ["TableImg_9fmwu_15.png", "TableImg_Ejz2z_15.png"], "original_data_index": 659, "original_sql": "SELECT City_Area, Headquartered_City, District_ID FROM district WHERE District_name <> \"Attock District\" OR \"City_Population\" = 2793721.0 AND Headquartered_City != \"Bahawalnagar City\" EXCEPT SELECT City_Area, Headquartered_City, District_ID FROM district WHERE \"City_Area\" >= 25.0 AND \"City_Population\" <= 219254.0 AND Headquartered_City != \"Bhakkar City\" OR District_name = \"Kasur District\" OR \"District_ID\" <> 7"} {"question": "How many people are there who are named K. J. Choi with a head ID of 8 or less, or are at least 69 years old, or were born in Alabama, plus how many people are there who were not born in California with a head ID less than 1, or are not 69 years old and are named K. J. Choi?", "answer": {"columns": ["COUNT(age)"], "index": [0, 1], "data": [["3"], ["0"]]}, "table_names": "['head' 'head']", "table_image_ids": ["TableImg_Haxj7_10.png", "TableImg_Ca9tr_10.png"], "original_data_index": 660, "original_sql": "SELECT COUNT(age) FROM head WHERE name = \"K. J. Choi\" AND \"head_ID\" <= 8 OR \"age\" >= 69.0 OR born_state = \"Alabama\" UNION ALL SELECT COUNT(age) FROM head WHERE born_state <> \"California\" AND \"head_ID\" < 1 OR \"age\" <> 69.0 AND name = \"K. J. Choi\""} {"question": "Can you list the IDs and titles of all albums with an ID greater than 97, along with the IDs and titles of all employees who don't report to employee number 1?", "answer": {"columns": ["id", "title"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254], "data": [["98", "Dance Of Death"], ["99", "Fear Of The Dark"], ["100", "Iron Maiden"], ["101", "Killers"], ["102", "Live After Death"], ["103", "Live At Donington 1992 (Disc 1)"], ["104", "Live At Donington 1992 (Disc 2)"], ["105", "No Prayer For The Dying"], ["106", "Piece Of Mind"], ["107", "Powerslave"], ["108", "Rock In Rio CD1"], ["109", "Rock In Rio CD2"], ["110", "Seventh Son of a Seventh Son"], ["111", "Somewhere in Time"], ["112", "The Number of The Beast"], ["113", "The X Factor"], ["114", "Virtual XI"], ["115", "Sex Machine"], ["116", "Emergency On Planet Earth"], ["117", "Synkronized"], ["118", "The Return Of The Space Cowboy"], ["119", "Get Born"], ["120", "Are You Experienced?"], ["121", "Surfing with the Alien (Remastered)"], ["122", "Jorge Ben Jor 25 Anos"], ["123", "Jota Quest-1995"], ["124", "Cafezinho"], ["125", "Living After Midnight"], ["126", "Unplugged live"], ["127", "BBC Sessions [Disc 2] live"], ["128", "Coda"], ["129", "Houses Of The Holy"], ["130", "In Through The Out Door"], ["131", "IV"], ["132", "Led Zeppelin I"], ["133", "Led Zeppelin II"], ["134", "Led Zeppelin III"], ["135", "Physical Graffiti [Disc 2]"], ["136", "Presence"], ["137", "The Song Remains The Same (Disc 1)"], ["138", "The Song Remains The Same (Disc 2)"], ["139", "A TempestadeTempestade Ou O Livro Dos Dias"], ["140", "Mais Do Mesmo"], ["141", "Greatest Hits"], ["142", "Lulu Santos - RCA 100 Anos De M\u00fasica - \u00c1lbum 01"], ["143", "Lulu Santos - RCA 100 Anos De M\u00fasica - \u00c1lbum 02"], ["144", "Misplaced Childhood"], ["145", "Barulhinho Bom"], ["146", "Seek And Shall Find: More Of The Best (1963-1981)"], ["147", "The Best Of Men At Work"], ["148", "Black Album"], ["149", "Garage Inc. (Disc 2)"], ["150", "Kill 'Em All"], ["151", "Load"], ["152", "Master Of Puppets"], ["153", "ReLoad"], ["154", "Ride The Lightning"], ["155", "St. Anger"], ["156", "...And Justice For All"], ["157", "Miles Ahead"], ["158", "Milton Nascimento Ao Vivo"], ["159", "Minas"], ["160", "Ace Of Spades"], ["161", "Demorou..."], ["162", "Motley Crue Greatest Hits"], ["163", "From The Muddy Banks Of The Wishkah live"], ["164", "Nevermind"], ["165", "Compositores"], ["166", "Olodum"], ["167", "Ac\u00fastico MTV"], ["168", "Arquivo II"], ["169", "Arquivo Os Paralamas Do Sucesso"], ["170", "Bark at the Moon (Remastered)"], ["171", "Blizzard of Ozz"], ["172", "Diary of a Madman (Remastered)"], ["173", "No More Tears (Remastered)"], ["174", "Tribute"], ["175", "Walking Into Clarksdale"], ["176", "Original Soundtracks 1"], ["177", "The Beast Live"], ["178", "Live On Two Legs live"], ["179", "Pearl Jam"], ["180", "Riot Act"], ["181", "Ten"], ["182", "Vs."], ["183", "Dark Side Of The Moon"], ["184", "Os C\u00e3es Ladram Mas A Caravana N\u00e3o P\u00e1ra"], ["185", "Greatest Hits I"], ["186", "News Of The World"], ["187", "Out Of Time"], ["188", "Green"], ["189", "New Adventures In Hi-Fi"], ["190", "The Best Of R.E.M.: The IRS Years"], ["191", "Cesta B\u00e1sica"], ["192", "Raul Seixas"], ["193", "Blood Sugar Sex Magik"], ["194", "By The Way"], ["195", "Californication"], ["196", "Retrospective I (1974-1980)"], ["197", "Santana - As Years Go By"], ["198", "Santana Live"], ["199", "Maquinarama"], ["200", "O Samba Pocon\u00e9"], ["201", "Judas 0: B-Sides and Rarities"], ["202", "Rotten Apples: Greatest Hits"], ["203", "A-Sides"], ["204", "Morning Dance"], ["205", "In Step"], ["206", "Core"], ["207", "Mezmerize"], ["208", "1997 Black Light Syndrome"], ["209", "Live [Disc 1]"], ["210", "Live [Disc 2]"], ["211", "The Singles"], ["212", "Beyond Good And Evil"], ["213", "Pure Cult: The Best Of The Cult (For Rockers, Ravers, Lovers & Sinners) UK"], ["214", "The Doors"], ["215", "The Police Greatest Hits"], ["216", "Hot Rocks, 1964-1971 (Disc 1)"], ["217", "No Security"], ["218", "Voodoo Lounge"], ["219", "Tangents"], ["220", "Transmission"], ["221", "My Generation - The Very Best Of The Who"], ["222", "Serie Sem Limite (Disc 1)"], ["223", "Serie Sem Limite (Disc 2)"], ["224", "Ac\u00fastico"], ["225", "Volume Dois"], ["226", "Battlestar Galactica: The Story So Far"], ["227", "Battlestar Galactica, Season 3"], ["228", "Heroes, Season 1"], ["229", "Lost, Season 3"], ["230", "Lost, Season 1"], ["231", "Lost, Season 2"], ["232", "Achtung Baby"], ["233", "All That You Can't Leave Behind"], ["234", "B-Sides 1980-1990"], ["235", "How To Dismantle An Atomic Bomb"], ["236", "Pop"], ["237", "Rattle And Hum"], ["238", "The Best Of 1980-1990"], ["239", "War"], ["240", "Zooropa"], ["241", "UB40 The Best Of - Volume Two UK"], ["242", "Diver Down"], ["243", "The Best Of Van Halen, Vol. I"], ["244", "Van Halen"], ["245", "Van Halen III"], ["246", "Contraband"], ["247", "Vinicius De Moraes"], ["248", "Ao Vivo IMPORT"], ["249", "The Office, Season 1"], ["250", "The Office, Season 2"], ["251", "The Office, Season 3"], ["252", "Un-Led-Ed"], ["253", "Battlestar Galactica (Classic), Season 1"], ["254", "Aquaman"], ["255", "Instant Karma: The Amnesty International Campaign to Save Darfur"], ["256", "Speak of the Devil"], ["257", "20th Century Masters - The Millennium Collection: The Best of Scorpions"], ["258", "House of Pain"], ["259", "Radio Brasil (O Som da Jovem Vanguarda) - Seleccao de Henrique Amaro"], ["260", "Cake: B-Sides and Rarities"], ["261", "LOST, Season 4"], ["262", "Quiet Songs"], ["263", "Muso Ko"], ["264", "Realize"], ["265", "Every Kind of Light"], ["266", "Duos II"], ["267", "Worlds"], ["268", "The Best of Beethoven"], ["269", "Temple of the Dog"], ["270", "Carry On"], ["271", "Revelations"], ["272", "Adorate Deum: Gregorian Chant from the Proper of the Mass"], ["273", "Allegri: Miserere"], ["274", "Pachelbel: Canon & Gigue"], ["275", "Vivaldi: The Four Seasons"], ["276", "Bach: Violin Concertos"], ["277", "Bach: Goldberg Variations"], ["278", "Bach: The Cello Suites"], ["279", "Handel: The Messiah (Highlights)"], ["280", "The World of Classical Favourites"], ["281", "Sir Neville Marriner: A Celebration"], ["282", "Mozart: Wind Concertos"], ["283", "Haydn: Symphonies 99 - 104"], ["284", "Beethoven: Symhonies Nos. 5 & 6"], ["285", "A Soprano Inspired"], ["286", "Great Opera Choruses"], ["287", "Wagner: Favourite Overtures"], ["288", "Faur\u00e9: Requiem, Ravel: Pavane & Others"], ["289", "Tchaikovsky: The Nutcracker"], ["290", "The Last Night of the Proms"], ["291", "Puccini: Madama Butterfly - Highlights"], ["292", "Holst: The Planets, Op. 32 & Vaughan Williams: Fantasies"], ["293", "Pavarotti's Opera Made Easy"], ["294", "Great Performances - Barber's Adagio and Other Romantic Favorites for Strings"], ["295", "Carmina Burana"], ["296", "A Copland Celebration, Vol. I"], ["297", "Bach: Toccata & Fugue in D Minor"], ["298", "Prokofiev: Symphony No.1"], ["299", "Scheherazade"], ["300", "Bach: The Brandenburg Concertos"], ["301", "Chopin: Piano Concertos Nos. 1 & 2"], ["302", "Mascagni: Cavalleria Rusticana"], ["303", "Sibelius: Finlandia"], ["304", "Beethoven Piano Sonatas: Moonlight & Pastorale"], ["305", "Great Recordings of the Century - Mahler: Das Lied von der Erde"], ["306", "Elgar: Cello Concerto & Vaughan Williams: Fantasias"], ["307", "Adams, John: The Chairman Dances"], ["308", "Tchaikovsky: 1812 Festival Overture, Op.49, Capriccio Italien & Beethoven: Wellington's Victory"], ["309", "Palestrina: Missa Papae Marcelli & Allegri: Miserere"], ["310", "Prokofiev: Romeo & Juliet"], ["311", "Strauss: Waltzes"], ["312", "Berlioz: Symphonie Fantastique"], ["313", "Bizet: Carmen Highlights"], ["314", "English Renaissance"], ["315", "Handel: Music for the Royal Fireworks (Original Version 1749)"], ["316", "Grieg: Peer Gynt Suites & Sibelius: Pell\u00e9as et M\u00e9lisande"], ["317", "Mozart Gala: Famous Arias"], ["318", "SCRIABIN: Vers la flamme"], ["319", "Armada: Music from the Courts of England and Spain"], ["320", "Mozart: Symphonies Nos. 40 & 41"], ["321", "Back to Black"], ["322", "Frank"], ["323", "Carried to Dust (Bonus Track Version)"], ["324", "Beethoven: Symphony No. 6 'Pastoral' Etc."], ["325", "Bartok: Violin & Viola Concertos"], ["326", "Mendelssohn: A Midsummer Night's Dream"], ["327", "Bach: Orchestral Suites Nos. 1 - 4"], ["328", "Charpentier: Divertissements, Airs & Concerts"], ["329", "South American Getaway"], ["330", "G\u00f3recki: Symphony No. 3"], ["331", "Purcell: The Fairy Queen"], ["332", "The Ultimate Relexation Album"], ["333", "Purcell: Music for the Queen Mary"], ["334", "Weill: The Seven Deadly Sins"], ["335", "J.S. Bach: Chaconne, Suite in E Minor, Partita in E Major & Prelude, Fugue and Allegro"], ["336", "Prokofiev: Symphony No.5 & Stravinksy: Le Sacre Du Printemps"], ["337", "Szymanowski: Piano Works, Vol. 1"], ["338", "Nielsen: The Six Symphonies"], ["339", "Great Recordings of the Century: Paganini's 24 Caprices"], ["340", "Liszt - 12 \u00c9tudes D'Execution Transcendante"], ["341", "Great Recordings of the Century - Shubert: Schwanengesang, 4 Lieder"], ["342", "Locatelli: Concertos for Violin, Strings and Continuo, Vol. 3"], ["343", "Respighi:Pines of Rome"], ["344", "Schubert: The Late String Quartets & String Quintet (3 CD's)"], ["345", "Monteverdi: L'Orfeo"], ["346", "Mozart: Chamber Music"], ["347", "Koyaanisqatsi (Soundtrack from the Motion Picture)"], ["3", "Sales Support Agent"], ["4", "Sales Support Agent"], ["5", "Sales Support Agent"], ["7", "IT Staff"], ["8", "IT Staff"]]}, "table_names": "['albums' 'employees']", "table_image_ids": ["TableImg_B9vs6_347.png", "TableImg_Wqxsd_8.png"], "original_data_index": 664, "original_sql": "SELECT id, title FROM albums WHERE \"id\" > 97 UNION ALL SELECT id, title FROM employees WHERE \"reports_to\" != 1.0"} {"question": "Can you give me a list of driver IDs where the driver ID is greater than 8 from the driver table, combined with a list of driver IDs where the driver ID is not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["3"], ["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Es9r3_12.png", "TableImg_Tw7d7_5.png"], "original_data_index": 662, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of student and pet IDs, including those where the student ID is 1002 or less, and also those where the pet ID is 2001 or less?", "answer": {"columns": ["StuID", "PetID"], "index": [0, 1, 2], "data": [["1001", "2001"], ["1002", "2002"], ["1002", "2003"]]}, "table_names": "['Has_Pet' 'Has_Pet']", "table_image_ids": ["TableImg_Fbyb4_3.png", "TableImg_I22w3_3.png"], "original_data_index": 663, "original_sql": "SELECT StuID, PetID FROM Has_Pet WHERE \"StuID\" <= 1002 UNION SELECT StuID, PetID FROM Has_Pet WHERE \"PetID\" <= 2001"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 1, where each ID appears more than once in the aircraft table, but is not an aircraft ID that appears more than once in the airport_aircraft table, excluding aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J2bqv_5.png", "TableImg_Gjntq_4.png"], "original_data_index": 661, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Could you give me the sum of heights, the smallest People ID, the earliest Nationality, the latest Name, and the number of birth dates for people born on May 26, 1986, and then combine that with the same information for people whose height is not 207?", "answer": {"columns": ["SUM(Height)", "MIN(People_ID)", "MIN(Nationality)", "MAX(Name)", "COUNT(Birth_Date)"], "index": [0, 1], "data": [["207", "1", "Russia", "Aleksey Ostapenko", "1"], ["1157", "2", "Bulgaria", "Yevgeni Sivozhelez", "6"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_X1kc7_7.png", "TableImg_Su4bd_7.png"], "original_data_index": 665, "original_sql": "SELECT SUM(Height), MIN(People_ID), MIN(Nationality), MAX(Name), COUNT(Birth_Date) FROM people WHERE Birth_Date = \"May 26, 1986\" UNION ALL SELECT SUM(Height), MIN(People_ID), MIN(Nationality), MAX(Name), COUNT(Birth_Date) FROM people WHERE \"Height\" != 207.0"} {"question": "Can you list the aircraft IDs that are less than or equal to 3, excluding those aircraft IDs that are also greater than or equal to 5 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Frz0i_5.png", "TableImg_5ez4p_4.png"], "original_data_index": 666, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are equal to 2 in the driver table, but not less than or equal to 10 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C5y75_12.png", "TableImg_X1bq6_5.png"], "original_data_index": 667, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me a list of driver IDs that are less than 11 and also less than 7, considering only the unique driver IDs from the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4keva_12.png", "TableImg_4wu20_5.png"], "original_data_index": 668, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you show me the earnings, money rank, and best finish for poker players, including those with a best finish of 2.0 or better, a money rank less than 58, earnings not equal to 189233, a player ID of 4 or greater, or final tables made less than 19, along with those with a money rank of 166 or greater and a player ID not equal to 4, or earnings not equal to 596462 and a people ID of 6 or less?", "answer": {"columns": ["Earnings", "Money_Rank", "Best_Finish"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["476090", "68", "1"], ["189233", "141", "2"], ["104871", "166", "1"], ["596462", "58", "2"], ["142800", "154", "3"], ["476090", "68", "1"], ["189233", "141", "2"], ["104871", "166", "1"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_Cwezn_5.png", "TableImg_Rnvu4_5.png"], "original_data_index": 669, "original_sql": "SELECT Earnings, Money_Rank, Best_Finish FROM poker_player WHERE \"Best_Finish\" >= 2.0 AND \"Money_Rank\" < 58.0 OR \"Earnings\" <> 189233.0 OR \"Poker_Player_ID\" >= 4 OR \"Final_Table_Made\" < 19.0 UNION ALL SELECT Earnings, Money_Rank, Best_Finish FROM poker_player WHERE \"Money_Rank\" >= 166.0 AND \"Poker_Player_ID\" != 4 OR \"Earnings\" <> 596462.0 AND \"People_ID\" <= 6"} {"question": "Which driver IDs are both greater than or equal to 8 and appear in the driver table, and also less than or equal to 10 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6qvnz_12.png", "TableImg_Tku0a_5.png"], "original_data_index": 672, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are equal to 5 in the driver table, but not less than 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6i9xp_12.png", "TableImg_928ne_5.png"], "original_data_index": 670, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs, including those greater than 12 from the driver table and those less than or equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4nnrg_12.png", "TableImg_Ceh75_5.png"], "original_data_index": 674, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Could you list the city area and store ID for stores where the store ID is greater than 1 and either the city population is 134936, or the headquarters city isn't \"Khanewal City\" and the district name isn't \"Khanewal District\"?", "answer": {"columns": ["City_Area", "Store_ID"], "index": [0, 1, 2], "data": [["10", "3"], ["15", "4"], ["38", "5"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_Xw1ap_15.png", "TableImg_Sse4x_5.png"], "original_data_index": 675, "original_sql": "SELECT T1.City_Area, T2.Store_ID FROM district as T1 JOIN store_district as T2 ON T1.District_ID == T2.District_ID GROUP BY Store_ID HAVING Store_ID > 1 AND City_Population = 134936.0 OR Headquartered_City <> \"Khanewal City\" AND District_name <> \"Khanewal District\""} {"question": "Can you give me a list of aircraft IDs that are less than 5, excluding those aircraft IDs from airport aircraft that are not equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3w9aw_5.png", "TableImg_Dicit_4.png"], "original_data_index": 671, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Which driver IDs are both less than or equal to 5 in the driver table and greater than 3 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ycp47_12.png", "TableImg_Al6ot_5.png"], "original_data_index": 678, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Could you give me a list of birth dates from the people table, including those where either the People ID is not 2, the nationality is not Russia, the name is not Roman Bragin, the height is greater than 205, or the birth date is not February 8, 1981; and also include birth dates where either the nationality is not Russia, the name is Teodor Salparov, the People ID is not 5, or the birth date is not August 8, 1986?", "answer": {"columns": ["Birth_Date"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["April 17, 1987"], ["August 16, 1982"], ["August 8, 1986"], ["February 8, 1981"], ["January 22, 1987"], ["July 14, 1983"], ["May 26, 1986"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Rjjrh_7.png", "TableImg_8jjdv_7.png"], "original_data_index": 673, "original_sql": "SELECT Birth_Date FROM people WHERE \"People_ID\" != 2 OR Nationality <> \"Russia\" OR Name != \"Roman Bragin\" OR \"Height\" > 205.0 OR Birth_Date != \"February 8, 1981\" UNION SELECT Birth_Date FROM people WHERE Nationality <> \"Russia\" OR Name = \"Teodor Salparov\" OR \"People_ID\" <> 5 OR Birth_Date <> \"August 8, 1986\""} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 10, and those from the school bus table excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qg35k_12.png", "TableImg_Obp3o_5.png"], "original_data_index": 681, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are greater than 10 and appear more than once in the driver table but not in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0w98f_12.png", "TableImg_39lm4_5.png"], "original_data_index": 677, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs that are not 11, and are also not driver IDs that are less than 7 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ip2au_12.png", "TableImg_Dxrsg_5.png"], "original_data_index": 682, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "What is the average airport ID associated with each aircraft ID?", "answer": {"columns": ["Aircraft_ID", "AVG(T2.Airport_ID)"], "index": [0], "data": [["2", "4.5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_E82wj_5.png", "TableImg_D5qhe_4.png"], "original_data_index": 683, "original_sql": "SELECT T1.Aircraft_ID, AVG(T2.Airport_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wt6qt_12.png", "TableImg_677ux_5.png"], "original_data_index": 684, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 4, and those from the school_bus table where the ID is less than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uxexf_12.png", "TableImg_Fwdlj_5.png"], "original_data_index": 685, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me the name, equity shareholding, place of incorporation, principal activities, and ID for all companies where either the principal activity isn't laundry, or they're incorporated in Hong Kong, or their equity shareholding is greater than 18.77, or they're a subsidiary and their name isn't Cathay Pacific Cargo and their ID is less than 1; along with the name, equity shareholding, place of incorporation, principal activities, and ID for all companies where the principal activity is cargo, or their ID is 1, or they're not incorporated in Taiwan and their equity shareholding is 40.0?", "answer": {"columns": ["name", "Group_Equity_Shareholding", "Incorporated_in", "Principal_activities", "id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16], "data": [["Air China", "18.77", "China", "Airline", "1"], ["Air China Cargo", "49.0", "China", "Cargo airline", "2"], ["Air Hong Kong", "60.0", "Hong Kong", "Cargo airline", "3"], ["Dragonair", "100.0", "Hong Kong", "Airline", "4"], ["Cathay Pacific Cargo", "100.0", "Hong Kong", "Cargo airline", "5"], ["Cathay Pacific Catering Services (HK) Limited", "100.0", "Hong Kong", "Catering services", "6"], ["Cathay Pacific Services Limited", "100.0", "Hong Kong", "Cargo", "7"], ["Cathay Pacific Holidays", "100.0", "Hong Kong", "Travel agency", "8"], ["Dragonair Holidays", "100.0", "Hong Kong", "Travel agency", "9"], ["Hong Kong Airport Services", "100.0", "Hong Kong", "Ground handling", "10"], ["Vogue Laundry Service Limited", "100.0", "Hong Kong", "Laundry", "11"], ["China Pacific Laundry Services", "45.0", "Taiwan", "Laundry", "12"], ["VN/CX Catering Services Limited", "40.0", "Vietnam", "Catering services", "13"], ["CLS Catering Services Limited", "30.0", "Canada", "Catering services", "14"], ["Air China", "18.77", "China", "Airline", "1"], ["Cathay Pacific Services Limited", "100.0", "Hong Kong", "Cargo", "7"], ["VN/CX Catering Services Limited", "40.0", "Vietnam", "Catering services", "13"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_Kud7w_14.png", "TableImg_300t3_14.png"], "original_data_index": 686, "original_sql": "SELECT name, Group_Equity_Shareholding, Incorporated_in, Principal_activities, id FROM operate_company WHERE Principal_activities <> \"Laundry\" OR Incorporated_in = \"Hong Kong\" OR \"Group_Equity_Shareholding\" > 18.77 OR Type = \"Subsidiary\" AND name <> \"Cathay Pacific Cargo\" AND \"id\" < 1 UNION ALL SELECT name, Group_Equity_Shareholding, Incorporated_in, Principal_activities, id FROM operate_company WHERE Principal_activities = \"Cargo\" OR \"id\" = 1 OR Incorporated_in != \"Taiwan\" AND \"Group_Equity_Shareholding\" = 40.0"} {"question": "Can you give me a list of driver IDs from the driver table where the ID is 2 or greater, combined with a list of driver IDs from the school bus table where the ID is exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iwfcy_12.png", "TableImg_Sq8l9_5.png"], "original_data_index": 687, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Which driver IDs are both not equal to 6 and also less than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_41fqs_12.png", "TableImg_Fvjlw_5.png"], "original_data_index": 688, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which driver IDs are less than 9 and also greater than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Spj54_12.png", "TableImg_7o3q0_5.png"], "original_data_index": 689, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 4, and those from the school bus table where the ID is greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eosqq_12.png", "TableImg_6g2c9_5.png"], "original_data_index": 679, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the writer and book ID for all books where the book ID is 4 or greater, or the writer is not Christopher Moeller and the number of issues is 4 or greater, or the title is not Bloody Mary, combined with the writer and book ID for books where the book ID is greater than 9 or the title is BrainBanx?", "answer": {"columns": ["Writer", "Book_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["Christopher Hinz", "6"], ["Christopher Hinz", "8"], ["Christopher Moeller", "10"], ["Dave Gibbons", "7"], ["Elaine Lee", "4"], ["Garth Ennis", "2"], ["Garth Ennis", "3"], ["Howard Chaykin", "5"], ["Michael Moorcock", "9"], ["Timothy Truman", "1"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_2rk0y_10.png", "TableImg_4fko2_10.png"], "original_data_index": 692, "original_sql": "SELECT Writer, Book_ID FROM book WHERE \"Book_ID\" >= 4 OR Writer <> \"Christopher Moeller\" AND \"Issues\" >= 4.0 OR Title <> \"Bloody Mary\" UNION SELECT Writer, Book_ID FROM book WHERE \"Book_ID\" > 9 OR Title = \"BrainBanx\""} {"question": "Can you list all the aircraft IDs, including those that appear only once in the aircraft table with an ID of 1, and those that appear in the airport_aircraft table with IDs not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_213ma_5.png", "TableImg_4ix3e_4.png"], "original_data_index": 693, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 3 from the aircraft table, and combine that with a list of all aircraft IDs, excluding aircraft ID 5, from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Q9dha_5.png", "TableImg_G6jnv_4.png"], "original_data_index": 695, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 4 or greater, and those from the school bus table where the ID is 9 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xxd4p_12.png", "TableImg_Q3wif_5.png"], "original_data_index": 694, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 6 and are not equal to 10, considering only the driver IDs that appear in both the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1qqbx_12.png", "TableImg_Ge4bz_5.png"], "original_data_index": 696, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_29v95_12.png", "TableImg_Wkgy0_5.png"], "original_data_index": 697, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "What is the average head ID for heads born in Alabama, excluding those named Dudley Hart, combined with the average head ID for management where the head ID is 5 or greater and they are temporarily acting?", "answer": {"columns": ["AVG(head_ID)"], "index": [0, 1], "data": [["2.0"], ["5.5"]]}, "table_names": "['head' 'management']", "table_image_ids": ["TableImg_Wasm9_10.png", "TableImg_U9yxm_5.png"], "original_data_index": 698, "original_sql": "SELECT AVG(head_ID) FROM head WHERE born_state = \"Alabama\" AND name != \"Dudley Hart\" UNION ALL SELECT AVG(head_ID) FROM management WHERE \"head_ID\" >= 5 AND temporary_acting = \"Yes\""} {"question": "Which driver IDs, excluding driver ID 10, are also driver IDs less than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_R9ly1_12.png", "TableImg_12nde_5.png"], "original_data_index": 699, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of aircraft IDs that are not equal to 1 and are also less than or equal to 5, considering only aircraft IDs that appear in both the aircraft and airport_aircraft tables?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ul3tp_5.png", "TableImg_Zr10e_4.png"], "original_data_index": 700, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me the IDs of coaches who are either not named Robert Chen, are not female, or have a rank of 5 or higher, but only for those coaches who are also not coach ID 3 in the player_coach table and either started in a year other than 2013 or have a player ID greater than 6?", "answer": {"columns": ["Coach_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_Lqhqi_5.png", "TableImg_9e3rb_7.png"], "original_data_index": 701, "original_sql": "SELECT Coach_ID FROM coach WHERE Coach_name <> \"Robert Chen\" OR Gender != \"F\" OR \"Rank\" >= 5 INTERSECT SELECT Coach_ID FROM player_coach WHERE \"Coach_ID\" <> 3 AND \"Starting_year\" != 2013 OR \"Player_ID\" > 6"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 4 and also less than 9, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P9vl5_12.png", "TableImg_Vaoef_5.png"], "original_data_index": 690, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a combined list of property information, including maximum date on market, maximum property type code, other property details, count of hse_feature_1, oth_feature_2, maximum hse_feature_2, agreed selling price, apt_feature_1, minimum oth_feature_3, sum of property name, minimum date sold, fld_feature_1, minimum vendor requested price, minimum fld_feature_2, maximum apt_feature_3, count of shp_feature_3, minimum buyer offered price, property ID, average room count, property address, oth_feature_1, count of hse_feature_3, maximum shp_feature_2, apt_feature_2, and shp_feature_1, first for properties where hse_feature_2 is \"None\", and then for properties where hse_feature_1 is not \"None\" and fld_feature_2 is not \"None\", or shp_feature_3 is not \"None\" and date_on_market is \"1978-05-15 10:53:37\", or \"agreed_selling_price\" is not 2794972.2495 and other_property_details is not \"None\", or fld_feature_1 is not \"None\" and \"property_id\" is not 1 and property_type_code is not \"Apartment\", or hse_feature_2 is not \"None\" and property_address is not \"986 Hagenes Drives Draketon, UT 83411-3393\" and apt_feature_3 is not \"None\" and shp_feature_1 is not \"None\" and \"vendor_requested_price\" is 77172926.3?", "answer": {"columns": ["MAX(date_on_market)", "MAX(property_type_code)", "other_property_details", "COUNT(hse_feature_1)", "oth_feature_2", "MAX(hse_feature_2)", "agreed_selling_price", "apt_feature_1", "MIN(oth_feature_3)", "SUM(property_name)", "MIN(date_sold)", "fld_feature_1", "MIN(vendor_requested_price)", "MIN(fld_feature_2)", "MAX(apt_feature_3)", "COUNT(shp_feature_3)", "MIN(buyer_offered_price)", "property_id", "AVG(room_count)", "property_address", "oth_feature_1", "COUNT(hse_feature_3)", "MAX(shp_feature_2)", "apt_feature_2", "shp_feature_1"], "index": [0, 1], "data": [["", "", "", "0", "", "", "", "", "", "", "", "", "", "", "", "0", "", "", "", "", "", "0", "", "", ""], ["", "", "", "0", "", "", "", "", "", "", "", "", "", "", "", "0", "", "", "", "", "", "0", "", "", ""]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Zfjet_15.png", "TableImg_Lmhms_15.png"], "original_data_index": 691, "original_sql": "SELECT MAX(date_on_market), MAX(property_type_code), other_property_details, COUNT(hse_feature_1), oth_feature_2, MAX(hse_feature_2), agreed_selling_price, apt_feature_1, MIN(oth_feature_3), SUM(property_name), MIN(date_sold), fld_feature_1, MIN(vendor_requested_price), MIN(fld_feature_2), MAX(apt_feature_3), COUNT(shp_feature_3), MIN(buyer_offered_price), property_id, AVG(room_count), property_address, oth_feature_1, COUNT(hse_feature_3), MAX(shp_feature_2), apt_feature_2, shp_feature_1 FROM Properties WHERE hse_feature_2 = \"None\" UNION ALL SELECT MAX(date_on_market), MAX(property_type_code), other_property_details, COUNT(hse_feature_1), oth_feature_2, MAX(hse_feature_2), agreed_selling_price, apt_feature_1, MIN(oth_feature_3), SUM(property_name), MIN(date_sold), fld_feature_1, MIN(vendor_requested_price), MIN(fld_feature_2), MAX(apt_feature_3), COUNT(shp_feature_3), MIN(buyer_offered_price), property_id, AVG(room_count), property_address, oth_feature_1, COUNT(hse_feature_3), MAX(shp_feature_2), apt_feature_2, shp_feature_1 FROM Properties WHERE hse_feature_1 <> \"None\" AND fld_feature_2 <> \"None\" OR shp_feature_3 != \"None\" AND date_on_market = \"1978-05-15 10:53:37\" OR \"agreed_selling_price\" != 2794972.2495 AND other_property_details <> \"None\" OR fld_feature_1 != \"None\" AND \"property_id\" != 1 AND property_type_code <> \"Apartment\" OR hse_feature_2 <> \"None\" AND property_address <> \"986 Hagenes Drives Draketon, UT 83411-3393\" AND apt_feature_3 <> \"None\" AND shp_feature_1 <> \"None\" AND \"vendor_requested_price\" = 77172926.3"} {"question": "Can you list the driver IDs from the driver table that are less than 7, and combine that list with the driver IDs from the school_bus table that are 7 or greater, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ka75y_12.png", "TableImg_7gven_5.png"], "original_data_index": 705, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Give me a list of car models, excluding Cadillacs, but then remove any models that are either Chevrolets or have a ModelId that isn't 23.", "answer": {"columns": ["Model"], "index": [0], "data": [["peugeot"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_Csyji_36.png", "TableImg_Dvrwp_36.png"], "original_data_index": 703, "original_sql": "SELECT Model FROM model_list WHERE Model <> \"cadillac\" EXCEPT SELECT Model FROM model_list WHERE \"ModelId\" != 23 OR Model = \"chevrolet\""} {"question": "Can you list all the template type codes, including those that are not \"BK\" from the template types reference table, and those that are \"CV\" or have a version number not equal to 5 from the templates table?", "answer": {"columns": ["Template_Type_Code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], "data": [["AD"], ["CV"], ["PP"], ["PPT"], ["PP"], ["BK"], ["PPT"], ["PPT"], ["BK"], ["BK"], ["PPT"], ["BK"], ["AD"], ["CV"], ["CV"], ["AD"], ["BK"], ["AD"], ["PP"], ["BK"], ["PP"]]}, "table_names": "['Ref_Template_Types' 'Templates']", "table_image_ids": ["TableImg_2a08c_5.png", "TableImg_Scamz_20.png"], "original_data_index": 704, "original_sql": "SELECT Template_Type_Code FROM Ref_Template_Types WHERE Template_Type_Code != \"BK\" UNION ALL SELECT Template_Type_Code FROM Templates WHERE Template_Type_Code = \"CV\" OR \"Version_Number\" <> 5"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sgbk5_12.png", "TableImg_S9mvu_5.png"], "original_data_index": 702, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Could you list the description and ID of clubs that are located in AKW and have a description different from \"Refurbish computers; teach kids and adults about computer basics.\", but only include those clubs whose description is also different from \"Refurbish computers; teach kids and adults about computer basics.\" and whose ClubID is greater than or equal to 3?", "answer": {"columns": ["ClubDesc", "ClubID"], "index": [0], "data": [["A competitive tennis club.", "4"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Hwvd6_4.png", "TableImg_U2gjp_4.png"], "original_data_index": 709, "original_sql": "SELECT ClubDesc, ClubID FROM Club WHERE ClubDesc <> \"Refurbish computers; teach kids and adults about computer basics.\" AND ClubLocation = \"AKW\" INTERSECT SELECT ClubDesc, ClubID FROM Club WHERE ClubDesc != \"Refurbish computers; teach kids and adults about computer basics.\" AND \"ClubID\" >= 3"} {"question": "Can you list the aircraft IDs that are less than 4 from the aircraft table, and also list the aircraft IDs that are less than 3 from the airport_aircraft table, combining the two lists into one?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3y6gi_5.png", "TableImg_Gqi42_4.png"], "original_data_index": 708, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 4, and those from the school bus table that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Y9bbe_12.png", "TableImg_Ftgmt_5.png"], "original_data_index": 706, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs less than 6, excluding those driver IDs that are not equal to 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9ceiy_12.png", "TableImg_Uetka_5.png"], "original_data_index": 707, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "What are the aircraft IDs that are not equal to 1 and are also not equal to 2 in the airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_6gm3n_5.png", "TableImg_A3a4k_4.png"], "original_data_index": 713, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs are both greater than or equal to 1 in the driver table and less than or equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uo6xv_12.png", "TableImg_9ynem_5.png"], "original_data_index": 710, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Which driver IDs are greater than 5 and appear in the driver table, and are also greater than 4 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_C0e2x_12.png", "TableImg_As5rw_5.png"], "original_data_index": 711, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 12 from the driver table and excluding driver ID 3 from the school_bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Avgqk_12.png", "TableImg_A5our_5.png"], "original_data_index": 712, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list the aircraft IDs that are less than 5 from the aircraft table, and also include aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9jyuq_5.png", "TableImg_0n1uz_4.png"], "original_data_index": 716, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "Which driver IDs are greater than 1, but not less than 10 and also present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_33k3w_12.png", "TableImg_F3t6s_5.png"], "original_data_index": 714, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which driver IDs are both greater than 4 and also not equal to 4, considering drivers from both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cqb0m_12.png", "TableImg_S0xlo_5.png"], "original_data_index": 717, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me the smallest item ID from the item table, along with the item ID from the review table, but only for cases where the sum of a_id is greater than 3, the average of u_id is equal to 1, the title is \"blue hoodie\", or the sum of rank is greater than 6?", "answer": {"columns": ["MIN(T1.i_id)", "i_id"], "index": [0], "data": [["7", "7"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Sabgv_8.png", "TableImg_Ldoii_7.png"], "original_data_index": 715, "original_sql": "SELECT MIN(T1.i_id), T2.i_id FROM item as T1 JOIN review as T2 ON T1.i_id = T2.i_id WHERE SUM(a_id) > 3 OR AVG(u_id) = 1 OR title = \"blue hoodie\" OR SUM(rank) > 6"} {"question": "How many airports are associated with each aircraft?", "answer": {"columns": ["Aircraft_ID", "COUNT(T2.Airport_ID)"], "index": [0], "data": [["2", "4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_80fen_5.png", "TableImg_05jsh_4.png"], "original_data_index": 722, "original_sql": "SELECT T1.Aircraft_ID, COUNT(T2.Airport_ID) FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs greater than 10 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Adbfi_12.png", "TableImg_5rjbx_5.png"], "original_data_index": 718, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list all aircraft IDs, first those that appear in the aircraft table excluding ID 5, and then those from the airport_aircraft table with IDs greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2q6fv_5.png", "TableImg_81aur_4.png"], "original_data_index": 721, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you list the aircraft IDs that are greater than or equal to 5 from the aircraft table, and also include aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ipcq9_5.png", "TableImg_0g5h8_4.png"], "original_data_index": 723, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2"} {"question": "How many lessons meet either of these sets of criteria: staff ID is 8 or less, lesson time is not 6, price is less than 306, and lesson ID is not 9; or customer ID is greater than 11 and the lesson status is not cancelled; or vehicle ID is 1 or less, or the lesson date is not March 7, 2018 at 4:12:36 PM? Also, how many lessons meet any of these criteria: lesson time is not 2, staff ID is greater than 14, lesson ID is 1 or greater, or the lesson date is not March 21, 2018 at 6:48:45 AM?", "answer": {"columns": ["COUNT(lesson_date)"], "index": [0, 1], "data": [["14"], ["15"]]}, "table_names": "['Lessons' 'Lessons']", "table_image_ids": ["TableImg_4jonr_15.png", "TableImg_Ip3sv_15.png"], "original_data_index": 719, "original_sql": "SELECT COUNT(lesson_date) FROM Lessons WHERE \"staff_id\" <= 8 AND lesson_time != \"6\" AND \"price\" < 306.0 AND \"lesson_id\" <> 9 OR \"customer_id\" > 11 AND lesson_status_code <> \"Cancelled\" OR \"vehicle_id\" <= 1 OR lesson_date != \"2018-03-07 16:12:36\" UNION ALL SELECT COUNT(lesson_date) FROM Lessons WHERE lesson_time != \"2\" OR \"staff_id\" > 14 OR \"lesson_id\" >= 1 OR lesson_date != \"2018-03-21 06:48:45\""} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 5, and then from the airport_aircraft table including only aircraft IDs up to 3, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M54cd_5.png", "TableImg_Jydr0_4.png"], "original_data_index": 724, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding ID 10, and those from the school bus table with ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1pg3m_12.png", "TableImg_82vv4_5.png"], "original_data_index": 725, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list the aircraft IDs that appear more than once in the aircraft table, where the ID is greater than 1, and combine that with a list of aircraft IDs that appear more than once in the airport_aircraft table, where the ID is greater than or equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_S6b3j_5.png", "TableImg_Jtsq3_4.png"], "original_data_index": 726, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Which driver has an ID of 8, but is not a driver with an ID other than 9 who drives a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hxo3w_12.png", "TableImg_I011k_5.png"], "original_data_index": 728, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me the highest branch ID, member ID, and register year for members registered in years other than 2017, but only if they also have the highest branch ID, member ID, and register year for members registered in 2016, or for members with an ID other than 7 and a branch ID other than 5?", "answer": {"columns": ["MAX(Branch_ID)", "Member_ID", "Register_Year"], "index": [0], "data": [["8", "8", "2016"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Lffv7_8.png", "TableImg_Hh5wc_8.png"], "original_data_index": 727, "original_sql": "SELECT MAX(Branch_ID), Member_ID, Register_Year FROM membership_register_branch WHERE Register_Year != \"2017\" INTERSECT SELECT MAX(Branch_ID), Member_ID, Register_Year FROM membership_register_branch WHERE Register_Year = \"2016\" OR \"Member_ID\" != 7 AND Branch_ID != \"5\""} {"question": "Can you give me the total bonus and average employee ID for each award year, first for employees who aren't employee 2 or didn't get the award in 2015, and then separately for employees who aren't employee 10 and have a bonus less than 3200?", "answer": {"columns": ["Year_awarded", "SUM(Bonus)", "AVG(Employee_ID)"], "index": [0, 1], "data": [["2011", "5900", "1.0"], ["2011", "16300", "4.6"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_Gupiv_6.png", "TableImg_4j0i9_6.png"], "original_data_index": 729, "original_sql": "SELECT Year_awarded, SUM(Bonus), AVG(Employee_ID) FROM evaluation WHERE Employee_ID != \"2\" OR Year_awarded <> \"2015\" UNION SELECT Year_awarded, SUM(Bonus), AVG(Employee_ID) FROM evaluation WHERE Employee_ID != \"10\" AND \"Bonus\" < 3200.0"} {"question": "Can you give me a list of driver IDs that are less than 5 and also appear in the list of school bus driver IDs, excluding driver ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6aun2_12.png", "TableImg_Xk1gk_5.png"], "original_data_index": 730, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Could you list the document IDs from the drafts table where the draft number is less than zero and the draft details are not \"k\", combined with the document IDs from the documents table where the shipping agent code is not \"US\" and either the document ID is greater than or equal to 1, the document type code is not \"Paper\", or the receipt date is not September 15, 1976 at 7:24 PM?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["15"], ["17"], ["20"], ["23"], ["24"], ["25"]]}, "table_names": "['Document_Drafts' 'Documents']", "table_image_ids": ["TableImg_Y3i11_15.png", "TableImg_Ikd2t_15.png"], "original_data_index": 731, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"draft_number\" < 0 AND draft_details <> \"k\" UNION ALL SELECT document_id FROM Documents WHERE shipping_agent_code != \"US\" AND \"document_id\" >= 1 OR document_type_code <> \"Paper\" OR receipt_date <> \"1976-09-15 19:24:17\""} {"question": "Which aircraft has an ID of 5 in the aircraft table, but does not have an ID other than 5 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mwzzz_5.png", "TableImg_G7aya_4.png"], "original_data_index": 733, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5"} {"question": "Can you give me a list of driver IDs less than or equal to 9, excluding driver ID 9 if it's also a school bus driver?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4tffu_12.png", "TableImg_15lfc_5.png"], "original_data_index": 735, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Which aircraft IDs are both greater than or equal to 2 when grouped in the aircraft table, and equal to 5 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wgcoi_5.png", "TableImg_I7ucn_4.png"], "original_data_index": 734, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 5"} {"question": "Can you give me a list of aircraft IDs that appear in the aircraft table, excluding aircraft ID 5, but only if they are not also aircraft IDs greater than or equal to 2 that appear in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Um8by_5.png", "TableImg_4x2qp_4.png"], "original_data_index": 732, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 11 or greater, and those from the school bus table that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_55npv_12.png", "TableImg_5k96m_5.png"], "original_data_index": 736, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, including those that are not 4 from the driver table, and those less than or equal to 10 from the school_bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U22dq_12.png", "TableImg_Ylsub_5.png"], "original_data_index": 737, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are greater than or equal to 6, but not less than or equal to 4, considering only the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1zf7a_12.png", "TableImg_3xs13_5.png"], "original_data_index": 738, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of airport names that are not in Billund, or don't have an ICAO code of EBBR, or don't have an IATA code of BLL, or aren't named \"Billund Airport\", combined with a list of operating company names that aren't \"CLS Catering Services Limited\" and whose principal activity is ground handling, or whose type is not \"Subsidiary\", or that are not incorporated in Vietnam?", "answer": {"columns": ["name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21], "data": [["Akureyri Airport"], ["Schiphol Airport"], ["Ted Stevens Airport"], ["Baltimore-Washington Airport"], ["El Prat Airport"], ["Bergen Airport"], ["Logan International Airport"], ["National Airport"], ["Air China"], ["Air China Cargo"], ["Air Hong Kong"], ["Dragonair"], ["Cathay Pacific Cargo"], ["Cathay Pacific Catering Services (HK) Limited"], ["Cathay Pacific Services Limited"], ["Cathay Pacific Holidays"], ["Dragonair Holidays"], ["Hong Kong Airport Services"], ["Vogue Laundry Service Limited"], ["China Pacific Laundry Services"], ["VN/CX Catering Services Limited"], ["CLS Catering Services Limited"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_Wkdbg_9.png", "TableImg_Mnwjd_14.png"], "original_data_index": 739, "original_sql": "SELECT name FROM airport WHERE City <> \"Billund\" AND ICAO != \"EBBR\" OR IATA <> \"BLL\" AND name != \"Billund Airport\" UNION ALL SELECT name FROM operate_company WHERE name <> \"CLS Catering Services Limited\" AND Principal_activities = \"Ground handling\" OR Type <> \"Subsidiary\" OR Incorporated_in <> \"Vietnam\""} {"question": "Can you list all document status codes from documents where the other details are \"z\", the status code is not \"done\", the document type is not \"Paper\", the document ID is greater than or equal to 23, the receipt number is \"61\", or the shipping agent code is not \"UP\", along with all document status codes from document statuses where the description is \"mailed\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["working"], ["done"], ["done"], ["working"], ["overdue"], ["overdue"], ["working"], ["working"], ["overdue"], ["done"], ["working"], ["working"], ["working"], ["overdue"], ["done"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_U6jje_15.png", "TableImg_Gzn4g_3.png"], "original_data_index": 740, "original_sql": "SELECT document_status_code FROM Documents WHERE other_details = \"z\" OR document_status_code <> \"done\" OR document_type_code != \"Paper\" OR \"document_id\" >= 23 OR receipt_number = \"61\" OR shipping_agent_code != \"UP\" UNION ALL SELECT document_status_code FROM Ref_Document_Status WHERE document_status_description = \"mailed\""} {"question": "Can you give me the driver ID of drivers with ID 10, excluding the driver IDs of school bus drivers with IDs up to 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B04mc_12.png", "TableImg_Vgwv4_5.png"], "original_data_index": 744, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list all car makers that are not from country code 1 and have the full name \"Chrysler\", and also list all car makers from the model list where the maker is not 13 or the model ID is 10 or greater?", "answer": {"columns": ["Maker"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35], "data": [["1"], ["2"], ["3"], ["4"], ["4"], ["5"], ["4"], ["6"], ["7"], ["8"], ["6"], ["9"], ["5"], ["10"], ["11"], ["12"], ["13"], ["13"], ["5"], ["8"], ["4"], ["14"], ["15"], ["6"], ["4"], ["16"], ["17"], ["18"], ["19"], ["20"], ["2"], ["21"], ["22"], ["23"], ["6"], ["19"]]}, "table_names": "['car_makers' 'model_list']", "table_image_ids": ["TableImg_Gfsmz_22.png", "TableImg_Ttiyj_36.png"], "original_data_index": 741, "original_sql": "SELECT Maker FROM car_makers WHERE Country != \"1\" AND FullName = \"Chrysler\" UNION ALL SELECT Maker FROM model_list WHERE \"Maker\" != 13 OR \"ModelId\" >= 10"} {"question": "Could you give me the document IDs from the Documents table, excluding any document IDs that are also in the Draft_Copies table, where in Documents the other details are \"y\", the receipt number is \"114\", the receipt date is \"2008-04-21 20:42:25\", the document status code is \"working\" and the shipping agent code is \"US\" and the document type code is not \"Hard Drive\", or the document ID is not 14, and in Draft_Copies the document ID is 4 or the draft number is less than or equal to 12?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["7"], ["10"], ["13"], ["15"], ["17"], ["20"], ["24"], ["25"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_Sf6uc_15.png", "TableImg_4rp3y_8.png"], "original_data_index": 743, "original_sql": "SELECT document_id FROM Documents WHERE other_details = \"y\" OR receipt_number = \"114\" OR receipt_date = \"2008-04-21 20:42:25\" OR document_status_code = \"working\" AND shipping_agent_code = \"US\" AND document_type_code <> \"Hard Drive\" OR \"document_id\" != 14 EXCEPT SELECT document_id FROM Draft_Copies WHERE \"document_id\" = 4 OR \"draft_number\" <= 12"} {"question": "What is the total school ID for schools that meet at least one of these conditions: are not in St. Joseph County and are located in Bourbon, are in IHSAA Class AA and have a school ID other than 2 and an enrollment of at least 605 and are not named Glenn, or are not in IHSAA Football Class AAA, excluding the total school ID from endowments with an amount not equal to 8.33?", "answer": {"columns": ["SUM(School_id)"], "index": [0], "data": [["24"]]}, "table_names": "['School' 'endowment']", "table_image_ids": ["TableImg_C0e4c_8.png", "TableImg_Pu3h1_11.png"], "original_data_index": 742, "original_sql": "SELECT SUM(School_id) FROM School WHERE County <> \"71 St. Joseph\" AND Location = \"Bourbon\" OR IHSAA_Class = \"AA\" AND School_id <> \"2\" AND \"Enrollment\" >= 605 AND School_name != \"Glenn\" OR IHSAA_Football_Class <> \"AAA\" EXCEPT SELECT SUM(School_id) FROM endowment WHERE \"amount\" <> 8.33"} {"question": "Can you give me a list of driver IDs that are less than 8 and also appear as driver IDs for school buses, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5odyt_12.png", "TableImg_W7ak7_5.png"], "original_data_index": 745, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me the Driver ID from the driver table, but only if that Driver ID is 11, and exclude any Driver IDs from the school_bus table that are less than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kcq8f_12.png", "TableImg_Rzt9s_5.png"], "original_data_index": 746, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Which driver IDs are both less than or equal to 5 and present in the driver table, and also less than or equal to 3 and present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cqcqa_12.png", "TableImg_8ixjz_5.png"], "original_data_index": 750, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "What is the largest store ID from the store district table, excluding those with district ID 15 and store ID 4, after removing the largest store IDs from the store product table where the store ID is greater than 5 and product ID is not 4?", "answer": {"columns": ["MAX(Store_ID)"], "index": [0], "data": [["5"]]}, "table_names": "['store_district' 'store_product']", "table_image_ids": ["TableImg_P4dee_5.png", "TableImg_Cbej6_15.png"], "original_data_index": 749, "original_sql": "SELECT MAX(Store_ID) FROM store_district WHERE \"District_ID\" <> 15 AND \"Store_ID\" <> 4 EXCEPT SELECT MAX(Store_ID) FROM store_product WHERE \"Store_ID\" > 5 AND \"Product_ID\" != 4"} {"question": "Which driver IDs are equal to 5 in the driver table, but are not greater than 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0kxch_12.png", "TableImg_Pfkot_5.png"], "original_data_index": 747, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me the total IHSAA football class size, the number of schools, the average location value, and the total school name value for schools that either have an IHSAA class of AA or don't have an IHSAA football class of A and aren't school ID 4, combined with the same information for schools named Jimtown located in New Carlisle?", "answer": {"columns": ["SUM(IHSAA_Football_Class)", "COUNT(School_id)", "AVG(Location)", "SUM(School_name)"], "index": [0, 1], "data": [["", "0", "", ""], ["0.0", "5", "0.0", "0.0"]]}, "table_names": "['School' 'School']", "table_image_ids": ["TableImg_2j45i_8.png", "TableImg_Cucgs_8.png"], "original_data_index": 748, "original_sql": "SELECT SUM(IHSAA_Football_Class), COUNT(School_id), AVG(Location), SUM(School_name) FROM School WHERE IHSAA_Class = \"AA\" OR IHSAA_Football_Class != \"A\" AND School_id <> \"4\" UNION SELECT SUM(IHSAA_Football_Class), COUNT(School_id), AVG(Location), SUM(School_name) FROM School WHERE School_name = \"Jimtown\" AND Location = \"New Carlisle\""} {"question": "Can you give me the driver IDs that are equal to 6, but only if they are not also driver IDs that are greater than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uwxp2_12.png", "TableImg_Jpb96_5.png"], "original_data_index": 753, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, excluding driver ID 2, that are not also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ze9an_12.png", "TableImg_4a9fj_5.png"], "original_data_index": 751, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you list the aircraft IDs that are greater than or equal to 4 from the aircraft table, and also list the aircraft IDs that are less than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Edvs7_5.png", "TableImg_Pot42_4.png"], "original_data_index": 752, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you list the aircraft IDs that are less than or equal to 5, but only include those that are also not equal to 3 and are present in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_14351_5.png", "TableImg_Ai9b3_4.png"], "original_data_index": 754, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Which driver IDs, excluding driver ID 1, are also driver ID 9 in the school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xngzi_12.png", "TableImg_P624u_5.png"], "original_data_index": 757, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "What document type codes are used in documents, excluding \"Paper\", and are also document type codes with descriptions other than \"b\"?", "answer": {"columns": ["document_type_code"], "index": [0], "data": [["Hard Drive"]]}, "table_names": "['Documents' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Dmabd_15.png", "TableImg_Tdhxn_3.png"], "original_data_index": 756, "original_sql": "SELECT document_type_code FROM Documents WHERE document_type_code != \"Paper\" INTERSECT SELECT document_type_code FROM Ref_Document_Types WHERE document_type_description <> \"b\""} {"question": "Can you give me a list of driver IDs where the ID is 5 or greater from the driver table, combined with a list of driver IDs that are exactly 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W4vw4_12.png", "TableImg_Fa7lw_5.png"], "original_data_index": 755, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me the sum of Branch IDs, the earliest Register Year, and the Member ID for all entries in the membership register, combining two sets of results: first, those where the Member ID is 7 or higher, or the Branch ID isn't 5, or the Register Year isn't 2016; and second, those where the Register Year is 2017, or the Branch ID is 2 and the Member ID isn't 3?", "answer": {"columns": ["SUM(Branch_ID)", "MIN(Register_Year)", "Member_ID"], "index": [0, 1], "data": [["23", "2016", "1"], ["9", "2016", "7"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_Xzxh5_8.png", "TableImg_Ekbf4_8.png"], "original_data_index": 758, "original_sql": "SELECT SUM(Branch_ID), MIN(Register_Year), Member_ID FROM membership_register_branch WHERE \"Member_ID\" >= 7 OR Branch_ID <> \"5\" OR Register_Year != \"2016\" UNION ALL SELECT SUM(Branch_ID), MIN(Register_Year), Member_ID FROM membership_register_branch WHERE Register_Year = \"2017\" OR Branch_ID = \"2\" AND \"Member_ID\" != 3"} {"question": "Which driver IDs, less than or equal to 12, are in the driver list but not in the school bus list where the driver ID is 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Il7f5_12.png", "TableImg_5ychl_5.png"], "original_data_index": 761, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs that are less than 4, excluding any driver IDs that are not equal to 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Of6qp_12.png", "TableImg_Dwter_5.png"], "original_data_index": 760, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "How many employees, excluding Tim Payne and employee ID 2, who are under 40 are there, minus the number of shops in Jakobstad that are not KuPS, or have a manager other than Olli Huttunen, or are not in the Arto Tolsa Areena district?", "answer": {"columns": ["COUNT(Name)"], "index": [0], "data": [["6"]]}, "table_names": "['employee' 'shop']", "table_image_ids": ["TableImg_D8ox0_10.png", "TableImg_Kp5vm_9.png"], "original_data_index": 759, "original_sql": "SELECT COUNT(Name) FROM employee WHERE Name != \"Tim Payne\" AND \"Age\" < 40 AND \"Employee_ID\" <> 2 EXCEPT SELECT COUNT(Name) FROM shop WHERE Location = \"Jakobstad\" AND Name != \"KuPS\" OR Manager_name != \"Olli Huttunen\" OR District <> \"Arto Tolsa Areena\""} {"question": "Can you list all the driver IDs from the driver table that are greater than or equal to 1, combined with all the driver IDs from the school_bus table that are less than or equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_40olr_12.png", "TableImg_H7fy6_5.png"], "original_data_index": 763, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 10 or greater, and those from the school bus table that are less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qjaz9_12.png", "TableImg_Cgqwe_5.png"], "original_data_index": 762, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me a list of driver IDs that are 9 or greater from the driver table, excluding any driver IDs less than 9 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_H98cf_12.png", "TableImg_2ud8k_5.png"], "original_data_index": 764, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me the template IDs that are used in documents where the document description is not \"y\" or the other details are \"None\", but only for templates with a version number of 2 or higher?", "answer": {"columns": ["Template_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["4"], ["6"], ["7"], ["11"], ["14"], ["21"], ["25"]]}, "table_names": "['Documents' 'Templates']", "table_image_ids": ["TableImg_Cx61c_15.png", "TableImg_Pftjf_20.png"], "original_data_index": 765, "original_sql": "SELECT Template_ID FROM Documents WHERE Document_Description <> \"y\" OR Other_Details = \"None\" INTERSECT SELECT Template_ID FROM Templates WHERE \"Version_Number\" >= 2"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 4, from the aircraft table, and also include aircraft ID 1 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_V3v5n_5.png", "TableImg_Geuyl_4.png"], "original_data_index": 767, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Can you give me a list of driver IDs that are not equal to 2 from the driver table, excluding any driver IDs less than 10 that are in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Lxrfy_12.png", "TableImg_L5cu4_5.png"], "original_data_index": 768, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are not 12 and are also less than or equal to 10, considering only drivers who appear in both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7mf22_12.png", "TableImg_61w41_5.png"], "original_data_index": 766, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you give me the number of ranks, the average club ID, the gender, the number of coach names, and the lowest coach ID for coaches where either the coach's name is Robert Chen and their coach ID is 3 or higher, or their rank isn't 4, their gender isn't male, and their club ID is 3 or lower, but excluding those coaches where either their gender isn't female and their name is Robert Chen, or their coach ID is 5 or lower and their club ID isn't 3?", "answer": {"columns": ["COUNT(Rank)", "AVG(Club_ID)", "Gender", "COUNT(Coach_name)", "MIN(Coach_ID)"], "index": [0], "data": [["2", "2", "F", "2", "2"]]}, "table_names": "['coach' 'coach']", "table_image_ids": ["TableImg_88b60_5.png", "TableImg_Rp4fr_5.png"], "original_data_index": 769, "original_sql": "SELECT COUNT(Rank), AVG(Club_ID), Gender, COUNT(Coach_name), MIN(Coach_ID) FROM coach WHERE Coach_name = \"Robert Chen\" AND \"Coach_ID\" >= 3 OR \"Rank\" <> 4 AND Gender != \"M\" AND \"Club_ID\" <= 3 EXCEPT SELECT COUNT(Rank), AVG(Club_ID), Gender, COUNT(Coach_name), MIN(Coach_ID) FROM coach WHERE Gender <> \"F\" AND Coach_name = \"Robert Chen\" OR \"Coach_ID\" <= 5 AND \"Club_ID\" <> 3"} {"question": "Which driver IDs are both greater than 3 and also greater than or equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zkboc_12.png", "TableImg_I5pg1_5.png"], "original_data_index": 773, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs that are 10 or less, excluding those driver IDs that are 7 or greater and are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_On4fp_12.png", "TableImg_3609g_5.png"], "original_data_index": 772, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school_bus table where the ID is 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5o0bd_12.png", "TableImg_Plpb5_5.png"], "original_data_index": 771, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list each store ID along with its smallest district ID, considering only stores that either aren't store 5 or are in a district other than 15, and combine that with a list of each store ID and its smallest district ID, but only for stores with an ID greater than 2 and in a district greater than 3?", "answer": {"columns": ["Store_ID", "MIN(District_ID)"], "index": [0, 1], "data": [["4", "4"], ["5", "3"]]}, "table_names": "['store_district' 'store_district']", "table_image_ids": ["TableImg_Vf460_5.png", "TableImg_3ecd8_5.png"], "original_data_index": 770, "original_sql": "SELECT Store_ID, MIN(District_ID) FROM store_district WHERE \"Store_ID\" <> 5 OR \"District_ID\" != 15 UNION SELECT Store_ID, MIN(District_ID) FROM store_district WHERE \"Store_ID\" > 2 AND \"District_ID\" > 3"} {"question": "Can you give me a list of driver IDs that are less than 6, excluding any driver IDs that are not 9, considering each driver ID only once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3bj6k_12.png", "TableImg_Xs4bk_5.png"], "original_data_index": 776, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs less than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U97xo_12.png", "TableImg_X8a07_5.png"], "original_data_index": 774, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you list the aircraft IDs that are equal to 2 from the aircraft table, and then also list the aircraft IDs that are less than 3 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hsisa_5.png", "TableImg_Htq2p_4.png"], "original_data_index": 775, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs, including driver ID 6 from the driver table and any driver IDs less than or equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A8see_12.png", "TableImg_Mb8k4_5.png"], "original_data_index": 780, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Which customers both made payments of at least 6782.84 using a method other than Direct Debit and also have lessons that either cost something other than 352.0, are scheduled for 3 o'clock, are taught by a staff member other than staff member 11, or are not marked as completed?", "answer": {"columns": ["customer_id"], "index": [0], "data": [["13"]]}, "table_names": "['Customer_Payments' 'Lessons']", "table_image_ids": ["TableImg_6ltt3_15.png", "TableImg_D8c2g_15.png"], "original_data_index": 777, "original_sql": "SELECT customer_id FROM Customer_Payments WHERE \"amount_payment\" >= 6782.84 AND payment_method_code <> \"Direct Debit\" INTERSECT SELECT customer_id FROM Lessons WHERE \"price\" <> 352.0 OR lesson_time = \"3\" OR \"staff_id\" <> 11 OR lesson_status_code <> \"Completed\""} {"question": "Could you give me a list of member IDs for members who are level 6 or higher, or whose ID is 10 and don't live in Fort Campbell, Kentucky, excluding those members who are registered at any branch other than branch 1?", "answer": {"columns": ["Member_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['member' 'membership_register_branch']", "table_image_ids": ["TableImg_Q3im8_10.png", "TableImg_Dfnbq_8.png"], "original_data_index": 779, "original_sql": "SELECT Member_ID FROM member WHERE \"Level\" >= 6 OR \"Member_ID\" = 10 AND Hometown != \"Fort Campbell, Kentucky\" EXCEPT SELECT Member_ID FROM membership_register_branch WHERE Branch_ID <> \"1\""} {"question": "Could you show me the effective dates, template ID, template details, template type code, version number, and end dates for all templates where the version number is less than 6 and the template details are empty, combined with the same information for templates where the template ID is 19, the version number is less than 7, and either the end date is not January 5th, 2008 at 2:19 PM or the template details are empty?", "answer": {"columns": ["Date_Effective_From", "Template_ID", "Template_Details", "Template_Type_Code", "Version_Number", "Date_Effective_To"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30], "data": [["2005-11-12 07:09:48", "0", "", "PP", "5", "2008-01-05 14:19:28"], ["2002-03-02 14:39:49", "4", "", "BK", "4", "2001-04-18 09:29:52"], ["1975-05-20 22:51:19", "6", "", "PPT", "2", "1992-05-02 20:06:11"], ["1983-07-16 21:16:16", "8", "", "BK", "3", "1976-10-28 10:08:50"], ["1997-04-17 08:29:44", "9", "", "BK", "2", "1994-12-07 13:26:23"], ["2003-06-05 04:03:45", "10", "", "PPT", "1", "2007-06-06 06:18:53"], ["2012-04-05 07:11:42", "16", "", "CV", "5", "1980-05-07 12:15:47"], ["1984-08-07 13:36:26", "18", "", "PP", "5", "1998-05-12 12:51:29"], ["2005-02-20 00:31:34", "22", "", "PP", "0", "1989-11-24 19:06:06"], ["1979-12-24 10:28:16", "23", "", "BK", "2", "2000-10-22 11:57:12"], ["1979-10-20 21:23:20", "25", "", "PP", "5", "2006-02-06 23:52:04"], ["2005-11-12 07:09:48", "0", "", "PP", "5", "2008-01-05 14:19:28"], ["2010-09-24 01:15:11", "1", "", "PP", "9", "1999-07-08 03:31:04"], ["2002-03-02 14:39:49", "4", "", "BK", "4", "2001-04-18 09:29:52"], ["1975-05-20 22:51:19", "6", "", "PPT", "2", "1992-05-02 20:06:11"], ["1993-10-07 02:33:04", "7", "", "PPT", "8", "1975-07-16 04:52:10"], ["1983-07-16 21:16:16", "8", "", "BK", "3", "1976-10-28 10:08:50"], ["1997-04-17 08:29:44", "9", "", "BK", "2", "1994-12-07 13:26:23"], ["2003-06-05 04:03:45", "10", "", "PPT", "1", "2007-06-06 06:18:53"], ["1996-02-04 11:27:24", "11", "", "BK", "6", "1995-09-19 22:27:48"], ["1975-10-20 02:28:58", "14", "", "AD", "7", "1979-11-04 08:58:39"], ["1986-12-09 14:51:36", "15", "", "CV", "9", "1993-03-24 14:30:23"], ["2012-04-05 07:11:42", "16", "", "CV", "5", "1980-05-07 12:15:47"], ["1984-08-07 13:36:26", "18", "", "PP", "5", "1998-05-12 12:51:29"], ["1999-06-21 11:10:30", "19", "", "AD", "7", "1974-09-14 06:34:39"], ["1986-11-14 12:20:18", "20", "", "BK", "6", "2008-08-08 18:36:43"], ["2002-08-25 13:26:23", "21", "", "AD", "9", "2015-09-06 01:08:44"], ["2005-02-20 00:31:34", "22", "", "PP", "0", "1989-11-24 19:06:06"], ["1979-12-24 10:28:16", "23", "", "BK", "2", "2000-10-22 11:57:12"], ["2008-08-01 13:57:26", "24", "", "PP", "8", "1973-01-12 14:13:34"], ["1979-10-20 21:23:20", "25", "", "PP", "5", "2006-02-06 23:52:04"]]}, "table_names": "['Templates' 'Templates']", "table_image_ids": ["TableImg_Wgpjz_20.png", "TableImg_Qg0lp_20.png"], "original_data_index": 778, "original_sql": "SELECT Date_Effective_From, Template_ID, Template_Details, Template_Type_Code, Version_Number, Date_Effective_To FROM Templates WHERE \"Version_Number\" < 6 AND Template_Details = \"\" UNION ALL SELECT Date_Effective_From, Template_ID, Template_Details, Template_Type_Code, Version_Number, Date_Effective_To FROM Templates WHERE \"Template_ID\" = 19 AND \"Version_Number\" < 7 AND Date_Effective_To <> \"2008-01-05 14:19:28\" OR Template_Details = \"\""} {"question": "Can you give me a list of aircraft IDs, up to and including 2, that appear in the aircraft table, but are not in the airport_aircraft table where the aircraft ID is less than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ccy1k_5.png", "TableImg_Tsnap_4.png"], "original_data_index": 781, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 1"} {"question": "Can you give me a list of driver IDs that are less than 5 and also appear as driver IDs in the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E0owh_12.png", "TableImg_Rhqd7_5.png"], "original_data_index": 784, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Can you list all the driver IDs that are less than or equal to 3, combining the IDs from both the driver and school_bus lists, but only showing each ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Yphkx_12.png", "TableImg_Ad6ma_5.png"], "original_data_index": 783, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me the middle name, staff address ID, and date joined for staff members, combining two sets of results: first, those named Maiya who didn't leave on March 4, 2018 and aren't named Macejkovic; and second, those who aren't named Clarabelle, or whose staff address ID is greater than 3, or who joined on June 4, 2017 at 2:30 PM with a staff ID of 6 and last name Durgan, or who didn't leave on March 8, 2018 at 5:16 AM, or whose first name isn't Eulalia and were born on January 16, 2003 at 6:29 AM, or whose nickname is sbrown?", "answer": {"columns": ["middle_name", "staff_address_id", "date_joined_staff"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Amara", "14", "2017-04-27 03:21:26"], ["Benny", "7", "2016-11-05 01:43:52"], ["Caesar", "4", "2017-12-22 03:06:32"], ["Clarabelle", "1", "2016-11-13 20:44:23"], ["Dejon", "14", "2016-05-16 20:56:53"], ["Duane", "1", "2016-05-26 00:55:07"], ["Icie", "3", "2016-06-06 08:54:28"], ["Liam", "1", "2016-05-01 02:22:45"], ["Madelyn", "13", "2017-06-04 14:30:41"], ["Maiya", "2", "2016-06-05 22:22:23"], ["Mayra", "3", "2017-02-20 18:45:20"], ["Sherwood", "1", "2017-10-21 17:20:57"], ["Stephania", "5", "2018-01-02 12:24:24"], ["Tre", "12", "2017-08-27 19:19:44"], ["Ulices", "6", "2017-08-30 15:08:37"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_3mv2y_15.png", "TableImg_Bfa5g_15.png"], "original_data_index": 782, "original_sql": "SELECT middle_name, staff_address_id, date_joined_staff FROM Staff WHERE date_left_staff <> \"2018-03-04 17:13:53\" AND middle_name = \"Maiya\" AND last_name != \"Macejkovic\" UNION SELECT middle_name, staff_address_id, date_joined_staff FROM Staff WHERE middle_name <> \"Clarabelle\" AND \"staff_address_id\" > 3 OR date_joined_staff = \"2017-06-04 14:30:41\" AND \"staff_id\" = 6 AND last_name = \"Durgan\" OR date_left_staff != \"2018-03-08 05:16:29\" OR first_name != \"Eulalia\" AND date_of_birth = \"2003-01-16 06:29:11\" OR nickname = \"sbrown\""} {"question": "What is the total number of employees and their corresponding bonuses, excluding those who are 28 years old?", "answer": {"columns": ["SUM(T1.Employee_ID)", "Bonus"], "index": [0], "data": [["25", "3000"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Xp3nt_10.png", "TableImg_G4fiq_6.png"], "original_data_index": 787, "original_sql": "SELECT SUM(T1.Employee_ID), T2.Bonus FROM employee as T1 JOIN evaluation as T2 ON T1.Employee_ID = T2.Employee_ID WHERE \"Age\" <> 28"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are less than 11, and those from the school_bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zdl4q_12.png", "TableImg_E55fd_5.png"], "original_data_index": 786, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you give me the date of birth, earliest last name, nickname, date left staff, average first name, and date joined staff for all staff members, combining two sets of results: the first set excludes staff ID 10 and those named Margie with a staff address ID less than 1, and the second set includes staff meeting any of these conditions: a nickname other than \"lsenger\", a join date other than \"2016-05-01 02:22:45\" combined with a birth date of \"1996-03-09 08:19:49\" and a last name other than \"Hermann\", a first name other than \"Camylle\" combined with a staff address ID less than 5, or a leave date of \"2018-03-24 10:11:08\", or a staff ID less than 7?", "answer": {"columns": ["date_of_birth", "MIN(last_name)", "nickname", "date_left_staff", "AVG(first_name)", "date_joined_staff"], "index": [0, 1], "data": [["", "", "", "", "", ""], ["1996-03-09 08:19:49", "Carroll", "edwin.hudson", "2018-03-06 23:17:41", "0.0", "2016-11-05 01:43:52"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Yso9d_15.png", "TableImg_3y1bx_15.png"], "original_data_index": 785, "original_sql": "SELECT date_of_birth, MIN(last_name), nickname, date_left_staff, AVG(first_name), date_joined_staff FROM Staff WHERE \"staff_id\" != 10 AND first_name <> \"Margie\" AND \"staff_address_id\" < 1 UNION ALL SELECT date_of_birth, MIN(last_name), nickname, date_left_staff, AVG(first_name), date_joined_staff FROM Staff WHERE nickname <> \"lsenger\" OR date_joined_staff <> \"2016-05-01 02:22:45\" AND date_of_birth = \"1996-03-09 08:19:49\" AND last_name != \"Hermann\" OR first_name <> \"Camylle\" AND \"staff_address_id\" < 5 OR date_left_staff = \"2018-03-24 10:11:08\" OR \"staff_id\" < 7"} {"question": "Can you give me a list of school IDs, including those from schools that aren't Private Catholic and have an ID of 6 or higher, as well as those from the school bus table where either the school ID isn't 1 and the driver ID is 7 or less, or the years working are more than 3 and the driver is full-time?", "answer": {"columns": ["School_ID"], "index": [0, 1, 2, 3, 4], "data": [["6"], ["7"], ["5"], ["3"], ["4"]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_33ob1_7.png", "TableImg_Kgon0_5.png"], "original_data_index": 790, "original_sql": "SELECT School_ID FROM school WHERE Type <> \"Private Catholic\" AND \"School_ID\" >= 6 UNION ALL SELECT School_ID FROM school_bus WHERE \"School_ID\" <> 1 AND \"Driver_ID\" <= 7 OR \"Years_Working\" > 3 AND If_full_time = \"T\""} {"question": "Can you give me a list of contestant numbers, including those for Allie Rogalski or any contestant with a number greater than 1, combined with contestant numbers from votes where the vote ID is less than 3, or the vote was not created on March 9, 2018 at 7:03:36 PM, or the phone number is less than 6209222712, the state is not NY, and the contestant number is 5?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["2"], ["3"], ["3"], ["5"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_Bp7lu_11.png", "TableImg_Pyi8b_4.png"], "original_data_index": 788, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = \"Allie Rogalski\" OR \"contestant_number\" > 1 UNION ALL SELECT contestant_number FROM VOTES WHERE \"vote_id\" < 3 OR created != \"2018-03-09 19:03:36\" OR \"phone_number\" < 6209222712 AND state <> \"NY\" AND \"contestant_number\" = 5"} {"question": "Can you give me the number of properties, the average of hse_feature_3, the sum of fld_feature_2, the property address, fld_feature_3, and the agreed selling price for properties that meet certain criteria, specifically where shp_feature_2 is not \"None\" or the property address is not \"092 Paucek Highway Apt. 772 East Erika, IA 61358\" and hse_feature_2 is not \"None\" or shp_feature_1 is not \"None\" or fld_feature_3 is \"None\", combined with the same information for properties where the vendor requested price is less than or equal to 2573 and apt_feature_2 is \"est\" or apt_feature_1 is not \"consequatur\" and the property address is not \"084 Lakin Vista Apt. 394 Fishertown, MA 16876\" or the property type code is not \"Other\" or oth_feature_2 is not \"None\" and the date on market is not \"1978-05-15 10:53:37\" or the property name is \"riverside\" or fld_feature_3 is not \"None\" and apt_feature_3 is not \"None\" or the property ID is not 4 or the date sold is not \"1995-01-31 11:18:42\" and hse_feature_1 is not \"None\" or fld_feature_2 is \"None\" and fld_feature_1 is not \"None\"?", "answer": {"columns": ["COUNT(property_id)", "AVG(hse_feature_3)", "SUM(fld_feature_2)", "property_address", "fld_feature_3", "agreed_selling_price"], "index": [0, 1], "data": [["0", "", "", "", "", ""], ["15", "", "", "4745 Emerson Stravenue Suite 829\nSouth Garret, IN 16772-5682", "", "4201.8"]]}, "table_names": "['Properties' 'Properties']", "table_image_ids": ["TableImg_Nyqgc_15.png", "TableImg_Swk5o_15.png"], "original_data_index": 789, "original_sql": "SELECT COUNT(property_id), AVG(hse_feature_3), SUM(fld_feature_2), property_address, fld_feature_3, agreed_selling_price FROM Properties WHERE shp_feature_2 <> \"None\" OR property_address <> \"092 Paucek Highway Apt. 772 East Erika, IA 61358\" AND hse_feature_2 <> \"None\" OR shp_feature_1 <> \"None\" OR fld_feature_3 = \"None\" UNION ALL SELECT COUNT(property_id), AVG(hse_feature_3), SUM(fld_feature_2), property_address, fld_feature_3, agreed_selling_price FROM Properties WHERE \"vendor_requested_price\" <= 2573.0 AND apt_feature_2 = \"est\" OR apt_feature_1 != \"consequatur\" AND property_address != \"084 Lakin Vista Apt. 394 Fishertown, MA 16876\" OR property_type_code <> \"Other\" OR oth_feature_2 <> \"None\" AND date_on_market != \"1978-05-15 10:53:37\" OR property_name = \"riverside\" OR fld_feature_3 <> \"None\" AND apt_feature_3 <> \"None\" OR \"property_id\" != 4 OR date_sold != \"1995-01-31 11:18:42\" AND hse_feature_1 <> \"None\" OR fld_feature_2 = \"None\" AND fld_feature_1 != \"None\""} {"question": "Can you give me the driver IDs that are both less than 7 and also less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Wefyr_12.png", "TableImg_Tyl13_5.png"], "original_data_index": 792, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are less than 12, and also include driver ID 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mbhdh_12.png", "TableImg_Holi5_5.png"], "original_data_index": 791, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are greater than 11, excluding any driver IDs that are also greater than or equal to 7 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xa7bb_12.png", "TableImg_Vvjdh_5.png"], "original_data_index": 794, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "What is the difference between the total Coach IDs of coaches who are not ranked 1, or whose name is not Joe Fabbri, or whose Coach ID is 4, and the total Coach IDs of player coaches who did not start in 2010, whose Coach ID is less than or equal to 1, and whose Player ID is greater than 10?", "answer": {"columns": ["SUM(Coach_ID)"], "index": [0], "data": [["15"]]}, "table_names": "['coach' 'player_coach']", "table_image_ids": ["TableImg_5y0z2_5.png", "TableImg_Acyuz_7.png"], "original_data_index": 793, "original_sql": "SELECT SUM(Coach_ID) FROM coach WHERE \"Rank\" != 1 OR Coach_name != \"Joe Fabbri\" OR \"Coach_ID\" = 4 EXCEPT SELECT SUM(Coach_ID) FROM player_coach WHERE \"Starting_year\" <> 2010 AND \"Coach_ID\" <= 1 AND \"Player_ID\" > 10"} {"question": "Can you give me a list of driver IDs that are greater than 10, excluding any driver IDs less than 3 that are also in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8xbti_12.png", "TableImg_Urtxw_5.png"], "original_data_index": 798, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list all the driver IDs that are less than 9 from the driver table, and combine that with a list of all driver IDs that are less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bbthp_12.png", "TableImg_Edoap_5.png"], "original_data_index": 797, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the aircraft IDs that are less than or equal to 3 and appear in both the aircraft and airport_aircraft tables, considering only aircraft IDs less than 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_N6vmz_5.png", "TableImg_Zlxgp_4.png"], "original_data_index": 795, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me the Lieutenant Governor, Comptroller, Year, Attorney General, Party ID, and Governor from the party table, excluding any entries where the Comptroller isn't Alan Hevesi or the US Senate result was no election, but including only those where the year is 2006 or later, or the Attorney General isn't Eliot Spitzer and the Party ID is 6 or greater, or the Lieutenant Governor isn't Jonathan Reiter, or the Governor is Tom Golisano and the US Senate result is Charles Schumer, or the Comptroller is Alan Hevesi?", "answer": {"columns": ["Lieutenant_Governor", "Comptroller", "Year", "Attorney_General", "Party_ID", "Governor"], "index": [0, 1, 2], "data": [["David Paterson", "Alan Hevesi", "2006", "Andrew Cuomo", "5", "Eliot Spitzer"], ["David Paterson", "Alan Hevesi", "2006", "Andrew Cuomo", "7", "Eliot Spitzer"], ["David Paterson", "Alan Hevesi", "2006", "Jeanine Pirro", "6", "Eliot Spitzer"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Rhbxv_7.png", "TableImg_Jn3uh_7.png"], "original_data_index": 796, "original_sql": "SELECT Lieutenant_Governor, Comptroller, Year, Attorney_General, Party_ID, Governor FROM party WHERE \"Year\" >= 2006.0 OR Attorney_General <> \"Eliot Spitzer\" AND \"Party_ID\" >= 6 OR Lieutenant_Governor != \"Jonathan Reiter\" OR Governor = \"Tom Golisano\" AND US_Senate = \"Charles Schumer\" OR Comptroller = \"Alan Hevesi\" EXCEPT SELECT Lieutenant_Governor, Comptroller, Year, Attorney_General, Party_ID, Governor FROM party WHERE Comptroller != \"Alan Hevesi\" OR US_Senate = \"(no election)\""} {"question": "Which driver IDs are greater than or equal to 7, but not greater than or equal to 10 and present in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["7"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3764f_12.png", "TableImg_6imlf_5.png"], "original_data_index": 799, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding ID 2, and then from the airport_aircraft table including only those greater than 2, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ieyog_5.png", "TableImg_Ytm42_4.png"], "original_data_index": 801, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you list the registration years from the membership register, including those that are not 2016 where the member ID is at least 7 or the branch ID is not 8, and also including those that are 2017 where the branch ID is not 1 and the member ID is greater than 4?", "answer": {"columns": ["Register_Year"], "index": [0, 1], "data": [["2016"], ["2017"]]}, "table_names": "['membership_register_branch' 'membership_register_branch']", "table_image_ids": ["TableImg_1y2go_8.png", "TableImg_Pao5m_8.png"], "original_data_index": 800, "original_sql": "SELECT Register_Year FROM membership_register_branch WHERE Register_Year != \"2016\" AND \"Member_ID\" >= 7 OR Branch_ID <> \"8\" UNION SELECT Register_Year FROM membership_register_branch WHERE Register_Year = \"2017\" AND Branch_ID <> \"1\" AND \"Member_ID\" > 4"} {"question": "Can you give me a list of driver IDs, up to 10, that are in the driver table but not in the school_bus table where the driver ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mgs5o_12.png", "TableImg_I9bq5_5.png"], "original_data_index": 802, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 1, but are not found in the airport_aircraft table, also excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ciqze_5.png", "TableImg_Ivker_4.png"], "original_data_index": 805, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding aircraft ID 3, and then from the airport_aircraft table including only aircraft IDs up to 3, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K7vn2_5.png", "TableImg_Hr3k6_4.png"], "original_data_index": 803, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Could you give me a list of driver IDs, including those of drivers who are not 46 years old, as well as those of school bus drivers with a school ID of 3 or higher who have worked for a number of years other than 6 and whose driver ID is not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Szq7g_12.png", "TableImg_17col_5.png"], "original_data_index": 804, "original_sql": "SELECT Driver_ID FROM driver WHERE \"Age\" <> 46 UNION ALL SELECT Driver_ID FROM school_bus WHERE \"School_ID\" >= 3 AND \"Years_Working\" != 6 AND \"Driver_ID\" != 3"} {"question": "Which driver IDs, excluding 11, are also driver IDs greater than 7 that are used in school buses?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9rswv_12.png", "TableImg_2qcm1_5.png"], "original_data_index": 809, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs that are less than 9 from the driver table, combined with a list of driver IDs that are exactly 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A2lzv_12.png", "TableImg_46n4e_5.png"], "original_data_index": 808, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you list the aircraft IDs that are greater than or equal to 3 from the aircraft table, and also list the aircraft IDs that are less than or equal to 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Kmtw7_5.png", "TableImg_Fdvwn_4.png"], "original_data_index": 807, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you list the aid values from the certificate table where the eid is not 550156548 or the aid is less than 2, and also list the aid values from the flight table where the arrival date is \"04/12/2005 03:55\" and the price is no more than 425.98?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67], "data": [["2"], ["10"], ["6"], ["2"], ["10"], ["12"], ["1"], ["2"], ["3"], ["7"], ["10"], ["11"], ["12"], ["13"], ["5"], ["7"], ["2"], ["10"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["10"], ["12"], ["8"], ["9"], ["8"], ["9"], ["6"], ["3"], ["13"], ["14"], ["7"], ["1"], ["2"], ["7"], ["14"], ["2"], ["3"], ["5"], ["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["9"], ["10"], ["11"], ["12"], ["15"], ["3"], ["4"], ["5"], ["6"], ["8"], ["7"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_Nf1oz_69.png", "TableImg_Oyset_10.png"], "original_data_index": 806, "original_sql": "SELECT aid FROM certificate WHERE \"eid\" != 550156548 OR \"aid\" < 2 UNION ALL SELECT aid FROM flight WHERE arrival_date = \"04/12/2005 03:55\" AND \"price\" <= 425.98"} {"question": "Can you list the aircraft IDs that are less than 5, but exclude any aircraft IDs from the airport aircraft list that are 5 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lx5qx_5.png", "TableImg_Ojsx8_4.png"], "original_data_index": 812, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which aircraft IDs, not exceeding 5, are present in both the aircraft and airport_aircraft datasets?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_89zuh_5.png", "TableImg_9u7g1_4.png"], "original_data_index": 813, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding ID 7, with those from the school bus table that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3v0wg_12.png", "TableImg_Elq7b_5.png"], "original_data_index": 814, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding those driver IDs that are 3 or less, based on the drivers and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1wlhh_12.png", "TableImg_Apudx_5.png"], "original_data_index": 815, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of Club IDs, combining those from clubs named \"BK H\u00e4cken\" that either have a Club ID less than 3 and started in 2009, or are not from the USA, with those from match results where Big Silver is 14, Bronze is less than or equal to 7, the Club ID is not 4, Small Silver is less than 10, and Gold is less than or equal to 20?", "answer": {"columns": ["Club_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["4"], ["5"], ["6"]]}, "table_names": "['club' 'match_result']", "table_image_ids": ["TableImg_W6tgp_6.png", "TableImg_5r648_6.png"], "original_data_index": 816, "original_sql": "SELECT Club_ID FROM club WHERE Club_name = \"BK H\u00e4cken\" AND \"Club_ID\" < 3 AND \"Start_year\" = 2009 OR Region != \"USA\" UNION SELECT Club_ID FROM match_result WHERE \"Big_Silver\" = 14 AND \"Bronze\" <= 7 AND \"Club_ID\" <> 4 AND \"Small_Silver\" < 10 AND \"Gold\" <= 20"} {"question": "Can you tell me the smallest club location and club ID for clubs named \"Hopkins Student Enterprises\" located in \"HHH\" or for any club that doesn't have the description \"A competitive tennis club,\" along with the smallest club location and club ID for any club that doesn't have the description \"Play pen and paper games on campus\"?", "answer": {"columns": ["MIN(ClubLocation)", "ClubID"], "index": [0, 1], "data": [["AKW", "1"], ["AKW", "1"]]}, "table_names": "['Club' 'Club']", "table_image_ids": ["TableImg_Dnpeo_4.png", "TableImg_F2zs2_4.png"], "original_data_index": 817, "original_sql": "SELECT MIN(ClubLocation), ClubID FROM Club WHERE ClubLocation = \"HHH\" AND ClubName = \"Hopkins Student Enterprises\" OR ClubDesc != \"A competitive tennis club.\" UNION ALL SELECT MIN(ClubLocation), ClubID FROM Club WHERE ClubDesc <> \"Play pen and paper games on campus.\""} {"question": "Can you give me a list of customer IDs for customers who either became customers on \"2016-09-04 23:08:20\", were born on \"1998-12-15 13:24:40\", don't have the last name \"Ortiz\", have a \"Bad Customer\" status, are not customer ID 7, have an amount outstanding of at least 9443.0, or have an email address other than \"nichole59@example.com\", a cell phone number other than \"739-333-6966x187\", a phone number other than \"192-395-2411\", or a customer address ID of 10 or less, along with a list of customer IDs from lessons that didn't occur on \"2018-03-04 06:55:46\"?", "answer": {"columns": ["customer_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["6"], ["8"], ["6"], ["8"], ["10"], ["5"], ["9"], ["3"], ["2"], ["2"], ["11"], ["13"], ["11"], ["3"]]}, "table_names": "['Customers' 'Lessons']", "table_image_ids": ["TableImg_1clz9_15.png", "TableImg_Av4gh_15.png"], "original_data_index": 818, "original_sql": "SELECT customer_id FROM Customers WHERE date_became_customer = \"2016-09-04 23:08:20\" AND date_of_birth = \"1998-12-15 13:24:40\" AND last_name <> \"Ortiz\" AND customer_status_code = \"Bad Customer\" AND \"customer_id\" <> 7 AND \"amount_outstanding\" >= 9443.0 OR email_address <> \"nichole59@example.com\" OR cell_mobile_phone_number != \"739-333-6966x187\" OR phone_number <> \"192-395-2411\" OR \"customer_address_id\" <= 10 UNION ALL SELECT customer_id FROM Lessons WHERE lesson_date != \"2018-03-04 06:55:46\""} {"question": "Can you list the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are less than or equal to 1 and are also found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_9ra5k_5.png", "TableImg_2ndym_4.png"], "original_data_index": 819, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me the driver IDs that are equal to 10, but excluding those driver IDs that are equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1h46c_12.png", "TableImg_Fxb1c_5.png"], "original_data_index": 820, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table, excluding driver ID 9, and those from the school bus table with driver IDs less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ckit8_12.png", "TableImg_Cstm0_5.png"], "original_data_index": 811, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 7, and those from the school bus table where the ID is 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4fo8k_12.png", "TableImg_9htls_5.png"], "original_data_index": 810, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of driver IDs that are less than 4 and also appear as driver IDs in the school bus table, excluding driver ID 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_20ds2_12.png", "TableImg_5l0gr_5.png"], "original_data_index": 824, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Which driver IDs are both less than or equal to 6 and also equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1j59w_12.png", "TableImg_J5iev_5.png"], "original_data_index": 823, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me a list of driver IDs less than 10, excluding those driver IDs that are also greater than 3 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8jo0g_12.png", "TableImg_Il973_5.png"], "original_data_index": 821, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 5, and also list all the aircraft IDs from the airport aircraft list, excluding aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Fsyvt_5.png", "TableImg_Jrfnu_4.png"], "original_data_index": 822, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Which driver IDs, excluding driver ID 9, are also driver ID 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zqi35_12.png", "TableImg_8zgvp_5.png"], "original_data_index": 825, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs, excluding driver ID 10, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["6"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_En5ug_12.png", "TableImg_Z1w8l_5.png"], "original_data_index": 828, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the aircraft IDs, including aircraft ID 1 from the aircraft table and any aircraft IDs greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_8peol_5.png", "TableImg_0te80_4.png"], "original_data_index": 829, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 1, combined with those from the school_bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Rbsfb_12.png", "TableImg_8gaqh_5.png"], "original_data_index": 827, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you list the name, creation date, ranking, number of employees, and budget in billions for all departments, including those that are not named \"Commerce\" with a budget of at least 21.5 billion and a ranking other than 12, or those with a Department ID greater than 2, along with any departments that have a budget greater than 439.3 billion?", "answer": {"columns": ["Name", "Creation", "Ranking", "Num_Employees", "Budget_in_Billions"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["Agriculture", "1889", "6", "109832", "77.6"], ["Commerce", "1903", "7", "36000", "6.2"], ["Defense", "1947", "3", "3000000", "439.3"], ["Education", "1979", "13", "4487", "62.8"], ["Energy", "1977", "12", "116100", "21.5"], ["Health and Human Services", "1953", "9", "67000", "543.2"], ["Homeland Security", "2002", "15", "208000", "44.6"], ["Housing and Urban Development", "1965", "10", "10600", "46.2"], ["Interior", "1849", "5", "71436", "10.7"], ["Justice", "1870", "4", "112557", "23.4"], ["Labor", "1913", "8", "17347", "59.7"], ["Transportation", "1966", "11", "58622", "58.0"], ["Veterans Affairs", "1989", "14", "235000", "73.2"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Jbmd9_15.png", "TableImg_Fza8c_15.png"], "original_data_index": 826, "original_sql": "SELECT Name, Creation, Ranking, Num_Employees, Budget_in_Billions FROM department WHERE Name != \"Commerce\" AND \"Budget_in_Billions\" >= 21.5 AND \"Ranking\" <> 12 OR \"Department_ID\" > 2 UNION SELECT Name, Creation, Ranking, Num_Employees, Budget_in_Billions FROM department WHERE \"Budget_in_Billions\" > 439.3"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 9, excluding those driver IDs that are also greater than 3 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_U8jbm_12.png", "TableImg_Cour0_5.png"], "original_data_index": 831, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list the aircraft IDs that are less than 5, excluding those aircraft IDs less than 3 that are also listed in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ivpmd_5.png", "TableImg_5zoy8_4.png"], "original_data_index": 833, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Which driver IDs are present in both the driver list (excluding driver 9) and the school bus list (excluding driver 10)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0srv7_12.png", "TableImg_Mmta9_5.png"], "original_data_index": 830, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs that are less than 7, excluding the driver ID 3 if it appears in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["4"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gjyok_12.png", "TableImg_9kifv_5.png"], "original_data_index": 832, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are less than 5, and also appear in a list of school bus driver IDs excluding the ID 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nvjtl_12.png", "TableImg_Z6vuo_5.png"], "original_data_index": 835, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list the Book ID and Title for all books with a Book ID less than 5, excluding those that either have 6 or more issues and are written by Howard Chaykin, or have a Book ID less than 3 and a title that is not BrainBanx?", "answer": {"columns": ["Book_ID", "Title"], "index": [0, 1], "data": [["3", "Bloody Mary : Lady Liberty"], ["4", "BrainBanx"]]}, "table_names": "['book' 'book']", "table_image_ids": ["TableImg_Hior0_10.png", "TableImg_Leci4_10.png"], "original_data_index": 836, "original_sql": "SELECT Book_ID, Title FROM book WHERE \"Book_ID\" < 5 EXCEPT SELECT Book_ID, Title FROM book WHERE \"Issues\" >= 6.0 AND Writer = \"Howard Chaykin\" OR \"Book_ID\" < 3 AND Title <> \"BrainBanx\""} {"question": "Can you list all the aircraft IDs, including those from the aircraft table that are less than or equal to 3 and those from the airport_aircraft table that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Vetnd_5.png", "TableImg_1294n_4.png"], "original_data_index": 841, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me a list of Store IDs from the store table where the store type is not \"City Mall\" or the number of product categories is less than or equal to 17811, combined with a list of Store IDs from the store_product table where the Store ID is not 1 or the Product ID is less than 2?", "answer": {"columns": ["Store_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["1"], ["2"], ["3"], ["2"], ["3"], ["2"], ["5"], ["5"], ["5"], ["5"], ["5"]]}, "table_names": "['store' 'store_product']", "table_image_ids": ["TableImg_U3pi4_5.png", "TableImg_9injx_15.png"], "original_data_index": 840, "original_sql": "SELECT Store_ID FROM store WHERE Type != \"City Mall\" OR \"Number_of_product_category\" <= 17811.0 UNION ALL SELECT Store_ID FROM store_product WHERE \"Store_ID\" <> 1 OR \"Product_ID\" < 2"} {"question": "Which club IDs are associated with members whose student ID is 1008 or greater, who are not in club 1, and who don't hold the position of Vice-President, excluding those club IDs that have a President or are club ID 1 or less?", "answer": {"columns": ["ClubID"], "index": [0], "data": [["2"]]}, "table_names": "['Member_of_club' 'Member_of_club']", "table_image_ids": ["TableImg_I1zsl_4.png", "TableImg_H6c6r_4.png"], "original_data_index": 839, "original_sql": "SELECT ClubID FROM Member_of_club WHERE \"StuID\" >= 1008 AND \"ClubID\" <> 1 AND Position <> \"Vice-President\" EXCEPT SELECT ClubID FROM Member_of_club WHERE Position = \"President\" OR \"ClubID\" <= 1"} {"question": "Can you give me a list of driver IDs, excluding driver ID 11, that are not also driver IDs less than or equal to 10 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bws9r_12.png", "TableImg_Hugkg_5.png"], "original_data_index": 842, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 2, and combine that with a list of aircraft IDs from the airport aircraft, excluding aircraft ID 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2hp8v_5.png", "TableImg_F2gwd_4.png"], "original_data_index": 843, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3"} {"question": "Can you give me the IDs of aircraft that are less than 2, excluding the IDs of aircraft from the airport that are not 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_I6e66_5.png", "TableImg_Cf29o_4.png"], "original_data_index": 844, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Which driver IDs, excluding driver ID 7, appear in the driver table but not in the school bus table for driver IDs 9 or higher?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oqmhd_12.png", "TableImg_Zku0w_5.png"], "original_data_index": 845, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table excluding driver ID 11 with those from the school bus table excluding driver ID 10, making sure to only list each driver ID once?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mdqnx_12.png", "TableImg_Ovruo_5.png"], "original_data_index": 846, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Which driver IDs are not equal to 3 and are also equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D5kcq_12.png", "TableImg_5tcjf_5.png"], "original_data_index": 848, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of aircraft IDs, including those that are equal to 2 from the aircraft table, and those less than or equal to 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Tl5wx_5.png", "TableImg_3t29d_4.png"], "original_data_index": 849, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Can you show me the description, template ID, name, and ID of all documents, including those that don't have a template ID of 14 or a document ID of 16514113, as well as those with descriptions other than \"f\", names other than \"Robbin CV\", or a document ID of 3540024 or less, or those with other details that aren't \"None\" and a template ID greater than 14?", "answer": {"columns": ["Document_Description", "Template_ID", "Document_Name", "Document_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22], "data": [["n", "7", "Introduction of OS", "0"], ["y", "25", "Understanding DB", "1"], ["u", "6", "Summer Show", "3"], ["y", "20", "Robbin CV", "76"], ["w", "11", "Data base", "82"], ["y", "10", "Customer reviews", "2394"], ["z", "1", "How Google people work", "33930"], ["r", "22", "Learning French", "50123"], ["f", "21", "How to write a CV", "651512"], ["w", "4", "How to read a book", "801801"], ["y", "8", "Palm reading", "3540024"], ["b", "11", "About Korea", "385906526"], ["n", "7", "Introduction of OS", "0"], ["y", "25", "Understanding DB", "1"], ["u", "6", "Summer Show", "3"], ["h", "14", "Welcome to NY", "80"], ["w", "11", "Data base", "82"], ["y", "10", "Customer reviews", "2394"], ["k", "14", "Do not panic", "3830"], ["z", "1", "How Google people work", "33930"], ["r", "22", "Learning French", "50123"], ["w", "4", "How to read a book", "801801"], ["y", "8", "Palm reading", "3540024"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_8siw5_15.png", "TableImg_Tudkw_15.png"], "original_data_index": 847, "original_sql": "SELECT Document_Description, Template_ID, Document_Name, Document_ID FROM Documents WHERE \"Template_ID\" <> 14 AND \"Document_ID\" <> 16514113 UNION ALL SELECT Document_Description, Template_ID, Document_Name, Document_ID FROM Documents WHERE Document_Description <> \"f\" AND Document_Name <> \"Robbin CV\" AND \"Document_ID\" <= 3540024 OR Other_Details != \"None\" AND \"Template_ID\" > 14"} {"question": "Which driver IDs are greater than 9, but not greater than or equal to 9 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K8jrr_12.png", "TableImg_9j9ae_5.png"], "original_data_index": 838, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "What aircraft IDs are less than or equal to 2, excluding the aircraft IDs less than 2 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Cz16g_5.png", "TableImg_79j37_4.png"], "original_data_index": 850, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, that are not also driver IDs less than 4 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4deje_12.png", "TableImg_Sh6qg_5.png"], "original_data_index": 851, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding ID 5, and then from the airport_aircraft table including only IDs up to 2, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_666ki_5.png", "TableImg_Ux0fk_4.png"], "original_data_index": 853, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me the total year, average Attorney General, Governor, Party ID, Lieutenant Governor, average US Senate, latest Party, and earliest Comptroller from the party information, but only for entries where the Party ID is 5 or higher, the year is 2002 or later, or the Comptroller is Alan Hevesi and the US Senator isn't Hillary Rodham Clinton, excluding any entries where the Governor isn't Betsy McCaughey Ross and the US Senator is Hillary Rodham Clinton and the Party ID isn't 5, or the Attorney General is Eliot Spitzer, or the Party is Working Families?", "answer": {"columns": ["SUM(Year)", "AVG(Attorney_General)", "Governor", "Party_ID", "Lieutenant_Governor", "AVG(US_Senate)", "MAX(Party)", "MIN(Comptroller)"], "index": [0], "data": [["10022", "0", "Carl McCall", "3", "Dennis Mehiel", "0", "Working Families", "Alan Hevesi"]]}, "table_names": "['party' 'party']", "table_image_ids": ["TableImg_Iu6aw_7.png", "TableImg_Loa7y_7.png"], "original_data_index": 852, "original_sql": "SELECT SUM(Year), AVG(Attorney_General), Governor, Party_ID, Lieutenant_Governor, AVG(US_Senate), MAX(Party), MIN(Comptroller) FROM party WHERE \"Party_ID\" >= 5 OR \"Year\" >= 2002.0 OR Comptroller = \"Alan Hevesi\" AND US_Senate != \"Hillary Rodham Clinton\" EXCEPT SELECT SUM(Year), AVG(Attorney_General), Governor, Party_ID, Lieutenant_Governor, AVG(US_Senate), MAX(Party), MIN(Comptroller) FROM party WHERE Governor != \"Betsy McCaughey Ross\" AND US_Senate = \"Hillary Rodham Clinton\" AND \"Party_ID\" != 5 OR Attorney_General = \"Eliot Spitzer\" OR Party = \"Working Families\""} {"question": "Can you give me a list of driver IDs that are less than 2 from the driver table, combined with a list of driver IDs that are not equal to 9 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fqy8f_12.png", "TableImg_Sqbyl_5.png"], "original_data_index": 854, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you list the aircraft IDs that are less than or equal to 5, excluding those aircraft IDs less than 3 that are also listed in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1q75l_5.png", "TableImg_0sic0_4.png"], "original_data_index": 855, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3"} {"question": "Can you give me a list of driver IDs from the driver table where each ID is less than or equal to 7, combined with a list of driver IDs from the school_bus table where the ID is exactly 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gp5gz_12.png", "TableImg_Hnr38_5.png"], "original_data_index": 858, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me a list of document IDs that either have a draft number of 1 or higher, or were mailed to address ID 8 on a date other than May 24, 1993 at 10:13 PM?", "answer": {"columns": ["document_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["4"], ["7"], ["10"], ["12"], ["13"], ["14"], ["17"], ["20"], ["23"]]}, "table_names": "['Document_Drafts' 'Documents_Mailed']", "table_image_ids": ["TableImg_Wswqk_15.png", "TableImg_Naqot_14.png"], "original_data_index": 857, "original_sql": "SELECT document_id FROM Document_Drafts WHERE \"draft_number\" >= 1 UNION SELECT document_id FROM Documents_Mailed WHERE mailing_date <> \"1993-05-24 22:13:48\" AND \"mailed_to_address_id\" = 8"} {"question": "Can you list all the aircraft IDs, combining those from the aircraft table that are not equal to 3 with those from the airport_aircraft table that are greater than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qe2qz_5.png", "TableImg_Imdiq_4.png"], "original_data_index": 856, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you give me a list of driver IDs, including all driver IDs from the driver table except for driver ID 6, and also including driver ID 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_O5o0l_12.png", "TableImg_6uot0_5.png"], "original_data_index": 859, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 4, excluding any driver IDs that are also in the school_bus table and less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_L4npy_12.png", "TableImg_9sjbs_5.png"], "original_data_index": 860, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list the aircraft IDs that are less than 3 from the aircraft table, and also list the aircraft IDs that are less than 5 from the airport_aircraft table, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Aicye_5.png", "TableImg_Okrze_4.png"], "original_data_index": 861, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, including driver ID 10 from the driver table and driver ID 7 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mu4ea_12.png", "TableImg_531ks_5.png"], "original_data_index": 864, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you list all the driver IDs that are less than 10 from the driver table, combined with all the driver IDs that are less than or equal to 3 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_W5f3z_12.png", "TableImg_G8tty_5.png"], "original_data_index": 863, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the school type, the number of schools, location, grade, and school name for all schools that are not kindergarten, or have a school ID greater than 1 and are not public, excluding those that are kindergarten?", "answer": {"columns": ["Type", "COUNT(School_ID)", "Location", "Grade", "School"], "index": [0], "data": [["Private Catholic", "6", "Jakarta, Indonesia", "1st-3rd grade", "St. Francis Assisi"]]}, "table_names": "['school' 'school']", "table_image_ids": ["TableImg_Fzz9b_7.png", "TableImg_3r0c2_7.png"], "original_data_index": 862, "original_sql": "SELECT Type, COUNT(School_ID), Location, Grade, School FROM school WHERE Grade <> \"Kindergarten\" OR \"School_ID\" > 1 AND Type != \"Public\" EXCEPT SELECT Type, COUNT(School_ID), Location, Grade, School FROM school WHERE Grade = \"Kindergarten\""} {"question": "Which driver IDs are both less than or equal to 9 in the driver table and greater than or equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7lijj_12.png", "TableImg_Szi4g_5.png"], "original_data_index": 865, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 5, excluding any driver IDs that appear in the school_bus table where the driver ID is not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K2q8z_12.png", "TableImg_Vqhwk_5.png"], "original_data_index": 866, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Which aircraft IDs are not equal to 2 and are also equal to 1 in the airport aircraft?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lfkqr_5.png", "TableImg_W0i5g_4.png"], "original_data_index": 867, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Which driver IDs are equal to 8, but are not driver IDs less than 3 that are used in school buses?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_E3q0q_12.png", "TableImg_Qn7y2_5.png"], "original_data_index": 870, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 12 and appear in the driver table, and also less than 7 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["3"], ["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Sgqsg_12.png", "TableImg_Bdtiq_5.png"], "original_data_index": 871, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 7"} {"question": "Can you give me a list of driver IDs from the driver table that are 5 or greater, excluding any driver IDs from the school bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qqxbk_12.png", "TableImg_S9ds7_5.png"], "original_data_index": 872, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you list the aircraft IDs, including those from the aircraft table that are greater than or equal to 1, and those from the airport_aircraft table that are less than 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Wji9g_5.png", "TableImg_A85l6_4.png"], "original_data_index": 873, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you list the aircraft IDs, first from the aircraft table where the ID is not 1, and then from the airport_aircraft table where the ID is at most 2, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_J38zu_5.png", "TableImg_1swx4_4.png"], "original_data_index": 874, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is not 1, and those from the school bus table where the ID is 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Efqgh_12.png", "TableImg_Rh3tc_5.png"], "original_data_index": 875, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you give me a list of album IDs where either the artist ID is not 258 and the album title is \"The World of Classical Favourites\", or any album ID that is not 83, combined with a list of all genre IDs where the genre name is not \"Pop\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"], ["26"], ["27"], ["28"], ["29"], ["30"], ["31"], ["32"], ["33"], ["34"], ["35"], ["36"], ["37"], ["38"], ["39"], ["40"], ["41"], ["42"], ["43"], ["44"], ["45"], ["46"], ["47"], ["48"], ["49"], ["50"], ["51"], ["52"], ["53"], ["54"], ["55"], ["56"], ["57"], ["58"], ["59"], ["60"], ["61"], ["62"], ["63"], ["64"], ["65"], ["66"], ["67"], ["68"], ["69"], ["70"], ["71"], ["72"], ["73"], ["74"], ["75"], ["76"], ["77"], ["78"], ["79"], ["80"], ["81"], ["82"], ["84"], ["85"], ["86"], ["87"], ["88"], ["89"], ["90"], ["91"], ["92"], ["93"], ["94"], ["95"], ["96"], ["97"], ["98"], ["99"], ["100"], ["101"], ["102"], ["103"], ["104"], ["105"], ["106"], ["107"], ["108"], ["109"], ["110"], ["111"], ["112"], ["113"], ["114"], ["115"], ["116"], ["117"], ["118"], ["119"], ["120"], ["121"], ["122"], ["123"], ["124"], ["125"], ["126"], ["127"], ["128"], ["129"], ["130"], ["131"], ["132"], ["133"], ["134"], ["135"], ["136"], ["137"], ["138"], ["139"], ["140"], ["141"], ["142"], ["143"], ["144"], ["145"], ["146"], ["147"], ["148"], ["149"], ["150"], ["151"], ["152"], ["153"], ["154"], ["155"], ["156"], ["157"], ["158"], ["159"], ["160"], ["161"], ["162"], ["163"], ["164"], ["165"], ["166"], ["167"], ["168"], ["169"], ["170"], ["171"], ["172"], ["173"], ["174"], ["175"], ["176"], ["177"], ["178"], ["179"], ["180"], ["181"], ["182"], ["183"], ["184"], ["185"], ["186"], ["187"], ["188"], ["189"], ["190"], ["191"], ["192"], ["193"], ["194"], ["195"], ["196"], ["197"], ["198"], ["199"], ["200"], ["201"], ["202"], ["203"], ["204"], ["205"], ["206"], ["207"], ["208"], ["209"], ["210"], ["211"], ["212"], ["213"], ["214"], ["215"], ["216"], ["217"], ["218"], ["219"], ["220"], ["221"], ["222"], ["223"], ["224"], ["225"], ["226"], ["227"], ["228"], ["229"], ["230"], ["231"], ["232"], ["233"], ["234"], ["235"], ["236"], ["237"], ["238"], ["239"], ["240"], ["241"], ["242"], ["243"], ["244"], ["245"], ["246"], ["247"], ["248"], ["249"], ["250"], ["251"], ["252"], ["253"], ["254"], ["255"], ["256"], ["257"], ["258"], ["259"], ["260"], ["261"], ["262"], ["263"], ["264"], ["265"], ["266"], ["267"], ["268"], ["269"], ["270"], ["271"], ["272"], ["273"], ["274"], ["275"], ["276"], ["277"], ["278"], ["279"], ["280"], ["281"], ["282"], ["283"], ["284"], ["285"], ["286"], ["287"], ["288"], ["289"], ["290"], ["291"], ["292"], ["293"], ["294"], ["295"], ["296"], ["297"], ["298"], ["299"], ["300"], ["301"], ["302"], ["303"], ["304"], ["305"], ["306"], ["307"], ["308"], ["309"], ["310"], ["311"], ["312"], ["313"], ["314"], ["315"], ["316"], ["317"], ["318"], ["319"], ["320"], ["321"], ["322"], ["323"], ["324"], ["325"], ["326"], ["327"], ["328"], ["329"], ["330"], ["331"], ["332"], ["333"], ["334"], ["335"], ["336"], ["337"], ["338"], ["339"], ["340"], ["341"], ["342"], ["343"], ["344"], ["345"], ["346"], ["347"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["16"], ["17"], ["18"], ["19"], ["20"], ["21"], ["22"], ["23"], ["24"], ["25"]]}, "table_names": "['albums' 'genres']", "table_image_ids": ["TableImg_Hwkw9_347.png", "TableImg_P4hxf_25.png"], "original_data_index": 876, "original_sql": "SELECT id FROM albums WHERE \"artist_id\" != 258 AND title = \"The World of Classical Favourites\" OR \"id\" != 83 UNION ALL SELECT id FROM genres WHERE name != \"Pop\""} {"question": "Which driver IDs are both not equal to 9 and less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Faxbo_12.png", "TableImg_7ql7y_5.png"], "original_data_index": 877, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 9 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the parties from the election table that meet certain criteria related to counties represented, district, party affiliation, delegates, election ID, first elected year, and committee, but exclude any parties that also meet specific criteria in the party table related to comptroller, party ID, US Senator, party name, attorney general, governor, year, and lieutenant governor?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["7"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_2jras_8.png", "TableImg_4vjbr_7.png"], "original_data_index": 878, "original_sql": "SELECT Party FROM election WHERE Counties_Represented = \"13\" OR \"District\" > 4 AND \"Party\" = 2 OR Delegate != \"DeBoy, Steven J. Sr. Steven J. DeBoy, Sr.\" AND \"Election_ID\" < 8 OR \"First_Elected\" > 2002.0 AND Committee <> \"Appropriations\" EXCEPT SELECT Party FROM party WHERE Comptroller = \"Alan Hevesi\" OR \"Party_ID\" < 3 AND US_Senate = \"Hillary Rodham Clinton\" AND Party <> \"Independence\" OR Attorney_General <> \"Eliot Spitzer\" AND Governor = \"Carl McCall\" AND \"Year\" > 1998.0 OR Lieutenant_Governor = \"David Paterson\""} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 9, and those from the school bus table with driver IDs less than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7tdjk_12.png", "TableImg_A0o14_5.png"], "original_data_index": 869, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "What aircraft IDs appear in the aircraft table, excluding aircraft ID 3, and also appear in the airport_aircraft table, including only aircraft IDs up to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Lg54d_5.png", "TableImg_Yl41o_4.png"], "original_data_index": 882, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you list all the document status codes, including those from the Documents table where the receipt date isn't September 15, 1976 at 7:24 PM and the status isn't \"working\", along with those from the Ref_Document_Status table where the status isn't \"done\"?", "answer": {"columns": ["document_status_code"], "index": [0, 1, 2], "data": [["done"], ["overdue"], ["working"]]}, "table_names": "['Documents' 'Ref_Document_Status']", "table_image_ids": ["TableImg_N85pr_15.png", "TableImg_Uoman_3.png"], "original_data_index": 883, "original_sql": "SELECT document_status_code FROM Documents WHERE receipt_date != \"1976-09-15 19:24:17\" AND document_status_code != \"working\" UNION SELECT document_status_code FROM Ref_Document_Status WHERE document_status_code != \"done\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 3, that are not also driver IDs, excluding driver ID 7, found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ug29j_12.png", "TableImg_Ev8cd_5.png"], "original_data_index": 884, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 4, that appear in the aircraft table but not in the airport_aircraft table, where aircraft ID 2 is also excluded from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["2"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U7pbr_5.png", "TableImg_0vwbp_4.png"], "original_data_index": 885, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs that are both greater than or equal to 1 and also less than 4, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5y84c_12.png", "TableImg_Thsn3_5.png"], "original_data_index": 886, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Could you give me the IDs from the certificate table that are equal to 14, but exclude any IDs from the flight table where the origin is Los Angeles, the flight number is 346 or less, the distance is less than 7487, and the departure date isn't April 12, 2005 at 9:00 AM, or where the price isn't 278.56, the destination isn't Honolulu, the ID is less than 10, and the arrival date isn't April 12, 2005 at 8:45 AM?", "answer": {"columns": ["aid"], "index": [0], "data": [["14"]]}, "table_names": "['certificate' 'flight']", "table_image_ids": ["TableImg_7n10g_69.png", "TableImg_1yanz_10.png"], "original_data_index": 887, "original_sql": "SELECT aid FROM certificate WHERE \"aid\" = 14 EXCEPT SELECT aid FROM flight WHERE origin = \"Los Angeles\" AND \"flno\" <= 346 AND \"distance\" < 7487 AND departure_date <> \"04/12/2005 09:00\" OR \"price\" != 278.56 AND destination <> \"Honolulu\" AND \"aid\" < 10 AND arrival_date != \"04/12/2005 08:45\""} {"question": "Can you give me a list of aircraft IDs that are greater than 3 and also greater than or equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_24uxj_5.png", "TableImg_Sfvlm_4.png"], "original_data_index": 888, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 2"} {"question": "Can you give me a list of employee IDs, combining those who work in Wasps with those from the evaluation records who either aren't employee number 2, or didn't receive an award in 2018 with a bonus that wasn't 2900?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["5"], ["8"], ["1"], ["10"], ["2"], ["4"], ["7"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_I2c10_10.png", "TableImg_Apa8u_6.png"], "original_data_index": 889, "original_sql": "SELECT Employee_ID FROM employee WHERE City = \"Wasps\" UNION SELECT Employee_ID FROM evaluation WHERE Employee_ID <> \"2\" OR Year_awarded <> \"2018\" AND \"Bonus\" <> 2900.0"} {"question": "Which driver IDs are listed in both the driver table, excluding driver ID 8, and the school bus table, excluding driver ID 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zhat3_12.png", "TableImg_4qt1a_5.png"], "original_data_index": 890, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 9"} {"question": "Can you give me a list of district IDs that are either district ID 7 and not in city area 22, or not headquartered in Chakwal City, combined with district IDs that are not 15?", "answer": {"columns": ["District_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"]]}, "table_names": "['district' 'store_district']", "table_image_ids": ["TableImg_O7isi_15.png", "TableImg_Mmyso_5.png"], "original_data_index": 880, "original_sql": "SELECT District_ID FROM district WHERE \"District_ID\" = 7 AND \"City_Area\" != 22.0 OR Headquartered_City != \"Chakwal City\" UNION SELECT District_ID FROM store_district WHERE \"District_ID\" <> 15"} {"question": "Can you give me a list of driver IDs that are less than or equal to 4, excluding any driver IDs from the school bus list that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J520r_12.png", "TableImg_Wl7n8_5.png"], "original_data_index": 879, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "What is the highest driver ID and the corresponding years of working for drivers who either don't live in Manchester, have a School ID of 1, are older than 46 and have worked for more than 8 years, belong to the Dem party and are named Douglas McCrory, or are full-time employees?", "answer": {"columns": ["MAX(T1.Driver_ID)", "Years_Working"], "index": [0], "data": [["10", "10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bo4na_12.png", "TableImg_09gza_5.png"], "original_data_index": 881, "original_sql": "SELECT MAX(T1.Driver_ID), T2.Years_Working FROM driver as T1 JOIN school_bus as T2 ON T1.Driver_ID = T2.Driver_ID WHERE Home_city <> \"Manchester\" OR \"School_ID\" = 1 OR \"Age\" > 46 AND \"Years_Working\" > 8 OR Party = \"Dem\" AND Name = \"Douglas McCrory\" OR If_full_time = \"T\""} {"question": "Can you list the aircraft IDs that are greater than 2 when grouped, excluding those aircraft IDs that are greater than or equal to 1 when grouped in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Egh2m_5.png", "TableImg_C09l3_4.png"], "original_data_index": 891, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "What aircraft have an ID of 4, but are not among the aircraft with IDs less than 5 that are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ts64c_5.png", "TableImg_Rcmdc_4.png"], "original_data_index": 892, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, excluding driver ID 8, that are not also driver IDs greater than or equal to 10 found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Htqjt_12.png", "TableImg_E12x8_5.png"], "original_data_index": 894, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 3, but then remove any aircraft IDs that appear in the airport_aircraft table, excluding aircraft ID 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mzoho_5.png", "TableImg_Svrok_4.png"], "original_data_index": 893, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 2"} {"question": "Can you list all the continents, including Europe, and also any other continent where the continent ID is greater than 3?", "answer": {"columns": ["Continent"], "index": [0, 1, 2], "data": [["africa"], ["australia"], ["europe"]]}, "table_names": "['continents' 'continents']", "table_image_ids": ["TableImg_Jczp7_5.png", "TableImg_Ftiq9_5.png"], "original_data_index": 896, "original_sql": "SELECT Continent FROM continents WHERE Continent = \"europe\" UNION SELECT Continent FROM continents WHERE \"ContId\" > 3 AND Continent <> \"europe\""} {"question": "Can you give me the driver ID that appears exactly once with the value 8 in the driver table, excluding any driver IDs that appear with a value of 9 or greater in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tkdug_12.png", "TableImg_7p35e_5.png"], "original_data_index": 895, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 9"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 6 and appears more than once in the driver table, excluding any driver IDs that are also greater than 3 and appear more than once in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gyabq_12.png", "TableImg_A88k4_5.png"], "original_data_index": 898, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "What is the smallest branch ID from the branch table, excluding branches named Popert or those with a membership amount of 6 not located in Oxford, or those not on Concord Road opened in a year other than 2015, and whose branch ID is less than or equal to 2, after removing the smallest branch ID from the purchase table where the branch ID is 3 or the year is not 2018 and the total pounds is 988.09?", "answer": {"columns": ["MIN(Branch_ID)"], "index": [0], "data": [["1"]]}, "table_names": "['branch' 'purchase']", "table_image_ids": ["TableImg_Npq05_8.png", "TableImg_836ec_8.png"], "original_data_index": 897, "original_sql": "SELECT MIN(Branch_ID) FROM branch WHERE Name <> \"Popert\" OR membership_amount = \"6\" AND City != \"Oxford\" OR Address_road != \"Concord Road\" AND Open_year <> \"2015\" AND \"Branch_ID\" <= 2 EXCEPT SELECT MIN(Branch_ID) FROM purchase WHERE Branch_ID = \"3\" OR Year != \"2018\" AND \"Total_pounds\" = 988.09"} {"question": "What is the smallest school ID for St. Francis Assisi kindergarten schools that are private, not located in Los Angeles, California, and have a school ID of 5, excluding the smallest school IDs from the school bus table where the driver ID is not 4?", "answer": {"columns": ["MIN(School_ID)"], "index": [0], "data": [[""]]}, "table_names": "['school' 'school_bus']", "table_image_ids": ["TableImg_5f6fy_7.png", "TableImg_Bj1ga_5.png"], "original_data_index": 901, "original_sql": "SELECT MIN(School_ID) FROM school WHERE School = \"St. Francis Assisi\" AND Grade = \"Kindergarten\" AND Type = \"Private\" AND Location <> \"Los Angeles, California\" AND \"School_ID\" = 5 EXCEPT SELECT MIN(School_ID) FROM school_bus WHERE \"Driver_ID\" <> 4"} {"question": "Could you list the Shop IDs from the hiring shop that either have part-time employees and a Shop ID of 8 or greater, or started at a different time than 2013, combined with Shop IDs from the shop table that either have less than 10770 products and are located in Kuopio, or have Antti Muurinen as the manager?", "answer": {"columns": ["Shop_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["4"], ["6"], ["7"], ["8"]]}, "table_names": "['hiring' 'shop']", "table_image_ids": ["TableImg_P7eu4_7.png", "TableImg_Gbz3r_9.png"], "original_data_index": 899, "original_sql": "SELECT Shop_ID FROM hiring WHERE Is_full_time = \"F\" AND \"Shop_ID\" >= 8 OR Start_from <> \"2013\" UNION SELECT Shop_ID FROM shop WHERE \"Number_products\" < 10770 AND Location = \"Kuopio\" OR Manager_name = \"Antti Muurinen\""} {"question": "Can you give me the sum of the invested budget percentage, school ID, budgeted amount, year, sum of the total invested budget percentage, and total budgeted budget percentage from the budget table, combining two sets of results: one where the total budgeted budget percentage is 1.3 and the invested budget percentage is 146.9, or the year is before or in 2002, or the invested amount is less than or equal to 95542, and another where the year is after 2003, or the total invested budget percentage is less than 2.0, or the invested budget percentage is 127.6 and the school ID is less than or equal to 5?", "answer": {"columns": ["SUM(Budget_invested_percent)", "School_id", "Budgeted", "Year", "SUM(total_budget_percent_invested)", "total_budget_percent_budgeted"], "index": [0, 1], "data": [["670.5", "2", "4979", "1999", "12.4", "2"], ["585.0", "4", "74849", "2004", "7.6", "2"]]}, "table_names": "['budget' 'budget']", "table_image_ids": ["TableImg_Te8h4_8.png", "TableImg_Ab8ij_8.png"], "original_data_index": 902, "original_sql": "SELECT SUM(Budget_invested_percent), School_id, Budgeted, Year, SUM(total_budget_percent_invested), total_budget_percent_budgeted FROM budget WHERE \"total_budget_percent_budgeted\" = 1.3 AND Budget_invested_percent = \"146.9\" OR \"Year\" <= 2002 OR \"Invested\" <= 95542 UNION ALL SELECT SUM(Budget_invested_percent), School_id, Budgeted, Year, SUM(total_budget_percent_invested), total_budget_percent_budgeted FROM budget WHERE \"Year\" > 2003 OR \"total_budget_percent_invested\" < 2.0 OR Budget_invested_percent = \"127.6\" AND \"School_id\" <= 5"} {"question": "Can you give me the total of aircraft IDs from the aircraft table where the aircraft isn't a Robinson R-22, or the maximum gross weight isn't 3,200 lb (1,451 kg), or the maximum disk loading is 2.6 lb/ft\u00b2 (14 kg/m\u00b2) and the total disk area isn't 5,655 ft\u00b2 (526 m\u00b2), and the description isn't a Turboshaft utility helicopter, and the aircraft ID is less than or equal to 5, combined with the total of aircraft IDs from the airport aircraft table where the airport ID is greater than 1, or the ID is less than or equal to 4 and the aircraft ID is less than 3?", "answer": {"columns": ["SUM(Aircraft_ID)"], "index": [0, 1], "data": [["11"], ["15"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_O5oys_5.png", "TableImg_Okqdc_4.png"], "original_data_index": 900, "original_sql": "SELECT SUM(Aircraft_ID) FROM aircraft WHERE Aircraft <> \"Robinson R-22\" OR Max_Gross_Weight <> \"3,200 lb (1,451 kg)\" OR Max_disk_Loading = \"2.6 lb/ft\u00b2 (14 kg/m\u00b2)\" AND Total_disk_area != \"5,655 ft\u00b2 (526 m\u00b2)\" AND Description <> \"Turboshaft utility helicopter\" AND \"Aircraft_ID\" <= 5 UNION SELECT SUM(Aircraft_ID) FROM airport_aircraft WHERE \"Airport_ID\" > 1 OR \"ID\" <= 4 AND \"Aircraft_ID\" < 3"} {"question": "Which driver IDs are greater than or equal to 7, but are not less than or equal to 7 in the school bus driver list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S87v4_12.png", "TableImg_H9icb_5.png"], "original_data_index": 905, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs, including driver ID 11 from the driver table, and any driver IDs greater than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["7"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cvoji_12.png", "TableImg_57rax_5.png"], "original_data_index": 904, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table, excluding driver ID 7, with those from the school bus table, limited to IDs less than 10, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1gada_12.png", "TableImg_66f14_5.png"], "original_data_index": 906, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "What are the maximum gross weights of aircraft and their corresponding aircraft IDs?", "answer": {"columns": ["Max_Gross_Weight", "Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["3,200 lb (1,451 kg)", "2"], ["1,370 lb (635 kg)", "1"], ["73,500 lb (33,300 kg)", "5"], ["50,000 lb (22,680 kg)", "3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xskzn_5.png", "TableImg_L9itu_4.png"], "original_data_index": 908, "original_sql": "SELECT T1.Max_Gross_Weight, T2.Aircraft_ID FROM aircraft as T1 JOIN airport_aircraft as T2 ON T1.Aircraft_ID = T2.Aircraft_ID"} {"question": "Can you list the aircraft IDs, first including those from the aircraft table that are not equal to 3, and then adding those from the airport_aircraft table that are greater than or equal to 5?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Nthua_5.png", "TableImg_6ojfl_4.png"], "original_data_index": 909, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Which driver IDs are present in both the driver table (excluding driver ID 1) and the school_bus table (only including driver IDs greater than 3)?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hh4gm_12.png", "TableImg_Eg0sh_5.png"], "original_data_index": 903, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 1 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you list the PetIDs from the Has_Pet table where the PetID is not 2003 and the StuID is less than 1002, combined with the PetIDs from the Pets table where the weight is less than 12 or the PetID is greater than or equal to 2001?", "answer": {"columns": ["PetID"], "index": [0, 1, 2], "data": [["2001"], ["2002"], ["2003"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_9g27j_3.png", "TableImg_6tzh6_3.png"], "original_data_index": 912, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"PetID\" <> 2003 AND \"StuID\" < 1002 UNION SELECT PetID FROM Pets WHERE \"weight\" < 12.0 OR \"PetID\" >= 2001"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 4, and those from the school bus table with driver IDs up to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A1je3_12.png", "TableImg_Q40g7_5.png"], "original_data_index": 907, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 10"} {"question": "Can you tell me the count of document type descriptions for each document type code, first excluding those with the description \"f\", and then combining that with a count of document type descriptions for each document type code, excluding those with the code \"Hard Drive\" or the description \"f\"?", "answer": {"columns": ["document_type_code", "COUNT(document_type_description)"], "index": [0, 1], "data": [["CD", "2"], ["CD", "2"]]}, "table_names": "['Ref_Document_Types' 'Ref_Document_Types']", "table_image_ids": ["TableImg_Vzao4_3.png", "TableImg_3dubd_3.png"], "original_data_index": 913, "original_sql": "SELECT document_type_code, COUNT(document_type_description) FROM Ref_Document_Types WHERE document_type_description != \"f\" UNION ALL SELECT document_type_code, COUNT(document_type_description) FROM Ref_Document_Types WHERE document_type_code != \"Hard Drive\" OR document_type_description <> \"f\""} {"question": "Can you give me a list of aircraft IDs, including those from the aircraft table that are greater than 4, and those from the airport_aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["1"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Qtoyo_5.png", "TableImg_X1mg5_4.png"], "original_data_index": 914, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me the document ID, average draft details, and draft number from the document drafts, combining two sets of results: one where the draft number isn't 17 or the draft details aren't \"m\" and the document ID isn't 13, and another where the document ID is 7 or less and the draft number is 17, or the draft details aren't \"k\"?", "answer": {"columns": ["document_id", "AVG(draft_details)", "draft_number"], "index": [0, 1], "data": [["1", "0", "0"], ["1", "0", "0"]]}, "table_names": "['Document_Drafts' 'Document_Drafts']", "table_image_ids": ["TableImg_3bo0t_15.png", "TableImg_Xwmth_15.png"], "original_data_index": 915, "original_sql": "SELECT document_id, AVG(draft_details), draft_number FROM Document_Drafts WHERE \"draft_number\" <> 17 OR draft_details <> \"m\" AND \"document_id\" != 13 UNION ALL SELECT document_id, AVG(draft_details), draft_number FROM Document_Drafts WHERE \"document_id\" <= 7 AND \"draft_number\" = 17 OR draft_details != \"k\""} {"question": "Could you give me a list of receipt numbers from the Documents table where either the shipping agent code isn't \"AL\", the document status code isn't \"working\", or the receipt date isn't \"1982-09-27 14:52:15\" and the other details aren't \"x\"? Also, include receipt numbers where the other details aren't \"u\" and the document ID isn't 1 and the shipping agent code isn't \"US\", or the receipt date isn't \"1976-09-15 19:24:17\", or the receipt number isn't \"79\".", "answer": {"columns": ["receipt_number"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["114"], ["117"], ["124"], ["189"], ["19"], ["34"], ["37"], ["55"], ["61"], ["69"], ["79"], ["8"], ["80"], ["83"], ["93"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Xtfwq_15.png", "TableImg_A9ttj_15.png"], "original_data_index": 916, "original_sql": "SELECT receipt_number FROM Documents WHERE shipping_agent_code != \"AL\" OR document_status_code <> \"working\" OR receipt_date <> \"1982-09-27 14:52:15\" AND other_details <> \"x\" UNION SELECT receipt_number FROM Documents WHERE other_details != \"u\" AND \"document_id\" <> 1 AND shipping_agent_code <> \"US\" OR receipt_date <> \"1976-09-15 19:24:17\" OR receipt_number != \"79\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 4, and those from the school bus table that are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kw83a_12.png", "TableImg_Yaba1_5.png"], "original_data_index": 917, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Could you list the aircraft IDs that are less than 3 when grouped in the aircraft table, and also less than 2 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hjip1_5.png", "TableImg_Fda8u_4.png"], "original_data_index": 918, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 3 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 2"} {"question": "What is the total of all store IDs from stores with fewer than 990 product categories and an area size of 7.23 or less, combined with the total of all store IDs from district 11, excluding store ID 1?", "answer": {"columns": ["SUM(Store_ID)"], "index": [0, 1], "data": [[""], ["3.0"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Ia23l_5.png", "TableImg_Mky8z_5.png"], "original_data_index": 919, "original_sql": "SELECT SUM(Store_ID) FROM store WHERE \"Number_of_product_category\" < 990.0 AND \"Area_size\" <= 7.23 UNION ALL SELECT SUM(Store_ID) FROM store_district WHERE \"District_ID\" = 11 AND \"Store_ID\" <> 1"} {"question": "Can you give me the IDs of drivers that are both less than or equal to 3 and are not equal to 10, considering only unique driver IDs from the driver and school_bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qjo9j_12.png", "TableImg_Ljp8k_5.png"], "original_data_index": 920, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "What is the highest vehicle ID for vehicles that are not cars or have an ID of 1 or greater, and also, what is the highest vehicle ID for vehicles that don't have an ID of 2?", "answer": {"columns": ["MAX(vehicle_id)"], "index": [0, 1], "data": [["3"], ["3"]]}, "table_names": "['Vehicles' 'Vehicles']", "table_image_ids": ["TableImg_Tda4d_3.png", "TableImg_Pvay2_3.png"], "original_data_index": 911, "original_sql": "SELECT MAX(vehicle_id) FROM Vehicles WHERE vehicle_details != \"Car\" OR \"vehicle_id\" >= 1 UNION ALL SELECT MAX(vehicle_id) FROM Vehicles WHERE \"vehicle_id\" != 2"} {"question": "Can you give me a list of item IDs, including those that are not item ID 7, and also those from reviews where the user ID isn't 2, the rating isn't 10, and the rank is 3 or less?", "answer": {"columns": ["i_id"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["0"], ["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["4"]]}, "table_names": "['item' 'review']", "table_image_ids": ["TableImg_Qvnya_8.png", "TableImg_3e5k3_7.png"], "original_data_index": 910, "original_sql": "SELECT i_id FROM item WHERE \"i_id\" <> 7 UNION ALL SELECT i_id FROM review WHERE \"u_id\" != 2 AND \"rating\" <> 10 AND \"rank\" <= 3"} {"question": "Can you give me a list of driver IDs that are less than 10, and are also less than 9 when looking at school bus driver IDs?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_K3ywp_12.png", "TableImg_Hdsup_5.png"], "original_data_index": 922, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Which driver IDs are both greater than or equal to 3 in the driver list and greater than 4 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ufro7_12.png", "TableImg_If9pe_5.png"], "original_data_index": 924, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Which driver IDs, excluding driver ID 8, are also driver ID 10 on the school bus?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Iepq0_12.png", "TableImg_Jc7di_5.png"], "original_data_index": 921, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you show me the opening year, branch ID, city, name, and road address for branch number 5, along with the same information for all branches that either don't have \"Glebe Street\" as their road address, are located in London but didn't open in 2009, or have a branch ID of 7 or higher?", "answer": {"columns": ["Open_year", "Branch_ID", "City", "Name", "Address_road"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["2001", "1", "London", "Alexandre", "Valleys Place"], ["2009", "2", "London", "Popert", "Oaks Crescent"], ["2009", "4", "Oxford", "Zytogorski", "Abbey Rise"], ["2009", "8", "Oxford", "Brooke Greville", "Glebe Street"], ["2012", "5", "London", "Cochrane", "Brampton Road"], ["2013", "3", "London", "Stanley", "Abbott Street"], ["2014", "6", "Oxford", "Taverner", "Cecilia Avenue"], ["2015", "7", "London", "Saint Amant", "Concord Road"]]}, "table_names": "['branch' 'branch']", "table_image_ids": ["TableImg_Jnrxl_8.png", "TableImg_Camg0_8.png"], "original_data_index": 923, "original_sql": "SELECT Open_year, Branch_ID, City, Name, Address_road FROM branch WHERE \"Branch_ID\" = 5 UNION SELECT Open_year, Branch_ID, City, Name, Address_road FROM branch WHERE Address_road != \"Glebe Street\" OR City = \"London\" AND Open_year != \"2009\" OR \"Branch_ID\" >= 7"} {"question": "Which driver IDs are equal to 11 in the driver table, but not different from 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Xmsog_12.png", "TableImg_7tarz_5.png"], "original_data_index": 928, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is greater than 5, and those from the school bus table where the ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vas99_12.png", "TableImg_3txxx_5.png"], "original_data_index": 925, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list all the aircraft IDs that are specifically '3' from the aircraft table, and combine that with a list of all aircraft IDs that are not '3' from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ula7n_5.png", "TableImg_Qe3gr_4.png"], "original_data_index": 927, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "What is the highest club ID and the gender of coaches, grouped by start year, considering only clubs and coaches where the gender is male, or the club name isn't Gefle IF and the coach's name is James Wong, or the start year is before or in 2011, or the region is UK, or the rank is 1 or less and the coach ID is 4 or more, and then filtering this group to only include those where the club name isn't Halmstads BK, or the coach's name is Joe Fabbri and the start year is before 2009, or the region is USA, or the rank is less than 3, or the coach ID is 2 or less, or the gender is male?", "answer": {"columns": ["MAX(T1.Club_ID)", "Gender"], "index": [0, 1], "data": [["3", "M"], ["1", "M"]]}, "table_names": "['club' 'coach']", "table_image_ids": ["TableImg_Rox8v_6.png", "TableImg_Ra0e7_5.png"], "original_data_index": 926, "original_sql": "SELECT MAX(T1.Club_ID), T2.Gender FROM club as T1 JOIN coach as T2 ON T1.Club_ID = T2.Club_ID WHERE Gender = \"M\" OR Club_name <> \"Gefle IF\" AND Coach_name = \"James Wong\" OR \"Start_year\" <= 2011 OR Region = \"UK\" OR \"Rank\" <= 1 AND \"Coach_ID\" >= 4 GROUP BY Start_year HAVING Club_name <> \"Halmstads BK\" OR Coach_name = \"Joe Fabbri\" AND Start_year < 2009 OR Region = \"USA\" OR Rank < 3 OR Coach_ID <= 2 OR Gender = \"M\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 8 or higher, and those from the school bus table that are 3 or lower?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Joipu_12.png", "TableImg_Dud5c_5.png"], "original_data_index": 932, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs, where each ID is less than or equal to 4 from the driver table, combined with a list of driver IDs that are not equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Aouwf_12.png", "TableImg_9wxq5_5.png"], "original_data_index": 929, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 7"} {"question": "Can you give me a list of driver IDs that are greater than 11 from the driver table, combined with a list of driver IDs that are greater than 9 from the school bus table, removing any duplicates?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ib8yd_12.png", "TableImg_Cncqy_5.png"], "original_data_index": 930, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "What is the average nationality value for people who are either shorter than 194.0, or were born on August 8, 1986, or whose name is not Aleksey Ostapenko and whose ID is less than 4, or are Russian, but only considering the average nationality values that are also found among people who were born on August 8, 1986, or are not Bulgarian, or whose name is not Semen Poltavskiy?", "answer": {"columns": ["AVG(Nationality)"], "index": [0], "data": [["0"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_Icro4_7.png", "TableImg_O2znf_7.png"], "original_data_index": 931, "original_sql": "SELECT AVG(Nationality) FROM people WHERE \"Height\" < 194.0 OR Birth_Date = \"August 8, 1986\" OR Name != \"Aleksey Ostapenko\" AND \"People_ID\" < 4 OR Nationality = \"Russia\" INTERSECT SELECT AVG(Nationality) FROM people WHERE Birth_Date = \"August 8, 1986\" OR Nationality <> \"Bulgaria\" OR Name <> \"Semen Poltavskiy\""} {"question": "Can you give me a list of driver IDs, including driver ID 1 from the driver table and all driver IDs less than or equal to 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kef31_12.png", "TableImg_Zr843_5.png"], "original_data_index": 933, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 7"} {"question": "Can you give me a list of driver IDs that are less than or equal to 2, and combine that with a list of driver IDs from the school bus table that are greater than or equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["1"], ["2"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_27szf_12.png", "TableImg_Bubdd_5.png"], "original_data_index": 935, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of aircraft IDs that are greater than 1, excluding those aircraft IDs that are also greater than or equal to 5 and found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_3t0fu_5.png", "TableImg_T5q38_4.png"], "original_data_index": 934, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5"} {"question": "Can you list the aircraft IDs that are greater than or equal to 5, excluding any aircraft IDs that are less than 5 and are also present in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M11zf_5.png", "TableImg_Dsvk1_4.png"], "original_data_index": 936, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5"} {"question": "Can you give me a list of driver IDs, where each ID is less than or equal to 12, excluding any driver IDs that are not equal to 10 and are also found in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["8"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nw5vr_12.png", "TableImg_Rkzz3_5.png"], "original_data_index": 937, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Could you give me the IDs of airports that either aren't ICAO \"BIAR\" and aren't in \"Bergen\", or are named \"Akureyri Airport\", aren't in the \"United States\", have an ID of 6, and don't have an IATA of \"BLL\", excluding the IDs of operate_companies that either aren't named \"VN/CX Catering Services Limited\" and have a \"Group_Equity_Shareholding\" less than 45.0 and are a \"Cargo airline\", or aren't a \"Subsidiary\"?", "answer": {"columns": ["id"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["5"], ["7"], ["8"], ["9"]]}, "table_names": "['airport' 'operate_company']", "table_image_ids": ["TableImg_I0uh2_9.png", "TableImg_Rs7dz_14.png"], "original_data_index": 940, "original_sql": "SELECT id FROM airport WHERE ICAO <> \"BIAR\" AND City <> \"Bergen\" OR name = \"Akureyri Airport\" AND Country <> \"United States\" AND \"id\" = 6 AND IATA != \"BLL\" EXCEPT SELECT id FROM operate_company WHERE name != \"VN/CX Catering Services Limited\" AND \"Group_Equity_Shareholding\" < 45.0 AND Principal_activities = \"Cargo airline\" OR Type != \"Subsidiary\""} {"question": "Can you give me a list of driver IDs, including driver ID 1 from the driver table, and all driver IDs except 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_P9obx_12.png", "TableImg_Zy7n7_5.png"], "original_data_index": 941, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me two sets of results from the management table? The first set should include the sum of temporary acting values, the head ID, and the count of department IDs where the department ID is greater than 7, the head ID is not 5, or the temporary acting value is \"No\". The second set should include the sum of temporary acting values, the head ID, and the count of department IDs where the department ID is less than or equal to 2, the temporary acting value is not \"Yes\", or the head ID is not 3.", "answer": {"columns": ["SUM(temporary_acting)", "head_ID", "COUNT(department_ID)"], "index": [0, 1], "data": [["0", "4", "4"], ["0", "5", "5"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_Tfgwn_5.png", "TableImg_Ohaew_5.png"], "original_data_index": 939, "original_sql": "SELECT SUM(temporary_acting), head_ID, COUNT(department_ID) FROM management WHERE \"department_ID\" > 7 OR \"head_ID\" <> 5 OR temporary_acting = \"No\" UNION ALL SELECT SUM(temporary_acting), head_ID, COUNT(department_ID) FROM management WHERE \"department_ID\" <= 2 OR temporary_acting <> \"Yes\" OR \"head_ID\" != 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 11, and also those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vuahu_12.png", "TableImg_W4jao_5.png"], "original_data_index": 942, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 1, and those from the school_bus table that are equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Flbnl_12.png", "TableImg_Sqia5_5.png"], "original_data_index": 943, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the aircraft IDs, first from the aircraft table excluding ID 2, and then from the airport_aircraft table including only IDs less than or equal to 1, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5m5mv_5.png", "TableImg_N72ow_4.png"], "original_data_index": 944, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of driver IDs that are 12 or greater, excluding any driver IDs less than 3 that are also in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gvqwi_12.png", "TableImg_5ueby_5.png"], "original_data_index": 945, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 3"} {"question": "Can you list the employee IDs and names of all employees who are older than 29, along with the employee IDs and names of all employees whose name is not Andrew Sheridan?", "answer": {"columns": ["Employee_ID", "Name"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["3", "Mark Regan"], ["4", "Jason Hobson"], ["8", "Phil Vickery"], ["9", "Steve Borthwick"], ["10", "Louis Deacon"], ["1", "George Chuter"], ["2", "Lee Mears"], ["3", "Mark Regan"], ["4", "Jason Hobson"], ["5", "Tim Payne"], ["7", "Matt Stevens"], ["8", "Phil Vickery"], ["9", "Steve Borthwick"], ["10", "Louis Deacon"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_A4rjx_10.png", "TableImg_21a2f_10.png"], "original_data_index": 947, "original_sql": "SELECT Employee_ID, Name FROM employee WHERE \"Age\" > 29 UNION ALL SELECT Employee_ID, Name FROM employee WHERE Name != \"Andrew Sheridan\""} {"question": "Can you give me a list of driver IDs, excluding driver ID 6, that are not also driver IDs less than or equal to 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Umiyv_12.png", "TableImg_D6f1c_5.png"], "original_data_index": 948, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver names and the total of their driver IDs, including those who are not 30 years old, have a driver ID less than 10, or don't live in Hartford, combined with a list of driver names and the total of their driver IDs, including those who have a driver ID greater than 12 and are not named Timothy Ackert, are 38 or older, or are not affiliated with the Democratic party?", "answer": {"columns": ["Name", "SUM(Driver_ID)"], "index": [0, 1], "data": [["Matthew Ritter", "78"], ["Matthew Ritter", "50"]]}, "table_names": "['driver' 'driver']", "table_image_ids": ["TableImg_M2k5g_12.png", "TableImg_Ej3yt_12.png"], "original_data_index": 946, "original_sql": "SELECT Name, SUM(Driver_ID) FROM driver WHERE \"Age\" != 30 OR \"Driver_ID\" < 10 OR Home_city <> \"Hartford\" UNION ALL SELECT Name, SUM(Driver_ID) FROM driver WHERE \"Driver_ID\" > 12 AND Name != \"Timothy Ackert\" OR \"Age\" >= 38 OR Party != \"Dem\""} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 5, and those from the school bus table that are less than or equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["3"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7ainp_12.png", "TableImg_Bln8q_5.png"], "original_data_index": 949, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Which aircraft IDs appear in both the aircraft and airport_aircraft tables, considering only IDs that are greater than or equal to 1 in each table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U8wnm_5.png", "TableImg_8cufq_4.png"], "original_data_index": 952, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver ID is both equal to 10 and not equal to 7, considering driver and school bus information?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bupak_12.png", "TableImg_L8zbk_5.png"], "original_data_index": 951, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Which aircraft IDs, excluding aircraft ID 5, are present in the aircraft table and also, excluding aircraft ID 1, are present in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Bg0r4_5.png", "TableImg_V27cy_4.png"], "original_data_index": 950, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "What is the smallest contestant number from the contestants table, excluding those named \"Loraine NygrenTania Mattioli\" and contestant number 11, combined with the smallest contestant number from the votes table where the phone number is greater than 7182887233, or the creation date is \"2018-03-09 19:03:40\", or the state is not \"NY\", the contestant number is 3, and the vote ID is less than 5?", "answer": {"columns": ["MIN(contestant_number)"], "index": [0, 1], "data": [["1"], ["3"]]}, "table_names": "['CONTESTANTS' 'VOTES']", "table_image_ids": ["TableImg_69uhf_11.png", "TableImg_593n9_4.png"], "original_data_index": 953, "original_sql": "SELECT MIN(contestant_number) FROM CONTESTANTS WHERE contestant_name != \"Loraine NygrenTania Mattioli\" AND \"contestant_number\" <> 11 UNION ALL SELECT MIN(contestant_number) FROM VOTES WHERE \"phone_number\" > 7182887233 OR created = \"2018-03-09 19:03:40\" OR state != \"NY\" AND \"contestant_number\" = 3 AND \"vote_id\" < 5"} {"question": "Which aircraft IDs are both less than or equal to 5 in the aircraft table and greater than or equal to 3 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_704hd_5.png", "TableImg_723wa_4.png"], "original_data_index": 957, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 3"} {"question": "Which driver IDs, excluding driver ID 5, are also driver ID 9 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gjggg_12.png", "TableImg_Dvawr_5.png"], "original_data_index": 955, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 5 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you give me a list of driver IDs that are not 6 and are also greater than or equal to 3, considering both the driver and school bus records?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["3"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Nog00_12.png", "TableImg_Afcsh_5.png"], "original_data_index": 954, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 3"} {"question": "Can you give me a list of all driver IDs, excluding driver ID 11 from the driver table and excluding driver ID 3 from the school_bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_S175n_12.png", "TableImg_Q0kgw_5.png"], "original_data_index": 956, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are less than 11 and also not equal to 4, considering only unique driver IDs from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Pxyoc_12.png", "TableImg_5j58r_5.png"], "original_data_index": 958, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that are not equal to 5 with those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qxrhq_12.png", "TableImg_Hvofy_5.png"], "original_data_index": 962, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 3"} {"question": "Can you give me a list of driver IDs, including driver ID 7 from the driver table and all driver IDs except 4 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_A67na_12.png", "TableImg_8aoui_5.png"], "original_data_index": 961, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "What are the maximum nationality, graduation college, average name, and count of ages for people whose age is 37 or older, name is Tim Naegeli, People ID is 2 or less, and nationality is not United Kingdom, excluding those whose graduation college is Northeastern, nationality is not United States, or age is greater than 27?", "answer": {"columns": ["MAX(Nationality)", "Graduation_College", "AVG(Name)", "COUNT(Age)"], "index": [0], "data": [["", "", "", "0"]]}, "table_names": "['people' 'people']", "table_image_ids": ["TableImg_E1lyj_7.png", "TableImg_914xj_7.png"], "original_data_index": 960, "original_sql": "SELECT MAX(Nationality), Graduation_College, AVG(Name), COUNT(Age) FROM people WHERE \"Age\" >= 37 AND Name = \"Tim Naegeli\" AND \"People_ID\" <= 2 AND Nationality <> \"United Kindom\" EXCEPT SELECT MAX(Nationality), Graduation_College, AVG(Name), COUNT(Age) FROM people WHERE Graduation_College = \"Northeastern\" OR Nationality <> \"United States\" OR \"Age\" > 27"} {"question": "Can you give me a list of student IDs, combining those from the allergy list where the ID is greater than 1026, with those from the student list where the first name isn't Linda, or the major code is 600 or higher, or the advisor code is less than 8721 and the sex isn't male, or the student ID isn't 1014, or the age is 18, or the last name isn't Cheng, or the city code is BAL?", "answer": {"columns": ["StuID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], "data": [["1027"], ["1028"], ["1029"], ["1029"], ["1029"], ["1030"], ["1031"], ["1031"], ["1031"], ["1001"], ["1002"], ["1003"], ["1004"], ["1005"], ["1006"], ["1007"], ["1008"], ["1009"], ["1010"], ["1011"], ["1012"], ["1014"], ["1015"], ["1016"], ["1017"], ["1018"], ["1019"], ["1020"], ["1021"], ["1022"], ["1023"], ["1024"], ["1025"], ["1026"], ["1027"], ["1028"], ["1029"], ["1030"], ["1031"], ["1032"], ["1033"], ["1034"], ["1035"]]}, "table_names": "['Has_Allergy' 'Student']", "table_image_ids": ["TableImg_Xyupo_59.png", "TableImg_Z18ld_34.png"], "original_data_index": 959, "original_sql": "SELECT StuID FROM Has_Allergy WHERE \"StuID\" > 1026 UNION ALL SELECT StuID FROM Student WHERE Fname <> \"Linda\" OR \"Major\" >= 600 OR \"Advisor\" < 8721 AND Sex <> \"M\" OR \"StuID\" <> 1014 OR \"Age\" = 18 OR LName <> \"Cheng\" OR city_code = \"BAL\""} {"question": "Can you list the driver IDs that are less than 5 from the driver table, and also include the driver ID 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Eeprt_12.png", "TableImg_Eagka_5.png"], "original_data_index": 963, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "Can you give me a list of driver IDs, excluding driver ID 4, but then remove any driver IDs that are also driver ID 3 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Mbuod_12.png", "TableImg_H4nz0_5.png"], "original_data_index": 966, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me the PetIDs that are associated with students other than student 1001, and are also different from PetID 2001?", "answer": {"columns": ["PetID"], "index": [0, 1], "data": [["2002"], ["2003"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Rf45e_3.png", "TableImg_P0udv_3.png"], "original_data_index": 967, "original_sql": "SELECT PetID FROM Has_Pet WHERE \"StuID\" != 1001 INTERSECT SELECT PetID FROM Pets WHERE \"PetID\" <> 2001"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 9 or greater, and also those from the school bus table where the ID is not 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["4"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hazb8_12.png", "TableImg_2iz4d_5.png"], "original_data_index": 965, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you tell me the number of full names, the country, the number of makers, and the smallest ID for car makers, grouped by country, where the country is not \"5\" and the smallest ID is 22, combined with the same information where the full name is not \"Fiat\" and the smallest ID is not 20?", "answer": {"columns": ["COUNT(FullName)", "Country", "COUNT(Maker)", "MIN(Id)"], "index": [0, 1, 2, 3, 4, 5], "data": [["2", "6", "2", "17"], ["2", "8", "2", "22"], ["3", "3", "3", "7"], ["4", "1", "4", "1"], ["4", "2", "4", "2"], ["5", "4", "5", "8"]]}, "table_names": "['car_makers' 'car_makers']", "table_image_ids": ["TableImg_Zr4d6_22.png", "TableImg_9jyzz_22.png"], "original_data_index": 964, "original_sql": "SELECT COUNT(FullName), Country, COUNT(Maker), MIN(Id) FROM car_makers WHERE Country != \"5\" GROUP BY Country HAVING MIN(Id) = 22 UNION SELECT COUNT(FullName), Country, COUNT(Maker), MIN(Id) FROM car_makers WHERE FullName <> \"Fiat\" GROUP BY Country HAVING MIN(Id) != 20"} {"question": "Can you list the aircraft IDs that are greater than or equal to 1 from the aircraft table, and also list the aircraft IDs that are greater than 5 from the airport_aircraft table, combining the two lists?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hq4lt_5.png", "TableImg_Afh1w_4.png"], "original_data_index": 969, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 5"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 4, excluding any driver IDs that are not equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_249cu_12.png", "TableImg_Owo6w_5.png"], "original_data_index": 971, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you list all the allergies, including those that are not \"Nuts\" or where the allergy type is not \"food\", and also include \"Grass Pollen\" in the list?", "answer": {"columns": ["Allergy"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], "data": [["Eggs"], ["Milk"], ["Shellfish"], ["Anchovies"], ["Wheat"], ["Soy"], ["Ragweed"], ["Tree Pollen"], ["Grass Pollen"], ["Cat"], ["Dog"], ["Rodent"], ["Bee Stings"], ["Grass Pollen"]]}, "table_names": "['Allergy_Type' 'Allergy_Type']", "table_image_ids": ["TableImg_4x3w6_14.png", "TableImg_Spb46_14.png"], "original_data_index": 968, "original_sql": "SELECT Allergy FROM Allergy_Type WHERE Allergy <> \"Nuts\" OR AllergyType <> \"food\" UNION ALL SELECT Allergy FROM Allergy_Type WHERE Allergy = \"Grass Pollen\""} {"question": "Can you list all the parties from the election table where the district is less than or equal to 1, or the committee is not 'Appropriations', combined with all the parties from the party table where the comptroller is not 'John Faso' and the attorney general is 'Eliot Spitzer', or the US Senate is not 'Charles Schumer', or the party is not 'Independence', the party ID is greater than or equal to 2, and the year is before 2002?", "answer": {"columns": ["Party"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12], "data": [["1"], ["1"], ["2"], ["3"], ["4"], ["7"], ["Democratic"], ["Liberal"], ["Democratic"], ["Independence"], ["Democratic"], ["Independence"], ["Working Families"]]}, "table_names": "['election' 'party']", "table_image_ids": ["TableImg_6p1z2_8.png", "TableImg_0rb4q_7.png"], "original_data_index": 970, "original_sql": "SELECT Party FROM election WHERE \"District\" <= 1 OR Committee <> \"Appropriations\" UNION ALL SELECT Party FROM party WHERE Comptroller != \"John Faso\" AND Attorney_General = \"Eliot Spitzer\" OR US_Senate <> \"Charles Schumer\" OR Party != \"Independence\" AND \"Party_ID\" >= 2 AND \"Year\" < 2002.0"} {"question": "Can you give me the ID of the driver that is only driver 5 and not driver 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["5"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hbcv3_12.png", "TableImg_Lpbxn_5.png"], "original_data_index": 972, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me the earnings, best finish, and final tables made for poker players who either had a best finish greater than 1 or earnings of 189233, but only if they also have a People ID other than 6 and have made a number of final tables that isn't 21?", "answer": {"columns": ["Earnings", "Best_Finish", "Final_Table_Made"], "index": [0, 1], "data": [["142800", "3", "26"], ["189233", "2", "10"]]}, "table_names": "['poker_player' 'poker_player']", "table_image_ids": ["TableImg_V6r84_5.png", "TableImg_Rgc7j_5.png"], "original_data_index": 974, "original_sql": "SELECT Earnings, Best_Finish, Final_Table_Made FROM poker_player WHERE \"Best_Finish\" > 1.0 OR \"Earnings\" = 189233.0 INTERSECT SELECT Earnings, Best_Finish, Final_Table_Made FROM poker_player WHERE \"People_ID\" <> 6 AND \"Final_Table_Made\" <> 21.0"} {"question": "Can you give me the smallest aircraft ID from the aircraft table, considering only aircraft where either the maximum gross weight isn't 123,500 lb (56,000 kg) and the aircraft ID is at least 1, or the maximum disk loading isn't 8.8 lb/ft\u00b2 (43 kg/m\u00b2), or the aircraft isn't a Bell 206B3 JetRanger, and also give me the smallest aircraft ID from the airport_aircraft table, but only for airports that aren't airport ID 1?", "answer": {"columns": ["MIN(Aircraft_ID)"], "index": [0, 1], "data": [["1"], ["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Gtinw_5.png", "TableImg_P3r55_4.png"], "original_data_index": 973, "original_sql": "SELECT MIN(Aircraft_ID) FROM aircraft WHERE Max_Gross_Weight != \"123,500 lb (56,000 kg)\" AND \"Aircraft_ID\" >= 1 OR Max_disk_Loading <> \"8.8 lb/ft\u00b2 (43 kg/m\u00b2)\" OR Aircraft <> \"Bell 206B3 JetRanger\" UNION ALL SELECT MIN(Aircraft_ID) FROM airport_aircraft WHERE \"Airport_ID\" <> 1"} {"question": "Can you give me the document IDs for documents with ID 2 that are not in \"working\" status, combined with the document IDs from draft copies with copy number 10?", "answer": {"columns": ["document_id"], "index": [0, 1, 2], "data": [["2"], ["10"], ["12"]]}, "table_names": "['Documents' 'Draft_Copies']", "table_image_ids": ["TableImg_1j2b7_15.png", "TableImg_Zka96_8.png"], "original_data_index": 975, "original_sql": "SELECT document_id FROM Documents WHERE \"document_id\" = 2 AND document_status_code <> \"working\" UNION SELECT document_id FROM Draft_Copies WHERE \"copy_number\" = 10"} {"question": "Can you give me a list of driver IDs, including driver ID 5 from the driver table and any driver IDs greater than or equal to 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1], "data": [["5"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Vn1aa_12.png", "TableImg_3ny0p_5.png"], "original_data_index": 976, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 5 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "Can you give me a list of driver IDs from the driver table that are less than or equal to 6, combined with a list of driver IDs from the school_bus table that are exactly 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X2un3_12.png", "TableImg_1k9me_5.png"], "original_data_index": 977, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 10"} {"question": "What is the average price of publications where the book ID is less than 5 or the publication ID is 5, and also the average price of publications where the publisher is not Pearson and the book ID is at least 9, or the publication ID is not 2, or the publication date is October 2005?", "answer": {"columns": ["AVG(Price)"], "index": [0, 1], "data": [["7025000"], ["4850000"]]}, "table_names": "['publication' 'publication']", "table_image_ids": ["TableImg_3rp36_7.png", "TableImg_3w9gc_7.png"], "original_data_index": 978, "original_sql": "SELECT AVG(Price) FROM publication WHERE \"Book_ID\" < 5 OR \"Publication_ID\" = 5 UNION ALL SELECT AVG(Price) FROM publication WHERE Publisher <> \"Pearson\" AND \"Book_ID\" >= 9 OR \"Publication_ID\" <> 2 OR Publication_Date = \"October 2005\""} {"question": "Which product and store combinations have a product ID of 1 or less and a store ID greater than 1?", "answer": {"columns": ["Product_ID", "Store_ID"], "index": [0, 1], "data": [["1", "2"], ["1", "5"]]}, "table_names": "['store_product' 'store_product']", "table_image_ids": ["TableImg_3yjab_15.png", "TableImg_1jof5_15.png"], "original_data_index": 982, "original_sql": "SELECT Product_ID, Store_ID FROM store_product WHERE \"Product_ID\" <= 1 INTERSECT SELECT Product_ID, Store_ID FROM store_product WHERE \"Store_ID\" > 1"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 8, excluding any driver IDs that are less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Z6sg1_12.png", "TableImg_Gcrpt_5.png"], "original_data_index": 981, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you give me a list of driver IDs that are less than 9, excluding any driver IDs that are also greater than 9 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gv0d5_12.png", "TableImg_T8qet_5.png"], "original_data_index": 979, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me the ModelId, the smallest Maker value, and the total Model count for entries where the Maker is 16 or less and the Model is not \"capri\", but exclude any results where the Model is \"pontiac\", the Maker is 4 or more, or the ModelId is greater than 17?", "answer": {"columns": ["ModelId", "MIN(Maker)", "SUM(Model)"], "index": [0], "data": [["1", "1", "0"]]}, "table_names": "['model_list' 'model_list']", "table_image_ids": ["TableImg_W47cc_36.png", "TableImg_Kc2a9_36.png"], "original_data_index": 980, "original_sql": "SELECT ModelId, MIN(Maker), SUM(Model) FROM model_list WHERE \"Maker\" <= 16 AND Model <> \"capri\" EXCEPT SELECT ModelId, MIN(Maker), SUM(Model) FROM model_list WHERE Model = \"pontiac\" OR \"Maker\" >= 4 OR \"ModelId\" > 17"} {"question": "Can you give me a list of driver IDs that are less than 7 from the driver table, combined with a list of driver IDs that are greater than 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Khqka_12.png", "TableImg_Uorpm_5.png"], "original_data_index": 985, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Can you give me a list of driver IDs that are less than 11, excluding those driver IDs that are also less than or equal to 4 and associated with a school bus?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_4qw7w_12.png", "TableImg_X0cpe_5.png"], "original_data_index": 983, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs, excluding driver ID 9 from the driver table and excluding driver ID 10 from the school_bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Ixff1_12.png", "TableImg_Pj7su_5.png"], "original_data_index": 984, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 9 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you give me a list of driver IDs, including driver ID 7 from the driver table and any driver IDs greater than 7 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qsrlx_12.png", "TableImg_Skswh_5.png"], "original_data_index": 986, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list the aircraft IDs that are greater than or equal to 4, excluding those aircraft IDs that are equal to 3 in the airport aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_1uicm_5.png", "TableImg_Sngik_4.png"], "original_data_index": 990, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 4 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me a list of driver IDs, excluding driver ID 10, that are not also driver IDs greater than or equal to 7 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5os3v_12.png", "TableImg_9sbsb_5.png"], "original_data_index": 988, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 10 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 2, and those from the school bus table with driver IDs greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7xeko_12.png", "TableImg_4gf3j_5.png"], "original_data_index": 987, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 2 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you list all the aircraft IDs from the aircraft table, specifically the one with ID 4, and combine that with a list of all aircraft IDs from the airport_aircraft table that are greater than 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ed0go_5.png", "TableImg_Dol3p_4.png"], "original_data_index": 989, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are 12 or greater, and those from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["4"], ["7"], ["9"], ["10"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Bduyo_12.png", "TableImg_Cueiy_5.png"], "original_data_index": 993, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs, where each ID is greater than 7, but excluding any driver IDs that also appear in the school bus table where those IDs are not equal to 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Oi3j2_12.png", "TableImg_Gulyf_5.png"], "original_data_index": 991, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 4"} {"question": "Can you give me a list of driver IDs that are not 11 and that are also less than or equal to 9, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0bval_12.png", "TableImg_1mwfu_5.png"], "original_data_index": 992, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 9"} {"question": "Can you give me the employee IDs and ages of employees who either are employee ID 3, are not named Louis Deacon, and are 30 years old, or are not from Bristol, excluding those who are not 29 years old and are not employee ID 2?", "answer": {"columns": ["Employee_ID", "Age"], "index": [0, 1, 2], "data": [["2", "29"], ["5", "29"], ["7", "29"]]}, "table_names": "['employee' 'employee']", "table_image_ids": ["TableImg_Qwaa4_10.png", "TableImg_61ldj_10.png"], "original_data_index": 994, "original_sql": "SELECT Employee_ID, Age FROM employee WHERE \"Employee_ID\" = 3 AND Name <> \"Louis Deacon\" AND \"Age\" = 30 OR City != \"Bristol\" EXCEPT SELECT Employee_ID, Age FROM employee WHERE \"Age\" != 29 AND \"Employee_ID\" != 2"} {"question": "Can you show me the budget in billions for departments where either their ranking isn't 6, their department ID is 13 or less, or their name isn't \"Defense\", excluding those budgets that are also found in departments created in 1913 or with a budget less than 77.6 billion, or whose name isn't \"Homeland Security\"?", "answer": {"columns": ["Budget_in_Billions"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["9.96"], ["11.1"], ["439.3"], ["23.4"], ["10.7"], ["77.6"], ["6.2"], ["59.7"], ["543.2"], ["46.2"], ["58.0"], ["21.5"], ["62.8"], ["73.2"], ["44.6"]]}, "table_names": "['department' 'department']", "table_image_ids": ["TableImg_Wopib_15.png", "TableImg_87ayz_15.png"], "original_data_index": 998, "original_sql": "SELECT Budget_in_Billions FROM department WHERE \"Ranking\" != 6 OR \"Department_ID\" <= 13 OR Name <> \"Defense\" NOT IN (SELECT Budget_in_Billions FROM department WHERE Creation <> \"1913\" AND \"Budget_in_Billions\" < 77.6 OR Name <> \"Homeland Security\")"} {"question": "Can you give me a list of aircraft IDs that are less than 5, excluding those aircraft IDs greater than 3 that are also associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Xir2q_5.png", "TableImg_Hazf5_4.png"], "original_data_index": 999, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me the Driver ID from the driver table, specifically if the Driver ID is 3, but only if that Driver ID is not also in the school_bus table where the Driver ID is greater than 7?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_8w0s4_12.png", "TableImg_P8dy6_5.png"], "original_data_index": 1000, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 3 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 7"} {"question": "Can you give me a list of driver IDs from the driver table that are less than 4, combined with a list of driver IDs from the school_bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_2yn0k_12.png", "TableImg_To9kd_5.png"], "original_data_index": 1001, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you show me the feature ID, property ID, and property feature description from the other property features, including those where the property ID isn't 6 and the description is \"illo\" or the feature ID is 3 or less, combined with those where the description isn't \"illo\" and the property ID is 6 or greater or the feature ID is greater than 2?", "answer": {"columns": ["feature_id", "property_id", "property_feature_description"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["2", "1", "ad"], ["2", "3", "cumque"], ["2", "6", "illo"], ["2", "7", "hic"], ["2", "13", "autem"], ["3", "4", "odio"], ["3", "6", "corrupti"], ["3", "6", "doloribus"], ["3", "6", "et"], ["3", "9", "quo"], ["3", "15", "dolorem"], ["4", "11", "vitae"], ["4", "12", "earum"], ["4", "14", "modi"], ["4", "14", "quo"]]}, "table_names": "['Other_Property_Features' 'Other_Property_Features']", "table_image_ids": ["TableImg_Obybd_15.png", "TableImg_3ks0f_15.png"], "original_data_index": 1002, "original_sql": "SELECT feature_id, property_id, property_feature_description FROM Other_Property_Features WHERE \"property_id\" <> 6 AND property_feature_description = \"illo\" OR \"feature_id\" <= 3 UNION SELECT feature_id, property_id, property_feature_description FROM Other_Property_Features WHERE property_feature_description <> \"illo\" AND \"property_id\" >= 6 OR \"feature_id\" > 2"} {"question": "Can you give me a list of all the Driver IDs, excluding 12 from the driver table and excluding 10 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fx3is_12.png", "TableImg_Yu8ou_5.png"], "original_data_index": 1003, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you give me a list of driver IDs, including those from the driver table excluding driver ID 1, and those from the school bus table with driver IDs greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_89q99_12.png", "TableImg_80030_5.png"], "original_data_index": 1004, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Could you please provide the other details, receipt number, document ID, and receipt date from the Documents table for records where the receipt number is \"189\" and the document type code is not \"Hard Drive\", or the document ID is less than or equal to 1, combined with records where the document type code is not \"CD\", the document ID is less than or equal to 3, the shipping agent code is \"UP\", and the other details are not \"y\", or the receipt date is \"2014-12-25 17:22:44\"?", "answer": {"columns": ["other_details", "receipt_number", "document_id", "receipt_date"], "index": [0, 1, 2], "data": [["h", "93", "3", "2014-12-25 17:22:44"], ["x", "189", "20", "1996-07-27 03:30:40"], ["z", "19", "1", "2008-04-21 20:42:25"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_56vm8_15.png", "TableImg_7md88_15.png"], "original_data_index": 1005, "original_sql": "SELECT other_details, receipt_number, document_id, receipt_date FROM Documents WHERE receipt_number = \"189\" AND document_type_code != \"Hard Drive\" OR \"document_id\" <= 1 UNION SELECT other_details, receipt_number, document_id, receipt_date FROM Documents WHERE document_type_code != \"CD\" AND \"document_id\" <= 3 AND shipping_agent_code = \"UP\" AND other_details != \"y\" OR receipt_date = \"2014-12-25 17:22:44\""} {"question": "Can you give me a list of driver IDs that are not 12 and are also greater than 4, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qwo6c_12.png", "TableImg_Pou3z_5.png"], "original_data_index": 1006, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"} {"question": "Can you list all the years awards were given, including years that weren't 2018, and also including years that weren't 2016, or when the bonus was 3200?", "answer": {"columns": ["Year_awarded"], "index": [0, 1, 2, 3, 4], "data": [["2011"], ["2015"], ["2016"], ["2017"], ["2018"]]}, "table_names": "['evaluation' 'evaluation']", "table_image_ids": ["TableImg_Vyl7o_6.png", "TableImg_T3tw9_6.png"], "original_data_index": 996, "original_sql": "SELECT Year_awarded FROM evaluation WHERE Year_awarded != \"2018\" UNION SELECT Year_awarded FROM evaluation WHERE Year_awarded <> \"2016\" OR \"Bonus\" = 3200.0"} {"question": "Which aircraft IDs, other than aircraft ID 1, are also aircraft ID 3 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_C8mkr_5.png", "TableImg_C917f_4.png"], "original_data_index": 997, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 3"} {"question": "Can you give me the PetID and weight of pets, grouped by student ID, but only for groups where the student ID is 1002 or greater and the pet type is \"dog\", or where the weight is not 12 and the pet's age is over 2?", "answer": {"columns": ["PetID", "weight"], "index": [0], "data": [["2002", "13.4"]]}, "table_names": "['Has_Pet' 'Pets']", "table_image_ids": ["TableImg_Wex1c_3.png", "TableImg_Z7rkn_3.png"], "original_data_index": 995, "original_sql": "SELECT T1.PetID, T2.weight FROM Has_Pet as T1 JOIN Pets as T2 ON T1.PetID == T2.PetID GROUP BY StuID HAVING StuID >= 1002 AND PetType = \"dog\" OR weight <> 12.0 AND pet_age > 2"} {"question": "Can you list all the aircraft IDs, first from the aircraft table excluding aircraft ID 4, and then from the airport_aircraft table including only aircraft IDs that are less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Hxxex_5.png", "TableImg_Ujrsh_4.png"], "original_data_index": 1008, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 4 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Can you give me a list of driver IDs that are less than or equal to 7, excluding those driver IDs that are also less than 10 and appear in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_D2o50_12.png", "TableImg_4scvm_5.png"], "original_data_index": 1007, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of driver IDs that are less than 12 from the driver table, combined with a list of driver IDs that are less than 4 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Urnxc_12.png", "TableImg_8z2am_5.png"], "original_data_index": 1009, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 4"} {"question": "Can you give me the first name, staff ID, and date they left for staff members who either have the nickname \"ynader\" but aren't named Rebekah, or don't have the last name \"Jast\", or left on \"2018-03-08 04:23:14\" and have a staff address ID greater than 1 and a middle name of \"Ulices\" and a staff ID that isn't 15, or joined on a date other than \"2018-01-02 12:24:24\", combined with staff members who either aren't named \"Jaleel\", or don't have the nickname \"ynader\" and don't have the last name \"Turner\" and have a staff ID of 2, or joined on a date other than \"2017-08-27 19:19:44\"?", "answer": {"columns": ["first_name", "staff_id", "date_left_staff"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["Camylle", "2", "2018-03-10 15:25:00"], ["Ernestina", "13", "2018-02-26 17:56:31"], ["Eulalia", "6", "2018-02-28 08:26:10"], ["Jaleel", "10", "2018-03-14 07:14:37"], ["Janessa", "1", "2018-03-23 22:53:12"], ["Jedidiah", "5", "2018-03-08 04:23:14"], ["Kaitlin", "3", "2018-03-24 10:11:08"], ["Lincoln", "12", "2018-03-06 23:17:41"], ["Ludie", "14", "2018-03-02 01:48:15"], ["Margie", "9", "2018-03-08 12:31:16"], ["Queenie", "7", "2018-03-08 05:16:29"], ["Rebekah", "4", "2018-03-04 17:13:53"], ["Simeon", "15", "2018-03-01 17:10:03"], ["Titus", "8", "2018-03-05 18:30:12"], ["Winnifred", "11", "2018-03-09 05:08:35"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Vebej_15.png", "TableImg_Carxa_15.png"], "original_data_index": 1010, "original_sql": "SELECT first_name, staff_id, date_left_staff FROM Staff WHERE nickname = \"ynader\" AND first_name <> \"Rebekah\" OR last_name != \"Jast\" OR date_left_staff = \"2018-03-08 04:23:14\" AND \"staff_address_id\" > 1 AND middle_name = \"Ulices\" AND \"staff_id\" != 15 OR date_joined_staff != \"2018-01-02 12:24:24\" UNION SELECT first_name, staff_id, date_left_staff FROM Staff WHERE first_name <> \"Jaleel\" OR nickname <> \"ynader\" AND last_name <> \"Turner\" AND \"staff_id\" = 2 OR date_joined_staff != \"2017-08-27 19:19:44\""} {"question": "What is the average flight ID for flights with a company ID less than 1 or an airport ID less than or equal to 1, or where the pilot is Thompson, combined with the average operate_company ID for companies where the ID is not 5 and the name is CLS Catering Services Limited, or they are incorporated in Vietnam and their principal activities are not Travel agency, or their type is Joint Venture and their Group Equity Shareholding is 49.0?", "answer": {"columns": ["AVG(id)"], "index": [0, 1], "data": [["6.3"], ["9.6666666667"]]}, "table_names": "['flight' 'operate_company']", "table_image_ids": ["TableImg_1qn2j_13.png", "TableImg_Ncg1a_14.png"], "original_data_index": 1011, "original_sql": "SELECT AVG(id) FROM flight WHERE \"company_id\" < 1 AND \"airport_id\" <= 1 OR Pilot = \"Thompson\" UNION SELECT AVG(id) FROM operate_company WHERE \"id\" != 5 AND name = \"CLS Catering Services Limited\" OR Incorporated_in = \"Vietnam\" AND Principal_activities <> \"Travel agency\" OR Type = \"Joint Venture\" AND \"Group_Equity_Shareholding\" = 49.0"} {"question": "Can you give me a list of driver IDs that are greater than or equal to 7, combined with a list of driver IDs from the school bus table that are not equal to 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["3"], ["4"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6rrfc_12.png", "TableImg_Jzssx_5.png"], "original_data_index": 1013, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 10"} {"question": "Can you list all the driver IDs from the driver table that are less than or equal to 4, and combine that with a list of all driver IDs from the school_bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5], "data": [["1"], ["2"], ["3"], ["4"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_9zq3y_12.png", "TableImg_Got5p_5.png"], "original_data_index": 1014, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs that are not 10 and are also greater than or equal to 4, considering only the driver IDs that appear in both the driver and school bus tables?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_5bjta_12.png", "TableImg_1wq9n_5.png"], "original_data_index": 1012, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list the aircraft IDs that are less than or equal to 3 from the aircraft table, and also list the aircraft IDs that are greater than 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Odhls_5.png", "TableImg_Itjj9_4.png"], "original_data_index": 1017, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "Which driver IDs appear in the driver table, excluding driver ID 11, and also appear as driver ID 4 in the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["4"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Gfigl_12.png", "TableImg_5yljl_5.png"], "original_data_index": 1015, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 4"} {"question": "Can you give me the driver IDs that are both less than 10 and also equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jrld5_12.png", "TableImg_1drmi_5.png"], "original_data_index": 1018, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of user IDs from the review table where the \"a_id\" is less than or equal to 5 and the \"u_id\" is 1, or the rating is not 10 and the \"i_id\" is greater than or equal to 3, or the rank is not 4, but excluding any user IDs from the user account table where the name is not \"Mark\" or the \"u_id\" is 4?", "answer": {"columns": ["u_id"], "index": [0], "data": [["2"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Fdztg_7.png", "TableImg_L14ja_7.png"], "original_data_index": 1016, "original_sql": "SELECT u_id FROM review WHERE \"a_id\" <= 5 AND \"u_id\" = 1 OR \"rating\" != 10 AND \"i_id\" >= 3 OR \"rank\" != 4 EXCEPT SELECT u_id FROM useracct WHERE name <> \"Mark\" OR \"u_id\" = 4"} {"question": "Can you give me a list of driver IDs, including those that are not 12 from the driver table and those that are less than or equal to 3 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_0doeu_12.png", "TableImg_Prikf_5.png"], "original_data_index": 1020, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 3"} {"question": "Can you list the aircraft IDs that are less than 5 from the aircraft table, combined with the aircraft IDs that are greater than 2 from the airport_aircraft table, removing any duplicates?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Clgzt_5.png", "TableImg_Rml6j_4.png"], "original_data_index": 1021, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID < 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "For books titled \"The Dome: Ground Zero\" or published on a date other than August 2008, or with a price other than 2,000,000, or written by someone other than Garth Ennis with a publication ID greater than 5, how many books are there, and what are their prices, grouped by writer, but only for those published by Thomson Reuters?", "answer": {"columns": ["COUNT(T1.Book_ID)", "Price"], "index": [0], "data": [["1", "6000000"]]}, "table_names": "['book' 'publication']", "table_image_ids": ["TableImg_2y8ek_10.png", "TableImg_V4nhr_7.png"], "original_data_index": 1024, "original_sql": "SELECT COUNT(T1.Book_ID), T2.Price FROM book as T1 JOIN publication as T2 ON T1.Book_ID = T2.Book_ID WHERE Title = \"The Dome: Ground Zero\" OR Publication_Date <> \"August 2008\" OR \"Price\" <> 2000000.0 OR Writer <> \"Garth Ennis\" AND \"Publication_ID\" > 5 GROUP BY Writer HAVING Publisher = \"Thomson Reuters\""} {"question": "Which driver IDs, excluding driver ID 3, are also driver IDs greater than or equal to 10 in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_B0cz5_12.png", "TableImg_Uwz76_5.png"], "original_data_index": 1019, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 3 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 10"} {"question": "What aircraft IDs are both greater than 1 when grouped in the aircraft table, and not equal to 1 when grouped in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_5usio_5.png", "TableImg_Ykn3a_4.png"], "original_data_index": 1022, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me a list of driver IDs that are less than 12, excluding the driver ID 3 if it appears in the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_N471q_12.png", "TableImg_Nl58q_5.png"], "original_data_index": 1026, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 3, that appear in the aircraft table, but not in the airport_aircraft table where the aircraft ID is less than or equal to 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Liwcy_5.png", "TableImg_Zbr6b_4.png"], "original_data_index": 1025, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1"} {"question": "Could you give me the contestant numbers that are both from contestants who are not named Loraine NygrenTania Mattioli or have a contestant number greater than 2, and also from contestants named Kelly Clauss or have a contestant number greater than 6?", "answer": {"columns": ["contestant_number"], "index": [0, 1, 2, 3, 4, 5], "data": [["3"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['CONTESTANTS' 'CONTESTANTS']", "table_image_ids": ["TableImg_Aw8w8_11.png", "TableImg_Asv5r_11.png"], "original_data_index": 1028, "original_sql": "SELECT contestant_number FROM CONTESTANTS WHERE contestant_name <> \"Loraine NygrenTania Mattioli\" OR \"contestant_number\" > 2 INTERSECT SELECT contestant_number FROM CONTESTANTS WHERE contestant_name = \"Kelly Clauss\" OR \"contestant_number\" > 6"} {"question": "Can you give me a list of all the driver IDs, excluding driver ID 10 from the driver table and excluding driver ID 4 from the school bus table, combining the results into a single list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jvu2c_12.png", "TableImg_E74ec_5.png"], "original_data_index": 1029, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 10 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 4"} {"question": "Can you give me the IDs of aircraft that are less than or equal to 1, excluding those aircraft IDs that are greater than 2 and are associated with airports?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_M80se_5.png", "TableImg_Sffnz_4.png"], "original_data_index": 1030, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2"} {"question": "What aircraft IDs are both greater than or equal to 1 in the aircraft table and not equal to 1 in the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_L4xfj_5.png", "TableImg_Txt75_4.png"], "original_data_index": 1031, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1"} {"question": "Can you give me a list of driver IDs from the driver table that are greater than or equal to 2, excluding any driver IDs that are equal to 7 in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_J4sz7_12.png", "TableImg_Ehjya_5.png"], "original_data_index": 1033, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 2 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 7"} {"question": "Can you give me the temporary acting status and head IDs that appear in both of these lists: one where the head ID isn't 5 or the department ID isn't 2 and the temporary acting status isn't \"No\", and another where the temporary acting status isn't \"Yes\" and either the department ID is greater than 15 or the head ID isn't 3?", "answer": {"columns": ["temporary_acting", "head_ID"], "index": [0, 1, 2], "data": [["No", "10"], ["Yes", "4"], ["Yes", "6"]]}, "table_names": "['management' 'management']", "table_image_ids": ["TableImg_6xvtu_5.png", "TableImg_Jnkwm_5.png"], "original_data_index": 1032, "original_sql": "SELECT temporary_acting, head_ID FROM management WHERE \"head_ID\" <> 5 OR \"department_ID\" != 2 AND temporary_acting != \"No\" INTERSECT SELECT temporary_acting, head_ID FROM management WHERE temporary_acting != \"Yes\" AND \"department_ID\" > 15 OR \"head_ID\" <> 3"} {"question": "Can you give me a list of driver IDs that are 12 or less, but only include those that are not also school bus driver IDs that are 4 or greater?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["5"], ["6"], ["8"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_X0y5n_12.png", "TableImg_Yebv6_5.png"], "original_data_index": 1034, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 12 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 4"} {"question": "Can you list all the driver IDs, including those from the driver table that are 12 or greater, and those from the school bus table that are greater than 10?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qn7j2_12.png", "TableImg_Opevh_5.png"], "original_data_index": 1036, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 10"} {"question": "Can you find the minimum group equity shareholding, incorporation location, sum of type, principal activities, ID, and maximum name for operating companies where either the group equity shareholding is less than or equal to 18.77 and the name is not \"Hong Kong Airport Services\" and the incorporation location is not \"Hong Kong\" or the type is \"Subsidiary\" and the ID is 9, combined with the same information for operating companies where the group equity shareholding is greater than 100.0 or the principal activities are not \"Cargo airline\"?", "answer": {"columns": ["MIN(Group_Equity_Shareholding)", "Incorporated_in", "SUM(Type)", "Principal_activities", "id", "MAX(name)"], "index": [0, 1], "data": [["18.77", "Hong Kong", "0", "Travel agency", "9", "Dragonair Holidays"], ["18.77", "Hong Kong", "0", "Laundry", "11", "Vogue Laundry Service Limited"]]}, "table_names": "['operate_company' 'operate_company']", "table_image_ids": ["TableImg_3c0kh_14.png", "TableImg_1a0p0_14.png"], "original_data_index": 1035, "original_sql": "SELECT MIN(Group_Equity_Shareholding), Incorporated_in, SUM(Type), Principal_activities, id, MAX(name) FROM operate_company WHERE \"Group_Equity_Shareholding\" <= 18.77 AND name <> \"Hong Kong Airport Services\" AND Incorporated_in <> \"Hong Kong\" OR Type = \"Subsidiary\" AND \"id\" = 9 UNION ALL SELECT MIN(Group_Equity_Shareholding), Incorporated_in, SUM(Type), Principal_activities, id, MAX(name) FROM operate_company WHERE \"Group_Equity_Shareholding\" > 100.0 OR Principal_activities <> \"Cargo airline\""} {"question": "Which driver IDs, excluding driver ID 6, appear in the driver table but not in the school_bus table, also excluding driver ID 9 from the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["5"], ["8"], ["9"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Tlkxu_12.png", "TableImg_W06xm_5.png"], "original_data_index": 1027, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 6 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "Could you give me the user IDs that are both from reviews where the user ID is 2 and either the rank isn't 2 or the account ID isn't 7, and also from user accounts where the name isn't Mark?", "answer": {"columns": ["u_id"], "index": [0], "data": [["1"]]}, "table_names": "['review' 'useracct']", "table_image_ids": ["TableImg_Irrun_7.png", "TableImg_O74cs_7.png"], "original_data_index": 1040, "original_sql": "SELECT u_id FROM review WHERE \"u_id\" = 2 AND \"rank\" != 2 OR \"a_id\" != 7 INTERSECT SELECT u_id FROM useracct WHERE name <> \"Mark\""} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 5, and also list all the aircraft IDs from the airport aircraft table, excluding aircraft ID 1?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_K6a61_5.png", "TableImg_3ckzx_4.png"], "original_data_index": 1041, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1"} {"question": "Can you give me the sum of nicknames and last names, the date someone left the staff, their birth date, staff ID, the maximum middle name, and staff address ID for staff members, combining two sets of results: first, those who didn't join on \"2017-06-04 14:30:41\", weren't born on \"2003-01-16 06:29:11\", don't have the nickname \"weissnat.vincenzo\", left on \"2018-03-08 04:23:14\", have a staff ID of 3 or less, and a staff address ID greater than 3; and second, those with a staff address ID of 1 or greater?", "answer": {"columns": ["SUM(nickname)", "date_left_staff", "date_of_birth", "staff_id", "MAX(middle_name)", "staff_address_id", "SUM(last_name)"], "index": [0, 1], "data": [["", "", "", "", "", "", ""], ["0.0", "2018-03-02 01:48:15", "2000-11-16 06:55:12", "14.0", "Ulices", "6.0", "0.0"]]}, "table_names": "['Staff' 'Staff']", "table_image_ids": ["TableImg_Mkkk6_15.png", "TableImg_Falwm_15.png"], "original_data_index": 1042, "original_sql": "SELECT SUM(nickname), date_left_staff, date_of_birth, staff_id, MAX(middle_name), staff_address_id, SUM(last_name) FROM Staff WHERE date_joined_staff <> \"2017-06-04 14:30:41\" AND date_of_birth <> \"2003-01-16 06:29:11\" AND nickname != \"weissnat.vincenzo\" AND date_left_staff = \"2018-03-08 04:23:14\" AND \"staff_id\" <= 3 AND \"staff_address_id\" > 3 UNION SELECT SUM(nickname), date_left_staff, date_of_birth, staff_id, MAX(middle_name), staff_address_id, SUM(last_name) FROM Staff WHERE \"staff_address_id\" >= 1"} {"question": "What are the aircraft IDs, starting from 1, that are present in the aircraft table but not in the airport_aircraft table where the aircraft IDs are greater than 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Rqvgp_5.png", "TableImg_Wo0oc_4.png"], "original_data_index": 1043, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3"} {"question": "Can you give me a list of driver IDs that are 11 or less, but exclude driver ID 3 if it appears in the school bus assignments?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["1"], ["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_G9mpo_12.png", "TableImg_Tlr8n_5.png"], "original_data_index": 1044, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs, including driver ID 7 from the driver table, and any driver IDs less than 10 from the school bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["3"], ["4"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V9ual_12.png", "TableImg_Unocj_5.png"], "original_data_index": 1045, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Which aircraft IDs, that are no greater than 5, are present in both the aircraft and airport_aircraft datasets?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["3"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Ru1mu_5.png", "TableImg_F1xc7_4.png"], "original_data_index": 1046, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 5"} {"question": "Could you list the driver IDs that are equal to 1 from the driver table, and also list the driver IDs greater than 3 from the school_bus table, combining the two lists?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["4"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Q9113_12.png", "TableImg_Ort49_5.png"], "original_data_index": 1047, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID = 1 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of aircraft IDs, excluding aircraft ID 5, that are not also aircraft ID 1 found in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2], "data": [["2"], ["3"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mpkrp_5.png", "TableImg_Hkvsp_4.png"], "original_data_index": 1048, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID = 1"} {"question": "Which aircraft IDs, excluding aircraft ID 1, are also among the aircraft IDs less than or equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_U2w7j_5.png", "TableImg_Fn6lk_4.png"], "original_data_index": 1037, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 1 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you list all the aircraft IDs, excluding aircraft ID 3 from the aircraft table, and combine that with a list of aircraft IDs, excluding aircraft ID 5 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1, 2, 3, 4], "data": [["1"], ["2"], ["3"], ["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_2lbyu_5.png", "TableImg_Qh3o7_4.png"], "original_data_index": 1039, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3 UNION SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 5"} {"question": "Could you give me the Store IDs that are either not City Malls, have a ranking of 2 or higher, or have fewer than 1170 product categories, are named \"Miramichi,\" and have an area size of 21.73 or greater, but only for stores located in District 15?", "answer": {"columns": ["Store_ID"], "index": [0, 1], "data": [["1"], ["2"]]}, "table_names": "['store' 'store_district']", "table_image_ids": ["TableImg_Lst5q_5.png", "TableImg_V6b3x_5.png"], "original_data_index": 1038, "original_sql": "SELECT Store_ID FROM store WHERE Type <> \"City Mall\" OR \"Ranking\" >= 2 OR \"Number_of_product_category\" < 1170.0 AND Store_Name = \"Miramichi\" AND \"Area_size\" >= 21.73 INTERSECT SELECT Store_ID FROM store_district WHERE \"District_ID\" = 15"} {"question": "Can you list the aircraft IDs that appear in the aircraft table, excluding aircraft ID 1, but only if they are not also listed in the airport_aircraft table with an aircraft ID of 1 or greater?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Jtmjp_5.png", "TableImg_T2h8h_4.png"], "original_data_index": 1052, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 1 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID >= 1"} {"question": "Which driver IDs are both greater than 7 and also equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Escyd_12.png", "TableImg_La72i_5.png"], "original_data_index": 1051, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 9"} {"question": "Can you list the aircraft IDs from the aircraft table that are less than or equal to 3, excluding any aircraft IDs from the airport_aircraft table that are not equal to 3?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["3"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Uqpqk_5.png", "TableImg_Lmgn2_4.png"], "original_data_index": 1049, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table where the ID is 6 or higher, and those from the school bus table where the ID is greater than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_7dk3j_12.png", "TableImg_K0ow6_5.png"], "original_data_index": 1050, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 6 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 9"} {"question": "Which driver IDs, excluding driver ID 7, are present in the driver table and also, excluding driver ID 10, are present in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Hbevv_12.png", "TableImg_Fy1yd_5.png"], "original_data_index": 1054, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Could you list the aircraft IDs for all aircraft with a distance less than 6441, and also include the aircraft IDs from the certificate table where the aircraft ID is greater than 7?", "answer": {"columns": ["aid"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], "data": [["2"], ["4"], ["5"], ["6"], ["7"], ["8"], ["16"], ["10"], ["13"], ["14"], ["15"], ["10"], ["10"], ["12"], ["10"], ["11"], ["12"], ["13"], ["10"], ["8"], ["9"], ["10"], ["11"], ["12"], ["13"], ["14"], ["15"], ["10"], ["12"], ["8"], ["9"], ["8"], ["9"], ["13"], ["14"], ["12"], ["14"], ["9"], ["10"], ["11"], ["12"], ["15"], ["8"]]}, "table_names": "['aircraft' 'certificate']", "table_image_ids": ["TableImg_0plpy_16.png", "TableImg_Cfxc1_69.png"], "original_data_index": 1053, "original_sql": "SELECT aid FROM aircraft WHERE \"distance\" < 6441 UNION ALL SELECT aid FROM certificate WHERE \"aid\" > 7"} {"question": "Can you give me a list of driver IDs less than 8, excluding any driver IDs that are not equal to 10 from the school bus list?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3], "data": [["1"], ["2"], ["5"], ["6"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_V1edp_12.png", "TableImg_F1y2r_5.png"], "original_data_index": 1056, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 10"} {"question": "Can you list all the driver IDs from the driver table that are less than 7, combined with all the driver IDs from the school_bus table that are less than 10?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Cux6a_12.png", "TableImg_Y5ey7_5.png"], "original_data_index": 1055, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 7 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you give me a list of employee IDs that includes those from the employee table who are at least 32 years old, don't live in Wasps, have an ID other than 8, or aren't named Louis Deacon, combined with employee IDs from the evaluation table where the year awarded wasn't 2011?", "answer": {"columns": ["Employee_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["1"], ["10"], ["2"], ["4"], ["7"]]}, "table_names": "['employee' 'evaluation']", "table_image_ids": ["TableImg_Pijwp_10.png", "TableImg_Cntg3_6.png"], "original_data_index": 1057, "original_sql": "SELECT Employee_ID FROM employee WHERE \"Age\" >= 32 OR City <> \"Wasps\" OR \"Employee_ID\" != 8 OR Name <> \"Louis Deacon\" UNION SELECT Employee_ID FROM evaluation WHERE Year_awarded != \"2011\""} {"question": "Can you give me a list of driver IDs that are less than 12, and combine that with a list of driver IDs from the school bus table that are not equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Qe9kk_12.png", "TableImg_D6nuo_5.png"], "original_data_index": 1060, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 3"} {"question": "Can you give me a list of driver IDs that are both less than or equal to 7 and appear in the driver table, and also less than 10 and appear in the school_bus table?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2], "data": [["3"], ["4"], ["7"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Fm8rd_12.png", "TableImg_9t84g_5.png"], "original_data_index": 1059, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 7 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 10"} {"question": "Can you list the aircraft IDs, excluding aircraft ID 3, that appear in the aircraft table but not in the airport_aircraft table, where we're also excluding aircraft ID 2 from the airport_aircraft table?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["2"], ["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_X3zed_5.png", "TableImg_Oyl2l_4.png"], "original_data_index": 1058, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID != 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "What is the sum of document status codes for documents that either don't have a receipt number of \"124\", or have a document status code that isn't \"working\" and a shipping agent code of \"US\", or have a receipt date that isn't \"1974-05-08 00:00:46\", or have other details equal to \"r\", but only considering those sums that are also the sum of document status codes for documents that don't have a document type code of \"Hard Drive\"?", "answer": {"columns": ["SUM(document_status_code)"], "index": [0], "data": [["0"]]}, "table_names": "['Documents' 'Documents']", "table_image_ids": ["TableImg_Oznc6_15.png", "TableImg_7q3x7_15.png"], "original_data_index": 1061, "original_sql": "SELECT SUM(document_status_code) FROM Documents WHERE receipt_number <> \"124\" OR document_status_code != \"working\" AND shipping_agent_code = \"US\" OR receipt_date != \"1974-05-08 00:00:46\" OR other_details = \"r\" INTERSECT SELECT SUM(document_status_code) FROM Documents WHERE document_type_code <> \"Hard Drive\""} {"question": "What is the average employee ID for circulation history entries where the employee ID is less than 2, combined with the average employee ID for employees with the role code \"ED\" and the name \"Clemens\", excluding employee ID 7?", "answer": {"columns": ["AVG(employee_id)"], "index": [0, 1], "data": [[""], ["1.0"]]}, "table_names": "['Circulation_History' 'Employees']", "table_image_ids": ["TableImg_Cpxts_4.png", "TableImg_Kn8ld_6.png"], "original_data_index": 1063, "original_sql": "SELECT AVG(employee_id) FROM Circulation_History WHERE \"employee_id\" < 2 UNION SELECT AVG(employee_id) FROM Employees WHERE role_code = \"ED\" AND employee_name = \"Clemens\" AND \"employee_id\" <> 7"} {"question": "Can you give me the driver IDs that are both less than or equal to 10 and also equal to 3, considering drivers from both the driver and school bus lists?", "answer": {"columns": ["Driver_ID"], "index": [0], "data": [["3"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Jwmex_12.png", "TableImg_Igmpg_5.png"], "original_data_index": 1066, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 10 INTERSECT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you list the aircraft IDs that are greater than 3, excluding those aircraft IDs from the airport aircraft table that are not equal to 2?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["4"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Mdeek_5.png", "TableImg_5bg5z_4.png"], "original_data_index": 1065, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 3 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs that are less than or equal to 9, excluding those driver IDs that are greater than or equal to 7 and are also school bus drivers?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Uncm5_12.png", "TableImg_Tm3vh_5.png"], "original_data_index": 1062, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <= 9 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID >= 7"} {"question": "Can you give me a list of driver IDs from the driver table that are 8 or higher, excluding any driver IDs from the school_bus table that are less than 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4], "data": [["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_6m7hi_12.png", "TableImg_Nlhgs_5.png"], "original_data_index": 1067, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 8 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID < 9"} {"question": "Can you give me a list of driver IDs, combining those from the driver table that aren't 12 with those from the school bus table that are 4 or less?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Snaev_12.png", "TableImg_W0x49_5.png"], "original_data_index": 1069, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 12 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <= 4"} {"question": "Can you give me a list of driver IDs that are less than 8, combined with a list of driver IDs from school buses that are greater than 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_3twx0_12.png", "TableImg_P4ocz_5.png"], "original_data_index": 1070, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID < 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 3"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than 4 and those from the school bus table that are not equal to 7?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Zbj8z_12.png", "TableImg_Xy2wm_5.png"], "original_data_index": 1068, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID > 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID != 7"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are greater than or equal to 4, and those from the school bus table that are not equal to 9?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "data": [["3"], ["4"], ["5"], ["6"], ["7"], ["8"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1a89j_12.png", "TableImg_Kn8yd_5.png"], "original_data_index": 1071, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID >= 4 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID <> 9"} {"question": "What aircraft IDs are greater than 2, excluding those aircraft IDs that are less than or equal to 3 and are associated with an airport?", "answer": {"columns": ["Aircraft_ID"], "index": [0, 1], "data": [["4"], ["5"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Luhk3_5.png", "TableImg_Wpygg_4.png"], "original_data_index": 1072, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID > 2 EXCEPT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 3"} {"question": "Can you list the aircraft IDs that are less than or equal to 2, and are also not equal to 2 in the airport aircraft list?", "answer": {"columns": ["Aircraft_ID"], "index": [0], "data": [["1"]]}, "table_names": "['aircraft' 'airport_aircraft']", "table_image_ids": ["TableImg_Yoehq_5.png", "TableImg_Rjqln_4.png"], "original_data_index": 1073, "original_sql": "SELECT Aircraft_ID FROM aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <= 2 INTERSECT SELECT Aircraft_ID FROM airport_aircraft GROUP BY Aircraft_ID HAVING Aircraft_ID <> 2"} {"question": "Can you give me a list of driver IDs, including those from the driver table that are not 8, and those from the school bus table that are equal to 3?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["7"], ["9"], ["10"], ["11"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_Kqo46_12.png", "TableImg_Bvjlr_5.png"], "original_data_index": 1075, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID != 8 UNION SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID = 3"} {"question": "Can you give me a list of driver IDs that are not 11 from the driver table, excluding any driver IDs from the school bus table that are greater than 4?", "answer": {"columns": ["Driver_ID"], "index": [0, 1, 2, 3, 4, 5, 6, 7], "data": [["1"], ["2"], ["3"], ["4"], ["5"], ["6"], ["8"], ["12"]]}, "table_names": "['driver' 'school_bus']", "table_image_ids": ["TableImg_1uhb7_12.png", "TableImg_Sihkd_5.png"], "original_data_index": 1074, "original_sql": "SELECT Driver_ID FROM driver GROUP BY Driver_ID HAVING Driver_ID <> 11 EXCEPT SELECT Driver_ID FROM school_bus GROUP BY Driver_ID HAVING Driver_ID > 4"}